:root {
    --bg: #07111f;
    --panel: #111d2d;
    --panel-soft: #17263a;
    --text: #f4f7fb;
    --muted: #9fb0c7;
    --accent: #32d296;
    --accent-dark: #1ba673;
    --danger: #e85d75;
    --border: #26384f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #14345a 0, var(--bg) 36rem);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    display: grid;
    gap: .75rem 1rem;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    padding: 1.25rem clamp(1rem, 4vw, 4rem);
}

.brand {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 800;
    grid-column: 1;
    grid-row: 1;
}

.brand-logo {
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .25);
    display: block;
    height: clamp(3.25rem, 10vw, 4.75rem);
    object-fit: cover;
    width: clamp(3.25rem, 10vw, 4.75rem);
}

.header-channels {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: .45rem;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.header-channel {
    align-items: center;
    border-radius: .55rem;
    display: inline-flex;
    flex-shrink: 0;
    height: 2.25rem;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
    width: 2.25rem;
}

.header-channel:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
    transform: translateY(-1px);
}

.header-channel .channel-icon-svg--telegram,
.header-channel .channel-icon-img--max {
    border-radius: .55rem;
    display: block;
    height: 2.25rem;
    object-fit: cover;
    width: 2.25rem;
}

nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
}

.site-header nav a.nav-cabinet-accent {
    background: rgba(50, 210, 150, 0.14);
    border: 1px solid rgba(50, 210, 150, 0.45);
    border-radius: 0.5rem;
    color: var(--accent);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
}

.site-header nav a.nav-cabinet-accent:hover {
    background: rgba(50, 210, 150, 0.22);
    color: #5ee9b5;
}

/* Unified channel tiles in header/hero */
.header-channel,
.hero-channel {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.header-channel .channel-icon-svg--telegram,
.header-channel .channel-icon-img--max {
    border-radius: .5rem;
    height: 1.65rem;
    object-fit: contain;
    width: 1.65rem;
}

.hero-channel .channel-icon-svg--telegram,
.hero-channel .channel-icon-img--max {
    border-radius: .65rem;
    height: 2.4rem;
    object-fit: contain;
    width: 2.4rem;
}

.organizer-contact-block {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

.organizer-contact-block .eyebrow {
    margin-bottom: .5rem;
}

.organizer-contact-rules {
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2rem 0 2.5rem;
}

.site-footer .eyebrow {
    margin-bottom: .5rem;
}

.official-channels-list {
    color: var(--muted);
    display: grid;
    font-size: .95rem;
    gap: .35rem;
    line-height: 1.45;
    list-style: none;
    margin: 0 0 .85rem;
    max-width: 720px;
    padding: 0;
}

.footer-contact-text {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
    max-width: 720px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--muted);
    font-size: .95rem;
}

.footer-links a:hover {
    color: var(--text);
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.5rem;
}

.page-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin: 2rem 0;
}

.page-heading h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
    margin: .25rem 0 1rem;
}

.page-back-row {
    margin: 0 0 .75rem;
}

#dashboard-predictions,
#home-predictions {
    scroll-margin-top: 5.5rem;
}

.scroll-top-btn {
    align-items: center;
    background: rgba(17, 29, 45, .94);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    bottom: clamp(1rem, 3vw, 1.75rem);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 700;
    height: 2.85rem;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    width: 2.85rem;
    z-index: 90;
}

.scroll-top-btn:hover {
    background: rgba(22, 38, 56, .98);
    border-color: rgba(50, 210, 150, .45);
    transform: translateY(-2px);
}

.scroll-top-btn[hidden] {
    display: none;
}

/* FIFA World Cup 26™ style mascots (site decoration) */
.mascot-strip {
    background: linear-gradient(145deg, rgba(12, 28, 48, .55), rgba(5, 12, 22, .35));
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem 1.1rem;
    text-align: center;
}

.mascot-strip--home {
    margin: 2rem 0 2.5rem;
}

.mascot-cluster {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    justify-content: center;
}

.mascot-cluster img {
    display: block;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .5));
    height: clamp(4rem, 16vw, 8rem);
    object-fit: contain;
    width: auto;
}

.mascot-cluster--sm img {
    height: clamp(2.85rem, 11vw, 5.25rem);
}

.mascot-cluster--lg img {
    height: clamp(5.25rem, 22vw, 11rem);
}

.mascot-caption {
    font-size: .88rem;
    line-height: 1.4;
    margin: .75rem 0 0;
}

/* Маскоты без отдельной плашки (встройка в блоки страницы) */
.mascot-bare {
    background: none;
    border: none;
    box-shadow: none;
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.mascot-bare .mascot-cluster {
    align-items: flex-end;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    margin: 0;
}

.mascot-bare .mascot-cluster img {
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
    height: clamp(3rem, 12vw, 5.75rem);
    object-fit: contain;
    width: auto;
}

.mascot-bare .mascot-cluster img + img {
    margin-left: -.55rem;
}

.mascot-bare.mascot-bare--xs .mascot-cluster img {
    height: clamp(2.25rem, 9vw, 4rem);
}

.prize-mascot-zone {
    overflow: visible;
    position: relative;
}

.prize-mascot-zone:not(.prize-fee-card) > h2:first-of-type {
    padding-right: clamp(2.5rem, 20vw, 5.5rem);
}

.prize-mascot-zone .table-scroll {
    margin-bottom: .5rem;
}

.mascot-wander--prize-table-tr {
    position: absolute;
    right: .15rem;
    top: .35rem;
    transform: rotate(-7deg);
    z-index: 1;
}

.mascot-wander--prize-table-bl {
    bottom: .15rem;
    left: .1rem;
    position: absolute;
    transform: rotate(8deg);
    z-index: 1;
}

.prize-fee-card {
    padding-bottom: clamp(3.75rem, 16vw, 4.75rem);
}

@media (min-width: 640px) {
    .prize-fee-card {
        padding-bottom: 1.5rem;
        padding-right: clamp(4.5rem, 14vw, 8.5rem);
    }
}

.mascot-wander--prize-fee {
    bottom: .4rem;
    position: absolute;
    right: .25rem;
    transform: rotate(5deg);
    z-index: 1;
}

@media (min-width: 640px) {
    .mascot-wander--prize-fee {
        bottom: 1rem;
        right: .75rem;
    }
}


    bottom: 6%;
    left: -.6rem;
    position: absolute;
    transform: rotate(-10deg);
    z-index: 2;
}

.mascot-wander--prize-hero .mascot-cluster img {
    height: clamp(3.25rem, 14vw, 5.5rem);
}

@media (max-width: 520px) {
    .mascot-wander--prize-table-tr .mascot-cluster img {
        height: clamp(2.35rem, 11vw, 3.6rem);
    }

    .mascot-wander--prize-table-bl .mascot-cluster img {
        height: clamp(2.2rem, 10vw, 3.35rem);
    }

    .mascot-wander--prize-fee .mascot-cluster img {
        height: clamp(2.35rem, 11vw, 3.85rem);
    }
}

.register-layout {
    display: grid;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 520px;
}

.register-name-hint {
    font-size: .88rem;
    line-height: 1.4;
    margin: -.35rem 0 .25rem;
}

