/* ===================================================================
   Glance '26 — "Stadium Night" theme
   Dark, premium, data-forward. Live data glows electric-pitch green,
   trophy moments are gold, host nations accent blue/red.
   ================================================================= */
:root {
  --paper: #090d18;        /* page base (darkest) */
  --paper-2: #0e1424;      /* lifted surface */
  --card: #141d33;         /* card surface */
  --ink: #eaf0ff;          /* primary text / strong elements */
  --ink-2: #aab6d6;        /* secondary text */
  --muted: #7c88ac;        /* muted */
  --muted-2: #515d80;      /* dim */
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.05);
  --line-strong: rgba(255,255,255,.17);
  --gold: #f5c451;         /* trophy / favorites */
  --gold-soft: #ffd980;
  --green: #00e676;        /* electric pitch — the live accent */
  --red: #ff5a6a;
  --us: #4f8cff;
  --shadow: 0 22px 50px -26px rgba(0,0,0,.85);
  --maxw: 1240px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-slab: "Roboto Slab", Georgia, serif;
}
[data-theme="day"] {
  --paper: #f4efe3; --paper-2: #efe8d8; --card: #faf6ec; --ink: #1c1813; --ink-2: #4a4239;
  --muted: #8a7f6e; --muted-2: #b3a890; --line: #d9cfb8; --line-2: #e7dec9; --line-strong: #cbbfa3;
  --gold: #b8893a; --gold-soft: #d8b877; --green: #2f8f4e; --red: #c0443c; --us: #2f6bff;
  --shadow: 0 14px 34px -22px rgba(60, 45, 20, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.paper-grid { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 38px 38px; opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 85%);
}
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
a { color: var(--gold); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }

/* ---------- shared editorial bits ---------- */
.kicker { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.5rem);
  text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.display { font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: .01em; margin: .2rem 0 1rem; line-height: .98; }
.display-note { font-family: var(--font-mono); text-transform: none; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.masthead__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0 .4rem; align-items: flex-start; }
.eyebrow { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 .35rem; }
.eyebrow b { color: var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: .82; letter-spacing: .005em; margin: 0; }
.wordmark span { color: var(--gold); -webkit-text-stroke: 1px var(--ink); }
[data-theme="ink"] .wordmark span { -webkit-text-stroke: 0; }
.squiggle { display: block; width: min(360px, 60vw); height: 14px; color: var(--gold); margin: .2rem 0 .5rem; }
.tagline { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); margin: 0; max-width: 46ch; }
.masthead__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.deco { position: relative; width: 120px; height: 64px; }
.deco-ball { position: absolute; right: 56px; top: 6px; font-size: 2.4rem; filter: grayscale(1) contrast(1.2); }
.spark { position: absolute; color: var(--gold); font-size: 1.1rem; }
.spark--1 { right: 8px; top: 0; color: var(--red); transform: rotate(8deg); }
.spark--2 { right: 0; top: 30px; font-size: 1.5rem; }
.spark--3 { right: 40px; top: 40px; font-size: .8rem; }
.livebar { display: flex; align-items: center; gap: .5rem; }
.livebar__status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1.5px solid var(--line); border-radius: 2px; padding: .3rem .5rem; white-space: nowrap; }
.livebar__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.livebar__status.is-live .dot { background: var(--green); animation: pulse 1.7s infinite; }
.livebar__status.is-error .dot { background: var(--red); }
.livebar__status.is-fetching .dot { background: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,125,59,.5);} 70%{ box-shadow:0 0 0 6px rgba(95,125,59,0);} 100%{box-shadow:0 0 0 0 transparent;} }
.ibtn { font-family: var(--font-ui); width: 30px; height: 30px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 2px; cursor: pointer; font-size: 1rem; line-height: 1; transition: .15s; }
.ibtn:hover { background: var(--ink); color: var(--paper); }
#refreshBtn.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 1.6rem; flex-wrap: wrap; padding-top: .5rem; }
.tab { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem;
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: .5rem 0; position: relative; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 700; }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.tab-underline { height: 2px; background: var(--ink); margin-top: -1px; }

