/* ============================================================
   LHV sweepstake × World Cup 2026 — "turf" theme.
   Loads after lhv/colors_and_type.css and borrows its type scale,
   weights and spekter pastels. Everything else is pitch: mown
   stripes (the LHV teeth, reseeded as grass), chalk lines, deep
   stadium greens, cream wall-chart paper.
   ============================================================ */

:root {
  --pitch-deep: #05200D;
  --pitch-dark: #093114;
  --pitch:      #0E471F;
  --pitch-mid:  #166028;
  --pitch-loud: #2E8B47;
  --chalk:      #F7F6EE;
  --chalk-dim:  rgba(247, 246, 238, 0.62);
  --paper:      #F3EFE2;
  --card:       #FFFDF4;
  --ink:        #161A12;
  --ink-2:      #4E544A;
  --ink-3:      #7C8276;
  --line:       #E0DAC6;
  --hairline:   #EFEADA;
  --amber:      #EBCB6C;

  /* "Highlight my teams" spotlight — its own lilac, deliberately outside the
     result palette (green=clinched, amber=leading, blue=picks) so a personal
     glow never reads as a fact. --hl-ink is the (still-legible) glowing text,
     --hl the ✦ marker, --hl-glow the halo. Remapped for floodlights below. */
  --hl-ink:  #6A4B88;
  --hl:      #8E73A0;
  --hl-glow: #B49DC4;

  --stripes: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 0 92px, rgba(255, 255, 255, 0) 92px 184px);
  --turf: linear-gradient(172deg, #1B6E34 0%, #0F4A21 52%, #06270F 100%);
}

/* ---------- night mode: floodlights on ----------
   The wall chart goes home and the evening kick-off begins: paper and
   cards drop to near-black green, ink turns chalk, and the turf bands
   keep their daytime brightness — a lit pitch in a dark stadium.
   Spekter pastels are remapped in place: 100s become dark tints, 300s
   muted borders, 500s lift to stay readable as text on dark. */
html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;

  --paper: #0D130E;
  --card:  #151D16;
  --ink:   #EDEFE6;
  --ink-2: #AEB6A6;
  --ink-3: #7E8778;
  --line:  #2A332A;
  --hairline: #232B23;

  --pitch-mid:  #57B873; /* links & final-match accents need lift on dark */
  --pitch-loud: #38A156;

  --green-100: #1A2C1C; --green-300: #34563A; --green-500: #93C987;
  --yellow-100: #2B2410; --yellow-300: #5A4A1E; --yellow-500: #E8C766;
  --blue-100: #15222D; --blue-300: #2E4D67; --blue-500: #92BBDC;
  --pink-100: #301D16;
  --lilac-100: #251E2B;
  --sand-100: #282316;

  /* spotlight lifts on dark — brighter lilac so the glow reads on near-black */
  --hl-ink:  #D9C6E7;
  --hl:      #C7AEDA;
  --hl-glow: #A985C2;

  /* foundation semantics (colors_and_type.css) — bare <p>/<small>/.meta
     copy resolves through --fg*, which otherwise stays ink-on-light */
  --fg1: var(--ink);
  --fg2: var(--ink-2);
  --fg3: var(--ink-3);
  --bg: var(--paper);
  --bg-muted: #1F2920;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.view { flex: 1; }
/* Route changes script-focus the view's first heading so SPA nav is announced
   (focusView in app.js). A tabindex="-1" target can't be Tab-reached, so the
   browser's default focus ring on it reads as a stray "selected" outline. */
