/* ------------------------------------------------------------------
   FIFA World Cup 26 — mobile-first design
   Palette: deep midnight ink, vibrant magenta/red, warm gold, soft
   pastel surfaces. Inspired by the official tournament branding.
------------------------------------------------------------------ */

:root {
    --ink: #0a1128;
    --ink-2: #1b2242;
    --ink-soft: #475081;
    --muted: #8892b8;
    --border: #e6e9f4;
    --border-strong: #cfd5ea;
    --surface: #ffffff;
    --surface-2: #f5f7ff;
    --bg: #f0f3fb;

    --accent: #e5174a;         /* FIFA 26 crimson */
    --accent-2: #ff4d6d;
    --accent-soft: rgba(229, 23, 74, 0.1);
    --gold: #ffb627;
    --teal: #1ac0a6;
    --sky: #3da9fc;

    --grad-hero: linear-gradient(135deg, #0a1128 0%, #1b2242 40%, #7a1538 85%, #e5174a 100%);
    --grad-pill: linear-gradient(135deg, #e5174a 0%, #ff4d6d 100%);
    --grad-gold: linear-gradient(135deg, #ffb627 0%, #ff8c42 100%);

    --shadow-sm: 0 2px 8px rgba(10, 17, 40, 0.06);
    --shadow: 0 10px 28px rgba(10, 17, 40, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 17, 40, 0.18);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Layout ------------------------------------------------ */

.wc-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

@media (min-width: 720px) {
    .wc-main { padding: 32px 28px 88px; }
}

/* ---------- Ticker (headline strip) ------------------------------ */

.wc-ticker {
    position: relative;
    overflow: hidden;
    background: #070d22;
    border-top: 1px solid rgba(229, 23, 74, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.wc-ticker::before,
.wc-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 1;
    pointer-events: none;
}
.wc-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #070d22, transparent);
}
.wc-ticker::after {
    right: 0;
    background: linear-gradient(-90deg, #070d22, transparent);
}
.wc-ticker__track {
    display: inline-flex;
    white-space: nowrap;
    animation: wc-ticker-scroll 60s linear infinite;
}
.wc-ticker:hover .wc-ticker__track { animation-play-state: paused; }
.wc-ticker__group {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 14px 22px 14px 0;
}
.wc-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e9ecff;
}
.wc-ticker__item strong { font-weight: 900; color: #ffffff; }
.wc-ticker__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.wc-ticker__tag--news {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.wc-ticker__sep {
    color: var(--accent);
    font-size: 10px;
    opacity: 0.9;
}
@keyframes wc-ticker-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .wc-ticker__track { animation: none; }
}
@media (max-width: 520px) {
    .wc-ticker { font-size: 12px; }
    .wc-ticker__group { gap: 16px; padding: 8px 16px 8px 0; }
    .wc-ticker__tag { font-size: 9px; padding: 2px 6px; }
}

/* ---------- Header ------------------------------------------------ */

.wc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--grad-hero);
    color: #fff;
    box-shadow: var(--shadow);
}

.wc-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.wc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s;
}
.wc-brand:hover { text-decoration: none; opacity: 0.88; }
[data-theme="dark"] .wc-brand:focus { outline: none; }
.wc-brand:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; border-radius: 14px; }
.wc-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--grad-pill);
    padding: 4px;
    box-shadow: 0 8px 20px rgba(229, 23, 74, 0.35);
    flex-shrink: 0;
}
.wc-brand__mark svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.wc-brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.wc-brand__title {
    display: block;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.wc-brand__sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 2px;
}
.wc-brand__flag {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    display: block;
}

.wc-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 1;
    min-width: 0;
    padding-right: 12px;
}
.wc-nav::-webkit-scrollbar { display: none; }
.wc-nav__link {
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.wc-nav__link:hover,
.wc-nav__link:focus,
.wc-nav__link:visited,
.wc-nav__link:active {
    text-decoration: none;
    color: #fff;
}
.wc-nav__link:hover {
    background: rgba(255, 255, 255, 0.12);
}
.wc-nav__link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: -2px;
}
.wc-nav__link.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

@media (min-width: 720px) {
    .wc-header__inner { padding: 18px 32px; gap: 32px; }
    .wc-brand__mark { width: 48px; height: 48px; }
    .wc-brand__title { font-size: 18px; }
    .wc-brand__flag { width: 18px; height: 12px; }
    .wc-nav__link { font-size: 13px; padding: 8px 12px; }
}
@media (min-width: 1100px) {
    .wc-nav__link { font-size: 14px; padding: 9px 14px; }
}

/* ---------- Buttons ---------------------------------------------- */

.wc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
.wc-btn:hover { text-decoration: none; }
.wc-btn:active { transform: translateY(1px); }
.wc-btn--primary {
    background: var(--grad-pill);
    color: #fff;
    box-shadow: 0 8px 18px rgba(229, 23, 74, 0.3);
}
.wc-btn--primary:hover { box-shadow: 0 10px 22px rgba(229, 23, 74, 0.45); color: #fff; }
.wc-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
.wc-btn--ghost:hover { background: var(--surface); }
.wc-btn--light {
    background: #fff;
    color: var(--ink);
}
.wc-btn--light:hover { background: #fff; color: var(--accent); }

/* ---------- Hero ------------------------------------------------- */

.wc-hero {
    position: relative;
    overflow: hidden;
    background: var(--grad-hero);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}
.wc-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 182, 39, 0.28) 0%, transparent 65%);
    pointer-events: none;
}
.wc-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.3) 0%, transparent 65%);
    pointer-events: none;
}

.wc-hero__pitch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}
.wc-hero__inner { position: relative; z-index: 1; }
.wc-hero__copy { position: relative; z-index: 1; }
.wc-hero__trophy {
    display: none;
    position: relative;
    z-index: 1;
}
.wc-trophy {
    width: 100%;
    max-width: 200px;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.wc-hero__footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 22px;
}
.wc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.wc-hero__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.25); }
}
.wc-hero__title {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
}
.wc-hero__title em {
    font-style: normal;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wc-hero__lede {
    margin: 0 0 22px;
    font-size: 15px;
    opacity: 0.88;
    max-width: 560px;
}
.wc-hero__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* Tournament-live widget: one block that morphs through pre-kickoff
   countdown → live strip → today's matches → match of the day. */
.wc-tlive {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    color: #fff;
}
.wc-tlive__label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.wc-tlive__label--live { color: var(--accent); }
.wc-tlive__pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(229, 23, 74, 0.7);
    animation: wc-tlive-pulse 1.4s infinite;
}
@keyframes wc-tlive-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 23, 74, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(229, 23, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 23, 74, 0); }
}