/* ---------- panels / blocks ---------- */
.panel { display: none; padding: 1.6rem 0 2rem; animation: fade .25s ease; }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.block { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.panel > .block:first-of-type, .cols + .block { border-top: 0; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; flex-wrap: wrap; }
.cols { display: grid; gap: 1.6rem; }
.cols--split { grid-template-columns: 1.15fr .85fr; }

/* ---------- bracket ---------- */
.bracket-scroll { overflow-x: auto; padding-bottom: .5rem; }
.ed-bracket { display: flex; gap: 1.5rem; min-width: max-content; font-family: var(--font-mono); font-size: .7rem; }
.br-col { display: flex; flex-direction: column; justify-content: space-around; gap: .4rem; min-width: 120px; }
.br-col__h { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: .3rem; }
.br-slot { border: 1.5px solid var(--line); border-left: 3px solid var(--slotc, var(--line)); background: var(--card);
  padding: .28rem .45rem; display: flex; justify-content: space-between; gap: .4rem; min-height: 26px; align-items: center; }
.br-slot b { font-weight: 700; }
.br-slot .s { color: var(--muted); }
.br-champ { border: 2px solid var(--gold); text-align: center; padding: .6rem; background: color-mix(in srgb, var(--gold) 12%, var(--card)); }
.br-champ .trophy { font-size: 1.6rem; }
.br-champ .venue { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); margin-top: .2rem; }