.view:focus, .view [tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: inherit; font-kerning: normal; text-rendering: optimizeLegibility; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.wrap--wide { max-width: 1400px; }

/* ---------- top bar: the giant sticky nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 clamp(16px, 3vw, 40px);
  min-height: 76px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 72px, transparent 72px 144px),
    linear-gradient(180deg, #0B3A18 0%, #07290F 100%);
  color: var(--chalk);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--chalk);
  text-decoration: none;
  flex: none;
}
.brand__mark { height: 20px; width: auto; transform: translateY(2px); }
.brand__x { font-weight: var(--fw-thin); font-size: 20px; opacity: .65; }
.brand__name {
  font-size: 19px;
  font-weight: var(--fw-light);
  letter-spacing: .01em;
}
.brand__name em { font-style: normal; font-weight: var(--fw-bold); color: var(--amber); }

.topnav {
  display: flex;
  align-items: stretch;
  gap: clamp(4px, 1.2vw, 18px);
  align-self: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(8px, 1vw, 14px);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: var(--fw-regular);
  color: var(--chalk-dim);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  border-top: 4px solid transparent;
  transition: color var(--dur) var(--ease-out);
  white-space: nowrap;
}
.topnav a:hover { color: var(--chalk); opacity: 1; }
.topnav a.is-active {
  color: var(--chalk);
  font-weight: var(--fw-bold);
  border-bottom-color: var(--chalk);
}

.nav-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(247, 246, 238, 0.25);
  border-radius: 4px;
  color: var(--chalk);
  font-size: 14px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav-live b { font-weight: var(--fw-bold); }
.nav-live .clock { color: var(--amber); }

/* ---------- theme toggle (floodlights) ---------- */
.theme-toggle {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(247, 246, 238, 0.25);
  border-radius: 4px;
  color: var(--chalk);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { background: rgba(247, 246, 238, 0.12); }
.theme-toggle svg { width: 19px; height: 19px; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-flood { display: none; }
/* the live pill owns the auto margin whenever it's showing */
.nav-live:not([hidden]) + .theme-toggle { margin-left: 0; }

.grass-edge {
  height: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 46px, transparent 46px 92px),
    linear-gradient(180deg, #2E8B47, #17602C);
}

/* ---------- pulse dot ---------- */
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #7BE495;
  flex: none;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(123, 228, 149, .55); }
  70% { box-shadow: 0 0 0 8px rgba(123, 228, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 228, 149, 0); }
}

/* ---------- home hero: the pitch ---------- */
.pitch-hero {
  position: relative;
  overflow: hidden;
  background: var(--stripes), var(--turf);
  color: var(--chalk);
  padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
}
.pitch-hero .chalk-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pitch-hero__inner { position: relative; }
.kicker-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  font-weight: var(--fw-regular);
}
.kicker-line::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--chalk-dim);
}
.pitch-hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(46px, 8.5vw, 108px);
  font-weight: var(--fw-thin);
  line-height: .94;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.pitch-hero h1 b { font-weight: var(--fw-bold); }
.pitch-hero .sub {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: var(--fw-regular);
  color: var(--chalk-dim);
  max-width: 56ch;
  margin: 0 0 30px;
}

/* scoreboard chips (hero + today strip) */
.scorechip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(2, 18, 7, 0.55);
  border: 1px solid rgba(247, 246, 238, 0.22);
  border-radius: 6px;
  color: var(--chalk);
  font-size: 15px;
  backdrop-filter: blur(2px);
}
.scorechip b { font-weight: var(--fw-bold); }
.scorechip .when { color: var(--amber); font-variant-numeric: tabular-nums; }
.scorechip .chip-holders { color: var(--chalk-dim); font-size: 12.5px; white-space: nowrap; }
.flag { height: 17px; width: 26px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none; }
.flag--lg { height: 22px; width: 33px; }
.flag-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  height: 17px; min-width: 26px; padding-inline: 2px;
  background: rgba(255,255,255,.16); color: currentColor;
  font-size: 9px; font-weight: var(--fw-bold);
  border-radius: 2px; flex: none;
}
.asof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--chalk-dim);
}
.asof::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7BE495; }
.asof.is-stale { color: var(--amber); }
.asof.is-stale::before { background: var(--amber); }

/* ---------- view header band (every non-home route) ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--stripes), var(--turf);
  color: var(--chalk);
  padding: clamp(30px, 4.5vw, 56px) 0;
}
.band .chalk-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; }
.band h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: var(--fw-thin);
  letter-spacing: -0.03em;
  line-height: .95;
}
.band h2 b { font-weight: var(--fw-bold); }
.band .band__note { font-size: 14px; color: var(--chalk-dim); margin: 0 0 6px; max-width: 52ch; }

/* ---------- shared content area ---------- */
.content { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 72px); }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(22, 26, 18, 0.05);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .02em;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tag--solid { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.tag--live { background: var(--green-100); color: var(--green-500); border-color: var(--green-300); }
.tag--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); animation: pulse 2s var(--ease-out) infinite; }
.tag--warn { background: var(--yellow-100); color: var(--yellow-500); border-color: var(--yellow-300); }
.tag--out { background: transparent; color: var(--ink-3); }
.tag--info { background: var(--blue-100); color: var(--blue-500); border-color: var(--blue-300); }
.tag--won { background: var(--green-500); color: var(--chalk); border-color: var(--green-500); }
/* night mode: inverse tags sit light-on-dark, so their text flips to paper */
html[data-theme="dark"] .tag--solid,
html[data-theme="dark"] .tag--won { color: var(--paper); }