.hero-duel {
    background: linear-gradient(135deg, #091320 0%, #050811 100%);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-duel-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-duel-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.hero-duel-content {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.35rem, 3vw, 2.25rem);
    position: relative;
    z-index: 2;
}

.hero-duel-aside-channels {
    width: 100%;
}

@media (min-width: 821px) {
    .hero-duel {
        grid-template-columns: 1.15fr 0.85fr;
        grid-template-areas: 
            "content image"
            "content channels";
        gap: 1.5rem 3.5rem;
        padding: 3rem;
        align-items: start;
    }

    .hero-duel-content {
        grid-area: content;
        padding: 0;
    }

    .hero-duel-image {
        grid-area: image;
        border-radius: 1rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(50, 210, 150, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .hero-duel-image:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(50, 210, 150, 0.2);
    }

    .hero-duel-aside-channels {
        grid-area: channels;
        padding: 0;
    }

    .hero-actions {
        margin-top: 0;
    }

    .hero-channels {
        max-width: none;
    }
}

.hero-duel-content h1 {
    background: linear-gradient(135deg, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: .5rem 0 1.5rem;
    text-transform: uppercase;
}

.lead {
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 680px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 24px 80px rgba(0,0,0,.24);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.prize-pool-card {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.prize-pool-info h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 .25rem;
}

.prize-pool-info p {
    color: var(--muted);
    margin: 0;
}

.prize-pool-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.prize-pool-details li {
    background: rgba(255, 255, 255, .04);
    border-radius: .5rem;
    padding: .75rem 1rem;
}

.countdown-card {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.countdown {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    justify-content: flex-end;
}

.countdown span {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.countdown small {
    color: var(--muted);
    margin-right: .5rem;
}

.countdown-card {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.countdown {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    justify-content: flex-end;
}

.countdown span {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.countdown small {
    color: var(--muted);
    margin-right: .5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button,
button {
    background: var(--accent);
    border: 0;
    border-radius: .75rem;
    color: #062016;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: .85rem 1.1rem;
}

.button.secondary {
    background: var(--panel-soft);
    color: var(--text);
}

.button.danger {
    background: var(--danger);
    color: white;
}

.button.small,
button.small {
    padding: .55rem .8rem;
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.actions,
.table-actions,
.inline-form,
.result-form,
.champion-form,
.delete-team-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.admin-result-actions {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.result-form-reset {
    flex-wrap: wrap;
}

.activation-form {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.activation-form label {
    min-width: min(100%, 22rem);
}

.link-button {
    background: none;
    color: var(--text);
    padding: 0;
}

.compact-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-card {
    margin: 3rem auto;
    max-width: 460px;
}

.stack {
    display: grid;
    gap: 1rem;
}

label {
    color: var(--muted);
    display: grid;
    gap: .4rem;
}

input,
select,
textarea {
    background: #091524;
    border: 1px solid var(--border);
    border-radius: .7rem;
    color: var(--text);
    padding: .8rem .9rem;
    width: 100%;
}

textarea {
    font-family: inherit;
    line-height: 1.45;
    min-height: 6rem;
    resize: vertical;
}

.checkbox-label {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
}

.checkbox-label input {
    margin-top: .25rem;
    width: auto;
}

.checkbox-label span {
    line-height: 1.45;
}

.password-input-wrap {
    align-items: stretch;
    display: flex;
    gap: 0.35rem;
    width: 100%;
}

.password-input-wrap__field {
    flex: 1;
    min-width: 0;
}

.password-toggle {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: .7rem;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    font-size: .875rem;
    padding: .8rem .75rem;
    white-space: nowrap;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.admin-match-row {
    scroll-margin-top: 6rem;
}

.admin-match-row {
    scroll-margin-top: 6rem;
}

.alert {
    border-radius: .9rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.alert.success {
    background: rgba(50, 210, 150, .14);
    border: 1px solid rgba(50, 210, 150, .45);
}

.alert.error {
    background: rgba(232, 93, 117, .14);
    border: 1px solid rgba(232, 93, 117, .45);
}

.alert.notice,
.pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
}

.payment-card {
    border-color: rgba(50, 210, 150, .35);
}

.payment-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    margin-top: 1.25rem;
}

.payment-receipt-form {
    margin-top: 0.75rem;
}

.payment-receipt-form input[type="file"] {
    font-size: 0.875rem;
    max-width: 100%;
}

.payment-receipt-status {
    margin-top: 0.5rem;
}

.payment-receipt-pending-notice {
    color: rgba(50, 210, 150, .92);
    font-size: .9rem;
    line-height: 1.45;
    margin: 0.65rem 0 0;
}

.payment-steps div {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

/* Только номер шага (первый span в карточке), не подсказки внутри блоков */
.payment-steps > div > span:first-child {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: #062016;
    display: inline-flex;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    margin-bottom: .75rem;
    width: 2rem;
}

.payment-steps strong {
    display: block;
}

.payment-steps p {
    color: var(--muted);
    margin-bottom: 0;
}

.payment-instructions-text {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.admin-settings-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.payment-instructions-text {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.admin-settings-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.match-team-insights .small-print {
    font-size: .85rem;
    margin-bottom: 1rem;
}

.match-team-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    margin-top: 1rem;
}

.match-team-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.match-team-card h3 {
    font-size: 1.05rem;
    margin: 0 0 .6rem;
}

.match-team-meta {
    color: var(--muted);
    font-size: .9rem;
    margin: .35rem 0;
}

.match-team-meta .eyebrow {
    display: inline-block;
    margin-right: .35rem;
    text-transform: uppercase;
}

.match-team-note {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
    margin: .6rem 0 0;
}

.match-distribution .prediction-stats {
    margin-top: .75rem;
}

.match-top-score {
    margin: 1rem 0 0;
}

.admin-teams-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-team-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    scroll-margin-top: 5.5rem;
}

.team-form-inline {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.team-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
}

.delete-team-form {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.team-form label,
.team-form-inline label {
    display: block;
}

.team-form input,
.team-form textarea,
.admin-team-card input,
.admin-team-card textarea {
    margin-top: .25rem;
    width: 100%;
    max-width: 100%;
}

.admin-team-wc-line {
    margin: 0 0 .5rem;
}

.table-scroll {
    overflow-x: auto;
}

.table-link {
    color: var(--accent);
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: .9rem;
    text-align: left;
}

.match-list,
#champion-pick {
    scroll-margin-top: 6rem;
}

#champion-pick {
    scroll-margin-top: 6rem;
}

.prediction-list,
.mini-league-list {
    display: grid;
    gap: .75rem;
}

.match-row,
.prediction-row,
.mini-league-card {
    align-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto auto;
    padding: 1rem;
    scroll-margin-top: 6rem;
}

.mini-league-card {
    grid-template-columns: 1fr;
}

.invite-card {
    border-color: rgba(50, 210, 150, .35);
}

.invite-box {
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    padding: 1rem;
}

.invite-box p {
    margin: 0;
}

.score-inputs {
    align-items: center;
    display: flex;
    gap: .35rem;
}

.score-inputs input,
.result-form input {
    max-width: 72px;
}

.match-title {
    font-weight: 800;
}

.prediction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .6rem;
}

.status,
.pill {
    border-radius: 999px;
    padding: .6rem .9rem;
}

.pill.success {
    background: rgba(50, 210, 150, .14);
    border-color: rgba(50, 210, 150, .4);
    color: var(--accent);
}

.pill.accent {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    color: var(--text);
}

.pill.warn {
    background: rgba(255, 180, 80, .12);
    border-color: rgba(255, 180, 80, .35);
    color: #ffc880;
}

.prediction-row--closed {
    grid-template-columns: 1fr auto;
    opacity: .92;
}

.prediction-row-closed-aside {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    justify-content: center;
    text-align: right;
}

.prediction-closed-score {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.status.active {
    background: rgba(50, 210, 150, .16);
    color: var(--accent);
}

.status.pending_payment,
.status.blocked {
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
}

.stat strong {
    display: block;
    font-size: 2rem;
    margin-top: .4rem;
}

.admin-revenue-card h2 {
    margin-bottom: .75rem;
}

.admin-revenue-total {
    margin: 0 0 .5rem;
}

.admin-revenue-sum {
    font-size: 2rem;
    letter-spacing: .02em;
}

.detail-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.detail-list div {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.detail-list dt {
    color: var(--muted);
    font-size: .9rem;
}

.detail-list dd {
    font-weight: 800;
    margin: .35rem 0 0;
}

.admin-form {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
}

.team-form,
.team-row {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 160px auto;
}

.team-row {
    grid-template-columns: 1fr 140px minmax(220px, auto) auto;
}

.delete-team-form {
    margin-top: .75rem;
}

.team-form,
.team-row {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 160px auto;
}

.team-row {
    grid-template-columns: 1fr 140px minmax(220px, auto) auto;
}

.delete-team-form {
    margin-top: .75rem;
}

.admin-match-create-form,
.admin-match-edit-form {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-matches-wide {
    min-width: 680px;
}

.admin-match-edit-details {
    margin: 0;
}

.admin-match-edit-details summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-match-edit-row td {
    background: rgba(0, 0, 0, .12);
    border-top: none;
    padding-top: 0;
}

.admin-match-edit-form {
    margin-top: .75rem;
}

.admin-match-predictions-cell {
    white-space: nowrap;
}

.admin-match-reminder-row td {
    background: rgba(255, 193, 7, .06);
    border-top: none;
    padding-top: 0;
}

.admin-match-reminder-details {
    margin: .35rem 0 .75rem;
}

.admin-match-reminder-details summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-match-reminder-panel {
    margin-top: .75rem;
}

.admin-match-reminder-table {
    font-size: .92rem;
}

.admin-match-reminder-actions {
    margin-top: .75rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1rem 0;
}

.filter-tab {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    padding: .55rem .85rem;
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #062016;
}

.tournament-tabs {
    margin-bottom: 1.5rem;
}

.home-payment-banner {
    align-items: center;
    background: linear-gradient(135deg, rgba(50, 210, 150, .14), rgba(17, 29, 45, .95));
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
}

.home-payment-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .35rem;
}

.home-payment-banner-title strong {
    color: var(--accent);
}

.home-payment-banner-text {
    font-size: .92rem;
    line-height: 1.45;
    margin: 0;
    max-width: 42rem;
}

.home-payment-banner--live {
    background: linear-gradient(135deg, rgba(232, 93, 117, .12), rgba(17, 29, 45, .95));
    border-color: rgba(232, 93, 117, .35);
}

.home-payment-banner--live .home-payment-banner-title strong {
    color: #ff8fa3;
}

.how-it-works-lead {
    margin: .35rem 0 0;
    max-width: 42rem;
}

.how-steps {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.how-step {
    align-items: flex-start;
    background: var(--panel-soft);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: flex;
    gap: .9rem;
    padding: 1rem 1.05rem;
    transition: border-color .15s ease, transform .15s ease;
}

.how-step:hover {
    border-color: rgba(50, 210, 150, .35);
    transform: translateY(-1px);
}

.how-step-num {
    align-items: center;
    background: rgba(50, 210, 150, .1);
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 50%;
    color: var(--accent);
    display: flex;
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.how-step-body {
    min-width: 0;
}

.how-step-title {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 .35rem;
}

.how-step-body .muted {
    font-size: .92rem;
    line-height: 1.45;
    margin: 0;
}

.scoring-example {
    background: rgba(50, 210, 150, .05);
    border: 1px dashed rgba(50, 210, 150, .28);
    border-radius: 1rem;
    margin-top: 1.15rem;
    padding: 1rem 1.1rem;
}

.scoring-example-title {
    font-weight: 700;
    margin: 0 0 .75rem;
}

.scoring-example-list {
    display: grid;
    gap: .55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.scoring-example-list li {
    align-items: center;
    display: grid;
    gap: .65rem;
    grid-template-columns: 4.5rem 1fr;
    line-height: 1.4;
}

.scoring-example-outcome {
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .28rem .55rem;
    text-align: center;
    text-transform: uppercase;
}

.scoring-example-outcome--exact {
    background: rgba(50, 210, 150, .16);
    border: 1px solid rgba(50, 210, 150, .35);
    color: var(--accent);
}

.scoring-example-outcome--win {
    background: rgba(96, 165, 250, .12);
    border: 1px solid rgba(96, 165, 250, .3);
    color: #93c5fd;
}

.scoring-example-outcome--miss {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    color: var(--muted);
}

@media (max-width: 760px) {
    .how-steps {
        grid-template-columns: 1fr;
    }

    .scoring-example-list li {
        grid-template-columns: 4rem 1fr;
    }
}

.matches-filter-tabs {
    margin-bottom: 1.25rem;
}

.matches-filter-hint {
    margin: 0 0 1rem;
}

.filter-tab-count {
    display: inline-block;
    font-size: .78em;
    font-weight: 800;
    margin-left: .15rem;
    opacity: .85;
}

.filter-tab.active .filter-tab-count {
    opacity: 1;
}

.tournament-groups-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}

.tournament-group-title {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.tournament-group-caption {
    font-size: .85rem;
    line-height: 1.35;
    margin: 0 0 1rem;
}

.tournament-group-caption--flags {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
}

.tournament-group-caption-team {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
}

.team-with-flag {
    align-items: center;
    display: inline-flex;
    gap: .4rem;
}

.team-with-flag__name {
    line-height: 1.2;
}

.team-flag {
    display: block;
    flex-shrink: 0;
    height: 1rem;
    object-fit: cover;
    width: 1.5rem;
}

.match-teams-with-flags {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem .65rem;
}

.match-teams-with-flags__vs {
    color: var(--muted);
    font-weight: 600;
}

.admin-team-card-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.05rem;
    font-weight: 700;
    gap: .5rem .75rem;
    margin: 0 0 .75rem;
}

.admin-team-card-code {
    font-size: .85rem;
    font-weight: 600;
}

.admin-team-card-title__name {
    font-size: inherit;
}

.tournament-facts {
    margin-bottom: 1.25rem;
}

.tournament-facts-summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.tournament-facts-summary::-webkit-details-marker {
    display: none;
}

.tournament-facts-body {
    margin-top: 0.85rem;
    padding-top: 0.25rem;
}

.tournament-facts-body p {
    margin: 0 0 0.65rem;
}

.tournament-facts-body p:last-child {
    margin-bottom: 0;
}

.tournament-standings-table {
    font-size: .9rem;
    min-width: 100%;
}

.tournament-standings-table th,
.tournament-standings-table td {
    padding: .45rem .5rem;
    text-align: center;
}

.tournament-standings-table th:first-child,
.tournament-standings-table td:first-child,
.tournament-standings-table th:nth-child(2),
.tournament-standings-table td:nth-child(2) {
    text-align: left;
}

.tournament-team-cell {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.tournament-team-code {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
    border-radius: .35rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: .12rem .4rem;
    text-transform: uppercase;
}

.tournament-playoff {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tournament-playoff-round h2 {
    font-size: 1.15rem;
    margin: 0 0 1rem;
}

.tournament-playoff-matches {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tournament-playoff-match {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: .85rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: .85rem 1rem;
}

@media (min-width: 720px) {
    .tournament-playoff-match {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

.tournament-playoff-pair {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-weight: 700;
    gap: .5rem;
    min-width: min(100%, 280px);
}

.tournament-playoff-vs {
    color: var(--muted);
    font-weight: 600;
}

.tournament-playoff-name--tbd {
    color: var(--muted);
    font-style: italic;
    font-weight: 600;
}

.tournament-playoff-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
}

.tournament-playoff-score {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* Якорь после фильтра даты на /dashboard: не оставлять маскотов у верха экрана */
#dashboard-predictions {
    scroll-margin-top: 5.5rem;
}

.date-filter {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}

.date-filter label {
    min-width: min(260px, 100%);
}

.participant-summary-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.participant-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-big {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: .25rem 0 0;
}

.stat-big .muted {
    font-size: 1rem;
    font-weight: 600;
}

.stat-composite {
    word-spacing: .2rem;
}

.small-print {
    font-size: .9rem;
    margin-bottom: 0;
}

.badges-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.badge-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.badge-card.earned {
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 255, 122, .22), transparent 55%),
        linear-gradient(145deg, rgba(50, 210, 150, .28) 0%, rgba(30, 120, 90, .18) 48%, rgba(8, 24, 18, .92) 100%);
    border-color: rgba(126, 249, 200, .72);
    box-shadow:
        0 10px 32px rgba(50, 210, 150, .32),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    overflow: hidden;
}

.badge-card.earned::before {
    background: linear-gradient(90deg, #e8ff7a, #7ae89a, #32d296, #7ef9c8);
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.badge-card.earned::after {
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14), transparent 42%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.badge-card.locked {
    opacity: .55;
    filter: saturate(.75);
}

.badge-card span {
    color: var(--accent);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .5rem;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
}

.badge-card.earned span {
    background: linear-gradient(135deg, #e8ff7a 0%, #7ae89a 42%, #2bc584 100%);
    border-radius: .45rem;
    box-shadow: 0 2px 10px rgba(50, 210, 150, .35);
    color: #052015;
    display: inline-block;
    letter-spacing: .06em;
    padding: .28rem .6rem;
    width: fit-content;
}

.badge-card.locked span {
    color: var(--muted);
}

.badge-card strong {
    display: block;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.badge-card.earned strong {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 1px 12px rgba(50, 210, 150, .35);
}

.badge-card p {
    color: var(--muted);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.badge-card.earned p {
    color: rgba(255, 255, 255, .82);
}

.prize-preview {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prize-preview div {
    background: rgba(50, 210, 150, .12);
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 1rem;
    padding: 1rem;
}

.prize-preview span {
    color: var(--muted);
}

.prize-preview strong {
    display: block;
    font-size: 2rem;
    margin: .35rem 0;
}

.referral-card {
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(50, 210, 150, .22), transparent 34%),
        linear-gradient(135deg, rgba(22, 38, 56, .98), rgba(8, 16, 28, .98));
    border-color: rgba(50, 210, 150, .38);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.referral-card h2 {
    margin: .25rem 0 .75rem;
}

.referral-card .lead {
    margin-bottom: 0;
}

.prize-preview p {
    color: var(--muted);
    margin-bottom: 0;
}

.main-prize-showcase {
    align-items: center;
    background:
        radial-gradient(circle at 78% 24%, rgba(50, 210, 150, .18), transparent 30%),
        linear-gradient(145deg, rgba(17, 29, 45, .96), rgba(7, 17, 31, .98));
    border: 1px solid rgba(50, 210, 150, .22);
    border-radius: 1.5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    margin: 2rem 0;
    overflow: hidden;
    padding: clamp(1.35rem, 3vw, 2.25rem);
}

.main-prize-showcase-text .main-prize-title {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: .35rem 0 1rem;
}

.main-prize-showcase-text .main-prize-lead {
    color: var(--text);
    font-weight: 700;
}

.main-prize-showcase-photo {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #ffffff, #eef3f8);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 1.15rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    display: flex;
    justify-content: center;
    line-height: 0;
    overflow: hidden;
    padding: clamp(.45rem, 1.4vw, .8rem);
}

.main-prize-showcase-photo img {
    display: block;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .22));
    width: 100%;
}

.score-big {
    font-size: 3rem;
    font-weight: 900;
}

.prediction-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin: .35rem 0;
}

.popular-scores {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.popular-scores span {
    background: rgba(50, 210, 150, .12);
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 999px;
    color: var(--accent);
    font-weight: 800;
    padding: .5rem .75rem;
}

.prediction-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin: .35rem 0;
}

.popular-scores {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.popular-scores span {
    background: rgba(50, 210, 150, .12);
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 999px;
    color: var(--accent);
    font-weight: 800;
    padding: .5rem .75rem;
}

pre {
    overflow: auto;
    white-space: pre-wrap;
}

.import-example {
    background: #091524;
    border: 1px solid var(--border);
    border-radius: .9rem;
    color: var(--text);
    padding: 1rem;
}

.rules-page {
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rules-page h2 {
    margin-top: 2rem;
}

.rules-page h2:first-child {
    margin-top: 0;
}

.rule-highlight {
    background: rgba(50, 210, 150, .08);
    border: 1px solid rgba(50, 210, 150, .32);
    border-radius: 1rem;
    margin: 1.25rem 0;
    padding: 1.1rem 1.25rem;
}

.rule-highlight h3 {
    color: var(--text);
    margin: 0 0 .75rem;
}

.rule-highlight p:last-child {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .hero-duel-content {
        grid-template-columns: 1fr;
        padding: 1.35rem 1.25rem 1.25rem;
    }

    .hero-duel-aside-channels {
        padding: 0 1.25rem 1.35rem;
    }

    .hero-duel-content .hero-title-plain,
    .hero-duel-content .hero-site-name {
        font-size: clamp(1.45rem, 5.5vw, 2rem);
        margin-bottom: .5rem;
    }

    .hero-tagline {
        font-size: clamp(1rem, 4.2vw, 1.15rem);
        margin-bottom: .75rem;
    }

    .hero-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-main {
        order: -1;
        text-align: center;
        width: 100%;
    }

    .hero-actions-row .button.secondary {
        justify-content: center;
        width: 100%;
    }

    .hero-channels {
        max-width: none;
        padding: .9rem .85rem;
    }

    .hero-channels-grid {
        grid-template-columns: 1fr;
    }

    .hero-channel {
        min-height: 3.75rem;
    }

    .prize-pool-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-prize-showcase {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .main-prize-showcase-photo {
        justify-self: center;
        max-width: min(100%, 18rem);
        width: 100%;
    }

    .main-prize-showcase-photo img {
        max-height: 16rem;
    }

    .referral-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .prize-hero-page {
        grid-template-columns: 1fr;
        padding: 1.15rem;
        gap: 1.1rem;
    }

    .leaderboard-prize-pills {
        justify-content: flex-start;
    }

    .countdown-card,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        grid-template-columns: auto 1fr auto auto;
        grid-template-rows: auto;
        align-items: center;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-channels {
        align-self: center;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .nav-toggle {
        grid-column: 4;
        grid-row: 1;
    }

    nav,
    .site-nav {
        /* mobile drawer — see nav-drawer block */
    }

    .grid.two,
    .grid.four,
    .detail-list,
    .prediction-stats,
    .participant-summary-grid,
    .badges-grid,
    .prize-preview,
    .payment-steps,
    .admin-form,
    .team-form,
    .team-row,
    .match-row,
    .mini-league-card,
    .invite-box,
    .prediction-row {
        grid-template-columns: 1fr;
    }

    .participant-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
    }
}

﻿:root {
    --bg: #07111f;
    --panel: #111d2d;
    --panel-soft: #17263a;
    --text: #f4f7fb;
    --muted: #9fb0c7;
    --accent: #32d296;
    --accent-dark: #1ba673;
    --danger: #e85d75;
    --border: #26384f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #14345a 0, var(--bg) 36rem);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 1.25rem clamp(1rem, 4vw, 4rem);
}

.brand {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 800;
}

.brand-logo {
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 4px 14px rgba(0, 0, 0, .25);
    display: block;
    height: clamp(3.25rem, 10vw, 4.75rem);
    object-fit: cover;
    width: clamp(3.25rem, 10vw, 4.75rem);
}

nav {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.organizer-contact-block {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
}

.organizer-contact-block .eyebrow {
    margin-bottom: .5rem;
}

.organizer-contact-rules {
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 1rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2rem 0 2.5rem;
}

.site-footer .eyebrow {
    margin-bottom: .5rem;
}

.footer-contact-text {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
    max-width: 720px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--muted);
    font-size: .95rem;
}

.footer-links a:hover {
    color: var(--text);
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.5rem;
}

.hero,
.page-heading {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin: 2rem 0;
}

.hero h1,
.page-heading h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
    margin: .25rem 0 1rem;
}

.lead {
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 680px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 24px 80px rgba(0,0,0,.24);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.hero-card {
    min-width: min(340px, 100%);
}

.hero-card h2 {
    font-size: 2.5rem;
    margin: 0;
}

.countdown-card {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.countdown {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    justify-content: flex-end;
}

.countdown span {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.countdown small {
    color: var(--muted);
    margin-right: .5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button,
button {
    background: var(--accent);
    border: 0;
    border-radius: .75rem;
    color: #062016;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: .85rem 1.1rem;
}

.button.secondary {
    background: var(--panel-soft);
    color: var(--text);
}

.button.danger {
    background: var(--danger);
    color: white;
}

.button.small,
button.small {
    padding: .55rem .8rem;
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.actions,
.table-actions,
.inline-form,
.result-form,
.champion-form,
.delete-team-form {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.link-button {
    background: none;
    color: var(--text);
    padding: 0;
}

.compact-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-card {
    margin: 3rem auto;
    max-width: 460px;
}

.stack {
    display: grid;
    gap: 1rem;
}

label {
    color: var(--muted);
    display: grid;
    gap: .4rem;
}

input,
select,
textarea {
    background: #091524;
    border: 1px solid var(--border);
    border-radius: .7rem;
    color: var(--text);
    padding: .8rem .9rem;
    width: 100%;
}

textarea {
    font-family: inherit;
    line-height: 1.45;
    min-height: 6rem;
    resize: vertical;
}

.checkbox-label {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
}

.checkbox-label input {
    margin-top: .25rem;
    width: auto;
}

.checkbox-label span {
    line-height: 1.45;
}

.admin-match-row {
    scroll-margin-top: 6rem;
}

.alert {
    border-radius: .9rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.alert.success {
    background: rgba(50, 210, 150, .14);
    border: 1px solid rgba(50, 210, 150, .45);
}

.alert.error {
    background: rgba(232, 93, 117, .14);
    border: 1px solid rgba(232, 93, 117, .45);
}

.alert.notice,
.pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
}

.payment-card {
    border-color: rgba(50, 210, 150, .35);
}

.payment-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.payment-steps div {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.payment-steps span {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: #062016;
    display: inline-flex;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    margin-bottom: .75rem;
    width: 2rem;
}

.payment-steps strong {
    display: block;
}

.payment-steps p {
    color: var(--muted);
    margin-bottom: 0;
}

.payment-instructions-text {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.admin-settings-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.table-scroll {
    overflow-x: auto;
}

.table-link {
    color: var(--accent);
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: .9rem;
    text-align: left;
}

.match-list,
#champion-pick {
    scroll-margin-top: 6rem;
}

.prediction-list,
.mini-league-list {
    display: grid;
    gap: .75rem;
}

.match-row,
.prediction-row,
.mini-league-card {
    align-items: center;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto auto;
    padding: 1rem;
    scroll-margin-top: 6rem;
}

.mini-league-card {
    grid-template-columns: 1fr;
}

.invite-card {
    border-color: rgba(50, 210, 150, .35);
}

.invite-box {
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    padding: 1rem;
}

.invite-box p {
    margin: 0;
}

.score-inputs {
    align-items: center;
    display: flex;
    gap: .35rem;
}

.score-inputs input,
.result-form input {
    max-width: 72px;
}

.match-title {
    font-weight: 800;
}

.prediction-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .6rem;
}

.status,
.pill {
    border-radius: 999px;
    padding: .6rem .9rem;
}

.pill.success {
    background: rgba(50, 210, 150, .14);
    border-color: rgba(50, 210, 150, .4);
    color: var(--accent);
}

.pill.accent {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    color: var(--text);
}

.pill.warn {
    background: rgba(255, 180, 80, .12);
    border-color: rgba(255, 180, 80, .35);
    color: #ffc880;
}

.prediction-row--closed {
    grid-template-columns: 1fr auto;
    opacity: .92;
}

.prediction-row-closed-aside {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    justify-content: center;
    text-align: right;
}

.prediction-closed-score {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.status.active {
    background: rgba(50, 210, 150, .16);
    color: var(--accent);
}

.status.pending_payment,
.status.blocked {
    background: rgba(255, 255, 255, .08);
    color: var(--muted);
}

.stat strong {
    display: block;
    font-size: 2rem;
    margin-top: .4rem;
}

.detail-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.detail-list div {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.detail-list dt {
    color: var(--muted);
    font-size: .9rem;
}

.detail-list dd {
    font-weight: 800;
    margin: .35rem 0 0;
}

.admin-form {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
}

.team-form,
.team-row {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr 160px auto;
}

.team-row {
    grid-template-columns: 1fr 140px minmax(220px, auto) auto;
}

.delete-team-form {
    margin-top: .75rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1rem 0;
}

.filter-tab {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    padding: .55rem .85rem;
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #062016;
}

.date-filter {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}

.date-filter label {
    min-width: min(260px, 100%);
}

.participant-summary-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.participant-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-big {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: .25rem 0 0;
}

.stat-big .muted {
    font-size: 1rem;
    font-weight: 600;
}

.stat-composite {
    word-spacing: .2rem;
}

.small-print {
    font-size: .9rem;
    margin-bottom: 0;
}

.badges-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.badge-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.badge-card.earned {
    background: rgba(50, 210, 150, .12);
    border-color: rgba(50, 210, 150, .4);
}

.badge-card.locked {
    opacity: .68;
}

.badge-card span {
    color: var(--accent);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.badge-card.locked span {
    color: var(--muted);
}

.badge-card strong {
    display: block;
    font-size: 1.1rem;
}

.badge-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.prize-preview {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prize-preview div {
    background: rgba(50, 210, 150, .12);
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 1rem;
    padding: 1rem;
}

.prize-preview span {
    color: var(--muted);
}

.prize-preview strong {
    display: block;
    font-size: 2rem;
    margin: .35rem 0;
}

.prize-preview p {
    color: var(--muted);
    margin-bottom: 0;
}

.score-big {
    font-size: 3rem;
    font-weight: 900;
}

.prediction-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin: .35rem 0;
}

.popular-scores {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.popular-scores span {
    background: rgba(50, 210, 150, .12);
    border: 1px solid rgba(50, 210, 150, .35);
    border-radius: 999px;
    color: var(--accent);
    font-weight: 800;
    padding: .5rem .75rem;
}

pre {
    overflow: auto;
    white-space: pre-wrap;
}

.import-example {
    background: #091524;
    border: 1px solid var(--border);
    border-radius: .9rem;
    color: var(--text);
    padding: 1rem;
}

.rules-page {
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rules-page h2 {
    margin-top: 2rem;
}

.rules-page h2:first-child {
    margin-top: 0;
}

@media (max-width: 820px) {
    .hero,
    .countdown-card,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid.two,
    .grid.four,
    .detail-list,
    .prediction-stats,
    .participant-summary-grid,
    .badges-grid,
    .prize-preview,
    .payment-steps,
    .admin-form,
    .team-form,
    .team-row,
    .match-row,
    .mini-league-card,
    .invite-box,
    .prediction-row {
        grid-template-columns: 1fr;
    }

    .participant-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Match Dashboard Card (Futuristic UI like Reference)
   ========================================================================== */

.match-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.match-dashboard-card {
    background: linear-gradient(180deg, #111d2d 0%, #0a1424 100%) !important;
    border: 1px solid rgba(38, 56, 79, 0.8) !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.match-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.7;
}

.match-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(38, 56, 79, 0.5);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.match-dashboard-stage {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(50, 210, 150, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(50, 210, 150, 0.15);
}

.match-dashboard-time {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* Duel Layout */
.match-duel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.match-team-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.match-flag-wrapper {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(38, 56, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    padding: 2px;
}

.match-dashboard-card:hover .match-flag-wrapper {
    border-color: var(--accent);
    transform: scale(1.03);
}

.match-dashboard-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.match-team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0.75rem 0 0;
    letter-spacing: -0.02em;
}

/* VS and Score */
.match-vs-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.match-vs-badge {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--accent);
    background: rgba(50, 210, 150, 0.08);
    border: 1px solid rgba(50, 210, 150, 0.2);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
    box-shadow: 0 0 15px rgba(50, 210, 150, 0.15);
}

.match-score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(5, 14, 24, 0.6);
    border: 1px solid var(--border);
    padding: 0.4rem 1.25rem;
    border-radius: 1rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.score-num {
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.score-colon {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.8;
}

/* Stats Section with Dividers */
.match-stats-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.match-section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
}

.match-section-divider::before,
.match-section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(38, 56, 79, 0.4);
}

.match-section-divider span {
    padding: 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
}

.match-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

.match-stat-value {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: var(--text);
}

.match-stat-value strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
}

.match-stat-value small {
    color: var(--muted);
    font-size: 0.8rem;
}

.match-stat-value--stacked {
    align-items: stretch;
    flex-direction: column;
    text-align: left;
}

.match-stats-row--tournament {
    align-items: start;
    gap: 1.25rem;
}

.match-tournament-panel {
    background:
        linear-gradient(135deg, rgba(50, 210, 150, 0.12) 0%, rgba(50, 210, 150, 0.04) 42%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(50, 210, 150, 0.38);
    border-radius: 1rem;
    box-shadow:
        0 0 0 1px rgba(50, 210, 150, 0.08) inset,
        0 12px 32px rgba(0, 0, 0, 0.22);
    margin: 0.35rem 0 0.15rem;
    overflow: hidden;
    padding: 1rem 1.1rem 1.15rem;
    position: relative;
}

.match-tournament-panel::before {
    background: linear-gradient(180deg, rgba(50, 210, 150, 0.95), rgba(50, 210, 150, 0.35));
    border-radius: 1rem 0 0 1rem;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.match-tournament-panel-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin-bottom: 1rem;
    padding-left: 0.35rem;
}

.match-tournament-panel-badge {
    background: rgba(50, 210, 150, 0.18);
    border: 1px solid rgba(50, 210, 150, 0.45);
    border-radius: 999px;
    color: #8ff0c8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 0.42rem 0.8rem;
    text-transform: uppercase;
}

.match-tournament-panel-hint {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
}

.match-tournament-panel-columns {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    padding-left: 0.35rem;
}

.match-tournament-team-col {
    background: rgba(5, 14, 24, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 0.9rem;
}

.match-tournament-team-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    text-align: center;
}

.match-tournament-hint {
    margin: -0.35rem 0 0;
    text-align: center;
}

.match-tournament-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.match-tournament-stat-grid {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.match-tournament-stat {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.45rem 0.35rem;
    text-align: center;
}

.match-tournament-stat--points {
    background: rgba(50, 210, 150, 0.1);
    border-color: rgba(50, 210, 150, 0.28);
}

.match-tournament-stat-label {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-tournament-stat strong {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.1;
}

.match-tournament-stat small {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
}

.match-tournament-summary {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.match-tournament-summary strong {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
}

.match-tournament-games {
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.match-tournament-game {
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(50, 210, 150, 0.16);
    border-radius: 0.65rem;
    display: grid;
    gap: 0.35rem 0.5rem;
    grid-template-columns: auto 1fr auto auto auto;
    padding: 0.5rem 0.6rem;
}

.match-tournament-game-date {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.match-tournament-game-opponent {
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-tournament-game-score {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
}

.match-tournament-game-venue {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-tournament-empty {
    display: block;
    font-size: 0.85rem;
    text-align: center;
}

/* Form Badges */
.form-badges-row {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-badge--win {
    background: #2e7d32;
    border: 1px solid #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.25);
}

.form-badge--draw {
    background: #ef6c00;
    border: 1px solid #ff9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.25);
}

.form-badge--loss {
    background: #c62828;
    border: 1px solid #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.25);
}

.form-badge--empty {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Prediction Distribution (Futuristic Segmented Bar) */
.prediction-distribution-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.prediction-bar-wrapper {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.prediction-bar-segment {
    height: 100%;
    transition: width 0.5s ease;
}

.prediction-bar-segment--home {
    background: linear-gradient(90deg, #1b5e20, #4caf50);
}

.prediction-bar-segment--draw {
    background: linear-gradient(90deg, #e65100, #ff9800);
}

.prediction-bar-segment--away {
    background: linear-gradient(90deg, #0d47a1, #2196f3);
}

.prediction-distribution-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-bottom: 0.35rem;
}

.legend-item--home .legend-dot { background: #4caf50; box-shadow: 0 0 6px #4caf50; }
.legend-item--draw .legend-dot { background: #ff9800; box-shadow: 0 0 6px #ff9800; }
.legend-item--away .legend-dot { background: #2196f3; box-shadow: 0 0 6px #2196f3; }

.legend-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.legend-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.match-participant-hint-note {
    margin: 0 0 .75rem;
    text-align: center;
}

.match-dashboard-top-score {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    background: rgba(50, 210, 150, 0.04);
    border: 1px solid rgba(50, 210, 150, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.match-top-score-label {
    color: var(--muted);
    text-align: center;
}

.match-top-score-result {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.match-top-score-result small {
    white-space: nowrap;
}

.top-score-badge {
    display: inline-block;
    background: rgba(50, 210, 150, 0.12);
    border: 1px solid rgba(50, 210, 150, 0.3);
    color: var(--accent);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    line-height: 1.2;
}

/* Dossier Card (Team Notes) */
.match-dossier-card {
    background: #111d2d !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
}

.dossier-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(38, 56, 79, 0.5);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.dossier-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.dossier-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dossier-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dossier-column h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.dossier-flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dossier-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Predictions Card */
.match-predictions-card {
    background: #111d2d !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem !important;
}

.match-predictions-card h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.match-predictions-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.match-predictions-head h2 {
    margin: 0;
}

.predictions-table {
    width: 100%;
    border-collapse: collapse;
}

.predictions-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.predictions-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(38, 56, 79, 0.3);
    font-size: 0.92rem;
}

.predictions-table tr:last-child td {
    border-bottom: none;
}

.prediction-score-cell {
    font-weight: 700;
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .match-duel {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.35rem 0.5rem;
        margin-bottom: 1.5rem;
    }

    .match-team-profile--home,
    .match-team-profile--away,
    .match-vs-score {
        grid-row: auto;
    }

    .match-vs-score {
        min-width: 0;
        margin: 0;
    }

    .match-flag-wrapper {
        width: 64px;
        height: 64px;
    }

    .match-team-name {
        font-size: 0.9rem;
        margin-top: 0.45rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .match-vs-badge {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .match-score-display {
        padding: 0.25rem 0.65rem;
    }

    .score-num {
        font-size: 1.5rem;
    }

    .match-dashboard-card {
        overflow-x: clip;
    }

    .match-stats-section,
    .prediction-distribution-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .match-stats-row--tournament {
        grid-template-columns: 1fr;
    }

    .match-tournament-panel-columns {
        grid-template-columns: 1fr;
    }

    .match-tournament-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-tournament-game {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .match-tournament-game-venue {
        display: none;
    }

    .match-dashboard-top-score {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }

    .top-score-badge {
        font-size: 0.9rem;
    }

    .dossier-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .prediction-distribution-legend {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        width: 100%;
    }
    
    .legend-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.45rem;
        padding: 0.4rem 0.65rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .legend-dot {
        margin-bottom: 0;
        margin-right: 0;
    }

    .legend-label {
        text-align: left;
        margin-bottom: 0;
    }

    .legend-val {
        font-size: 1rem;
    }
}

/* Final recovery overrides after CSS rebuild: keep header channels in the top row. */
.site-header {
    align-items: center;
    display: grid;
    gap: .75rem 1rem;
    grid-template-columns: auto 1fr auto;
    padding: 1.25rem clamp(1rem, 4vw, 4rem);
}

.site-header .brand {
    grid-column: 1;
    grid-row: 1;
}

.site-header nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: end;
}

.site-header .header-channels {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

@media (max-width: 820px) {
    .site-header {
        align-items: center;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto;
    }

    .site-header .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .site-header .header-channels {
        align-self: center;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-header .nav-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .site-header nav,
    .site-header .site-nav {
        /* drawer styles in nav-drawer block below */
        grid-column: unset;
        grid-row: unset;
        justify-content: unset;
        justify-self: unset;
    }
}

/* Final recovery overrides: hero channel cards after CSS rebuild. */
.hero-channels {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    margin-top: 1.25rem;
    padding: 1rem;
}

.hero-channels-eyebrow {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 .35rem;
    text-transform: uppercase;
}

.hero-channels-lead {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.45;
    margin: 0 0 .8rem;
}

.hero-channels-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-channel {
    align-items: center;
    border-radius: .9rem;
    color: var(--text);
    display: flex;
    gap: .75rem;
    min-height: 4rem;
    padding: .75rem;
    text-decoration: none;
}

.hero-channel-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.hero-channel-text {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.hero-channel-text strong {
    color: var(--text);
    line-height: 1.1;
}

.hero-channel-text span {
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.25;
}

@media (max-width: 640px) {
    .hero-channels-grid {
        grid-template-columns: 1fr;
    }
}

/* Final desktop/mobile hero layout fix. Keep this at the end: older recovered rules above are inconsistent. */
.hero-duel {
    align-items: stretch;
    background: linear-gradient(135deg, #091320 0%, #050811 100%);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    grid-template-areas: "content image";
    margin: 2rem 0;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-duel-content {
    align-content: center;
    display: grid;
    gap: 1.1rem;
    grid-area: content;
    min-width: 0;
    padding: 0;
}

.hero-duel-image {
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.15rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .5);
    grid-area: image;
    min-height: 320px;
    overflow: hidden;
}

.hero-duel-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.hero-duel-content .hero-title-plain,
.hero-duel-content .hero-site-name {
    font-size: clamp(2.35rem, 4.7vw, 4.2rem);
    line-height: 1.03;
    margin: 0;
    max-width: 11ch;
    overflow-wrap: normal;
    word-break: normal;
}

.hero-tagline {
    color: var(--text);
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
    font-weight: 800;
    margin: 0;
}

.hero-lead-main {
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.5;
    margin: 0;
    max-width: 34rem;
}

.hero-benefits {
    display: grid;
    gap: .55rem;
    line-height: 1.35;
    margin: .2rem 0 0;
    max-width: 34rem;
    padding-left: 1.2rem;
}

.hero-actions {
    display: grid;
    gap: .8rem;
    margin-top: .25rem;
}

.hero-duel-aside-channels {
    grid-area: auto;
    padding: 0;
    width: 100%;
}

.hero-channels {
    max-width: 34rem;
}

.hero-channels-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
    .hero-channels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hero-duel {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "content";
        padding: 0;
    }

    .hero-duel-image {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
    }

    .hero-duel-content {
        padding: 1.35rem 1.25rem 1.25rem;
    }

    .hero-duel-content .hero-title-plain,
    .hero-duel-content .hero-site-name {
        font-size: clamp(1.75rem, 8vw, 2.85rem);
        max-width: 12ch;
    }
}

/* Beautiful, responsive home hero layout: avoid cropping and broken split layouts. */
.hero-duel {
    background: linear-gradient(135deg, #091320 0%, #050811 100%) !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4) !important;
    display: grid !important;
    margin: 2rem auto !important;
    max-width: 1180px !important;
    overflow: hidden !important;
}

@media (min-width: 821px) {
    .hero-duel {
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: clamp(1.5rem, 3vw, 3rem) !important;
        padding: clamp(2rem, 3.5vw, 3.5rem) !important;
        align-items: start !important; /* Align columns to the top to prevent centering empty spaces! */
        overflow: visible !important; /* Allow image hover shadow to bleed nicely */
    }

    .hero-duel-content {
        padding: 0 !important;
        display: grid !important;
        gap: 1.2rem !important;
        align-content: start !important;
    }

    .hero-duel-right-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .hero-duel-image {
        aspect-ratio: 16 / 9 !important; /* Keep exact 16:9 ratio to avoid ANY cropping! */
        border-radius: 1rem !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(50, 210, 150, 0.12) !important;
        overflow: hidden !important;
        width: 100% !important;
        min-height: 0 !important;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .hero-duel-image:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(50, 210, 150, 0.2) !important;
    }

    .hero-duel-aside-channels {
        width: 100% !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 820px) {
    .hero-duel {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 1rem 0 !important;
        border-radius: 1rem !important;
    }

    .hero-duel-right-col {
        display: contents !important; /* Flatten on mobile so order properties work directly on children */
    }

    .hero-duel-image {
        order: 1 !important;
        aspect-ratio: 16 / 9 !important; /* Keep 16:9 ratio on mobile too */
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .hero-duel-content {
        order: 2 !important;
        padding: 1.5rem 1.25rem !important;
        display: grid !important;
        gap: 1.1rem !important;
    }

    .hero-duel-aside-channels {
        order: 3 !important;
        padding: 0 1.25rem 1.5rem !important;
        width: 100% !important;
    }
}

.hero-duel-image img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

.hero-duel-content .hero-title-plain,
.hero-duel-content .hero-site-name,
.hero-duel-content h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    max-width: 100% !important;
    font-weight: 900 !important;
}

.hero-duel-content .hero-eyebrow {
    font-size: clamp(0.75rem, 1vw, 0.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

.hero-duel-content .hero-tagline {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem) !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: var(--accent) !important;
}

.hero-duel-content .hero-lead-main {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: var(--muted) !important;
}

.hero-duel-content .hero-benefits {
    display: grid !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding-left: 1.2rem !important;
    font-size: clamp(0.9rem, 1.1vw, 1rem) !important;
}

.hero-duel-content .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    margin-top: 0.5rem !important;
}

.hero-duel-content .hero-actions-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.8rem !important;
    align-items: center !important;
}

.hero-duel-content .hero-microcopy {
    font-size: 0.85rem !important;
    color: var(--muted) !important;
    margin: 0 !important;
}

.hero-duel-content .hero-faq-link-wrap {
    margin: 0 !important;
}

.pill.live-pill,
.live-pill-text {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fecaca;
}

.match-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.api-football-widgets-wrap {
    margin-top: 1rem;
}

.api-football-widgets-wrap api-sports-widget {
    display: block;
    min-height: 120px;
}

.api-football-widgets-wrap api-sports-widget[data-type="config"] {
    display: none !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
}

.api-football-widget-heading {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.api-football-widgets-note {
    margin-bottom: 0.75rem;
}

.api-football-widget-panels {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.api-football-widget-panels details summary {
    cursor: pointer;
    font-weight: 600;
}

.api-football-today-cache {
    margin-top: 1rem;
}

.api-football-today-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.api-football-today-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-football-today-teams {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.api-football-today-score {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.home-schedule-card {
    margin-bottom: 1.5rem;
}

.home-schedule-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.home-schedule-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.home-schedule-subtitle:first-of-type {
    margin-top: 0;
}

.match-list--compact .match-row {
    padding: 0.65rem 0;
}

.match-row-score {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.match-h2h-card .eyebrow {
    margin-bottom: 0.35rem;
}

.match-h2h-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 1rem 0;
}

.h2h-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
}

.match-h2h-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.match-h2h-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 0.25rem 1rem;
    grid-template-columns: 5.5rem 1fr;
    padding: 0.65rem 0;
}

.match-h2h-teams {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.match-h2h-score {
    background: rgba(50, 210, 150, 0.12);
    border-radius: 0.35rem;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
}

@media (max-width: 560px) {
    .match-h2h-list li {
        grid-template-columns: 1fr;
    }
}

.predictions-filter-tabs {
    margin-bottom: 1rem;
}

.predictions-search-form {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-bottom: 1rem;
}

.predictions-search-form label {
    flex: 1 1 220px;
    margin: 0;
}

.predictions-search-form input[type="search"] {
    width: 100%;
}

.predictions-matrix-head {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.predictions-matrix-actions {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.predictions-matrix-head h2 {
    margin: 0;
}

.predictions-stage-filter label {
    margin: 0;
}

.predictions-matrix-wrap {
    -webkit-overflow-scrolling: touch;
    max-height: 70vh;
    overflow-x: auto;
}

.predictions-matrix {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .82rem;
    min-width: 100%;
    white-space: nowrap;
    width: max-content;
}

.predictions-matrix th,
.predictions-matrix td {
    padding: .45rem .55rem;
    text-align: center;
    vertical-align: middle;
}

.predictions-matrix th.predictions-matrix-sticky,
.predictions-matrix td.predictions-matrix-sticky {
    text-align: left;
}

.predictions-matrix-sticky {
    background: var(--panel);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 12px rgba(0, 0, 0, .32);
    left: 0;
    max-width: 12rem;
    min-width: 9rem;
    padding-right: .75rem;
    position: sticky;
    text-align: left;
    white-space: normal;
    z-index: 2;
}

.predictions-matrix thead .predictions-matrix-sticky {
    z-index: 3;
}

.predictions-matrix-match-col {
    font-size: .75rem;
    line-height: 1.25;
    max-width: 6.5rem;
    min-width: 5.5rem;
}

.predictions-matrix-cell {
    font-variant-numeric: tabular-nums;
    min-width: 4.75rem;
}

.predictions-matrix-score {
    display: block;
    font-weight: 700;
}

.predictions-matrix-points {
    display: block;
    font-size: .72rem;
    font-weight: 700;
}

.predictions-matrix-points--exact {
    color: var(--accent);
}

.predictions-matrix-points--outcome {
    color: #8ec8ff;
}

.predictions-matrix-points--zero {
    color: var(--muted);
}

@media (max-width: 640px) {
    .predictions-matrix-sticky {
        max-width: 9.25rem;
        min-width: 8.25rem;
        width: 8.25rem;
    }

    .predictions-matrix-sticky .table-link {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .predictions-matrix-match-col {
        max-width: 5.5rem;
        min-width: 4.75rem;
    }

    .predictions-matrix-cell {
        min-width: 4.25rem;
    }
}

.champion-distribution-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    margin-bottom: 1rem;
}

.champion-distribution-item {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: .65rem;
    display: grid;
    gap: .2rem;
    padding: .65rem .75rem;
}

.pill.small-pill {
    font-size: .68rem;
    margin-left: .35rem;
    padding: .12rem .4rem;
    vertical-align: middle;
}

/* Champion Poll Card */
.champion-poll-card {
    margin: 2rem 0;
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.champion-poll-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.champion-poll-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.champion-poll-votes-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Results View */
.champion-poll-results {
    display: grid;
    gap: 0.75rem;
}

.champion-poll-result-row {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    height: 3.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.champion-poll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 0.4rem 0 0 0.4rem;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
    z-index: 1;
}

.champion-poll-result-row:first-child .champion-poll-progress-bar {
    background: rgba(50, 210, 150, 0.1);
}

.champion-poll-row-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    z-index: 2;
}

.champion-poll-team-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.champion-poll-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.champion-poll-percent {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Round Flag */
.poll-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.poll-flag--generic {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Voting View */
.champion-poll-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 0.75rem;
}

.champion-poll-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.85rem 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    width: 100%;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
}

.champion-poll-option-btn:hover {
    background: rgba(50, 210, 150, 0.08);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 210, 150, 0.1);
}

.champion-poll-option-btn:active {
    transform: translateY(0);
}

.poll-flag--btn {
    width: 24px;
    height: 24px;
}

.champion-poll-vote-arrow {
    color: var(--muted);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.champion-poll-option-btn:hover .champion-poll-vote-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

.champion-poll-footer {
    margin-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

@media (max-width: 560px) {
    .champion-poll-card {
        padding: 1.25rem;
    }
    .champion-poll-options-grid {
        grid-template-columns: 1fr;
    }
    .champion-poll-title {
        font-size: 1.25rem;
    }
}

.home-activity-card {
    margin-top: 1.5rem;
}

.home-activity-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.home-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.home-activity-list li {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--panel-2, rgba(255, 255, 255, 0.04));
    line-height: 1.5;
}

.site-polls-block {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
}

.site-polls-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.85rem;
}

.site-polls-intro h2 {
    margin: 0;
    font-size: 1.2rem;
}

.site-polls-intro .muted {
    margin: 0;
}

.site-polls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 0.65rem;
}

.site-poll-item {
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--panel-2, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.site-poll-item + .site-poll-item {
    margin-top: 0;
    padding-top: 0.75rem;
    border-top: none;
}

.site-poll-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.site-poll-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.site-poll-votes {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-poll-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.site-poll-option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    color: var(--text);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.site-poll-option-btn:hover {
    background: rgba(50, 210, 150, 0.1);
    border-color: var(--accent);
    color: var(--text);
}

.site-poll-results {
    display: grid;
    gap: 0.35rem;
}

.site-poll-result-row {
    position: relative;
    min-height: 1.85rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.site-poll-result-bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: rgba(50, 210, 150, 0.12);
    border-radius: 0.4rem 0 0 0.4rem;
}

.site-poll-result-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
}

.site-poll-result-content span {
    color: var(--text);
    font-weight: 600;
}

.site-poll-result-content strong {
    color: var(--accent);
    font-size: 0.72rem;
}

@media (max-width: 560px) {
    .site-polls-grid {
        grid-template-columns: 1fr;
    }
}

.stage-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stage-prizes-section h2 {
    margin-bottom: 0.35rem;
}

.stage-prizes-table-block {
    display: grid;
    gap: 1rem;
}

.stage-prizes-table-lead {
    line-height: 1.55;
    margin: 0;
}

.stage-prizes-table-lead strong {
    color: var(--text);
}

.stage-prizes-table-scroll {
    width: 100%;
}

.stage-prizes-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.stage-prizes-table .stage-col-stage {
    width: 34%;
}

.stage-prizes-table .stage-col-matches {
    width: 5.5rem;
}

.stage-prizes-table .stage-col-prize {
    width: 6.25rem;
}

.stage-prizes-table .stage-col-status {
    width: 9.25rem;
}

.stage-prizes-table .stage-col-participant {
    width: auto;
}

.stage-prizes-table .stage-col-points {
    width: 7.5rem;
}

.stage-prizes-table th,
.stage-prizes-table td {
    overflow-wrap: anywhere;
    vertical-align: top;
    word-break: break-word;
}

.stage-prizes-table th {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stage-prizes-table-matches,
.stage-prizes-table-prize,
.stage-prizes-table-status,
.stage-prizes-table-points {
    white-space: nowrap;
}

.stage-prizes-table-matches {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.stage-prizes-table-prize,
.stage-prizes-table-status,
.stage-prizes-table-points {
    text-align: center;
}

.stage-prizes-table-participant {
    min-width: 10rem;
}

.stage-prizes-table .stage-prize-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    white-space: normal;
}

.stage-prizes-table-points-value {
    display: block;
    font-size: 1.05rem;
}

.stage-prizes-table-points-detail {
    display: block;
    margin-top: 0.15rem;
    white-space: normal;
}

.stage-prize-holder-label {
    display: block;
    margin-bottom: 0.15rem;
}

.stage-prize-status--completed {
    background: rgba(50, 210, 150, 0.14);
    border-color: rgba(50, 210, 150, 0.4);
    color: var(--accent);
}

.stage-prize-status--in_progress {
    background: rgba(255, 180, 80, 0.12);
    border-color: rgba(255, 180, 80, 0.35);
    color: #ffc880;
}

.stage-prize-status--upcoming {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.stage-prizes-table-row--completed td {
    background: rgba(50, 210, 150, 0.05);
}

.stage-prizes-table-foot {
    margin: 0;
}

.filter-tabs--stage-prizes {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.filter-tab--stage-prize.filter-tab--in_progress:not(.active) {
    border-color: rgba(255, 193, 7, 0.45);
}

.filter-tab--stage-prize.filter-tab--completed:not(.active) {
    border-color: rgba(50, 210, 150, 0.35);
}

.stage-prize-detail-card {
    display: grid;
    gap: 0.85rem;
}

.stage-prize-detail-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.stage-prize-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.stage-prize-detail-amount {
    font-weight: 700;
}

.stage-prize-detail-leader {
    margin: 0;
}

.stage-prize-leaderboard-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.rating-stages-extra-slices {
    margin-top: 1rem;
}

.rating-stages-extra-slices summary {
    cursor: pointer;
    font-weight: 600;
}

.rating-stages-extra-lead {
    margin: 0.75rem 0 1rem;
}

.rating-stages-extra-slices .predictions-stage-filter {
    margin: 1rem 0;
}

.rating-stages-extra-slices .expert-tour-card {
    margin: 0 0 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-prizes-section--compact h2 {
    margin-top: 0;
}

@media (max-width: 760px) {
    .stage-prizes-table-scroll {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .stage-prizes-table {
        min-width: 680px;
    }
}

.stage-prize-item {
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--panel-2, rgba(255, 255, 255, 0.04));
    display: grid;
    gap: 0.5rem;
}

.compare-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.compare-form label {
    display: grid;
    gap: 0.35rem;
    min-width: 220px;
}

.compare-win {
    background: rgba(46, 160, 67, 0.12);
}

.participant-engagement-stats .grid.four .stat {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.participant-engagement-stats .grid.four .stat strong {
    font-size: 2rem;
    line-height: 1.1;
}

.participant-engagement-stats .grid.four .stat .small-print {
    margin-top: auto;
    padding-top: 0.35rem;
}

.engagement-subheading {
    margin: 1.25rem 0 0.75rem;
    font-size: 1rem;
}

.engagement-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.engagement-badge {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.engagement-badge.earned {
    border-color: rgba(46, 160, 67, 0.35);
    background: rgba(46, 160, 67, 0.08);
}

.expert-tour-card {
    margin-bottom: 1rem;
}

/* === /prizes page === */
.prizes-page-heading .lead {
    max-width: 40rem;
}

.prize-hero-page {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    margin: 1.25rem 0 1.75rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(50, 210, 150, 0.22);
    background:
        radial-gradient(ellipse 55% 60% at 90% 20%, rgba(50, 210, 150, 0.16), transparent 55%),
        linear-gradient(145deg, #0a1524 0%, #050811 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-width: 0;
}

.prize-hero-page-title {
    margin: 0.25rem 0 0.65rem;
    font-size: clamp(1.45rem, 3.5vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.prize-hero-page-lead {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.prize-hero-page-note {
    margin: 0 0 1rem;
    max-width: 34rem;
    line-height: 1.5;
}

.prize-hero-page-winner {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

.prize-hero-page-text {
    min-width: 0;
}

.prize-hero-page-visual {
    position: relative;
    justify-self: center;
    box-sizing: border-box;
    width: min(100%, 13.5rem);
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 1.15rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 65%, rgba(50, 210, 150, 0.22), transparent 62%);
    border: none;
}

.prize-hero-page-glow {
    position: absolute;
    inset: 25% 18% auto;
    height: 40%;
    background: radial-gradient(circle, rgba(50, 210, 150, 0.35), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.prize-hero-page-visual img {
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.55rem;
}

.prizes-top-card h2 {
    margin-bottom: 0.35rem;
}

.prizes-top-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.prizes-top-item {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.prizes-top-item--main {
    border-color: rgba(50, 210, 150, 0.35);
    background: linear-gradient(90deg, rgba(50, 210, 150, 0.14), rgba(255, 255, 255, 0.02));
}

.prizes-top-place {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
}

.prizes-top-item--main .prizes-top-place {
    background: var(--accent);
    color: #061018;
}

.prizes-top-label {
    font-weight: 700;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.prizes-top-body {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.prizes-top-name {
    font-weight: 800;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.prizes-top-points {
    font-size: 0.86rem;
}

.stage-prize-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.stage-prize-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.stage-prize-card--completed {
    border-color: rgba(50, 210, 150, 0.28);
}

.stage-prize-card--in_progress {
    border-color: rgba(240, 199, 94, 0.35);
    box-shadow: 0 0 0 1px rgba(240, 199, 94, 0.08);
}

.stage-prize-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.stage-prize-card-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.stage-prize-card-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.25;
}

.stage-prize-card-amount {
    flex-shrink: 0;
    font-size: 1rem;
    color: #f0c75e;
}

.stage-prize-card-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.stage-prize-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
}

.stage-prize-card-matches {
    font-size: 0.82rem;
}

.stage-prize-card-leader {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stage-prize-card-name {
    font-weight: 700;
    font-size: 1rem;
}

.stage-prize-card-points {
    font-size: 0.88rem;
}

@media (max-width: 820px) {
    .prize-hero-page {
        grid-template-columns: 1fr;
        padding: 1.15rem;
        gap: 1.1rem;
    }

    .prize-hero-page-visual {
        order: -1;
        width: min(100%, 11.5rem);
        max-width: 11.5rem;
        max-height: 11.5rem;
    }

    .prize-hero-page-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .stage-prize-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
}


/* === Finale duel: results in hero-duel shell (admin preview only) === */
.finale-preview-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.finale-preview-admin-note {
    margin: 1rem 0 0;
    font-size: 0.9rem;
}

.finale-duel {
    --finale-gold: #f0c75e;
    position: relative;
    background:
        radial-gradient(ellipse 70% 55% at 12% 0%, rgba(50, 210, 150, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 40% at 95% 30%, rgba(240, 199, 94, 0.1), transparent 50%),
        linear-gradient(135deg, #091320 0%, #050811 100%);
}

.finale-duel--draft {
    outline: 1px dashed rgba(50, 210, 150, 0.4);
    outline-offset: 2px;
}

.finale-duel-draft {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    z-index: 5;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #061018;
    background: var(--accent);
}

.finale-duel-content {
    gap: 0.85rem;
}

.finale-duel-brand {
    margin: 0.15rem 0 0.25rem !important;
    font-size: clamp(1.65rem, 4.5vw, 2.6rem) !important;
}

.finale-duel-tagline {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
}

.finale-duel-winner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0.35rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    background: linear-gradient(120deg, rgba(50, 210, 150, 0.18), rgba(17, 29, 45, 0.5));
    border: 1px solid rgba(50, 210, 150, 0.35);
    box-shadow: 0 0 28px rgba(50, 210, 150, 0.12);
    animation: finale-duel-pulse 2.8s ease-in-out infinite alternate;
}

.finale-duel-winner-place {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.finale-duel-winner-name {
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.finale-duel-winner-pts {
    margin-left: auto;
    font-weight: 700;
    color: var(--muted);
}

.finale-duel-meta {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.finale-duel-score {
    color: var(--accent);
}

.finale-duel-top {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}

.finale-duel-row {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr) 2.4rem minmax(4.5rem, auto);
    gap: 0.45rem 0.55rem;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: finale-duel-row-in 0.45s ease-out both;
}

.finale-duel-row:last-child {
    border-bottom: none;
}

.finale-duel-row:nth-child(1) { animation-delay: 0.05s; }
.finale-duel-row:nth-child(2) { animation-delay: 0.1s; }
.finale-duel-row:nth-child(3) { animation-delay: 0.15s; }
.finale-duel-row:nth-child(4) { animation-delay: 0.2s; }
.finale-duel-row:nth-child(5) { animation-delay: 0.25s; }

.finale-duel-row--first {
    background: linear-gradient(90deg, rgba(50, 210, 150, 0.16), transparent 70%);
}

.finale-duel-row-place {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.4rem;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
}

.finale-duel-row--first .finale-duel-row-place {
    background: var(--accent);
    color: #061018;
    box-shadow: 0 0 12px rgba(50, 210, 150, 0.45);
}

.finale-duel-row-name {
    font-weight: 700;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finale-duel-row-pts {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.88rem;
}

.finale-duel-row-prize {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finale-duel-row--first .finale-duel-row-prize {
    color: var(--finale-gold);
}

.finale-duel-actions {
    margin-top: 0.35rem;
}

.finale-duel-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 40%, rgba(50, 210, 150, 0.18), transparent 55%),
        #0a1524;
}

.finale-duel-visual img {
    object-fit: contain;
    padding: 8%;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
    animation: finale-duel-float 4.5s ease-in-out infinite alternate;
}

.finale-duel-visual-caption {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(5, 8, 17, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.finale-duel-visual-caption span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.finale-duel-visual-caption strong {
    font-size: 0.9rem;
}

@keyframes finale-duel-pulse {
    from { box-shadow: 0 0 18px rgba(50, 210, 150, 0.08); }
    to { box-shadow: 0 0 34px rgba(50, 210, 150, 0.22); }
}

@keyframes finale-duel-float {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

@keyframes finale-duel-row-in {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .finale-duel-winner,
    .finale-duel-visual img,
    .finale-duel-row {
        animation: none !important;
    }
}

@media (max-width: 820px) {
    .finale-duel-winner-pts {
        margin-left: 0;
    }

    .finale-duel-row {
        grid-template-columns: 1.5rem minmax(0, 1fr) auto;
        grid-template-areas:
            "place name pts"
            "place prize prize";
    }

    .finale-duel-row-place { grid-area: place; }
    .finale-duel-row-name { grid-area: name; }
    .finale-duel-row-pts { grid-area: pts; }
    .finale-duel-row-prize {
        grid-area: prize;
        text-align: left;
    }

    .finale-duel-visual {
        aspect-ratio: 16 / 10;
        max-height: 220px;
    }
}


/* === Mobile nav drawer (hamburger) === */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    z-index: 60;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

body.nav-open .nav-toggle-bars {
    background: transparent;
}

body.nav-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    display: none;
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        background: rgba(2, 8, 18, 0.62);
        backdrop-filter: blur(2px);
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    .nav-backdrop[hidden] {
        display: none !important;
    }

    .site-header .site-nav,
    .site-header nav.site-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 50;
        width: min(18.5rem, 86vw);
        height: 100dvh;
        height: 100vh;
        margin: 0;
        padding: 4.5rem 1.15rem 1.5rem;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.15rem;
        overflow-y: auto;
        background: linear-gradient(165deg, #0d1a2b 0%, #07111f 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.45);
        transform: translateX(105%);
        transition: transform 0.22s ease;
        justify-content: flex-start;
        justify-self: auto;
        grid-column: auto;
        grid-row: auto;
    }

    body.nav-open .site-header .site-nav,
    body.nav-open .site-header nav.site-nav {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    .site-header .site-nav a,
    .site-header .site-nav .link-button,
    .site-header nav.site-nav a,
    .site-header nav.site-nav .link-button {
        display: block;
        width: 100%;
        padding: 0.75rem 0.85rem;
        border-radius: 0.7rem;
        font-weight: 700;
        text-align: left;
    }

    .site-header .site-nav a:hover,
    .site-header .site-nav a:focus-visible {
        background: rgba(255, 255, 255, 0.06);
    }

    .site-header .site-nav .nav-cabinet-accent {
        margin-top: 0.35rem;
        text-align: center;
    }

    .site-header .site-nav .nav-register-btn {
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .site-header .site-nav .nav-logout-form,
    .site-header .site-nav .inline-form {
        margin: 0.35rem 0 0;
        width: 100%;
    }

    .site-header .site-nav .link-button {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--muted);
        cursor: pointer;
        font: inherit;
    }
}

@media (min-width: 821px) {
    .nav-toggle,
    .nav-backdrop {
        display: none !important;
    }
}

/* === Finale close hero (sketch layout on homepage) === */
.finale-close-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: clamp(1.25rem, 3vw, 2.75rem);
    align-items: stretch;
    margin: 1.5rem 0 2rem;
    padding: clamp(1.35rem, 3vw, 2.35rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(50, 210, 150, 0.22);
    background:
        radial-gradient(ellipse 55% 50% at 88% 18%, rgba(250, 200, 60, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 55% at 8% 0%, rgba(50, 210, 150, 0.16), transparent 55%),
        linear-gradient(145deg, #0a1524 0%, #050811 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-width: 0;
}

.finale-close-hero--draft {
    outline: 1px dashed rgba(50, 210, 150, 0.4);
    outline-offset: 2px;
}

.finale-close-hero-draft {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #061018;
    background: var(--accent);
}

.finale-close-hero-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.finale-close-hero-title {
    margin: 0 0 1.15rem;
    font-size: clamp(1.45rem, 3.6vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-transform: uppercase;
}

.finale-close-hero-title-accent {
    color: var(--accent);
}

.finale-close-podium {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.finale-close-podium-row {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr) auto;
    gap: 0.55rem 0.75rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}

.finale-close-podium-row.is-first {
    border-color: rgba(50, 210, 150, 0.4);
    background: linear-gradient(90deg, rgba(50, 210, 150, 0.16), rgba(0, 0, 0, 0.12));
    box-shadow: 0 0 24px rgba(50, 210, 150, 0.12);
}

.finale-close-podium-place {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.finale-close-podium-row.is-first .finale-close-podium-place {
    color: var(--accent);
}

.finale-close-podium-name {
    font-weight: 800;
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finale-close-podium-row.is-first .finale-close-podium-name {
    font-size: 1.08rem;
}

.finale-close-podium-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.65rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: right;
}

.finale-close-podium-prize {
    color: #f0c75e;
    font-weight: 700;
}

.finale-close-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.finale-close-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
    min-width: 0;
}

.finale-close-champ-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.finale-close-champ-name {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: #f0c75e;
    text-shadow: 0 0 28px rgba(240, 199, 94, 0.25);
}

.finale-close-flag-wrap {
    width: min(100%, 18rem);
    aspect-ratio: 3 / 2;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(240, 199, 94, 0.12);
    background: #0a1524;
}

.finale-close-flag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 820px) {
    .finale-close-hero {
        grid-template-columns: 1fr;
        padding: 1.15rem;
        gap: 1.25rem;
    }

    .finale-close-hero-right {
        order: -1;
    }

    .finale-close-flag-wrap {
        width: min(100%, 14rem);
    }

    .finale-close-podium-row {
        grid-template-columns: 4.6rem minmax(0, 1fr);
        grid-template-areas:
            "place name"
            "place meta";
    }

    .finale-close-podium-place { grid-area: place; align-self: start; padding-top: 0.15rem; }
    .finale-close-podium-name { grid-area: name; }
    .finale-close-podium-meta {
        grid-area: meta;
        justify-content: flex-start;
        text-align: left;
    }
}