/* ---------- predictor ---------- */
.pred-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pred-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pbtn { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); padding: .45rem .8rem; border-radius: 2px; cursor: pointer; transition: .15s; }
.pbtn:hover { background: var(--gold); border-color: var(--gold); color: #1c1813; }
.pbtn--ghost { background: transparent; color: var(--ink); }
.pbtn--ghost:hover { background: transparent; border-color: var(--red); color: var(--red); }
.pred-champ { margin-bottom: 1.2rem; }
.champ-card { display: flex; align-items: center; gap: 1rem; border: 2px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--card)); padding: .9rem 1.2rem; border-radius: 4px; }
.champ-card--empty { border-style: dashed; border-color: var(--line); background: var(--card); }
.champ-trophy { font-size: 2.4rem; }
.champ-l { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.champ-name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1; border-bottom: 4px solid var(--gold); display: inline-block; }
.champ-name--tbd { color: var(--muted); border-bottom-color: var(--line); }
.pred-bracket { gap: 1.1rem; }
.pred-col { min-width: 150px; }
.pmatch { border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: .35rem; background: var(--card); }
.pmatch--final { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(184,137,58,.35); }
.pslot { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .45rem; padding: .35rem .5rem; cursor: pointer; border-top: 1px solid var(--line-2); transition: background .12s; font-family: var(--font-slab); }
.pslot:first-child { border-top: 0; }
.pslot:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.pslot--tbd { color: var(--muted-2); font-family: var(--font-mono); font-size: .68rem; cursor: default; }
.pslot--tbd:hover { background: transparent; }
.pslot .pc { font-family: var(--font-mono); font-size: .56rem; font-weight: 700; color: #fff; padding: .12rem 0; border-radius: 3px; text-align: center; }
.pslot .pn { font-weight: 700; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pslot .psd { font-family: var(--font-mono); font-size: .54rem; color: var(--muted); }
.pslot.won { background: color-mix(in srgb, var(--green) 16%, transparent); box-shadow: inset 3px 0 0 var(--green); }
.pslot.won .pn { color: var(--ink); }
.pslot.won .psd::after { content: " ✓"; color: var(--green); font-weight: 700; }
.pslot.dim { opacity: .42; }
.pslot.dim .pn { text-decoration: line-through; }

/* ---------- host map ---------- */
.hostmap { height: 560px; border: 1.5px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--card); }
.leaflet-container { background: var(--paper-2); font-family: var(--font-mono); }
.host-pin { background: var(--pinc, var(--gold)); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.hostmap-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: .4rem; }
.hostmap-fallback .hf { border: 1px solid var(--line); padding: .4rem .55rem; background: var(--card); }
.hostmap-fallback .hf b { display: block; font-family: var(--font-slab); }
.hostmap-fallback .hf span { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }

/* ---------- group cards ---------- */
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gcard { border: 1.5px solid var(--gc, var(--ink)); border-radius: 3px; background: var(--card); overflow: hidden; }
.gcard__h { background: var(--gc); color: #fff; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .04em; padding: .3rem .6rem; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.gcard__h .gl { font-family: var(--font-mono); font-size: .6rem; font-weight: 700; opacity: .85; }
.gcard__b { padding: .35rem .2rem; }
.gteam { display: grid; grid-template-columns: 1.1ch 22px 1fr auto; align-items: center; gap: .5rem; padding: .26rem .55rem; font-size: .86rem; border-top: 1px solid var(--line-2); }
.gcard__b .gteam:first-child { border-top: 0; }
.gteam .gr { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.gteam .gn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gteam .gp { font-family: var(--font-mono); font-weight: 700; font-size: .82rem; }
.gteam.qual { background: color-mix(in srgb, var(--green) 10%, transparent); }
.gteam.live-row { background: color-mix(in srgb, var(--red) 9%, transparent); }
.gteam img.flag, .flag { width: 22px; height: 15px; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.flag-fallback { width: 22px; height: 15px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .52rem; color:#fff; font-weight: 700; }

/* ---------- schedule timeline ---------- */
.sched { display: flex; flex-direction: column; gap: .2rem; }
.sched-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: .8rem; padding: .25rem 0; border-top: 1px dotted var(--line); }
.sched-row.today { background: color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 3px; }
.sched-row .sd { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); }
.sched-row .sd .tg { display: inline-block; background: var(--red); color: #fff; font-size: .54rem; padding: .05rem .25rem; border-radius: 2px; margin-right: .3rem; vertical-align: middle; }
.sched-pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.spill { font-family: var(--font-mono); font-size: .6rem; font-weight: 700; color: #fff; padding: .12rem .4rem; border-radius: 2px; letter-spacing: .03em; }

/* ---------- rank chart (lollipop) ---------- */
.rankchart { columns: 2; column-gap: 2.5rem; }
@media (max-width: 760px){ .rankchart { columns: 1; } }
.rrow { display: grid; grid-template-columns: 2.4ch 1fr 2.6ch; align-items: center; gap: .5rem; padding: .12rem 0; break-inside: avoid; font-family: var(--font-mono); font-size: .72rem; }
.rrow .rc { color: var(--muted); }
.rrow .rbar { position: relative; height: 8px; }
.rrow .rbar::before { content: ""; position: absolute; left: 0; right: 4%; top: 50%; height: 1.5px; background: var(--line); transform: translateY(-50%); }
.rrow .rbar i { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.rrow .rbar b { position: absolute; top: 50%; left: 4px; transform: translateY(-50%); font-family: var(--font-slab); font-weight: 700; font-size: .72rem; background: var(--paper); padding-right: .3rem; }
.rrow .rn { text-align: right; font-weight: 700; }

/* ---------- today: kpis ---------- */
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.day-title { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.day-step { display: flex; gap: .4rem; font-family: var(--font-mono); font-size: .72rem; }
.day-step button { font-family: var(--font-mono); background: none; border: 1.5px solid var(--line); color: var(--ink-2); cursor: pointer; padding: .2rem .5rem; border-radius: 2px; font-size: .72rem; }
.day-step button.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.kpi .kv { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.kpi .kl { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: .3rem; }
.kpi .ks { font-family: var(--font-mono); font-size: .68rem; color: var(--gold); margin-top: .15rem; }
.kpi .dots { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.kpi .gd { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-mono); font-size: .8rem; }
.kpi .gd i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- fixtures list ---------- */
.fixtures-list { display: flex; flex-direction: column; }
.fxc { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; padding: .9rem .2rem; border-top: 1px solid var(--line); }
.fxc:first-child { border-top: 0; }
.fxc.is-live { background: color-mix(in srgb, var(--red) 7%, transparent); }
.fxc__t { font-family: var(--font-slab); font-weight: 800; font-size: 1.1rem; }
.fxc__t small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .62rem; color: var(--muted); letter-spacing: .06em; }
.fxc__m { min-width: 0; }
.fxc__teams { font-family: var(--font-slab); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fxc__teams .cc { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); font-weight: 400; }
.fxc__teams .sc { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; background: var(--ink); color: var(--paper); padding: 0 .35rem; border-radius: 2px; }
.fxc__teams .vs { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; }
.fxc__sub { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); margin-top: .25rem; display: flex; gap: .5rem; align-items: center; }
.fxc__sub .gchip { display: inline-flex; align-items: center; gap: .3rem; }
.fxc__sub .gchip i { width: 8px; height: 8px; border-radius: 50%; }
.fxc__sub .stat { font-weight: 700; color: var(--ink-2); }
.fxc__sub .stat.live { color: var(--red); }
.fxc__v { text-align: right; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }
.fxc__v b { display: block; font-family: var(--font-slab); color: var(--ink); font-size: .8rem; }
.fxc__cd { font-family: var(--font-mono); font-weight: 700; color: var(--gold); }

/* ---------- day at a glance ---------- */
.glance { position: relative; border: 1.5px solid var(--line); border-radius: 3px; padding: 2.2rem 1rem 1.3rem; background: var(--card); overflow: hidden; }
.glance .axis { position: relative; height: 1px; background: var(--line); margin-top: .4rem; }
.glance .hr { position: absolute; top: -1.6rem; transform: translateX(-50%); font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
.glance .gpill { position: absolute; transform: translateY(-50%); height: 22px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700; color: #fff; border-radius: 3px; padding: 0 .3rem; white-space: nowrap; overflow: hidden; }
.glance .now { position: absolute; top: -1.7rem; bottom: -.4rem; width: 2px; background: var(--red); }
.glance .now b { position: absolute; top: -1.1rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .58rem; color: var(--red); white-space: nowrap; }

/* ---------- field: favorites ---------- */
.favorites { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.fav { border: 1.5px solid var(--line); border-top: 3px solid var(--gold); background: var(--card); padding: 1rem .7rem; text-align: center; position: relative; }
.fav .rank { position: absolute; top: -1px; left: -1px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: .6rem; padding: .1rem .35rem; }
.fav .cc { font-family: var(--font-display); font-size: 1.8rem; }
.fav .nm { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.fav .od { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin-top: .3rem; }
.fav .od small { font-size: 1rem; }
.fav .fi { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); margin-top: .2rem; border: 1px solid var(--line); display: inline-block; padding: .05rem .35rem; }

/* ---------- field: upsets ---------- */
.upsets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.upset { border: 1.5px solid var(--line); background: var(--card); padding: .85rem; }
.upset__row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-family: var(--font-slab); font-weight: 700; }
.upset__row .tag { font-family: var(--font-mono); font-weight: 400; font-size: .56rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.upset .vs { text-align: center; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin: .25rem 0; }
.upset .fi { font-family: var(--font-mono); font-size: .58rem; color: var(--gold); }
.upset__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .5rem; }
.upset__plabel { display: flex; justify-content: space-between; align-items: baseline; margin-top: .55rem; font-family: var(--font-mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.upset__plabel span:last-child { color: var(--red); font-weight: 700; font-size: .8rem; }
.upset__bar { margin-top: .2rem; height: 8px; background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.upset__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, var(--red), var(--red) 4px, color-mix(in srgb,var(--red) 60%, #fff) 4px, color-mix(in srgb,var(--red) 60%, #fff) 8px); }

/* ---------- field: full schedule ---------- */
.fullsched { display: flex; flex-direction: column; gap: 1rem; }
.fs-day__h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  display: flex; justify-content: space-between; border-bottom: 1.5px solid var(--ink); padding-bottom: .25rem; margin-bottom: .3rem; }
.fs-row { display: grid; grid-template-columns: 1fr 220px; gap: 1rem; align-items: center; padding: .4rem 0; border-top: 1px dotted var(--line); }
.fs-row .teams { font-family: var(--font-slab); font-weight: 700; }
.fs-row .teams .cc { font-family: var(--font-mono); font-weight: 400; font-size: .6rem; color: var(--muted); }
.fs-row .teams .sc { font-family: var(--font-mono); font-weight: 700; }
.fs-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; font-family: var(--font-mono); font-size: .64rem; text-align: center; }
.fs-odds div { border: 1px solid var(--line); padding: .15rem; }
.fs-odds div b { display: block; font-size: .8rem; color: var(--ink); }
.fs-odds div.fav b { color: var(--gold); }
.fs-row .gtag { font-family: var(--font-mono); font-size: .58rem; color: var(--muted); }

/* ---------- recap: results archive ---------- */
.results-archive { columns: 3; column-gap: 2rem; }
@media (max-width: 900px){ .results-archive { columns: 2; } }
@media (max-width: 560px){ .results-archive { columns: 1; } }
.ra-day { break-inside: avoid; margin-bottom: 1.1rem; }
.ra-day__h { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .2rem; margin-bottom: .35rem; }
.ra-m { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: baseline; font-family: var(--font-slab); font-size: .82rem; padding: .12rem 0; }
.ra-m .h { text-align: right; } .ra-m .a { text-align: left; }
.ra-m .sc { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.ra-m .w { font-weight: 800; } .ra-m .l { color: var(--muted); }

/* ---------- recap: standings ---------- */
.searchbox input { font-family: var(--font-mono); font-size: .78rem; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  padding: .3rem .6rem; border-radius: 2px; width: 170px; outline: none; }
.standings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stbl { border: 1.5px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--card); }
.stbl__h { background: var(--gc, var(--ink)); color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  padding: .3rem .6rem; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; }
.stbl__h .lv { font-family: var(--font-mono); font-size: .56rem; font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.stbl table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .72rem; }
.stbl th { font-size: .56rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 400; padding: .25rem .15rem; text-align: center; }
.stbl th.tm, .stbl td.tm { text-align: left; padding-left: .55rem; }
.stbl td { padding: .3rem .15rem; text-align: center; border-top: 1px solid var(--line-2); }
.stbl td.pts { font-weight: 700; color: var(--ink); }
.stbl tr.qual td { background: color-mix(in srgb, var(--green) 8%, transparent); }
.stbl tr.qual td.tm { box-shadow: inset 3px 0 0 var(--green); }
.stbl tr.live-row td { background: color-mix(in srgb, var(--red) 8%, transparent); }
.stbl td.tm .nm { font-family: var(--font-slab); font-weight: 700; font-size: .78rem; }
.stbl tr.hit td { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.lvpip { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; animation: pulse 1.5s infinite; }

/* ---------- footer ---------- */
.masthead-foot { border-top: 2px solid var(--ink); margin-top: 2rem; }
.foot-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.2rem 0 .4rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); }
.foot-links { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .4rem 0 1.4rem; border-top: 1px solid var(--line); margin-top: .6rem; }
.foot-links nav { display: flex; gap: 1.3rem; }
.foot-links nav a { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-links nav a:hover { color: var(--gold); }

/* ---------- toasts ---------- */
.toast-host { position: fixed; bottom: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: 92vw; }
.toast { background: var(--ink); color: var(--paper); border-left: 3px solid var(--gold); padding: .6rem .9rem; font-family: var(--font-mono); font-size: .76rem;
  display: flex; gap: .55rem; align-items: center; box-shadow: var(--shadow); animation: tin .3s ease; }
.toast--goal { border-left-color: var(--green); } .toast--ft { border-left-color: var(--gold-soft); }
@keyframes tin { from { opacity: 0; transform: translateX(16px); } }
.toast.out { opacity: 0; transform: translateX(16px); transition: .3s; }
.empty-note { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); padding: .6rem 0; }

/* ===================================================================
   Stadium Night — premium treatments (glow, depth, signature accents)
   ================================================================= */
body {
  background:
    radial-gradient(1100px 620px at 80% -10%, rgba(0,230,118,.10), transparent 60%),
    radial-gradient(950px 600px at 2% 2%, rgba(79,140,255,.13), transparent 55%),
    radial-gradient(760px 520px at 50% 116%, rgba(245,196,81,.07), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, #060912 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
}
.paper-grid {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .7;
  -webkit-mask-image: radial-gradient(circle at 50% 8%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 8%, #000 0%, transparent 72%);
}
/* masthead — soften heavy rule, add a faint pitch-glow line */
.masthead { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 80%, transparent);
  box-shadow: 0 1px 0 rgba(0,230,118,.10), 0 22px 44px -34px #000; }
.wordmark { text-shadow: 0 2px 36px rgba(0,0,0,.55); }
.wordmark span { -webkit-text-stroke: 0; text-shadow: 0 0 26px rgba(245,196,81,.5); }
.squiggle { filter: drop-shadow(0 0 9px rgba(245,196,81,.55)); }
.tab-underline { background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.deco-ball { filter: drop-shadow(0 0 12px rgba(255,255,255,.18)); }
.eyebrow { color: var(--green); }
.eyebrow b { color: var(--ink); }

/* LIVE = glowing electric green everywhere */
.livebar__status.is-live .dot { background: var(--green); animation: glowpulse 1.7s infinite; }
@keyframes glowpulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,230,118,.55), 0 0 10px rgba(0,230,118,.8); }
  70%  { box-shadow: 0 0 0 7px rgba(0,230,118,0), 0 0 10px rgba(0,230,118,.4); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 10px rgba(0,230,118,.5); }
}
.livebar__status.is-live { border-color: rgba(0,230,118,.4); color: var(--ink-2); }
.lvpip, .row-live-pip { background: var(--green); box-shadow: 0 0 8px rgba(0,230,118,.85); }
.gp-live, .grp-note, .fxc__sub .stat.live { color: var(--green); }
.fxc.is-live { background: rgba(0,230,118,.07); box-shadow: inset 3px 0 0 var(--green); }
.stbl tr.live-row td, .gteam.live-row { background: rgba(0,230,118,.09); }
.pslot.won { background: rgba(0,230,118,.16); box-shadow: inset 3px 0 0 var(--green); }
.pslot.won .psd::after { color: var(--green); }

/* scoreboard-style score chips */
.fxc__teams .sc { background: linear-gradient(180deg,#1c2845,#111a30); color: #fff; border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 2px 8px rgba(0,0,0,.4); }

/* depth + glow on surfaces (large cards only — keep raster cost sane) */
.gcard, .stbl, .fav, .upset, .glance, .hostmap, .champ-card { box-shadow: var(--shadow); }
.fav { background: linear-gradient(180deg, #18223c, #10182b); }
.fav .od, .kpi .kv, .champ-name { text-shadow: 0 0 22px rgba(245,196,81,.4); }
.br-champ { background: linear-gradient(180deg, rgba(245,196,81,.14), rgba(245,196,81,.04)); }
.champ-card { background: linear-gradient(180deg, rgba(245,196,81,.16), rgba(20,29,51,.6)); }
.stbl tr.qual td.tm { box-shadow: inset 3px 0 0 var(--green); }
.group-cards .qual, .gteam.qual { background: rgba(0,230,118,.07); }

/* dark map canvas */
.leaflet-container { background: #0a0f1c; }
.host-pin { box-shadow: 0 0 10px rgba(255,255,255,.35), 0 1px 4px rgba(0,0,0,.6); }

/* primary buttons get a stadium feel */
.pbtn { background: linear-gradient(180deg,#1d2742,#141d33); color: var(--ink); border-color: var(--line-strong); }
.pbtn:hover { background: var(--green); border-color: var(--green); color: #06210f; box-shadow: 0 0 18px rgba(0,230,118,.5); }
.ibtn:hover { box-shadow: 0 0 14px rgba(255,255,255,.12); }

/* ===================================================================
   Live Center — the always-on "right now" glance
   ================================================================= */
.livecenter { margin-top: 1.3rem; }
.livecenter:empty { display: none; }
.lc-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .75rem; }
.lc-head .pip { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: glowpulse 1.5s infinite; }
.lc-head .pip.off { background: var(--muted-2); box-shadow: none; animation: none; }
.lc-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.45rem); letter-spacing: .02em; }
.lc-head .sub { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); margin-left: auto; text-transform: uppercase; letter-spacing: .08em; }
.lc-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.lc-card { position: relative; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 1.1rem 1.2rem; background: linear-gradient(155deg, #17223e, #0d1322); cursor: pointer; transition: transform .15s var(--ease), border-color .15s, box-shadow .2s; overflow: hidden; }
.lc-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.lc-card.live { border-color: rgba(0,230,118,.45); box-shadow: 0 0 34px -10px rgba(0,230,118,.5); }
.lc-card.live:hover { border-color: var(--green); }
.lc-card.live::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 150px at 50% -30%, rgba(0,230,118,.16), transparent 72%); pointer-events: none; }
.lc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lc-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .55rem; border-radius: 99px; font-weight: 700; letter-spacing: .06em; }
.lc-badge.live { background: rgba(0,230,118,.16); color: var(--green); }
.lc-badge.soft { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.lc-badge .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1s steps(2) infinite; }
.lc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; }
.lc-team { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; min-width: 0; }
.lc-code { width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: #fff; font-size: .95rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.lc-nm { font-family: var(--font-slab); font-weight: 700; font-size: .9rem; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-score { text-align: center; min-width: 100px; }
.lc-score .sc { font-family: var(--font-display); font-size: 2.9rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lc-score .sc .x { color: var(--muted-2); margin: 0 .08rem; }
.lc-score .sc.flash { animation: scoreflash 1s ease; }
@keyframes scoreflash { 0% { color: var(--green); text-shadow: 0 0 26px var(--green); } 100% { color: inherit; text-shadow: none; } }
.lc-score .mn { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; color: var(--green); margin-top: .25rem; letter-spacing: .04em; }
.lc-score .cd { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.lc-score .vs { font-family: var(--font-mono); color: var(--muted); }
.lc-foot { margin-top: .95rem; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .65rem; color: var(--muted); }
.lc-foot .pick { color: var(--gold); }

/* ===================================================================
   Modal (match / team detail)
   ================================================================= */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,7,14,.72); backdrop-filter: blur(5px); }
.modal__card { position: relative; width: min(580px, 94vw); max-height: 88vh; overflow: auto; background: linear-gradient(160deg, #15203a, #0b1120); border: 1.5px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem; animation: modalin .25s var(--ease); }
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal__x { position: absolute; top: .75rem; right: .85rem; width: 32px; height: 32px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: 9px; cursor: pointer; font-size: 1.25rem; line-height: 1; z-index: 2; }
.modal__x:hover { border-color: var(--red); color: var(--red); }
.md-tag { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; }
.md-tag .live { color: var(--green); }
.md-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; margin: 1.1rem 0 .4rem; }
.md-side { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center; }
.md-side .code { width: 58px; height: 58px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: #fff; font-size: 1.1rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.md-side .nm { font-family: var(--font-slab); font-weight: 800; font-size: 1.02rem; }
.md-side .fifa { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
.md-big { font-family: var(--font-display); font-size: 3.1rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.md-big .x { color: var(--muted-2); margin: 0 .1rem; }
.md-big small { display: block; font-family: var(--font-mono); font-size: .66rem; color: var(--green); letter-spacing: .06em; margin-top: .3rem; }
.md-big.up small { color: var(--gold); }
.md-meta { display: flex; flex-direction: column; gap: .35rem; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.md-meta .row { display: flex; justify-content: space-between; gap: 1rem; }
.md-meta .row span:first-child { color: var(--muted); }
.md-form { display: inline-flex; gap: 3px; }
.md-form i { width: 17px; height: 17px; border-radius: 4px; font-size: .58rem; font-weight: 800; display: grid; place-items: center; color: #fff; font-style: normal; }
.md-form .W { background: var(--green); color: #06210f; } .md-form .D { background: var(--muted-2); } .md-form .L { background: var(--red); }
.md-h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; margin: 1.2rem 0 .5rem; letter-spacing: .02em; }
.md-list { display: flex; flex-direction: column; gap: .3rem; }
.md-li { display: grid; grid-template-columns: 64px 1fr auto; gap: .6rem; align-items: center; font-family: var(--font-slab); font-size: .82rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.md-li .d { font-family: var(--font-mono); font-size: .64rem; color: var(--muted); }
.md-li .sc { font-family: var(--font-mono); font-weight: 700; }
.md-li.win .sc { color: var(--green); } .md-li.loss .sc { color: var(--muted); }
.tappable { cursor: pointer; }
.tappable:hover { outline: 1px solid var(--line-strong); }

/* ===================================================================
   Watch hub
   ================================================================= */
.watch-free { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wf { border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; padding: .9rem 1rem; background: var(--card); }
.wf h4 { font-family: var(--font-slab); font-size: .95rem; margin: 0 0 .35rem; }
.wf p { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin: 0; line-height: 1.55; }
.watch-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wcard { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; background: var(--card); }
.wcard__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; }
.wcard__h b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; }
.wcard .lang { font-family: var(--font-mono); font-size: .54rem; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 99px; }
.wcard .lang.en { background: rgba(79,140,255,.18); color: var(--us); }
.wcard .lang.es { background: rgba(245,196,81,.18); color: var(--gold); }
.wcard .cov { font-family: var(--font-slab); font-size: .8rem; margin: 0 0 .35rem; line-height: 1.4; }
.wcard .cost { font-family: var(--font-mono); font-size: .68rem; color: var(--green); margin: 0; }
.watch-stream { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.wstream { border: 1px solid var(--line); border-radius: 12px; padding: .95rem 1.05rem; background: linear-gradient(180deg, #15203a, #0e1424); }
.ws-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ws-top b { font-family: var(--font-display); font-size: 1.2rem; }
.ws-ch { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-2); margin-top: .45rem; }
.ws-trial { font-family: var(--font-mono); font-size: .66rem; color: var(--green); margin-top: .2rem; }
.ws-note { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); margin: .55rem 0 0; line-height: 1.55; }
.aff-btn { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: .42rem .7rem; border-radius: 8px; background: var(--gold); color: #1c1813; white-space: nowrap; transition: .15s; }
.aff-btn:hover { background: var(--gold-soft); box-shadow: 0 0 16px rgba(245,196,81,.45); }
.watch-vpn { display: flex; gap: .6rem; margin-top: .85rem; flex-wrap: wrap; }
.watch-faq { display: flex; flex-direction: column; gap: .5rem; }
.wfaq { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 .95rem; }
.wfaq summary { font-family: var(--font-slab); font-weight: 700; font-size: .9rem; cursor: pointer; padding: .7rem 0; list-style: none; }
.wfaq summary::-webkit-details-marker { display: none; }
.wfaq summary::before { content: "+ "; color: var(--gold); font-family: var(--font-mono); }
.wfaq[open] summary::before { content: "– "; }
.wfaq p { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); line-height: 1.6; margin: 0 0 .75rem; }
.watch-disc { font-family: var(--font-mono); font-size: .63rem; color: var(--muted-2); margin-top: 1.6rem; line-height: 1.6; max-width: 80ch; }

/* ===================================================================
   Legal / utility standalone pages
   ================================================================= */
.legal-wrap { width: min(100% - 2.4rem, 760px); margin: 0 auto; padding-bottom: 3rem; }
.legal-mast { border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin-bottom: 2.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.legal-mast a.home { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.legal-mast a.home span { color: var(--gold); }
.legal-mast nav { display: flex; gap: 1.1rem; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; flex-wrap: wrap; }
.legal-mast nav a { color: var(--muted); }
.legal-mast nav a:hover { color: var(--ink); }
.legal h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .3rem; }
.legal .updated { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin: 0 0 1.6rem; }
.legal h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; margin: 1.9rem 0 .6rem; letter-spacing: .02em; }
.legal p, .legal li { font-family: var(--font-ui); font-size: .94rem; color: var(--ink-2); line-height: 1.75; }
.legal a { color: var(--gold); }
.legal ul { padding-left: 1.2rem; margin: .4rem 0; }
.legal li { margin: .3rem 0; }
.legal .note { font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2); border-left: 2px solid var(--line); padding-left: .8rem; margin-top: 2rem; line-height: 1.6; }

/* ===================================================================
   The Format — "Road to the Final" roadmap + projected qualifiers
   ================================================================= */
#bracket.format { display: block; }
.rd-road { display: flex; align-items: stretch; gap: .35rem; min-width: max-content; padding-bottom: .4rem; }
.rd { flex: 1 0 116px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 1rem .7rem; text-align: center; box-shadow: var(--shadow); }
.rd--final { border-color: var(--gold); background: linear-gradient(180deg, rgba(245,196,81,.15), rgba(20,29,51,.55)); }
.rd-n { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--gold); }
.rd-tr { font-size: 1.9rem; line-height: 1; }
.rd-t { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .4rem; color: var(--ink); }
.rd-d { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); margin-top: .25rem; }
.rd-v { font-family: var(--font-mono); font-size: .58rem; color: var(--gold); margin-top: .25rem; }
.rd-arr { align-self: center; color: var(--muted-2); font-family: var(--font-mono); font-size: 1rem; flex: 0 0 auto; }
.ql-head { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .6rem; }
.ql-grid { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
.ql { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: .35rem .55rem; }
.ql-c { width: 30px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .56rem; font-weight: 700; color: #fff; }
.ql-n { font-family: var(--font-slab); font-weight: 700; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-s { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }

/* ===================================================================
   Country flags (with group-coloured code fallback)
   ================================================================= */
.flag { object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); background: var(--paper-2); display: inline-block; vertical-align: middle; flex: none; }
.flag-fb { display: inline-grid; place-items: center; color: #fff; font-family: var(--font-mono); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.flag-sm { width: 27px; height: 17px; } .flag-sm.flag-fb { font-size: .54rem; letter-spacing: .02em; }
.flag-md { width: 34px; height: 22px; } .flag-md.flag-fb { font-size: .6rem; }
.flag-lg { width: 48px; height: 32px; border-radius: 4px; } .flag-lg.flag-fb { font-size: .82rem; }
.flag-xl { width: 62px; height: 42px; border-radius: 5px; } .flag-xl.flag-fb { font-size: 1rem; }
.lc-cc { font-family: var(--font-mono); font-size: .56rem; color: var(--muted); letter-spacing: .08em; }
.stbl td.tm { display: flex; align-items: center; gap: .4rem; }
.rk2 { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); min-width: 1.1ch; flex: none; }

/* goal celebration — brief green pulse on a live goal */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; box-shadow: inset 0 0 0 rgba(0,230,118,0); }
body.goal-flash::after { animation: goalflash 1.3s ease; }
@keyframes goalflash { 0% { box-shadow: inset 0 0 0 rgba(0,230,118,0); } 22% { box-shadow: inset 0 0 150px rgba(0,230,118,.45); } 100% { box-shadow: inset 0 0 0 rgba(0,230,118,0); } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .cols--split { grid-template-columns: 1fr; }
  .favorites { grid-template-columns: repeat(2, 1fr); }
  .upsets { grid-template-columns: 1fr; }
  .standings-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; gap: 1rem; }
  .masthead__aside { display: none; }
  .fs-row { grid-template-columns: 1fr; gap: .4rem; }
  .hostmap { height: 400px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; } }

/* ---------- keyboard focus visibility (a11y) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible,
.tab:focus-visible, .pslot:focus-visible, .tappable:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px;
}
.tab:focus-visible { outline-offset: 5px; }
.panel:focus-visible, .modal__card:focus-visible { outline: none; }