/* ---------- prize boards ---------- */
.prize-card { display: flex; flex-direction: column; overflow: hidden; }
.prize-card__band { height: 8px; background: var(--accent, var(--pitch-loud)); }
.prize-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 0;
}
.prize-card__head h3 { margin: 0; font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.prize-card__head .why { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.prize-amount {
  font-size: 46px;
  font-weight: var(--fw-thin);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.prize-amount b { font-weight: var(--fw-bold); font-size: 0.6em; vertical-align: 0.32em; }
.prize-card__leader {
  margin: 14px 20px 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent-soft, var(--paper)) 55%, var(--card));
  border-left: 4px solid var(--accent, var(--pitch-loud));
  border-radius: 4px;
}
.prize-card__leader .lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 2px; }
.prize-card__leader .who { font-size: 19px; font-weight: var(--fw-bold); margin: 0; line-height: 1.2; }
.prize-rows { padding: 10px 20px 6px; }
.prize-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
}
.prize-row:first-child { border-top: 0; }
.prize-row .who { flex: 1 1 auto; min-width: 0; }
.prize-row .who .name { font-weight: var(--fw-bold); display: block; line-height: 1.25; }
.prize-row .who .sub { color: var(--ink-3); font-size: 11.5px; display: block; }
.prize-row .metric { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; font-size: 16px; }
.prize-row.is-out .who .name { color: var(--ink-3); font-weight: var(--fw-regular); }
.prize-card__foot { margin-top: auto; padding: 8px 20px 16px; }
.prize-card__foot .note { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0; }
.linkish {
  background: none; border: none; padding: 0;
  font: inherit; font-size: 12.5px; font-weight: var(--fw-bold);
  color: var(--pitch-mid); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* home: compact prize tiles */
.prize-tile {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 18px;
  border-top: 6px solid var(--accent, var(--pitch-loud));
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.prize-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22,26,18,.09); opacity: 1; }
.prize-tile .t { font-size: 15px; font-weight: var(--fw-bold); margin: 0; }
.prize-tile .amt { font-size: 30px; font-weight: var(--fw-thin); letter-spacing: -0.02em; }
.prize-tile .who { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 0; min-height: 2.4em; }

/* ---------- entries wall ---------- */
.entry-card { padding: 16px 18px 14px; border-top: 6px solid var(--accent, var(--pitch-loud)); }
.entry-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.entry-team { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.entry-team .tname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: var(--fw-regular); }
.entry-team .where { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.entry-team.is-out .tname { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.entry-card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 8px; }

/* ---------- groups ---------- */
.group-card { overflow: hidden; }
.group-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #14552A, #0E4520);
  color: var(--chalk);
}
.group-card__head h3 { margin: 0; font-size: 17px; font-weight: var(--fw-bold); }
.group-card__head .meta { font-size: 11px; color: var(--chalk-dim); }
.gtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gtable th {
  text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: var(--fw-bold); padding: 9px 8px 6px;
  border-bottom: 1px solid var(--line);
}
.gtable td { padding: 8px; border-bottom: 1px solid var(--hairline); }
.gtable tr:last-child td { border-bottom: 0; }
.gtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.gtable .pts { font-weight: var(--fw-bold); }
.gtable .team-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.gtable th:first-child, .gtable td:first-child { padding-left: 16px; }
.gtable th:last-child, .gtable td:last-child { padding-right: 16px; }
.gtable tr.is-advancing td:first-child { box-shadow: inset 4px 0 0 var(--pitch-loud); }
.gtable tr.is-live td { background: var(--yellow-100); }

/* "As it stands" live tables: a brighter pill on the dark header, a strip of
   the in-play scores being folded in, and ▲▼ carets showing live movement. */