/* Pre-tournament countdown */
.wc-tlive__countdown {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}
.wc-tlive__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}
.wc-tlive__num {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffb627;
}
.wc-tlive__ulabel {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.62);
}
.wc-tlive__sep {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    padding-bottom: 22px;
}
.wc-tlive__opener {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}
.wc-tlive__matchup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffd561;
}
.wc-tlive__team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: opacity 120ms ease;
}
a.wc-tlive__team:hover,
a.wc-tlive__team:focus-visible {
    opacity: 0.8;
    outline: none;
}
.wc-tlive__team img {
    width: 20px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.wc-tlive__vs {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}
.wc-tlive__place {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

/* Live / today grid of fixture cards. Stretch the grid to the widget
   width (the .wc-tlive flex container is align-items:center so it
   won't stretch children by default). */
.wc-tlive__grid {
    display: grid;
    gap: 10px;
    width: 100%;
    align-self: stretch;
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}
@media (min-width: 560px) {
    .wc-tlive__grid--2,
    .wc-tlive__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wc-tlive__grid--3,
    .wc-tlive__grid--5,
    .wc-tlive__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wc-tlive-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px 20px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.wc-tlive-card:hover {
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
}
.wc-tlive-card__team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}
.wc-tlive-card__team--right { justify-content: flex-end; }
.wc-tlive-card__team img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.wc-tlive-card__code {
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 13px;
    white-space: nowrap;
}
.wc-tlive-card__score {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    font-size: 18px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #ffd561;
    white-space: nowrap;
}
.wc-tlive-card__dash { color: rgba(255, 255, 255, 0.35); font-weight: 600; }
.wc-tlive-card__minute {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.wc-tlive-card__time {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}

/* Match of the day */
.wc-tlive__motd {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    width: 100%;
    max-width: 380px;
}
.wc-tlive__motd:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.wc-tlive__motd-vs {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.wc-tlive__motd-name {
    font-size: 14px;
    font-weight: 800;
}
.wc-tlive__motd-meta {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 500;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.wc-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.wc-stats li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.wc-stats__num {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wc-stats__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 9px;
    opacity: 0.75;
    margin-top: 2px;
}

@media (min-width: 720px) {
    .wc-hero { padding: 44px 40px; }
    .wc-hero__title { font-size: 48px; }
    .wc-hero__lede { font-size: 17px; }
    .wc-tlive { padding: 20px 24px; }
    .wc-tlive__num { font-size: 44px; }
    .wc-tlive__unit { min-width: 62px; }
    .wc-tlive__sep { font-size: 34px; padding-bottom: 24px; }
    .wc-hero__footer {
        grid-template-columns: auto 1fr;
        gap: 24px;
        margin-top: 30px;
    }
    .wc-stats { gap: 14px; }
    .wc-stats li { padding: 16px 12px; }
    .wc-stats__num { font-size: 30px; }
    .wc-stats__label { font-size: 10px; }
}

@media (min-width: 960px) {
    .wc-hero { padding: 48px 52px; }
    .wc-hero__inner {
        display: grid;
        grid-template-columns: 1.35fr 1fr;
        gap: 48px;
        align-items: center;
    }
    .wc-hero__trophy { display: flex; justify-content: center; align-items: center; }
    .wc-hero__title { font-size: 54px; }
}

/* Outline CTA for hero */
.wc-btn--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.wc-btn--outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Ball SVG */
.wc-ball {
    width: 42px;
    height: 42px;
    animation: spin 8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (min-width: 720px) {
    .wc-ball { width: 52px; height: 52px; }
}

/* ---------- Title contenders ------------------------------------- */
.wc-contenders {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
@media (min-width: 560px) {
    .wc-contenders { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.wc-contender {
    display: grid;
    grid-template-columns: 28px 34px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.08s;
}
.wc-contender:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.wc-contender:active { transform: scale(0.995); }
.wc-contender__rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.wc-contender__flag {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px var(--border);
}
.wc-contender__name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .wc-contender {
        grid-template-columns: 22px 26px minmax(0, 1fr);
        gap: 10px;
        padding: 9px 11px;
    }
    .wc-contender__flag { width: 24px; height: 16px; }
    .wc-contender__name { font-size: 13px; }
}

/* ---------- Generic section heading ------------------------------ */

.wc-section { margin-bottom: 28px; }
.wc-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.wc-section__title {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.02em;
    font-weight: 800;
}
.wc-section__title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    margin-right: 10px;
    vertical-align: -3px;
    background: var(--grad-pill);
    border-radius: 3px;
}
.wc-section__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

@media (min-width: 720px) {
    .wc-section__title { font-size: 24px; }
}

/* ---------- Page heading ----------------------------------------- */

.wc-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.wc-page-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -0.025em;
    font-weight: 800;
}
.wc-page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (min-width: 720px) {
    .wc-page-head h1 { font-size: 34px; }
    .wc-page-head p { font-size: 15px; }
}

/* ---------- Next-match spotlight --------------------------------- */

.wc-next {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.wc-next__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
}
.wc-next__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
.wc-next__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}
.wc-next__team img {
    width: 56px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.wc-next__vs {
    font-size: 26px;
    font-weight: 900;
    color: var(--muted);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-next__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-strong);
    font-size: 12px;
    color: var(--ink-soft);
    text-align: center;
}
.wc-next__meta strong { color: var(--ink); font-weight: 700; }

@media (min-width: 720px) {
    .wc-next { padding: 24px 28px; }
    .wc-next__team { font-size: 16px; }
    .wc-next__team img { width: 72px; height: 48px; }
    .wc-next__vs { font-size: 32px; }
    .wc-next__meta { font-size: 13px; }
}

/* ---------- Featured horizontal scroll --------------------------- */

.wc-featured {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.wc-featured::-webkit-scrollbar { height: 6px; }
.wc-featured::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.wc-card {
    flex: 0 0 260px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-snap-align: start;
}
.wc-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
.wc-card__date { margin-left: auto; white-space: nowrap; }
.wc-card__top .wc-match-alert { text-transform: none; letter-spacing: 0; }
.wc-card__group {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 10px;
    border-radius: 999px;
}
.wc-card__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}
.wc-card__team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
}
.wc-card__team--right {
    justify-content: flex-end;
    text-align: right;
}
.wc-card__team img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.wc-card__team span {
    /* Allow wrap to a second line instead of truncating with ellipsis;
       "South Korea", "Czech Republic", "Bosnia & H..." were cutting off
       on the 260px featured cards. line-clamp keeps it tidy at 2 lines. */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}
.wc-card__vs {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.08em;
}
.wc-card__foot {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Host strip ------------------------------------------- */

.wc-hosts-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.wc-hosts-strip li {
    list-style: none;
    padding: 0;
}
.wc-hosts-strip__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    border-radius: 10px;
    transition: background 120ms ease, transform 120ms ease;
}
.wc-hosts-strip__link:hover,
.wc-hosts-strip__link:focus-visible {
    background: var(--surface-2);
    transform: translateY(-1px);
    outline: none;
}
.wc-hosts-strip__link:focus-visible {
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.wc-hosts-strip img {
    width: 44px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.wc-hosts-strip strong { font-size: 13px; font-weight: 700; }
.wc-hosts-strip span { font-size: 11px; color: var(--muted); }

@media (min-width: 720px) {
    .wc-hosts-strip { padding: 22px; gap: 18px; }
    .wc-hosts-strip img { width: 64px; height: 42px; }
    .wc-hosts-strip strong { font-size: 15px; }
    .wc-hosts-strip span { font-size: 12px; }
}

/* ---------- Groups ----------------------------------------------- */

.wc-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .wc-groups { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1080px) {
    .wc-groups { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.wc-group {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.wc-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.wc-group__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--grad-pill);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.wc-group__hint {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.wc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wc-table th, .wc-table td {
    padding: 9px 4px;
    text-align: center;
    color: var(--ink-soft);
}
.wc-table thead th {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.wc-table tbody td { border-bottom: 1px solid var(--border); }
.wc-table tbody tr:last-child td { border-bottom: none; }
.wc-table tbody tr:nth-child(-n+2) {
    background: linear-gradient(90deg, rgba(26, 192, 166, 0.06), transparent);
}
.wc-table tbody tr:nth-child(-n+2) .wc-table__pos {
    color: var(--teal);
}
.wc-table__team {
    text-align: left !important;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
}
th.wc-table__team { display: table-cell; font-weight: 700; }
.wc-table__team img {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.wc-table__team-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.wc-table__pos {
    width: 20px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}
.wc-table__pts {
    font-weight: 800;
    color: var(--ink);
}

.wc-group__legend {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}
.wc-group__legend::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--teal);
}

/* ---------- Schedule --------------------------------------------- */

.wc-daystrip {
    margin: 0 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.wc-daystrip__list {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 4px 2px 8px;
}
.wc-daystrip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 12px;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--ink);
    font: inherit;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    scroll-snap-align: start;
}
.wc-daystrip__item:hover,
.wc-daystrip__item:focus-visible {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(10, 17, 40, 0.08);
    outline: none;
}
.wc-daystrip__item.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.wc-daystrip__item--all {
    min-width: 56px;
    padding: 10px 14px;
    gap: 0;
}
.wc-daystrip__all {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.wc-daystrip__dow {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}
.wc-daystrip__num {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
}
.wc-daystrip__month {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.wc-schedule {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.wc-day {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: 140px;
    overflow: hidden;
}
.wc-day__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    min-width: 0;
    flex-wrap: wrap;
}
.wc-day__head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-day__weekday {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.wc-day__date {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.wc-day__count {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.wc-day__matches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.wc-match {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
        "time body cal"
        "venue venue venue";
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    transition: border-color 0.2s, transform 0.15s;
    align-items: center;
}
.wc-match > .wc-match__time { grid-area: time; }
.wc-match > .wc-match__body { grid-area: body; }
.wc-match > .wc-match__venue { grid-area: venue; }
.wc-match > .wc-match__actions {
    grid-area: cal;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wc-match:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.wc-match.is-played {
    border-color: rgba(26, 192, 166, 0.35);
    background: rgba(26, 192, 166, 0.05);
}
.wc-match__time {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    padding-right: 10px;
    border-right: 1px solid var(--border);
}
.wc-match.is-played .wc-match__time { border-right-color: rgba(26, 192, 166, 0.3); }
.wc-match__group {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}
.wc-match__kick {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}
.wc-match__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
}
.wc-match__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wc-match__team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
}
.wc-match__team img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.wc-match__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.wc-match__team--right { justify-content: flex-end; }
.wc-match__team--right .wc-match__name { text-align: right; }

.wc-match__score {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: var(--ink);
    min-width: 54px;
}
.wc-match__dash { color: var(--muted); font-weight: 400; }
.wc-match__vs {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}
.wc-match__venue {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.wc-match__venue::before {
    content: '📍';
    font-size: 10px;
}

@media (min-width: 640px) {
    .wc-day { padding: 18px 20px; }
    .wc-match {
        grid-template-columns: 88px 1fr auto;
        padding: 14px 16px;
    }
    .wc-match__kick { font-size: 13px; }
    .wc-match__team { font-size: 15px; }
    .wc-match__team img { width: 30px; height: 20px; }
    .wc-match__score { font-size: 22px; min-width: 64px; }
    .wc-match__venue { font-size: 12px; }
}

@media (min-width: 960px) {
    .wc-match {
        grid-template-columns: 100px 1fr auto 220px;
        grid-template-areas: "time body cal venue";
    }
    .wc-match__body { grid-template-columns: 1fr; }
    .wc-match__venue {
        padding-left: 16px;
        border-left: 1px solid var(--border);
        justify-content: flex-start;
    }
    .wc-match.is-played .wc-match__venue { border-left-color: rgba(26, 192, 166, 0.3); }
}

/* ---------- Schedule filter chips -------------------------------- */

.wc-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin: 0 -4px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wc-chips::-webkit-scrollbar { display: none; }
.wc-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wc-chip:hover { border-color: var(--accent); color: var(--accent); }
.wc-chip.is-active {
    background: var(--grad-pill);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(229, 23, 74, 0.3);
}
/* KO chip behaves identically to A–L chips — only the label differs.
   Small left margin separates it from the group letters at a glance. */
.wc-chip--ko { margin-left: 6px; }

/* ---------- News ------------------------------------------------- */

.wc-news {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .wc-news { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1000px) {
    .wc-news { grid-template-columns: repeat(3, 1fr); }
}
.wc-news__item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.2s;
}
.wc-news__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.wc-news__source {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.wc-news__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.wc-news__title:hover { color: var(--accent); text-decoration: none; }
.wc-news__summary {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

/* ---------- Footer ----------------------------------------------- */

.wc-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 140px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}
.wc-footer strong { color: var(--ink-soft); }

@media (min-width: 720px) {
    .wc-footer {
        padding: 28px 28px 80px;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.wc-bracket__legend {
    margin-top: 4px;
    font-size: 10px;
    color: var(--muted);
    opacity: 0.8;
    line-height: 1.4;
}
.wc-bracket__round-dates {
    margin: -8px 0 14px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- Theme toggle ----------------------------------------- */

.wc-theme-toggle {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
}
.wc-theme-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.wc-theme-toggle:active { transform: scale(0.92); }
.wc-theme-toggle__icon { display: none; }
[data-theme="light"] .wc-theme-toggle__icon--moon,
:root:not([data-theme="dark"]) .wc-theme-toggle__icon--moon { display: block; }
[data-theme="dark"] .wc-theme-toggle__icon--sun { display: block; }

/* Language picker dropdown */
.wc-header__tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wc-locale {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.wc-locale__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.05s;
}
.wc-locale__btn:hover { background: rgba(255, 255, 255, 0.2); }
.wc-locale__btn:active { transform: scale(0.96); }
.wc-locale.is-open .wc-locale__btn { background: rgba(255, 255, 255, 0.24); }
.wc-locale__btn svg { transition: transform 0.15s; }
.wc-locale.is-open .wc-locale__btn svg { transform: rotate(180deg); }

.wc-locale__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 70;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: wc-locale-pop 0.15s ease-out;
}
@keyframes wc-locale-pop {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wc-locale__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.12s, color 0.12s;
}
.wc-locale__opt:hover,
.wc-locale__opt:focus {
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
}
.wc-locale__opt.is-active {
    color: var(--accent);
    font-weight: 700;
}
.wc-locale__opt.is-active .wc-locale__opt-short {
    background: var(--accent);
    color: #fff;
}
.wc-locale__opt-short {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.06em;
}
.wc-locale__opt-label {
    font-size: 13px;
}

/* ---------- Dark theme overrides --------------------------------- */

[data-theme="dark"] {
    --ink: #e6e9f4;
    --ink-2: #c7cce3;
    --ink-soft: #a0a7c4;
    --muted: #6f779a;
    --border: #24294a;
    --border-strong: #323867;
    --surface: #151a38;
    --surface-2: #1b2147;
    --bg: #0a0f24;

    --accent-soft: rgba(255, 77, 109, 0.18);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] body { color: var(--ink); }

[data-theme="dark"] .wc-header {
    background: linear-gradient(135deg, #05081a 0%, #0f1535 40%, #4a0f26 85%, #b01238 100%);
}

[data-theme="dark"] .wc-btn--ghost {
    color: var(--ink);
    border-color: var(--border-strong);
    background: var(--surface);
}
[data-theme="dark"] .wc-btn--ghost:hover { background: var(--surface-2); }
[data-theme="dark"] .wc-btn--light { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .wc-btn--light:hover { background: var(--surface-2); color: var(--accent-2); }

[data-theme="dark"] .wc-featured::-webkit-scrollbar-thumb { background: var(--border-strong); }

[data-theme="dark"] .wc-nav__link.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 23, 74, 0.45);
}

/* Mobile bottom tab bar (hidden above 520px) */
.wc-tabbar { display: none; }

[data-theme="dark"] img { filter: brightness(0.95); }

/* ---------- LIVE badge ------------------------------------------- */

.wc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(229, 23, 74, 0.35);
    text-transform: uppercase;
}
.wc-live-badge--solid {
    background: var(--grad-pill);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(229, 23, 74, 0.4);
    padding: 5px 12px;
    font-size: 11px;
}
.wc-live-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: live-pulse 1.2s infinite ease-in-out;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
.wc-match.is-live { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wc-next.is-live { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wc-next__label-group { font-size: 11px; opacity: 0.8; margin-left: 6px; }

/* ---------- Filters (schedule) ----------------------------------- */

.wc-filters {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wc-filters__row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.wc-search {
    flex: 1 1 220px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    transition: border-color 0.2s, background 0.2s;
}
.wc-search:focus-within {
    border-color: var(--accent);
    background: var(--surface);
    color: var(--accent);
}
.wc-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 0;
    font: inherit;
    color: var(--ink);
    outline: none;
}
.wc-search__input::placeholder { color: var(--muted); }
.wc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}
.wc-toggle input { accent-color: var(--accent); }
.wc-btn--sm { padding: 7px 14px; font-size: 12px; }

.wc-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.wc-chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wc-chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.wc-chip.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.wc-filters__summary {
    font-size: 12px;
    color: var(--muted);
}
.wc-filters__summary strong { color: var(--ink); }

.wc-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}
.wc-empty p { margin: 0 0 16px; }

/* Any team block rendered as a link: keep the layout, drop defaults */
a.wc-match__team,
a.wc-card__team,
a.wc-next__team,
a.wc-bracket-match__slot {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
a.wc-match__team:hover .wc-match__name,
a.wc-card__team:hover,
a.wc-next__team:hover,
a.wc-bracket-match__slot:hover .wc-bracket-match__team {
    color: var(--accent);
    text-decoration: none;
}
a.wc-bracket-match__slot:hover { background: var(--accent-soft); }

/* Dark mode only: suppress the default focus outline on link/tab
   surfaces (the browser draws it white, which jars on dark cards).
   Light mode keeps the default ring for accessibility. */
[data-theme="dark"] a.wc-match__team:focus,
[data-theme="dark"] a.wc-card__team:focus,
[data-theme="dark"] a.wc-next__team:focus,
[data-theme="dark"] a.wc-bracket-match__slot:focus,
[data-theme="dark"] .wc-table__team-link:focus,
[data-theme="dark"] .wc-team-group__name:focus,
[data-theme="dark"] .wc-contender:focus,
[data-theme="dark"] .wc-more-item:focus,
[data-theme="dark"] .wc-tab:focus { outline: none; }

.wc-table__team-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.wc-table__team-link:hover .wc-table__team-name { color: var(--accent); text-decoration: underline; }

/* ---------- Add-to-calendar ------------------------------------- */

.wc-add-cal {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.wc-add-cal.is-open {
    z-index: 60;
}
/* Lift the ancestor row + day card above their siblings so the open menu
   is not covered by the next .wc-match or clipped by .wc-day's overflow. */
.wc-match:has(.wc-add-cal.is-open) {
    position: relative;
    z-index: 60;
    overflow: visible;
}
.wc-day:has(.wc-add-cal.is-open) {
    position: relative;
    z-index: 60;
    overflow: visible;
}
.wc-add-cal__btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
    font-family: inherit;
}
.wc-add-cal__btn svg { width: 16px; height: 16px; }
@media (min-width: 720px) {
    .wc-add-cal__btn { width: 42px; height: 42px; }
    .wc-add-cal__btn svg { width: 20px; height: 20px; }
}
.wc-add-cal__btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}
.wc-add-cal__btn:active { transform: scale(0.92); }
.wc-add-cal.is-open .wc-add-cal__btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(229, 23, 74, 0.4);
}

.wc-add-cal__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    max-width: calc(100vw - 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: wc-add-cal-pop 0.15s ease-out;
}
@keyframes wc-add-cal-pop {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wc-add-cal__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    border: 0;
    text-align: left;
    font-family: inherit;
    width: 100%;
    transition: background 0.12s, color 0.12s;
}
.wc-add-cal__opt:hover,
.wc-add-cal__opt:focus {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
    outline: none;
}
.wc-add-cal__opt-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 2px;
}
.wc-add-cal__opt:hover .wc-add-cal__opt-icon,
.wc-add-cal__opt:focus .wc-add-cal__opt-icon {
    background: var(--accent);
    color: #fff;
}
.wc-add-cal__opt-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.wc-add-cal__opt-text strong { font-weight: 700; font-size: 13px; }
.wc-add-cal__opt-text em {
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.wc-add-cal__opt:hover .wc-add-cal__opt-text em,
.wc-add-cal__opt:focus .wc-add-cal__opt-text em { color: var(--accent); opacity: 0.8; }

/* Placement variants */
.wc-next__tools {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}
.wc-next .wc-add-cal { position: relative; }
.wc-match .wc-add-cal__btn { width: 30px; height: 30px; }

/* Narrow-screen: anchor menu to viewport right with inset */
@media (max-width: 520px) {
    .wc-add-cal__menu {
        right: -4px;
        min-width: 220px;
    }
}

/* ---------- Mobile tune-ups (under 520px) ------------------------ */

/* Sub-desktop layout (phone + tablet up to 1099px): swap horizontal
   nav for a fixed bottom tab bar. Threshold sits just below the
   1100px desktop breakpoint where the full top nav fits comfortably. */
@media (max-width: 1099px) {
    .wc-nav { display: none; }

    .wc-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -6px 18px rgba(10, 17, 40, 0.08);
        justify-content: space-around;
    }
    .wc-tab {
        flex: 1 1 0;
        min-width: 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 2px;
        color: var(--ink-soft);
        text-decoration: none;
        transition: color 0.15s;
    }
    .wc-tab.active,
    .wc-tab.is-active { color: var(--accent); }
    .wc-tab:hover { text-decoration: none; color: var(--accent); }
    .wc-tab__icon { width: 22px; height: 22px; display: block; }
    .wc-tab__label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.01em;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .wc-tab--more {
        background: transparent;
        border: 0;
        cursor: pointer;
        font-family: inherit;
    }

    .wc-more-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 17, 40, 0.48);
        z-index: 85;
        animation: wc-backdrop-in 0.15s ease-out;
    }
    .wc-more-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(56px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 10px 16px 20px;
        z-index: 90;
        box-shadow: 0 -10px 26px rgba(10, 17, 40, 0.22);
        animation: wc-sheet-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .wc-more-sheet__handle {
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: var(--border-strong);
        margin: 0 auto 12px;
    }
    .wc-more-sheet__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .wc-more-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 20px 12px;
        border-radius: 14px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        color: var(--ink);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: transform 0.08s, border-color 0.15s, color 0.15s;
    }
    .wc-more-item:hover,
    .wc-more-item:focus {
        text-decoration: none;
        border-color: var(--accent);
        color: var(--accent);
    }
    .wc-more-item:active { transform: scale(0.97); }
    .wc-more-item.active { border-color: var(--accent); color: var(--accent); }
    .wc-more-item__icon { width: 28px; height: 28px; color: var(--accent); }

    /* Reserve scroll-area space so the fixed tabbar can't cover the
       footer or the last page content on phone or tablet. */
    body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@keyframes wc-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes wc-sheet-in {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

/* Phone-only tweaks: header layout + brand sizing for screens <520px.
   The bottom tabbar swap above already applies here via the wider
   breakpoint, so nothing about the nav needs to repeat. */
@media (max-width: 520px) {
    /* Header: let the nav wrap to its own row so brand + toggle always
       stay visible without being covered by nav links. */
    .wc-header__inner {
        flex-wrap: wrap;
        padding: 12px 14px;
        row-gap: 8px;
    }
    .wc-nav__link { padding: 7px 12px; font-size: 13px; }
    .wc-brand__mark { width: 38px; height: 38px; border-radius: 12px; padding: 3px; }
    .wc-brand__title { font-size: 14px; }
    .wc-brand__sub { gap: 4px; }
    .wc-brand__flag { width: 14px; height: 10px; }
    .wc-theme-toggle { width: 34px; height: 34px; }
    .wc-locale__btn { height: 30px; padding: 0 10px; font-size: 11px; }
    .wc-header__tools { gap: 8px; }

    /* Countdown: lighter + smaller so four units fit comfortably. */
    .wc-tlive { padding: 14px 16px; gap: 8px; }
    .wc-tlive__num { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
    .wc-tlive__unit { min-width: 40px; }
    .wc-tlive__ulabel { font-size: 9px; letter-spacing: 0.08em; }
    .wc-tlive__sep { font-size: 20px; padding-bottom: 16px; font-weight: 500; }
    .wc-tlive__label { font-size: 10px; letter-spacing: 0.1em; }
    .wc-tlive__matchup { font-size: 13px; gap: 6px; }
    .wc-tlive__team img { width: 18px; }
    .wc-tlive__place { font-size: 10px; }
    .wc-tlive__grid { gap: 6px; }
    .wc-tlive-card { padding: 8px 14px 16px; gap: 10px; }
    .wc-tlive-card__code { font-size: 12px; }
    .wc-tlive-card__score { font-size: 16px; }
    .wc-tlive-card__team img { width: 20px; height: 13px; }

    /* Hero: compact padding, let stats shrink so "Cities" doesn't clip. */
    .wc-hero { padding: 22px 18px; }
    .wc-hero__title { font-size: 26px; }
    .wc-hero__lede { font-size: 14px; }
    .wc-stats { gap: 6px; }
    .wc-stats li { padding: 8px 4px; }
    .wc-stats__num { font-size: 20px; }
    .wc-stats__label { font-size: 8px; letter-spacing: 0.06em; }

    /* Match row: display:flex on mobile; cal button pulled out of flow
       so long team names can never shove it off the right edge. Venue
       wraps to its own row via flex-basis-100%. */
    .wc-match {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
        padding: 10px;
        min-width: 0;
        position: relative;
        max-width: 100%;
        overflow: hidden;
    }
    /* Only the schedule-page rows have the bell + calendar action
       stack; team-page fixture rows don't. Reserve right padding
       only when the actions are present so plain rows let the team
       name use the full width. */
    .wc-match:has(> .wc-match__actions) { padding-right: 76px; }
    .wc-match > .wc-match__time { flex-shrink: 0; width: 52px; }
    .wc-match > .wc-match__body { flex: 1 1 0; min-width: 0; overflow: hidden; }
    .wc-match > .wc-match__actions {
        position: absolute;
        top: 50%;
        right: 6px;
        transform: translateY(-50%);
        gap: 4px;
    }
    .wc-match > .wc-match__venue {
        flex: 1 1 100%;
        order: 4;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
    .wc-match__body { min-width: 0; }
    /* Stack teams vertically on phones so names like "South Africa" or
       "Bosnia & Herzegovina" never truncate, even when the action
       stack is present on schedule rows. */
    .wc-match__teams {
        grid-template-columns: 1fr;
        grid-template-areas: "team1" "score" "team2";
        gap: 2px;
        min-width: 0;
    }
    .wc-match__team:not(.wc-match__team--right) { grid-area: team1; }
    .wc-match__score { grid-area: score; min-width: 0; font-size: 12px; }
    /* DOM order for team2 is name-then-flag (so on desktop the flag
       hugs the right edge). On mobile we stack vertically and want
       the flag on the LEFT for both rows so they scan as a column —
       row-reverse flips the visual without touching the markup. */
    .wc-match__team--right { grid-area: team2; flex-direction: row-reverse; justify-content: flex-end; }
    .wc-match__team--right .wc-match__name { text-align: left; flex: 1 1 auto; }
    .wc-match__team {
        min-width: 0;
        gap: 8px;
    }
    .wc-match__team img { width: 22px; height: 15px; flex-shrink: 0; }
    .wc-match__name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1 1 auto;
        font-size: 14px;
    }
    .wc-match__vs { font-size: 9px; opacity: 0.7; }
    .wc-match__group { font-size: 10px; }
    .wc-match__kick { font-size: 11px; }
    .wc-match__venue { font-size: 11px; gap: 4px; }
    .wc-match .wc-add-cal__btn { width: 28px; height: 28px; }

    /* Group table: drop the "Top 2 advance" hint and shrink columns. */
    .wc-group__hint { display: none; }
    .wc-group__head { padding: 10px 12px; }
    .wc-group__badge { font-size: 11px; padding: 5px 10px; }
    .wc-table th, .wc-table td { padding: 7px 4px; font-size: 12px; }
    .wc-table__team img { width: 20px; height: 14px; }
    .wc-table__team-name { font-size: 12px; }

    /* Team detail record: 4 cols x 2 rows fits better at this width. */
    .wc-record { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .wc-record > div { padding: 8px 4px; }
    .wc-record dd { font-size: 16px; }
    .wc-record dt { font-size: 8px; letter-spacing: 0.08em; }

    /* Team hero: smaller flag, tighter padding. */
    .wc-team-hero { min-height: 170px; }
    .wc-team-hero__content { padding: 18px; gap: 14px; min-height: 170px; }
    .wc-team-hero__name { font-size: 22px; }
    .wc-team-hero__content > .wc-crest { width: 84px; height: 84px; }
    .wc-team-hero__content > .wc-crest svg { width: 74px; height: 88px; }

    /* Venues stats: horizontal scroll if needed so numbers don't clip. */
    .wc-venue-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .wc-venue-stat { padding: 10px 6px; }
    .wc-venue-stat__num { font-size: 22px; }

    /* Bracket: single-column, full width, no side-scroll. */
    .wc-bracket__title { font-size: 11px; padding-bottom: 8px; }

    /* Filters: compact search + chips; search takes full row, toggle wraps. */
    .wc-filters { padding: 12px; gap: 10px; }
    .wc-filters__row { gap: 8px; }
    .wc-search { flex: 1 1 100%; padding: 0 12px; }
    .wc-search__input { font-size: 14px; padding: 9px 0; }
    .wc-chip { padding: 5px 10px; font-size: 11px; }
    .wc-filters__summary { font-size: 11px; }

    /* Next match card: leave room for the calendar button in top-right. */
    .wc-next { padding: 18px 16px; }
    .wc-next__label { padding-right: 44px; }
}

/* Extra-narrow phones (≤ 360px): squeeze a bit more. */
@media (max-width: 360px) {
    .wc-brand__sub { display: none; }
    .wc-main { padding: 16px 12px 64px; }
    .wc-hero__title { font-size: 22px; }
    .wc-match { grid-template-columns: 46px minmax(0, 1fr) auto; padding: 9px; }
    .wc-match__name { font-size: 12px; }
}

/* ---------- Venues ----------------------------------------------- */

.wc-venue-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.wc-venue-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.wc-venue-stat__num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.wc-venue-stat__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: 2px;
}

.wc-venue-country {
    margin-bottom: 32px;
}
.wc-venue-country__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.wc-venue-country__head img {
    width: 40px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.wc-venue-country__head h2 {
    flex: 1;
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.wc-venue-country__head span {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.wc-venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.wc-venue-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%;
}
.wc-venue-card:focus-visible {
    outline: none;
    box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft);
}
.wc-venue-card::before {
    content: '';
    display: block;
    height: 6px;
    background: var(--grad-pill);
}
.wc-venue-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.wc-venue-card__body { padding: 16px; }
.wc-venue-card__stadium {
    margin: 0 0 4px;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.wc-venue-card__city {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
}
.wc-venue-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.wc-venue-card__stats > div { margin: 0; }
.wc-venue-card__stats dt {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}
.wc-venue-card__stats dd {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

/* ---------- Venue modal ------------------------------------------ */

.wc-venue-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: wc-venue-modal-fade 0.18s ease-out;
}
@keyframes wc-venue-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.wc-venue-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 26, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.wc-venue-modal__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: wc-venue-modal-slide 0.22s ease-out;
}
@keyframes wc-venue-modal-slide {
    from { transform: translateY(12px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.wc-venue-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10, 17, 40, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.15s;
}
.wc-venue-modal__close:hover { background: rgba(10, 17, 40, 0.85); }
.wc-venue-modal__hero {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}
.wc-venue-modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wc-venue-modal__body { padding: 20px 22px 24px; }
.wc-venue-modal__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.wc-venue-modal__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.wc-venue-modal__blurb {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.wc-venue-modal__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.wc-venue-modal__facts > div { margin: 0; min-width: 0; }
.wc-venue-modal__facts dt {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}
.wc-venue-modal__facts dd {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}

/* ==========================================================================
   Bracket — page redesign (lifted from design_handoff_bracket_redesign/
   bracket-styles.css). Inherits the site palette declared in :root above;
   only adds the two variables the site didn't already define.
   .page-head / .toolbar from the mock are renamed .wc-bracket-head /
   .wc-bracket-toolbar to avoid clobbering generic class names.
   ========================================================================== */

:root {
    --gold-2: #ffd561;
    --shadow-md: 0 6px 16px rgba(10, 17, 40, 0.08);
}
[data-theme="dark"] {
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.40);
}

/* ---------- Bracket page head + toolbar ---------- */
.wc-bracket-head {
    background: var(--grad-hero);
    color: #fff;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
}
.wc-bracket-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 300px at 80% 0%, rgba(255, 182, 39, 0.18), transparent 60%);
    pointer-events: none;
}
.wc-bracket-head__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
}
.wc-bracket-head h1 {
    margin: 0 0 8px;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
}
.wc-bracket-head h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #ffd561 0%, #ffb627 60%, #ff8c42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wc-bracket-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    max-width: 60ch;
}
.wc-bracket-head__legend {
    margin-top: 10px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.wc-bracket-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}
.wc-bracket-toolbar__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wc-bracket-toolbar__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.wc-bracket-toolbar__btn.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.wc-bracket-toolbar__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.18); }
.wc-bracket-toolbar__btn--predict.is-on {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #4a2d00;
}

/* ---------- Shell ---------- */
.bracket-page { padding: 24px 16px 60px; }
.bracket-shell {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
[data-theme="dark"] .bracket-shell {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.bt {
    position: relative;
    padding: 20px 16px 28px;
}

.bt__rounds, .bt__dates {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 0 4px;
}
.bt__rounds { margin-bottom: 4px; }
.bt__dates { margin-bottom: 18px; }

.bt__rcell {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
    padding: 6px 4px;
}
.bt__rcell--final { color: var(--accent); font-size: 13px; }
.bt__dcell {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.04em;
}
.bt__dcell--final { color: var(--gold); font-weight: 700; }

.bt__grid {
    display: grid;
    /* minmax(0, 1fr) — without the 0 minimum, a long team name like
       "Bosnia & Herzegovina" forces its column wider than its share and
       steals width from the other columns; the rightmost R32 then clips
       against .bracket-shell { overflow: hidden }. */
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    position: relative;
}

.bt__col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Extra breathing room between cards — the mock looks tighter than this
   only because it doesn't have a min-content R32 column with 8 rows. */
.bt__col--r32 { gap: 18px; }
.bt__col--r16 { gap: 48px; padding: 16px 0; }
.bt__col--qf  { gap: 130px; padding: 36px 0; }
.bt__col--sf  { gap: 0; justify-content: center; padding: 150px 0; }

.bt__col--final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 4px;
    position: relative;
}

/* ---------- SVG connector layer ---------- */
/* The connector layer's host wrapper sits as a sibling to .bt__grid
   (not inside it) — keeping it out of the grid's auto-placement so
   the grid stays a clean 9-column layout. The wrapper is the
   positioned ancestor for the absolutely-positioned SVG inside it. */
.bt__grid-wrap {
    position: relative;
}
.bp-connector-host {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.bt__connectors {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}
.bt__line {
    stroke: var(--border-strong);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke-width 0.3s ease, filter 0.3s ease;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: line-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    shape-rendering: crispEdges;
}
@keyframes line-draw {
    to { stroke-dashoffset: 0; }
}
.bt__line--decided {
    stroke: var(--accent);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(229, 23, 74, 0.45));
}
.bt--broadcast .bt__line { stroke: rgba(255, 255, 255, 0.18); }
.bt--broadcast .bt__line--decided {
    stroke: var(--accent-2);
    filter: drop-shadow(0 0 8px rgba(255, 81, 121, 0.7));
}

/* ---------- Trophy ---------- */
.bt__trophy {
    width: 64px;
    height: 80px;
    filter: drop-shadow(0 8px 18px rgba(255, 182, 39, 0.35));
    animation: trophy-float 4s ease-in-out infinite;
    z-index: 2;
}
@keyframes trophy-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.bt__trophy-aura {
    animation: trophy-pulse 2.4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes trophy-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.95; }
}

/* ---------- Champion moment ---------- */
.bt__champion {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 28px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 182, 39, 0.22), rgba(229, 23, 74, 0.08));
    border: 1px solid rgba(255, 182, 39, 0.5);
    box-shadow: 0 0 50px rgba(255, 182, 39, 0.35), 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: champion-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    margin-top: 10px;
    overflow: hidden;
    z-index: 3;
}
@keyframes champion-in {
    from { opacity: 0; transform: scale(0.7) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.bt__champion-rays {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: rays-spin 30s linear infinite;
}
.bt__champion-rays span {
    position: absolute;
    width: 2px;
    height: 200%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 213, 97, 0.25) 45%, rgba(255, 213, 97, 0.25) 55%, transparent 100%);
    transform-origin: center;
}
@keyframes rays-spin {
    to { transform: rotate(360deg); }
}
.bt__champion-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.32em;
    color: var(--gold);
    position: relative;
    z-index: 2;
}
.bt__champion-flag {
    width: 64px;
    height: 44px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 213, 97, 0.4);
    position: relative;
    z-index: 2;
    animation: flag-shine 2.2s ease-out infinite;
}
@keyframes flag-shine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.bt__champion-flag img { width: 100%; height: 100%; object-fit: cover; }
.bt__champion-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--ink);
    position: relative;
    z-index: 2;
}
.bt__champion-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    position: relative;
    z-index: 2;
}
.bt--broadcast .bt__champion-name { color: #fff; }
.bt--broadcast .bt__champion-sub { color: rgba(255, 255, 255, 0.55); }

/* ---------- Confetti ---------- */
.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.confetti__piece {
    position: absolute;
    top: 30%;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0% { transform: translate3d(0, -200px, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate3d(var(--dx, 0), 600px, 0) rotate(720deg); opacity: 0; }
}

/* ---------- Match card ---------- */
.mc {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
    /* Base opacity:1 (not 0 + animation forwards) so that classes like
       .mc--pickable, which set their own `animation:`, don't replace the
       entry animation and leave the card stuck invisible. The entry
       animation still fades in from 0; once it ends, base 1 takes over. */
    opacity: 1;
    animation: mc-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.mc--clickable:hover { transform: scale(1.03); }
@keyframes mc-in {
    from { opacity: 0; transform: translateX(-40px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
/* Both side rules use specificity (0,0,2) so they outrank the
   .mc--pickable shorthand (0,0,1). When a card becomes pickable,
   animation-name stays mc-in / mc-in-right while the iteration count
   and duration come from .mc--pickable — the entry slide loops as a
   "come pick me" cue on both sides instead of just one. */
.bt__col--left .mc { animation-name: mc-in; }
.bt__col--right .mc { animation-name: mc-in-right; }
@keyframes mc-in-right {
    from { opacity: 0; transform: translateX(40px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
[data-theme="dark"] .mc {
    background: var(--surface-2);
    border-color: var(--border);
}

.mc__id {
    position: absolute;
    top: 3px;
    right: 6px;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    opacity: 0.4;
    pointer-events: none;
}

.mc__row {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: default;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 0;
}
.mc__row:last-child { border-bottom: 0; }
/* Empty rows use aria-disabled (not the HTML `disabled` attribute) so
   clicks still bubble up to the parent .mc and trigger onFocusEmpty —
   disabled buttons swallow the click event in Chrome/Firefox. */
.mc__row[aria-disabled="true"] { cursor: default; }
.mc--clickable .mc__row:not([aria-disabled="true"]) { cursor: pointer; }
.mc--clickable .mc__row:hover:not([aria-disabled="true"]) {
    background: var(--accent-soft);
}
.mc__row.is-winner {
    background: linear-gradient(90deg, rgba(229, 23, 74, 0.18), rgba(229, 23, 74, 0));
    color: var(--accent);
    font-weight: 800;
    animation: winner-pulse 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 3px 0 0 var(--accent);
}
@keyframes winner-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.mc__row.is-loser {
    opacity: 0.45;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    transition: opacity 200ms ease, transform 200ms ease;
    transform: translateY(2px);
}

.mc__flag {
    width: 22px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.mc__flag img { width: 100%; height: 100%; object-fit: cover; }
.mc__flag--empty {
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, var(--border) 0 4px, var(--border-strong) 4px 8px);
}

.mc__name {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
    /* white-space: normal (default) wraps at SPACES only — no mid-word
       splits like "Czech Republi/c". Long names like "Czech Republic"
       wrap to two lines; cards stretch a little but the connector layer
       re-measures so the bracket lines stay aligned. Single very-long
       words ("Curaçao") stay on one line and get clipped by the parent
       .mc { overflow: hidden } if needed. */
}
.mc__placeholder {
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
    font-size: 11px;
}
.mc__check {
    font-size: 11px;
    color: var(--accent);
    font-weight: 900;
}
/* Hide the corner match-id badge when the top row is the winner — the
   top row's check ✓ lands in the same spot and the two stack visually.
   Bottom-row winners are far enough from the badge to coexist. */
.mc--top-checked .mc__id { opacity: 0; }

.mc--highlighted {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 28px rgba(229, 23, 74, 0.28);
    transform: scale(1.03);
    z-index: 2;
}
.mc--dimmed { opacity: 0.42; transition: opacity 180ms ease; }

.mc--final, .mc--big {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255, 182, 39, 0.3), 0 18px 40px rgba(255, 182, 39, 0.18);
    transform: scale(1.06);
}
.mc--final .mc__row {
    padding: 12px 14px;
    font-size: 14px;
}
.mc--final .mc__flag {
    width: 32px;
    height: 22px;
    border-radius: 3px;
}
.mc--final .mc__row.is-winner {
    background: linear-gradient(90deg, rgba(255, 182, 39, 0.25), rgba(255, 182, 39, 0));
    color: #b8770e;
}
[data-theme="dark"] .mc--final .mc__row.is-winner { color: var(--gold-2); }

/* ---------- Broadcast mode (CSS retained even though toolbar toggle is omitted) ---------- */
.bt--broadcast {
    background: radial-gradient(1200px 500px at 50% 0%, #14193a 0%, #050817 70%);
    border-radius: var(--radius-lg);
    margin: -20px -16px -28px;
    padding: 28px 20px 36px;
    color: #fff;
}
.bt--broadcast .bt__rcell { color: rgba(255, 255, 255, 0.6); }
.bt--broadcast .bt__dcell { color: rgba(255, 255, 255, 0.35); }
.bt--broadcast .bt__rcell--final { color: var(--gold-2); }
.bt--broadcast .bt__dcell--final { color: var(--gold-2); }
.bt--broadcast .mc {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}
.bt--broadcast .mc__row {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.bt--broadcast .mc__row.is-winner {
    background: linear-gradient(90deg, rgba(255, 81, 121, 0.22), transparent);
    color: var(--accent-2);
}
.bt--broadcast .mc--highlighted {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 1px var(--accent-2), 0 0 30px rgba(255, 81, 121, 0.5);
}
.bt--broadcast .mc--final {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(255, 213, 97, 0.4);
}
.bt--broadcast .mc__placeholder { color: rgba(255, 255, 255, 0.35); }
.bt--broadcast .mc__id { color: rgba(255, 255, 255, 0.3); }

/* ---------- Predict banner ---------- */
.predict-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 0 auto 16px;
    max-width: 1400px;
    background: linear-gradient(135deg, rgba(255, 182, 39, 0.14), rgba(229, 23, 74, 0.06));
    border: 1px dashed rgba(255, 182, 39, 0.5);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}
[data-theme="dark"] .predict-banner { color: var(--ink); }
.predict-banner__pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 182, 39, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(255, 182, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 182, 39, 0); }
}
.predict-banner__btn {
    margin-left: auto;
    background: var(--ink);
    color: var(--surface);
    border: 0;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}
.predict-banner__btn:hover { background: var(--accent); color: #fff; }

/* Simulate-standings banner. Shown only inside predict mode when the
   group stage has not produced real standings yet. The "active" variant
   replaces the CTA with regenerate / clear once a simulation exists. */
.sim-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 auto 16px;
    max-width: 1400px;
    background: linear-gradient(135deg, rgba(229, 23, 74, 0.10), rgba(255, 182, 39, 0.06));
    border: 1px dashed rgba(229, 23, 74, 0.45);
    border-radius: 10px;
    color: var(--ink);
    font-size: 13px;
}
.sim-banner--active {
    background: linear-gradient(135deg, rgba(255, 182, 39, 0.14), rgba(229, 23, 74, 0.06));
    border-color: rgba(255, 182, 39, 0.55);
}
.sim-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 320px;
    min-width: 0;
}
.sim-banner__text strong { font-weight: 800; font-size: 14px; }
.sim-banner__text span { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.sim-banner__btn {
    appearance: none;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.sim-banner__btn:hover { border-color: var(--accent); color: var(--accent); }
.sim-banner__btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.sim-banner__btn--primary:hover { background: #c2153e; border-color: #c2153e; color: #fff; }
.sim-banner__btn--ghost { color: var(--muted); border-color: var(--border); }
.sim-banner__btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Match card focused / pickable / empty (used by both layouts) ---------- */
.mc--empty { cursor: pointer; }
.mc--empty .mc__row { color: var(--muted); }

.mc--focused {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold), 0 16px 36px rgba(255, 182, 39, 0.32);
    transform: scale(1.04);
    z-index: 4;
}
.mc--focused .mc__id { color: var(--gold); }

.mc--pickable {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 0 22px rgba(229, 23, 74, 0.5);
    animation: mc-pickable-pulse 1.4s ease-out infinite;
    z-index: 3;
}
@keyframes mc-pickable-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 22px rgba(229, 23, 74, 0.5); }
    50% { box-shadow: 0 0 0 2px var(--accent), 0 0 32px rgba(229, 23, 74, 0.8); }
}
.mc--pickable .mc__row:not([aria-disabled="true"]) {
    cursor: pointer;
    background: linear-gradient(90deg, rgba(229, 23, 74, 0.10), transparent);
}
.mc--pickable .mc__row:hover:not([aria-disabled="true"]) {
    background: linear-gradient(90deg, rgba(229, 23, 74, 0.28), rgba(229, 23, 74, 0.06));
    color: var(--accent);
    font-weight: 800;
}

/* ---------- Mobile horizontal swipe-per-round (9 panels) ---------- */
.mh {
    position: relative;
    padding-bottom: 24px;
}
.mh__head {
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 18px 12px;
    margin: 0 0 10px;
}
.mh__head-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mh__head-titles { flex: 1; min-width: 0; }
.mh__rname {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-transform: uppercase;
}
.mh__rdate {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.mh__side {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}
.mh__side--right {
    background: rgba(255, 182, 39, 0.18);
    color: #b8770e;
}
[data-theme="dark"] .mh__side--right { color: var(--gold-2); }
.mh__side--final {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #4a2d00;
    font-weight: 900;
}
.mh__pos {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.02em;
}
.mh__pos span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 1px;
}
.mh__dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}
.mh__dot {
    width: 24px; height: 4px;
    border-radius: 2px;
    border: 0;
    background: var(--border);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.mh__dot.is-active {
    background: var(--accent);
    width: 32px;
}
.mh__dot--final { background: rgba(255, 182, 39, 0.4); width: 28px; }
.mh__dot--final.is-active {
    background: linear-gradient(90deg, var(--gold-2), var(--gold));
    width: 36px;
}

.mh__scroller {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100% - 300px) / 2);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 0 16vw;  /* leaves a clear sliver of the next panel as a swipe affordance */
}
.mh__scroller::-webkit-scrollbar { display: none; }

.mh__panel {
    flex: 0 0 68vw;
    max-width: 300px;
    /* Min height ensures all 9 panels are the same vertical size, which
       lets `justify-content: space-around` on .mh__matches put each
       round's N cards at the same fractional positions. With identical
       heights, R16-7 (item 3 of 4 → 5/8 H) lands at exactly the
       midpoint of R32-13 + R32-14 (items 5 and 6 of 8 → 9/16 H +
       11/16 H), so the bracket peek lines up. */
    min-height: 620px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 4px 14px;
    opacity: 0.5;
    transform: scale(0.94);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.mh__panel.is-active { opacity: 1; transform: scale(1); }

.mh__panel--final {
    flex: 0 0 76vw;
    align-items: center;
    position: relative;
}
.mh__final-trophy {
    width: 60px; height: 75px;
    margin-bottom: 4px;
}

.mh__matches {
    display: flex;
    flex-direction: column;
    /* flex: 1 fills the panel's vertical space; space-around then puts
       each card at a deterministic fractional position so cards align
       across rounds (see .mh__panel min-height note). */
    flex: 1;
    justify-content: space-around;
    gap: 6px;
    width: 100%;
}

.mh__panel[data-round="r32"] .mh__matches { gap: 4px; }
.mh__panel[data-round="r16"] .mh__matches { gap: 8px; }
.mh__panel[data-round="qf"]  .mh__matches { gap: 16px; }
.mh__panel--final .mh__matches { width: auto; max-width: 280px; flex: 0; justify-content: center; }

.mh__panel[data-round="qf"] .mc,
.mh__panel[data-round="sf"] .mc { transform: scale(1.04); transform-origin: center; }

.mh__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: var(--shadow-md);
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.mh__nav:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.mh__nav:active:not(:disabled) { transform: translateY(-50%) scale(0.94); }
.mh__nav:disabled { opacity: 0.3; cursor: default; }
.mh__nav--prev { left: 8px; }
.mh__nav--next { right: 8px; }

.mh__focus-hint {
    position: fixed;
    /* Sits above the mobile bottom tab bar (~64px tall) so the hint
       isn't covered. iOS safe-area inset added on top. */
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--surface);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 50;
    animation: mh-hint-in 0.3s ease-out;
    max-width: calc(100vw - 32px);
    text-align: center;
}
@keyframes mh-hint-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mh__champion {
    margin-top: 14px;
    width: 100%;
    max-width: 280px;
}

/* ---------- Responsive ---------- */
.bracket-mobile-only { display: none; }
.bracket-desktop-only { display: block; }

@media (max-width: 980px) {
    .bracket-desktop-only { display: none; }
    .bracket-mobile-only { display: block; }
    .bracket-page { padding: 14px 0 60px; }
    .bracket-shell { border-radius: 0; padding: 0; box-shadow: none; }

    .wc-bracket-head { padding: 16px 18px 14px; }
    .wc-bracket-head h1 { font-size: 24px; margin-bottom: 4px; }
    .wc-bracket-head p { font-size: 13px; line-height: 1.35; }
    .wc-bracket-head__legend { display: none; }
    .wc-bracket-head__inner { flex-direction: column; align-items: stretch; gap: 12px; }

    .wc-bracket-toolbar { align-self: flex-start; padding: 4px; gap: 2px; }
    .wc-bracket-toolbar__btn { padding: 7px 10px; font-size: 11px; }

    .predict-banner { margin: 10px 16px 0; max-width: none; border-radius: 12px; padding: 8px 14px; font-size: 11px; }

    .mh__head { padding: 8px 14px 8px; }
    .mh__rname { font-size: 13px; }
    .mh__rdate { font-size: 10px; }
    .mh__pos { font-size: 16px; }
    .mh__dots { margin-top: 6px; }
    .mh__dot { width: 18px; height: 3px; }
    .mh__dot.is-active { width: 26px; }
    .mh__dot--final { width: 22px; }
    .mh__dot--final.is-active { width: 30px; }
}

/* ---------- Match detail page ------------------------------------ */

.wc-match-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--grad-hero, linear-gradient(135deg, #0a1128 0%, #1a3a6e 100%));
    color: #fff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.wc-match-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}
.wc-match-hero__tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}
.wc-match-hero__when {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-align: right;
}
.wc-match-hero__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.wc-match-hero__team {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.wc-match-hero__team:hover { color: #fff; text-decoration: none; }
.wc-match-hero__team--right { justify-content: flex-end; }
.wc-match-hero__team img {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.wc-match-hero__team-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-match-hero__team-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.wc-match-hero__team-info--right { text-align: right; align-items: flex-end; }
.wc-match-hero__team-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.wc-match-hero__score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}
.wc-match-hero__num {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffb627;
}
.wc-match-hero__num--dim {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.38);
    color: rgba(255, 255, 255, 0.38);
}
.wc-match-hero__dash { font-size: 44px; color: rgba(255, 255, 255, 0.25); font-weight: 500; }
.wc-match-hero__vs {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.wc-match-hero__venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    align-self: center;
}
.wc-match-hero__actions { position: absolute; top: 16px; right: 16px; }
.wc-match-hero__actions .wc-add-cal__btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}
@media (max-width: 520px) {
    .wc-match-hero { padding: 18px; }
    .wc-match-hero__team img { width: 36px; height: 24px; }
    .wc-match-hero__team-name { font-size: 15px; }
    .wc-match-hero__num { font-size: 44px; }
    .wc-match-hero__dash { font-size: 26px; }
    .wc-match-hero__teams { gap: 10px; }
    .wc-match-hero__team-label { display: none; }
}

/* ---------- Match body two-column layout -------------------------- */

.wc-match-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .wc-match-body {
        grid-template-columns: 1fr;
        padding: 16px 16px 48px;
        gap: 16px;
    }
}

/* ---------- Match cards ------------------------------------------- */

.wc-match-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.wc-match-card--span { grid-column: 1 / -1; }
.wc-match-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
}
.wc-match-card__title-row { display: flex; align-items: center; gap: 9px; }
.wc-match-card__accent {
    display: block;
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.wc-match-card__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}
.wc-match-card__legend { display: flex; gap: 14px; }
.wc-match-card__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
@media (max-width: 600px) {
    .wc-match-card__legend { display: none; }
}

/* Events inside card: adjust inner padding/borders */
.wc-match-body__events .wc-events-header {
    border-top: 1px solid var(--border);
    padding: 8px 20px 6px;
}
.wc-match-body__events .wc-events {
    padding: 0 0 12px;
}
.wc-match-body__events .wc-event-divider span {
    background: var(--surface);
    padding: 0 8px;
}
.wc-match-body__events .wc-event__side { padding: 6px 16px; }

/* Stats inside card */
.wc-stat-teams {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 20px 8px;
    border-top: 1px solid var(--border);
}
.wc-match-body__stats .wc-possession { padding: 0 0 0; }
.wc-match-body__stats .wc-stat-row { padding: 10px 20px; }

.wc-placeholder {
    padding: 20px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.wc-placeholder p { margin: 0; }
.wc-placeholder--lg {
    padding: 40px 24px;
    text-align: center;
    color: var(--ink-soft);
}
.wc-placeholder--lg svg { color: var(--muted); margin-bottom: 8px; }
.wc-placeholder--lg h3 {
    margin: 4px 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}
.wc-placeholder--lg p { font-size: 13px; max-width: 420px; margin: 0 auto; }

/* ---------- Pitch lineup visual ---------------------------------- */

.wc-pitch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto 12px;
}
.wc-pitch--portrait { max-width: 280px; }
.wc-pitch--landscape { max-width: 520px; }
.wc-pitch__shell {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(10, 17, 40, 0.28);
}
.wc-pitch--portrait .wc-pitch__shell { padding-bottom: 140%; }
.wc-pitch--landscape .wc-pitch__shell { padding-bottom: 71.43%; }
.wc-pitch__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.wc-pitch__player {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}
.wc-pitch__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--team-primary, #1a3a6e);
    color: var(--team-secondary, #ffffff);
    font-size: 11px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid var(--team-secondary, #ffffff);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}
.wc-pitch__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--team-primary, #1a3a6e);
    border: 2px solid var(--team-secondary, #ffffff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    overflow: visible;
}
.wc-pitch__photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}
.wc-pitch__initial {
    color: var(--team-secondary, #ffffff);
    font-size: 18px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.wc-pitch__num-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--team-primary, #1a3a6e);
    color: var(--team-secondary, #ffffff);
    font-size: 11px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    line-height: 1;
}
.wc-pitch__name {
    max-width: 110px;
    padding: 3px 8px;
    margin-top: 6px;
    background: rgba(10, 17, 40, 0.72);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.wc-pitch__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(10, 17, 40, 0.75);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ---------- Starting XI two-panel layout ------------------------- */

.wc-xi {
    display: block;
    margin-bottom: 16px;
}
.wc-crest__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 4px;
}
.wc-crest--logo { display: inline-flex; align-items: center; justify-content: center; }
.wc-xi__pitch {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.wc-xi__pitch .wc-pitch { margin: 0; max-width: 100%; }
.wc-xi__pitch .wc-pitch--landscape { max-width: 100%; }

.wc-pitch__caption {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    font-style: italic;
}
@media (max-width: 960px) {
    .wc-pitch__avatar { width: 42px; height: 42px; }
    .wc-pitch__initial { font-size: 14px; }
    .wc-pitch__num-badge {
        min-width: 17px;
        height: 17px;
        font-size: 10px;
        padding: 0 4px;
    }
    .wc-pitch__name { font-size: 11px; max-width: 92px; padding: 2px 6px; margin-top: 4px; }
}
@media (max-width: 520px) {
    .wc-pitch__dot { width: 28px; height: 28px; font-size: 11px; }
    .wc-pitch__avatar { width: 30px; height: 30px; }
    .wc-pitch__initial { font-size: 11px; }
    .wc-pitch__num-badge {
        min-width: 13px;
        height: 13px;
        font-size: 8px;
        padding: 0 3px;
        bottom: -3px;
        right: -3px;
        border-width: 1px;
    }
    .wc-pitch__name { font-size: 9px; max-width: 62px; padding: 1px 4px; margin-top: 3px; }
}

/* ---------- Team squad list -------------------------------------- */

.wc-squad {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.wc-squad-toggle__input { display: none; }
.wc-squad-toggle { display: none; }
@media (max-width: 720px) {
    .wc-squad-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 4px 0 12px;
        padding: 10px 16px;
        border-radius: 999px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        color: var(--ink);
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        user-select: none;
    }
    .wc-squad-toggle__hide { display: none; }
    .wc-squad-toggle__input:checked ~ .wc-squad-toggle .wc-squad-toggle__show { display: none; }
    .wc-squad-toggle__input:checked ~ .wc-squad-toggle .wc-squad-toggle__hide { display: inline; }
    .wc-squad-toggle__input:not(:checked) ~ .wc-squad { display: none; }
}
.wc-squad__heading {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}
.wc-squad__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 6px 10px;
}
.wc-squad__player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.wc-squad__photo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wc-squad__photo--placeholder {
    font-weight: 800;
    font-size: 12px;
    color: var(--muted);
}
.wc-squad__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.wc-squad__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wc-squad__meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}
.wc-squad__num { color: var(--accent); font-weight: 800; }

/* ---------- Top scorers ------------------------------------------ */

.wc-scorers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wc-scorer {
    display: grid;
    grid-template-columns: 28px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.wc-scorer__rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.wc-scorer__photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--border);
}
.wc-scorer__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wc-scorer__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.wc-scorer__team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.wc-scorer__team img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.wc-scorer__goals {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: right;
}

/* ---------- Match events ----------------------------------------- */

.wc-events-header {
    display: grid; grid-template-columns: 1fr 3.5rem 1fr;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--muted);
    padding: 0 0 10px;
}
.wc-events-header__away { text-align: right; }

.wc-events { list-style: none; padding: 0; margin: 0; position: relative; }
.wc-events::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0; width: 1px;
    background: var(--border); pointer-events: none;
}

/* half-time / section dividers */
.wc-event-divider {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 12px;
    padding: 10px 0; list-style: none; position: relative; z-index: 2;
}
.wc-event-divider::before,
.wc-event-divider::after { content: ''; height: 1px; background: var(--border); }
.wc-event-divider span {
    font-size: 10px; font-weight: 800; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted);
    background: var(--surface); padding: 0 6px; white-space: nowrap;
}
.wc-event-divider--ft span { color: var(--gold); }

.wc-event {
    display: grid;
    grid-template-columns: 1fr 3.5rem 1fr;
    align-items: center;
    min-height: 2.5rem;
    position: relative;
}
.wc-event__min {
    text-align: center; position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto;
    min-width: 2.5rem;
    font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
    background: var(--surface-2); color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px; padding: 3px 8px;
}
.wc-event--goal .wc-event__min {
    background: var(--gold); color: var(--bg);
    border-color: var(--gold); font-size: 12px;
}
.wc-event__side {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px;
}
.wc-event__side--home { flex-direction: row-reverse; }
.wc-event__icon { font-size: 15px; flex-shrink: 0; }
.wc-event__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-event__side--home .wc-event__body { text-align: right; align-items: flex-end; }
.wc-event__player { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-event--goal .wc-event__player { font-weight: 700; }
.wc-event__goal-badge {
    display: inline-block; font-size: 10px; font-weight: 800;
    letter-spacing: 0.1em; background: var(--gold); color: var(--bg);
    border-radius: 3px; padding: 1px 5px; line-height: 1.4;
}
.wc-event__assist { color: var(--muted); font-size: 11px; }

/* ---------- Match statistics table ------------------------------- */

.wc-stat-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.wc-stat-table__header {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 16px;
    background: var(--surface);
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.wc-stat-table__header span:last-child { text-align: right; }

/* Possession split bar */
.wc-possession { padding: 14px 16px 0; background: var(--surface); }
.wc-possession__bar {
    display: flex; height: 32px; border-radius: 8px; overflow: hidden;
    font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.wc-possession__home {
    background: var(--accent); color: #fff;
    display: flex; align-items: center; padding-left: 12px;
    min-width: 2rem;
}
.wc-possession__away {
    flex: 1; background: var(--surface-2); color: var(--muted);
    display: flex; align-items: center; justify-content: flex-end;
    padding-right: 12px;
}
.wc-possession__label {
    text-align: center; font-size: 10px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); padding: 8px 0 12px;
    border-bottom: 1px solid var(--border);
}

/* Stat rows with mini-bars */
.wc-stat-row { padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.wc-stat-row__nums {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: baseline; margin-bottom: 7px;
}
.wc-stat-row__val {
    font-size: 14px; font-weight: 700;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.wc-stat-row__val--right { text-align: right; }
.wc-stat-row__label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--muted); text-align: center; padding: 0 8px;
}
.wc-stat-row__bars { display: flex; gap: 3px; height: 4px; }
.wc-stat-row__bar {
    flex: 1; background: var(--border); border-radius: 3px; overflow: hidden;
}
.wc-stat-row__bar--home { display: flex; justify-content: flex-end; }
.wc-stat-row__fill { height: 100%; background: var(--accent); border-radius: 3px; }
.wc-stat-row__fill--away { background: var(--gold); }
.wc-match__score--link {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px 6px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.wc-match__score--link:hover { background: rgba(255,182,39,0.12); color: var(--accent); }

/* ---------- Team detail page ------------------------------------- */

.wc-team-hero {
    position: relative;
    min-height: 220px;
    border-radius: var(--radius-xl);
    color: #fff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.wc-team-hero__banner {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.wc-team-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.15);
}
.wc-team-hero__photo--flag {
    filter: blur(14px) saturate(1.3) brightness(0.9);
    transform: scale(1.08);
}
.wc-team-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(10, 17, 40, 0.92) 0%,
            rgba(10, 17, 40, 0.72) 40%,
            rgba(10, 17, 40, 0.38) 80%,
            rgba(10, 17, 40, 0.22) 100%),
        linear-gradient(135deg,
            var(--team-primary, #1a3a6e) 0%,
            rgba(10, 17, 40, 0) 55%);
}
.wc-team-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    min-height: 220px;
}
.wc-team-hero__content > .wc-crest {
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.wc-team-hero__body { min-width: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); }
.wc-team-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.82;
    margin-bottom: 6px;
    font-weight: 700;
}
.wc-team-hero__name {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    overflow-wrap: break-word;
}
.wc-team-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wc-team-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wc-record {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0;
}
.wc-record > div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.wc-record dt {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin: 0 0 4px;
}
.wc-record dd {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.wc-record__pts { background: var(--accent-soft) !important; border-color: rgba(229,23,74,0.35) !important; }
.wc-record__pts dd { color: var(--accent); }

.wc-team-fixtures { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.wc-team-group {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.wc-team-group li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.wc-team-group li:last-child { border-bottom: 0; }
.wc-team-group li.is-self { background: var(--accent-soft); font-weight: 800; }
.wc-team-group__pos {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border-radius: 50%;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    flex-shrink: 0;
}
.wc-team-group li.is-self .wc-team-group__pos { background: var(--accent); color: #fff; }
.wc-team-group li img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; flex-shrink: 0; display: block; }
.wc-team-group__flag {
    display: inline-flex;
    line-height: 0;
    border-radius: 2px;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.wc-team-group__flag:hover,
.wc-team-group__flag:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--accent-soft);
    outline: none;
}
.wc-team-group__name { flex: 1; color: var(--ink); text-decoration: none; }
.wc-team-group__name:hover { color: var(--accent); text-decoration: underline; }
.wc-team-group__pts { font-weight: 800; color: var(--ink); }

.wc-table__team-link { color: inherit; text-decoration: none; }
.wc-table__team-link:hover { color: var(--accent); text-decoration: underline; }

@media (min-width: 720px) {
    .wc-team-hero__name { font-size: 42px; }
    .wc-record { grid-template-columns: repeat(8, 1fr); }
    .wc-record dd { font-size: 26px; }
}

/* ---------- Header-tools "Alerts" pill (always visible) --------- */
.wc-tool-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 11px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 12px rgba(229, 23, 74, 0.35);
    flex-shrink: 0;
    transition: background 0.15s, transform 0.05s;
}
.wc-tool-alert:hover,
.wc-tool-alert:focus,
.wc-tool-alert:visited,
.wc-tool-alert:active {
    color: #fff;
    text-decoration: none;
}
.wc-tool-alert:hover { background: #ff3a66; }
.wc-tool-alert:active { transform: translateY(1px); }
.wc-tool-alert__dot {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffe066;
    box-shadow: 0 0 0 0 rgba(255, 224, 102, 0.8);
    animation: wc-alert-pulse 2.4s infinite;
}
@keyframes wc-alert-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 224, 102, 0.75); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 224, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 224, 102, 0); }
}
/* On narrow phones we already have the pill in the More sheet; hide
   the header label so the pill becomes a compact bell icon and
   doesn't squeeze the brand or locale picker. */
@media (max-width: 720px) {
    .wc-tool-alert__label { display: none; }
    .wc-tool-alert {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
        gap: 0;
    }
    .wc-tool-alert__dot { top: 3px; right: 4px; }
}
.wc-more-item--alert {
    color: var(--accent);
}
.wc-more-item--alert .wc-more-item__icon { color: var(--accent); }

/* ---------- Footer credit pill (home only, between K/F lines) ---- */
.wc-footer__credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(229, 23, 74, 0.08);
    border: 1px solid rgba(229, 23, 74, 0.18);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
}
.wc-footer__credit:hover {
    background: rgba(229, 23, 74, 0.16);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    text-decoration: none;
}
.wc-footer__credit svg {
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(229, 23, 74, 0.3);
}
.wc-footer__credit-label { white-space: nowrap; }

/* ---------- Per-match alert (bell) button on schedule rows ----- */
.wc-match-alert { display: inline-flex; align-items: center; }
.wc-match-alert__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
    font-family: inherit;
}
.wc-match-alert__btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}
.wc-match-alert__btn:active { transform: scale(0.92); }
.wc-match-alert__btn:disabled { opacity: 0.55; cursor: progress; }
.wc-match-alert__btn--signup { text-decoration: none; }
.wc-match-alert__btn--signup:hover { text-decoration: none; }
.wc-match-alert.is-on .wc-match-alert__btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(229, 23, 74, 0.3);
}
.wc-match-alert__status {
    display: none;
}
@media (max-width: 520px) {
    .wc-match .wc-match-alert__btn { width: 28px; height: 28px; }
}