.group-card__head .tag--live {
  background: rgba(247, 246, 238, .16); color: #EAFBEF;
  border-color: rgba(234, 251, 239, .4);
}
.group-card__head .tag--live::before { background: #7BE495; }
.group-card.is-live-table { box-shadow: 0 0 0 1px var(--yellow-300); }
.group-live-strip {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 8px 16px; background: var(--yellow-100);
  border-bottom: 1px solid var(--line);
}
.glm {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: var(--fw-bold); color: var(--ink);
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.glm .pulse { width: 7px; height: 7px; }
.glm-clock { color: var(--ink-3); font-weight: var(--fw-regular); }
.gtable .mv { font-size: 9px; line-height: 1; margin-left: 5px; vertical-align: middle; }
.gtable td.pos .mv { margin-left: 3px; }
.mv-up { color: var(--pitch-loud); }
.mv-down { color: #C2533F; }

/* clinch badges: gold "won" (group sealed), green "through" (last-32 locked),
   grey "out" (eliminated — can't reach the last 32 by any route) */
.gtable .team-cell .gname { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gbadge {
  flex: none; font-size: 9px; font-weight: var(--fw-bold);
  letter-spacing: .07em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; line-height: 1.5;
}
.gbadge--won { background: var(--amber); color: #2A2206; }
.gbadge--through { background: var(--green-100); color: var(--green-500); border: 1px solid var(--green-300); }
.gbadge--out { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.gtable tr.is-won td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
.gtable tr.is-out td:first-child { box-shadow: inset 4px 0 0 #C2533F; }
.gtable tr.is-out .gname { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }

/* ---------- split screen: simultaneous group finish (home) ----------
   A promoted scoreboard-and-table card for the round's marquee moment: the
   group's final two games running side by side, with the "as it stands" verdict
   and the latest swing. Borrows the green group-card header for cohesion. */
.splitscreen { overflow: hidden; }
.splitscreen__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 12px 16px;
  background: linear-gradient(180deg, #14552A, #0E4520);
  color: var(--chalk);
}
.splitscreen__head h3 { margin: 0; font-size: 18px; font-weight: var(--fw-bold); }
.splitscreen__head .tag--live {
  background: rgba(247, 246, 238, .16); color: #EAFBEF; border-color: rgba(234, 251, 239, .4);
}
.splitscreen__head .tag--live::before { background: #7BE495; }
.splitscreen__swing {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 16px;
  background: var(--yellow-100); border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: var(--fw-bold); color: var(--ink);
}
.splitscreen__swing .pulse { flex: none; }
.splitscreen__scores {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 16px 16px 4px;
}
/* the two live games share the row equally and read as a scoreboard pair */
.splitscreen__scores .scorechip { flex: 1 1 240px; justify-content: center; }
.splitscreen__verdict { margin: 12px 16px 0; font-size: 14.5px; font-weight: var(--fw-bold); }
.splitscreen__third { margin: 5px 16px 0; font-size: 12.5px; color: var(--ink-2); }
.splitscreen__table { margin-top: 14px; border-top: 1px solid var(--line); }
.splitscreen__table .split-holder {
  font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12ch;
}

/* ---------- bracket ---------- */
.bracket-scroll { overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 18px; align-items: stretch; min-width: min-content; }
.bracket-round { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.round-label {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: var(--fw-bold); margin: 0;
}
.bracket-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; flex: 1; }
.bracket-match { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.bm-side { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13.5px; }
.bm-side + .bm-side { border-top: 1px solid var(--hairline); }
.bm-side .tname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-side.is-winner .tname { font-weight: var(--fw-bold); }
.bm-side.is-loser .tname { color: var(--ink-3); }
.bm-side.is-tbd .tname { color: var(--ink-3); }
.bm-side .score { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.bm-meta { padding: 5px 12px 7px; border-top: 1px solid var(--hairline); font-size: 11px; color: var(--ink-3); }
.bm-tag { padding: 5px 12px 0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: var(--fw-bold); }
.bracket-match.is-live { border-color: var(--yellow-400); box-shadow: 0 0 0 1px var(--yellow-400); }
.bracket-match.is-final-match { border-color: var(--pitch-mid); box-shadow: 0 0 0 1px var(--pitch-mid); }

/* predicted next round ("as it stands"): honest banner + legend, and a colour
   family per confidence tier so a projection is never mistaken for a result. */
.bracket-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 10px; padding: 9px 13px; border-radius: 6px; min-height: 54px;
  background: color-mix(in srgb, var(--amber) 12%, var(--card));
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
}
.bracket-banner__tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: var(--fw-bold); color: var(--ink-2); }
.bracket-banner__note { font-size: 12.5px; color: var(--ink-2); }
.bracket-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-height: 34px; margin: 0 0 14px; font-size: 11.5px; color: var(--ink-3); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.legend-dot--locked { background: var(--green-500); }
.legend-dot--leading { background: var(--yellow-500); }
.legend-dot--open { background: transparent; border: 1.5px dashed var(--ink-3); }

.bm-side.is-proj--locked { background: color-mix(in srgb, var(--green-500) 12%, transparent); }
.bm-side.is-proj--locked .tname { font-weight: var(--fw-bold); }
.bm-side.is-proj--leading { background: color-mix(in srgb, var(--yellow-500) 10%, transparent); }
.bm-side.is-proj--leading .tname { color: var(--ink-2); }
.bm-side.is-proj--contested .tname, .bm-side.is-proj--tbd .tname { color: var(--ink-3); }
.bm-side .tname--cands { font-variant: small-caps; letter-spacing: .03em; }
.proj-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.proj-dot--locked { background: var(--green-500); }
.proj-dot--leading { background: var(--yellow-500); }

/* bracket mode toggle (As it stands / My picks) — the sim-bar idiom in content */
.bracket-modes { display: inline-flex; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--card); }
.bracket-mode { appearance: none; border: 0; background: transparent; padding: 7px 16px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.bracket-mode + .bracket-mode { border-left: 1px solid var(--line); }
.bracket-mode.is-active { background: var(--pitch-loud); color: var(--chalk); font-weight: var(--fw-bold); }
html[data-theme="dark"] .bracket-mode.is-active { color: var(--paper); }

/* My picks: distinct chalk-blue family so a guess never wears a fact colour */
.bracket-banner--mine { background: color-mix(in srgb, var(--blue-500, #4a90d9) 14%, var(--card)); border-left-color: var(--blue-500, #4a90d9); }
.pick-controls { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 0 0 14px; }
.pick-btn { appearance: none; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.pick-btn:hover { border-color: var(--pitch-loud); }
.pick-btn--ghost { color: var(--ink-3); }
.bracket-match--mine { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.bm-side--mine { cursor: default; }
.bm-side--mine.is-pickable { cursor: pointer; }
.bm-side--mine.is-pickable:hover { background: color-mix(in srgb, var(--blue-500, #4a90d9) 12%, transparent); }
.bm-side--mine.is-proj-base .tname { color: var(--ink-2); }
.bm-side--mine.is-pick { background: color-mix(in srgb, var(--blue-500, #4a90d9) 18%, transparent); }
.bm-side--mine.is-pick .tname { font-weight: var(--fw-bold); color: var(--ink); }
.bm-side--mine.is-loser .tname { color: var(--ink-3); text-decoration: line-through; }
.pick-check { color: var(--blue-500, #4a90d9); font-weight: var(--fw-bold); margin-left: 2px; }

/* ---------- "highlight my teams" — the personal spotlight ----------
   Baked onto a team-name element (.tname/.gname/.name/.fteam/.lbl/<h3>/<h2>…)
   at render time wherever a teamId is in scope; re-read each poll, like picks.
   A lilac glow + bracketing ✦ so a chosen team is unmistakable in any table,
   fixture, bracket or board — and never mistaken for a result colour. The ✦
   markers and halo are pure decoration; the shimmer respects reduced-motion. */
.is-highlit {
  color: var(--hl-ink);
  font-weight: var(--fw-bold);
  text-shadow:
    0 0 5px color-mix(in srgb, var(--hl-glow) 70%, transparent),
    0 0 13px color-mix(in srgb, var(--hl-glow) 40%, transparent);
  animation: hl-shimmer 2.8s var(--ease-in-out) infinite;
}
.is-highlit::before,
.is-highlit::after {
  content: '\2726' / '';  /* empty alt text → decoration, not read by screen readers */
  color: var(--hl);
  font-weight: var(--fw-bold);
  font-size: 0.74em;
  vertical-align: 0.07em;
  text-shadow: 0 0 6px color-mix(in srgb, var(--hl-glow) 55%, transparent);
}
.is-highlit::before { margin-right: 0.4em; }
.is-highlit::after  { margin-left: 0.4em; }

/* On the always-dark turf — the hero/today score chips and the match-title
   band — the name can't use --hl-ink (a deep purple tuned for the cream card);
   it would be near-black on near-black in daylight mode. Use a fixed bright
   lilac that reads on the turf in either theme, exactly as .hl-cta does. */
.scorechip .is-highlit,
.band .is-highlit { color: #D2BEE2; }

@keyframes hl-shimmer {
  0%, 100% {
    text-shadow:
      0 0 5px color-mix(in srgb, var(--hl-glow) 66%, transparent),
      0 0 12px color-mix(in srgb, var(--hl-glow) 36%, transparent);
  }
  50% {
    text-shadow:
      0 0 8px color-mix(in srgb, var(--hl-glow) 90%, transparent),
      0 0 20px color-mix(in srgb, var(--hl-glow) 52%, transparent);
  }
}

/* The CTA lives in the entry header band (dark turf in both themes), so its
   colours are fixed lilac-on-turf rather than theme tokens. */
.hl-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.hl-cta {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 6px 13px;
  font: inherit; font-size: 13px; font-weight: var(--fw-bold); letter-spacing: .02em;
  color: var(--chalk);
  background: rgba(180, 157, 196, 0.16);
  border: 1px solid rgba(180, 157, 196, 0.45);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.hl-cta:hover { background: rgba(180, 157, 196, 0.26); border-color: rgba(180, 157, 196, 0.72); }
.hl-cta__star { color: #E0D1EC; font-size: 0.92em; }
.hl-cta.is-on {
  background: rgba(180, 157, 196, 0.3);
  border-color: rgba(217, 199, 230, 0.85);
  box-shadow: 0 0 0 1px rgba(217, 199, 230, 0.3), 0 0 16px rgba(180, 157, 196, 0.5);
}
.hl-cta.is-on .hl-cta__star { text-shadow: 0 0 9px rgba(224, 209, 236, 0.95); }
.hl-clear {
  padding: 0; font: inherit; font-size: 13px; letter-spacing: .02em;
  color: var(--chalk-dim); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.hl-clear:hover { color: var(--chalk); }

/* My picks: "if this holds, the money" board strip */
.pick-boards { margin: 18px 0 0; }
.pick-boards__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.pick-boards__head h3 { margin: 0; font-size: 14px; }
.pick-boards__status { font-size: 11.5px; color: var(--amber); }
.pick-boards__hint { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.pick-boards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pick-board { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--pitch-loud)); border-radius: 6px; background: var(--card); }
.pick-board__amt { font-size: 12px; font-weight: var(--fw-bold); color: var(--ink-2); }
.pick-board__title { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.pick-board__who { font-size: 13.5px; color: var(--ink); }
.pick-board__who.is-locked { font-weight: var(--fw-bold); }

/* ---------- fixtures ---------- */
/* The whole fixtures list is ONE grid so every day's rows share the same column
   tracks. Otherwise each day's card sizes its own (content-fit) tag column and
   1fr split, so the centred score block lands in a different place per day. The
   day-heads and per-day cards are promoted into this grid (display:contents) and
   each card re-uses the tracks via subgrid — scores then line up in a single
   column across Saturday, Sunday, Monday and every other day. */
.fixtures {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 84px minmax(0, 1fr) 170px minmax(90px, max-content);
  column-gap: 14px;
}
.fixture-day { display: contents; }
.day-head {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 10px;
}
.day-head h3 { margin: 0; font-size: 18px; font-weight: var(--fw-bold); }
.day-head .count { font-size: 12px; color: var(--ink-3); }
.fixtures .card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  margin-bottom: 26px;
}
.frow {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  gap: 2px 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
}
.frow:last-child { border-bottom: 0; }
.frow .ko {
  justify-self: start;
  font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px;
}
.fside { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fside--home { justify-content: flex-end; text-align: right; }
.fstack { display: flex; flex-direction: column; min-width: 0; }
.fteam { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fteam.is-winner { font-weight: var(--fw-bold); }
.frow.is-done .fteam:not(.is-winner) { color: var(--ink-2); }
.fholder { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flag-tbd { background: var(--paper); border: 1px dashed var(--line); box-shadow: none; height: 17px; width: 26px; border-radius: 2px; }
.fscore {
  justify-self: center;
  display: flex; flex-direction: column; align-items: center;
  min-width: 58px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.fscore b { font-weight: var(--fw-bold); font-size: 15px; }
.fscore.is-pre { background: transparent; }
.fscore.is-pre b { font-weight: var(--fw-regular); color: var(--ink-3); }
.fscore.is-live { background: var(--green-100); border-color: var(--green-300); }
.fscore.is-live b { color: var(--green-500); }
.fpens { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.fvenue { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .meta-tags { display: flex; gap: 6px; justify-self: end; }
.tag--tv { font-variant: none; letter-spacing: 0; color: var(--ink-2); font-weight: var(--fw-regular); }

/* "On the box" — channel plates on the match page */
.tv-plate {
  flex: none;
  min-width: 88px;
  text-align: center;
  padding: 9px 14px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--chalk);
  font-weight: var(--fw-bold);
  font-size: 14.5px;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px rgba(247, 246, 238, 0.16); /* screen bezel */
}
html[data-theme="dark"] .tv-plate { color: var(--paper); }
/* A channel that streams online — the plate becomes a "tune in" button. */
a.tv-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
a.tv-plate:hover {
  box-shadow: inset 0 0 0 2px rgba(247, 246, 238, 0.32), 0 4px 12px rgba(22, 26, 18, 0.18);
  transform: translateY(-1px);
}
a.tv-plate:active { transform: translateY(0); }
a.tv-plate:focus-visible { outline: 2px solid var(--pitch-loud); outline-offset: 3px; }
.tv-watch { font-size: 10.5px; line-height: 1; opacity: 0.7; }
a.tv-plate:hover .tv-watch { opacity: 1; }
.tv-plate--tbc {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  box-shadow: none;
  font-weight: var(--fw-regular);
}

@media (max-width: 1020px) {
  .fixtures { grid-template-columns: 48px minmax(0, 1fr) 76px minmax(0, 1fr) minmax(70px, max-content); }
  .fvenue { display: none; }
}
@media (max-width: 620px) {
  .fixtures { grid-template-columns: 40px minmax(0, 1fr) 62px minmax(0, 1fr) max-content; column-gap: 8px; }
  .frow { gap: 2px 8px; padding: 10px 10px; }
  .fteam { font-size: 13.5px; }
  .frow .ko { font-size: 11px; padding: 2px 5px; }
  .frow .meta-tags .tag--info, .frow .meta-tags .tag:not(.tag--live):not(.tag--out) { display: none; }
}

/* ---------- hero live/next-up chips ---------- */
/* content-sized chips in a wrapping row — NOT the slate grid below, which would
   pin each chip to a track width and squeeze its scoreline into one word a line. */
.hero-chips { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- today strip on home ---------- */
/* uniform-width cards that wrap onto new rows instead of scrolling sideways —
   horizontal scroll is awkward with a mouse, and content-sized flex items made
   the cards different widths (the busier "tonight" rows carry venue + TV + duel). */
.today-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.today-card {
  min-width: 0;
  padding: 14px 16px;
}
.today-card .teams { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.today-card .teams b { font-variant-numeric: tabular-nums; flex: none; }
/* names shrink + ellipsis so the longest matchups can't overflow a fixed card */
.today-card .teams > span:not(.flag-fallback) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-card .when { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.today-card .when b { color: var(--ink-2); font-weight: var(--fw-bold); }
/* the entrant duel sits on its own line so "Joe v Ryan" never breaks mid-pair */
.today-card .duel { margin-top: 4px; font-size: 12px; color: var(--ink-2); font-weight: var(--fw-bold); }

/* section titles inside content */
.sec-title { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 14px; }
.sec-title:first-child { margin-top: 0; }
.sec-title h3 { margin: 0; font-size: 22px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.sec-title .more { font-size: 13px; color: var(--pitch-mid); font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 3px; }
.sec-title .more:hover { opacity: .7; }

/* ---------- footer ---------- */
.pitchfoot { background: var(--stripes), linear-gradient(180deg, #07290F, #041A08); color: var(--chalk-dim); margin-top: 40px; }
.pitchfoot__chalk { height: 2px; background: var(--chalk-dim); opacity: .5; }
.pitchfoot__inner { max-width: 1240px; margin-inline: auto; padding: 30px clamp(16px, 4vw, 48px) 38px; }
.foot-rules { font-size: 13px; color: var(--chalk); margin: 0 0 8px; }
.foot-rules b { color: var(--amber); }
.foot-small { font-size: 11.5px; margin: 4px 0 0; color: var(--chalk-dim); }

/* prize accent assignments (spekter pastels from the LHV foundation) */
.acc-yellow { --accent: var(--yellow-400); --accent-soft: var(--yellow-100); }
.acc-blue   { --accent: var(--blue-400);   --accent-soft: var(--blue-100); }
.acc-green  { --accent: var(--green-400);  --accent-soft: var(--green-100); }
.acc-lilac  { --accent: var(--lilac-300);  --accent-soft: var(--lilac-100); }
.acc-pink   { --accent: var(--pink-400);   --accent-soft: var(--pink-100); }
.acc-sand   { --accent: var(--sand-300);   --accent-soft: var(--sand-100); }

/* ---------- everything that leads to a match centre ---------- */
a.scorechip { text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
a.scorechip:hover { border-color: rgba(247, 246, 238, 0.6); background: rgba(2, 18, 7, 0.75); }
a.today-card {
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
a.today-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(22, 26, 18, .09); }
a.frow { color: inherit; text-decoration: none; transition: background var(--dur-fast) var(--ease-out); }
a.frow:hover { background: color-mix(in srgb, var(--paper) 55%, var(--card)); }
a.bracket-match {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.bracket-match:hover { border-color: var(--pitch-loud); }
html[data-theme="dark"] a.today-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }

/* ---------- match centre ---------- */
.match-title b { font-variant-numeric: tabular-nums; }
.match-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .match-grid { grid-template-columns: 1fr; } }
.match-side { display: grid; gap: 18px; }
.match-feed { padding: 18px 20px; }
.match-feed__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.match-feed__head h3 { margin: 0; font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.match-scorers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  margin-top: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--paper) 55%, var(--card));
  border-radius: 4px;
}
.match-scorers:empty { display: none; }
.scorer-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scorer-stack--away { text-align: right; }
.scorer-stack .lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.scorer { font-size: 13px; font-weight: var(--fw-bold); }
.scorer--none { color: var(--ink-3); font-weight: var(--fw-regular); }
.timeline { margin-top: 10px; }
.tl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
}
.tl-min {
  flex: none;
  min-width: 44px;
  text-align: right;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tl-body { flex: 1 1 auto; min-width: 0; }
.tl-main { display: block; font-weight: var(--fw-bold); line-height: 1.25; }
.tl-row--sub .tl-main { font-weight: var(--fw-regular); }
.tl-sub { display: block; color: var(--ink-3); font-size: 11.5px; }
.tl-score { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; font-size: 15px; }
.tl-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 7px;
  border-top: 1px solid var(--hairline);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: var(--fw-bold);
}
.tl-marker::before, .tl-marker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tl-marker span { white-space: nowrap; }
.tl-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }
.booking { flex: none; width: 11px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.booking--yellow { background: var(--yellow-400, #E8C766); }
.booking--red { background: #C94F38; }
.stake-row { text-decoration: none; color: inherit; }
.stake-row:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.stake-row .entry-card__go { margin-left: auto; }

/* ---------- third-place race ---------- */
.thirds-card { max-width: 880px; }
.thirds-card .gtable .pos { width: 30px; }
.thirds-card .gtable td.pos { color: var(--ink-3); font-size: 12px; }
.thirds-card .gtable .team-cell .fstack { flex: 1 1 auto; min-width: 0; }
.thirds-tied { margin-right: 6px; }
.thirds-grp { color: var(--ink-3); font-size: 11.5px; font-weight: var(--fw-regular); }
.thirds-card .gtable tr.is-cut td { border-top: 2px dashed var(--amber); }
.thirds-note { margin: 0; padding: 10px 16px 14px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- simulation tour bar ---------- */
.simbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  max-width: min(96vw, 980px);
  padding: 10px 16px;
  background: #1A1406;
  border: 1px solid var(--amber);
  border-radius: 8px;
  color: var(--chalk);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 13px;
}
.simbar__label { font-weight: var(--fw-bold); color: var(--amber); white-space: nowrap; }
.simbar__stage { color: var(--chalk-dim); white-space: nowrap; }
.simbar__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.simbar__btn {
  font: inherit;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(247, 246, 238, 0.35);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.simbar__btn:hover { background: rgba(247, 246, 238, 0.12); }
.simbar__btn.is-active { background: var(--amber); border-color: var(--amber); color: #1A1406; font-weight: var(--fw-bold); }
.simbar__btn--live { border-color: #7BE495; color: #7BE495; }
.simbar__btn--live:hover { background: rgba(123, 228, 149, 0.15); }

/* night mode: lift hover shadows so cards still float off the dark paper */
html[data-theme="dark"] .prize-tile:hover,
html[data-theme="dark"] a.entry-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }

@media (prefers-reduced-motion: reduce) {
  .pulse, .tag--live::before, .is-highlit { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding-block: 10px; gap: 8px 16px; min-height: 0; }
  .topnav { order: 3; flex-basis: 100%; }
  .topnav a { padding-block: 8px; }
  .nav-live { margin-left: auto; }
}

/* ---------- entrant page ---------- */
a.entry-card { display: block; color: inherit; text-decoration: none; transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out); }
a.entry-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 26, 18, .10); }
.entry-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.entry-card__go { color: var(--ink-3); font-weight: var(--fw-regular); font-size: 16px; transition: transform .16s var(--ease-out); }
a.entry-card:hover .entry-card__go { transform: translateX(3px); color: var(--ink); }

.band__crumb { margin: 0 0 6px; margin-left: auto; }
.band-back { color: var(--chalk-dim); font-size: 13px; text-decoration: none; letter-spacing: .02em; }
.band-back:hover { color: var(--chalk); text-decoration: underline; }

.eteam { padding: 18px 20px 16px; border-top: 6px solid var(--accent, var(--pitch-loud)); }
.eteam__head { display: flex; align-items: center; gap: 14px; }
.eteam__head h3 { margin: 0; font-size: 24px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.eteam__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.eteam.is-out .eteam__head h3 { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.flag--big { height: 32px; width: 48px; border-radius: 3px; }
.eteam__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.eteam__match { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.eteam__match .lbl { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.entrant-lower { margin-top: 18px; align-items: start; }
.run-card { padding: 18px 20px; }
.run-card h3 { margin: 0; font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.run-card .why { margin: 3px 0 8px; font-size: 12.5px; color: var(--ink-3); }
.run-card .prize-row .who .sub { white-space: normal; }

/* Can I still cash? — the merged best-case / worst-case scoreboard */
.outlook-card { padding: 18px 20px 10px; }
.outlook-card h3 { margin: 0; font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.outlook-card .why { margin: 3px 0 6px; font-size: 12.5px; color: var(--ink-3); }
.outlook-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0 11px 12px; border-top: 1px solid var(--hairline);
  border-left: 3px solid transparent;
}
.outlook-row:first-of-type { border-top: 0; }
.outlook-row > .tag { flex: 0 0 auto; margin-top: 1px; }
.outlook-row .who { flex: 1 1 auto; min-width: 0; }
.outlook-row .who .name { font-weight: var(--fw-bold); display: block; line-height: 1.25; }
.outlook-row .who .sub { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; display: block; white-space: normal; }
.outlook-standing { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.outlook--won { border-left-color: var(--green-500); }
.outlook--clinched { border-left-color: var(--green-500); }
.outlook--alive { border-left-color: var(--amber); }
.outlook--locked { border-left-color: var(--line); }
.outlook--locked .who .name { color: var(--ink-3); font-weight: var(--fw-medium); }

.scout { padding: 20px 22px 18px; border-top: 6px solid var(--accent, var(--pitch-loud)); }
.scout__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.scout__kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scout__text { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.scout__shot { margin: 0 0 12px; font-size: 14px; }
.scout__shot b { font-weight: var(--fw-bold); }
.scout .note { margin: 0; font-size: 11.5px; color: var(--ink-3); }

/* ---------- on the box (/tv): the bookmarkable what's-on page ---------- */
/* Phone-first: one narrow column, the channel plates are the payload. */
.tv-page { max-width: 640px; display: grid; gap: 18px; align-content: start; }
.tvnext { padding: 22px 20px 12px; }
.tvnext__match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; text-decoration: none; color: inherit; }
a.tvnext__match:hover .tvnext__team { text-decoration: underline; }
.tvnext__side { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; min-width: 0; }
.tvnext__side .flag--big { height: 38px; width: 57px; }
.tvnext__team { font-weight: var(--fw-bold); font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.tvnext__mid { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 9px; }
.tvnext__v { color: var(--ink-3); font-size: 15px; }
.tvnext__score { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }
.tvnext__ko, .tvnext__clock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tvnext__meta { text-align: center; color: var(--ink-3); font-size: 12.5px; margin: 12px 0 2px; }
.tvnext .tv-plate { min-width: 104px; font-size: 15.5px; padding: 11px 16px; }
.tv-countdown { color: var(--chalk); font-weight: var(--fw-bold); }
/* The chip sits alone in a narrow column: let it fill the card and wrap as
   whole segments (holders/when drop to their own line, never mid-phrase). */
.tv-after .scorechip { display: flex; flex-wrap: wrap; }
.tv-after .scorechip .when { white-space: nowrap; margin-left: auto; }