/* ---------- Floating "back to top" arrow ------------------------ */
.wc-to-top {
    position: fixed;
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(229, 23, 74, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, background 0.15s;
    z-index: 70;
    padding: 0;
}
.wc-to-top:hover { background: #ff3a66; }
.wc-to-top:active { transform: translateY(0) scale(0.94); }
.wc-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
/* Phone + tablet keep the floating to-top above the bottom tab bar
   (which now spans up to 1099px). Once the tab bar disappears at
   the desktop breakpoint, drop it back down to a normal corner. */
@media (min-width: 1100px) {
    .wc-to-top { right: 24px; bottom: 24px; width: 48px; height: 48px; }
}

/* ---------- Schedule "Get iPhone alerts" banner ------------------ */
.wc-notify-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin: 0 0 18px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(229, 23, 74, 0.10), rgba(26, 192, 166, 0.10));
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.1s;
}
.wc-notify-banner:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.wc-notify-banner__icon {
    flex-shrink: 0;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wc-notify-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.wc-notify-banner__text strong { font-weight: 800; font-size: 14px; }
.wc-notify-banner__text em {
    font-style: normal;
    font-size: 12px;
    color: var(--ink-soft);
}
.wc-notify-banner__chev {
    color: var(--muted);
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
}
.wc-notify-banner__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    vertical-align: 1px;
    box-shadow: 0 0 0 0 rgba(229, 23, 74, 0.55);
    animation: wc-banner-badge-pulse 1.8s ease-out infinite;
}
@keyframes wc-banner-badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 23, 74, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(229, 23, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 23, 74, 0); }
}

/* ---------- Notifications instructions page --------------------- */
.wc-notify {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wc-notify__hero {
    text-align: center;
    padding: 28px 16px 8px;
}
.wc-notify__bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 14px;
}
.wc-notify__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.wc-notify__title {
    font-size: 22px;
    margin: 0 0 8px;
    line-height: 1.25;
}
.wc-notify__lede:empty { display: none; }
.wc-notify__lede {
    color: var(--ink-soft);
    font-size: 13px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}
.wc-notify__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
}
.wc-notify__card--alt {
    background: var(--surface-2);
}
.wc-notify__heading {
    font-size: 18px;
    margin: 0 0 12px;
}
.wc-notify__hint {
    font-size: 12px;
    color: var(--muted);
    margin: -6px 0 14px;
}
.wc-notify__warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 14px;
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
}
.wc-notify__warn svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 1px;
}
.wc-notify__warn strong {
    display: block;
    font-weight: 800;
    margin-bottom: 2px;
}
.wc-notify__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wc-notify__steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.wc-notify__num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wc-notify__steps strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.wc-notify__steps p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
}
.wc-notify__footnote {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    padding-bottom: 8px;
}

/* "Now live" eyebrow + open-schedule CTA */
.wc-notify__eyebrow--live {
    background: rgba(26, 192, 166, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    color: #1ac0a6;
}
.wc-notify__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(229, 23, 74, 0.35);
    transition: background 0.15s, transform 0.05s;
}
.wc-notify__cta:hover { background: #ff3a66; color: #fff; text-decoration: none; }
.wc-notify__cta:active { transform: translateY(1px); }
.wc-notify__sub {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* Email signup card (gated by waitlistOpen flag from /config) */
.wc-notify__signup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.wc-notify__form { display: flex; flex-direction: column; gap: 6px; }
.wc-notify__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.wc-notify__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.wc-notify__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wc-notify__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.wc-notify__submit {
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(229, 23, 74, 0.3);
    transition: background 0.15s, transform 0.05s;
}
.wc-notify__submit:hover { background: #ff3a66; }
.wc-notify__submit:active { transform: translateY(1px); }
.wc-notify__submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.wc-notify__error { margin: 6px 0 0; color: var(--accent); font-size: 13px; font-weight: 600; }
.wc-notify__privacy { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.wc-notify__success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(26, 192, 166, 0.12);
    border: 1px solid rgba(26, 192, 166, 0.4);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}
.wc-notify__success svg { flex-shrink: 0; color: #1ac0a6; margin-top: 1px; }
@media (min-width: 520px) { .wc-notify__row { flex-direction: row; } }

/* Notification preview "sample" row */
.wc-notify__sample {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    margin-top: 4px;
}
.wc-notify__sample-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wc-notify__sample-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.wc-notify__sample-body strong { font-size: 13px; font-weight: 700; }
.wc-notify__sample-body span { font-size: 12px; color: var(--ink-soft); }
.wc-notify__sample-time {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

@media (min-width: 520px) {
    .wc-notify__row { flex-direction: row; }
}

/* ---------- About page ------------------------------------------ */
.wc-about {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.wc-about__hero {
    text-align: center;
    padding: 28px 16px 8px;
}
.wc-about__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.wc-about__title {
    font-size: 32px;
    margin: 0 0 10px;
    line-height: 1.15;
}
.wc-about__lede {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.55;
}
.wc-about__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.wc-about__heading {
    font-size: 20px;
    margin: 0 0 12px;
}
.wc-about__card p {
    margin: 0 0 12px;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 14px;
}
.wc-about__card p:last-child { margin-bottom: 0; }
.wc-about__list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}
.wc-about__list li {
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.wc-about__list strong { color: var(--ink); font-weight: 700; }
/* Highlights the bracket entry — fancy gold border + soft glow so the
   feature with the most polish in the app actually looks like it. */
.wc-about__list-item--featured {
    background: linear-gradient(135deg, rgba(255, 182, 39, 0.16), rgba(229, 23, 74, 0.08)) !important;
    border: 1px solid var(--gold);
    box-shadow: 0 0 0 1px rgba(255, 182, 39, 0.18), 0 8px 22px rgba(255, 182, 39, 0.10);
}
.wc-about__list-item--featured strong { color: var(--gold); }
.wc-about__cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.wc-about__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    border: 1px solid transparent;
    transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s;
}
.wc-about__cta--donate {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #1f2937;
}
.wc-about__cta--hire {
    background: linear-gradient(135deg, var(--accent), #8b1a3a);
    color: #fff;
}
.wc-about__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.wc-about__cta-icon {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}
.wc-about__cta-coffee {
    font-size: 32px;
    line-height: 1;
}
.wc-about__cta-venmo {
    position: absolute;
    right: -10px;
    bottom: -6px;
    line-height: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, 0.18);
}
.wc-about__cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wc-about__cta-text strong { font-size: 16px; font-weight: 800; }
.wc-about__cta-text em {
    font-style: normal;
    font-size: 13px;
    opacity: 0.85;
}
.wc-about__contacts {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.wc-about__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(229, 23, 74, 0.18);
}
.wc-about__contact:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(229, 23, 74, 0.4);
    text-decoration: none;
}
.wc-about__contact svg { flex-shrink: 0; }

@media (min-width: 640px) {
    .wc-about__cta-row { grid-template-columns: 1fr 1fr; }
    .wc-about__list { grid-template-columns: 1fr 1fr; }
    .wc-notify__title { font-size: 28px; }
    .wc-about__title { font-size: 38px; }
}

/* ---------- Predict-mode test routes ----------------------------- */
.wc-predict { max-width: 1100px; margin: 0 auto; padding: 16px 12px 40px; }
.wc-predict__hero { margin-bottom: 16px; }
.wc-predict__eyebrow {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}
.wc-predict h1 { margin: 8px 0 6px; font-size: 22px; }
.wc-predict__lede { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.wc-predict__reset {
    margin-left: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--ink);
    border-radius: 999px;
    font-size: 12px;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
}
.wc-predict__reset:hover { border-color: var(--accent); color: var(--accent); }
.wc-predict__heading {
    margin-top: 28px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* Route A: per-match list */
.wc-predict__match-list {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}
.wc-predict__match {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    background: var(--surface-2);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.wc-predict__match.is-locked { opacity: 0.55; }
.wc-predict__match-meta {
    display: flex;
    gap: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
}
.wc-predict__match-group { color: var(--accent); }
.wc-predict__match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
    align-items: stretch;
}
.wc-predict__side, .wc-predict__draw {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.wc-predict__side img { width: 22px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.wc-predict__side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wc-predict__side--right { justify-content: flex-end; text-align: right; }
.wc-predict__draw {
    flex-direction: row;
    justify-content: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.wc-predict__side:hover, .wc-predict__draw:hover { border-color: var(--accent); }
.wc-predict__side.is-on, .wc-predict__draw.is-on {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.wc-predict__side:disabled, .wc-predict__draw:disabled { cursor: not-allowed; }

/* Route A: group-letter chip filter so 72 matches don't scroll forever */
.wc-predict__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.wc-predict__chip {
    appearance: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.wc-predict__chip:hover { border-color: var(--accent); }
.wc-predict__chip.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.wc-predict__match-venue { color: var(--muted); }

/* Route B: ranked list per group with up/down arrows */
.wc-predict__group-grid {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
@media (min-width: 720px) {
    .wc-predict__group-grid { grid-template-columns: 1fr 1fr; }
}
.wc-predict__group {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}
.wc-predict__group-letter {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.wc-predict__rank {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.wc-predict__rank-row {
    display: grid;
    grid-template-columns: 32px 22px 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
/* Top 3 advance — visually emphasise so the boundary between
   "qualifies for KO" and "goes home" is obvious. */
.wc-predict__rank-row {
    border-left: 3px solid var(--accent);
}
.wc-predict__rank-row.is-out {
    border-left-color: var(--border);
    color: var(--muted);
    background: transparent;
}
.wc-predict__rank-pos {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.wc-predict__rank-flag { width: 22px; height: 14px; object-fit: cover; border-radius: 2px; }
.wc-predict__rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-predict__rank-arrow {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    font-family: inherit;
}
.wc-predict__rank-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wc-predict__rank-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* Shared bracket result list */
.wc-predict__rounds {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 12px;
}
.wc-predict__round {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
}
.wc-predict__round h3 {
    margin: 0 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.wc-predict__round ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}
.wc-predict__round li {
    display: grid;
    grid-template-columns: 60px 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    border-top: 1px solid var(--border);
}
.wc-predict__round li:first-child { border-top: 0; }
.wc-predict__bm-id {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.wc-predict__bm-side em { color: var(--muted); font-style: italic; }
.wc-predict__bm-side:last-of-type { text-align: right; }
.wc-predict__bm-vs { color: var(--muted); font-size: 11px; }

