/* ─────────────────────────  Tokens  ─────────────────────────
   Night game is the default look; "day game" applies when the phone is in
   light mode or the viewer picks it. Field colors stay turf in both.
   Type scale: 11 / 12 / 13 / 15 / 17 / 22 / 30 (+ display 40 / 50). 11px floor.
   Letter-spacing: 0.04em text, 0.08em labels, 0.12em section heads.           */
:root {
  color-scheme: dark;
  /* GFFL "broadcast" tokens (from league.html), mapped onto Saturday's names. Night is the
     default look here, same as the league site; field colors stay turf in both themes. */
  --bg: #0c1017;
  --bg-2: #070a0f;
  --surface: #151b26;
  --surface-2: #1a2231;
  --surface-3: #202a3d;
  --line: rgba(233, 237, 244, 0.08);
  --line-2: rgba(233, 237, 244, 0.14);
  --ink: #e9edf4;
  --ink-2: #c3cbdb;
  --muted: #8a94a7;
  --faint: #5b6579;
  --pylon: #d50a0a;
  --pylon-text: #ff4040;
  --pylon-ink: #ffffff;
  --flag: #ffb612;
  --flag-ink: #2b1a00;
  --los: #4aa3ff;
  --good: #4e9972;
  --bad: #ff5a5a;
  --bad-text: #ff6b6b;
  --turf: #2a7a41;
  --turf-2: #2f8447;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px -12px rgba(0,0,0,0.6);
  --topbar-bg: rgba(12, 16, 23, 0.86);
  --radius: 10px;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --gutter: 16px;
  --stadium-bg: radial-gradient(80% 60% at 20% 0%, rgba(255,255,240,0.14), transparent 60%), radial-gradient(80% 60% at 80% 0%, rgba(255,255,240,0.14), transparent 60%), linear-gradient(180deg, #06140c, #0b2415 60%, #0e2c19);
  --stadium-ink: #ffffff;
  --stadium-ink-2: rgba(255,255,255,0.75);
  --stadium-ctl: rgba(255,255,255,0.1);
  --stadium-ctl-line: rgba(255,255,255,0.2);
  --stadium-ret: #ff8a4c;
  --stadium-on: #0b2415;
  --stadium-edge: rgba(255,255,255,0.06);
  --field-shadow: 0 30px 40px -20px rgba(0,0,0,0.8);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff;
    --bg-2: #f2f4f8;
    --surface: #ffffff;
    --surface-2: #f2f4f8;
    --surface-3: #e7ebf2;
    --line: rgba(12, 16, 23, 0.10);
    --line-2: rgba(12, 16, 23, 0.16);
    --ink: #0c1017;
    --ink-2: #1c2534;
    --muted: #5b6579;
    --faint: #7c8698;
    --pylon: #b30808;
    --pylon-text: #b30808;
    --pylon-ink: #ffffff;
    --flag: #946400;
    --flag-ink: #ffffff;
    --los: #1f5fd6;
    --good: #1f6b45;
    --bad: #c62f2f;
    --bad-text: #b42323;
    --shadow: 0 1px 2px rgba(12,16,23,0.07), 0 6px 20px -10px rgba(12,16,23,0.22);
    --topbar-bg: rgba(255, 255, 255, 0.9);
    --stadium-bg: #ffffff;
    --stadium-ink: #0c1017;
    --stadium-ink-2: #5b6579;
    --stadium-ctl: #eef1f6;
    --stadium-ctl-line: rgba(12, 16, 23, 0.16);
    --stadium-ret: #b30808;
    --stadium-on: #ffffff;
    --stadium-edge: rgba(12, 16, 23, 0.09);
    --field-shadow: 0 22px 30px -18px rgba(12,16,23,0.45);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --surface-3: #e7ebf2;
  --line: rgba(12, 16, 23, 0.10);
  --line-2: rgba(12, 16, 23, 0.16);
  --ink: #0c1017;
  --ink-2: #1c2534;
  --muted: #5b6579;
  --faint: #7c8698;
  --pylon: #b30808;
  --pylon-text: #b30808;
  --pylon-ink: #ffffff;
  --flag: #946400;
  --flag-ink: #ffffff;
  --los: #1f5fd6;
  --good: #1f6b45;
  --bad: #c62f2f;
  --bad-text: #b42323;
  --shadow: 0 1px 2px rgba(12,16,23,0.07), 0 6px 20px -10px rgba(12,16,23,0.22);
  --topbar-bg: rgba(255, 255, 255, 0.9);
  --stadium-bg: #ffffff;
  --stadium-ink: #0c1017;
  --stadium-ink-2: #5b6579;
  --stadium-ctl: #eef1f6;
  --stadium-ctl-line: rgba(12, 16, 23, 0.16);
  --stadium-ret: #b30808;
  --stadium-on: #ffffff;
  --stadium-edge: rgba(12, 16, 23, 0.09);
  --field-shadow: 0 22px 30px -18px rgba(12,16,23,0.45);
}

/* ─────────────────────────  Base  ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.4 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--pylon); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-btn svg, .back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Invisible hit-area extender for small controls (reaches ~44px). */
.hit { position: relative; }
.hit::after { content: ""; position: absolute; inset: -8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 700 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ─────────────────────────  Top bar  ───────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--topbar-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-row {
  display: flex; align-items: center; gap: 4px;
  padding: 8px var(--gutter) 4px;
  max-width: 760px; margin: 0 auto;
}
.wordmark {
  font: 900 26px/1 var(--display);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
  margin-right: auto; min-width: 0;
}
.wordmark::before { /* the pylon */
  content: ""; flex: none; width: 9px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, var(--pylon) 0 72%, #fff 72% 80%, var(--pylon) 80%);
  box-shadow: 0 0 14px -2px var(--pylon);
}
.wm-tag {
  font: 700 11px/1 var(--cond); letter-spacing: 0.1em;
  color: var(--pylon-ink); background: var(--pylon);
  padding: 3px 6px; border-radius: 4px; flex: none; text-decoration: none;
}
@media (max-width: 430px) { .wm-tag { display: none; } }
@media (max-width: 370px) { .wordmark { font-size: 22px; } }
.week-nav { display: flex; align-items: center; background: var(--surface-2); border-radius: 999px; padding: 2px; flex: none; }
.week-nav .icon-btn { width: 36px; height: 36px; }
.week-nav .icon-btn svg { width: 16px; height: 16px; }
.week-label {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 6px;
  font: 700 13px/1 var(--cond); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; border-radius: 999px;
}
.week-label .caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.5; opacity: 0.7; }
.week-label:active { background: var(--surface-3); }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); }
.icon-btn:active { background: var(--surface-3); }
.icon-btn:disabled { opacity: 0.3; }
#theme-btn .i-sun { display: none; }
:root[data-theme="light"] #theme-btn .i-sun { display: block; }
:root[data-theme="light"] #theme-btn .i-moon { display: none; }

.sync { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.sync-ring { position: absolute; inset: 5px; width: 30px; height: 30px; transform: rotate(-90deg); }
.sync-ring circle { fill: none; stroke-width: 2.5; }
.sync-ring .track { stroke: var(--line-2); }
.sync-ring .prog { stroke: var(--pylon); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync.live .sync-dot { background: var(--pylon); animation: pulse 1.6s ease-out infinite; }
.sync.err .sync-dot { background: var(--bad); }
.sync.busy .sync-dot { animation: spin-dot 0.8s linear infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pylon) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes spin-dot { 50% { transform: scale(0.5); } }

.chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 4px var(--gutter) 10px;
  max-width: 760px; margin: 0 auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; scroll-snap-align: start;
  min-height: 36px; padding: 0 13px; border-radius: 999px;
  font: 600 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .ct { font-variant-numeric: tabular-nums; opacity: 0.7; }
.chip .caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.5; opacity: 0.7; }
.chip .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pylon); }

.status-line {
  max-width: 760px; margin: 0 auto; padding: 10px var(--gutter) 0;
  font: 600 12px/1.3 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  display: flex; gap: 10px; align-items: center; min-height: 26px;
}
.status-line .err { color: var(--bad-text); }
.status-line b { color: var(--pylon-text); font-weight: 700; }

/* ─────────────────────────  Board  ───────────────────────── */
.board {
  max-width: 760px; margin: 0 auto;
  padding: 6px var(--gutter) 24px;
  display: flex; flex-direction: column; gap: 22px;
}
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h {
  display: flex; align-items: baseline; gap: 8px;
  font: 700 13px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding-top: 4px;
}
.sec-h .ct { color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.sec-h.live, .sec-h.feat { color: var(--pylon-text); }
.sec-h.live::before, .sec-h.feat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pylon); align-self: center; animation: pulse 1.6s ease-out infinite; }
.sec-h.feat::before { border-radius: 2px; width: 6px; height: 12px; animation: none; box-shadow: 0 0 10px -1px var(--pylon); }
.sec-h.upset { color: var(--flag-ink); }
.sec-h.upset::before { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--flag); align-self: center; }
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: left;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.card:active { transform: scale(0.985); }
.card-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0;
  font: 600 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px; min-height: 18px;
}
.card-head .clock { color: var(--ink); font-weight: 700; white-space: nowrap; flex: none; }
.card-head.is-live .clock { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-head.is-live .clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0262b; flex: none; }
.card-head .tv { margin-left: auto; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-left: 6px; }
.tag {
  flex: none; white-space: nowrap;
  font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.tag svg { width: 11px; height: 11px; flex: none; }
.tag.rz { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad-text); }
.tag.upset { background: color-mix(in srgb, var(--flag) 22%, transparent); color: var(--flag-ink); }
.tag.upset.watch { background: color-mix(in srgb, var(--flag) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flag) 45%, transparent); }
.card.upset-alert { border-color: color-mix(in srgb, var(--flag) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--flag) 30%, transparent), 0 12px 32px -14px color-mix(in srgb, var(--flag) 45%, transparent); }
.upset-line { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; font: 600 13px/1.3 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); }
.upset-line b { color: var(--flag-ink); font-weight: 700; }
.upset-badge { display: inline-block; font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; background: color-mix(in srgb, var(--flag) 22%, transparent); color: var(--flag-ink); }

/* Featured game: same card, turned up a notch */
.card.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--pylon) 9%, var(--surface)), var(--surface) 70%); }
.card.featured:not(.upset-alert) { border-color: color-mix(in srgb, var(--pylon) 40%, transparent); }
.card.featured .score { font-size: 40px; }
.card.featured .trow { min-height: 42px; }
.card.featured .mini { height: 28px; }
.card.featured .mini .ez { font-size: 11px; }
.card.featured .wprow .wpbar { height: 6px; }

.teams { display: grid; gap: 6px; }
.trow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 32px; }
.logo { width: 30px; height: 30px; object-fit: contain; }
.logo-fb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--display); color: #fff; }
.tname { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tname .rk { font: 700 12px/1 var(--cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.tname .nm { font: 600 17px/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tname .rec { font: 600 12px/1 var(--cond); color: var(--faint); letter-spacing: 0.04em; white-space: nowrap; }
.score {
  font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums;
  min-width: 2ch; text-align: right; letter-spacing: 0.01em;
}
.score-wrap { display: flex; align-items: center; gap: 8px; }
.score-wrap .poss { width: 16px; height: 10px; flex: none; }
.trow.lose .nm, .trow.lose .score { color: var(--muted); }
.trow.lose .score { font-weight: 700; }
.score.bump { animation: bump 1.4s ease-out; }
@keyframes bump {
  0% { transform: scale(1); color: var(--pylon); }
  15% { transform: scale(1.35); color: var(--pylon); text-shadow: 0 0 18px var(--pylon); }
  100% { transform: scale(1); }
}

.sit { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 16px; font: 600 13px/1.2 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); flex-wrap: wrap; }
.sit .dd { color: var(--ink); font-weight: 700; }
.sit .quiet { color: var(--muted); }
.sit .moment { color: var(--pylon-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.lastplay-line {
  margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* The mini field on each live card: endzones in team colors, ball spot, lines. */
.mini {
  position: relative; height: 22px; margin-top: 10px; border-radius: 5px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--turf) 0 calc(100% / 12), var(--turf-2) calc(100% / 12) calc(100% / 6));
}
.mini .ez { position: absolute; top: 0; bottom: 0; width: calc(100% / 12); display: grid; place-items: center; font: 700 10px/1 var(--cond); letter-spacing: 0; overflow: hidden; }
.mini .ez.l { left: 0; } .mini .ez.r { right: 0; }
.mini .yl { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.35); }
.mini .rz { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,60,60,0.5) 0 3px, rgba(255,60,60,0.18) 3px 6px); }
.mini .ln { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.mini .ln.los { background: #4aa3ff; }
.mini .ln.fd { background: #ffd21f; }
.mini .ball {
  position: absolute; top: 50%; width: 13px; height: 8px; margin: -4px 0 0 -6.5px;
  border-radius: 50%; background: #8a4a22; box-shadow: 0 0 0 1.5px #fff, 0 0 10px 2px rgba(255,255,255,0.5);
  transition: left 0.9s cubic-bezier(.2,.8,.2,1);
}
.mini .dir {
  position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.6));
  transition: left 0.9s cubic-bezier(.2,.8,.2,1);
}
.mini .dir.r { border-left: 8px solid #fff; margin-left: 9px; }
.mini .dir.l { border-right: 8px solid #fff; margin-left: -17px; }

/* Win-probability bar with its two ends labelled */
.wprow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 8px; font: 700 12px/1 var(--cond); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.wprow .fav { color: var(--ink); }
.wpbar { display: flex; gap: 2px; height: 4px; border-radius: 2px; overflow: hidden; background: var(--surface); }
.wpbar i { display: block; height: 100%; transition: width 0.8s ease; }

/* Compact rows for upcoming + finals */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lrow {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; text-align: left; padding: 10px 14px; min-height: 64px;
  border-top: 1px solid var(--line);
}
.lrow.fin { grid-template-columns: 64px minmax(0, 1fr); }
.lrow:first-child { border-top: 0; }
.lrow:active { background: var(--surface-2); }
.lrow .when { font: 700 13px/1.15 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); font-variant-numeric: tabular-nums; text-transform: uppercase; min-width: 0; }
.lrow .when small { display: block; font: 600 11px/1.3 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .mt { display: grid; gap: 5px; min-width: 0; }
.lrow .mt .t { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.lrow .mt .t img, .lrow .mt .t .logo-fb { width: 22px; height: 22px; }
.lrow .mt .t .nm { font: 600 15px/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .mt .t .rk { font: 700 11px/1 var(--cond); color: var(--muted); margin-right: 4px; }
.lrow .mt .t .sc { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.lrow .mt .t.lose .nm, .lrow .mt .t.lose .sc { color: var(--muted); }
.lrow .odds { font: 600 12px/1.3 var(--cond); color: var(--muted); text-align: right; letter-spacing: 0.04em; white-space: nowrap; }
.lrow .odds b { display: block; color: var(--ink-2); font-weight: 700; }
.day-h, .slot-h { display: flex; align-items: baseline; gap: 8px; font: 700 12px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); padding: 12px 14px 8px; background: var(--surface-2); border-top: 1px solid var(--line); }
.slot-h { background: transparent; color: var(--ink); padding: 14px 14px 4px; font-size: 13px; }
.slot-h small, .day-h small { color: var(--faint); font: 600 11px/1 var(--cond); letter-spacing: 0.08em; }
.day-h:first-child, .slot-h:first-child { border-top: 0; }
.day-h + .slot-h { border-top: 0; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h3 { font: 800 22px/1.1 var(--display); color: var(--ink); margin: 0; letter-spacing: 0.04em; text-transform: uppercase; }
.empty p { margin: 0; max-width: 34ch; font-size: 15px; }

/* Loading skeleton shaped like a live card */
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 10px; }
.skel-card i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel-card i.hd { width: 40%; }
.skel-card i.row { height: 30px; }
.skel-card i.fld { height: 22px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.foot { max-width: 760px; margin: 0 auto; padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--faint); text-align: center; }

/* ─────────────────────────  Game view  ───────────────────────── */
.game-view {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: slide-in 0.32s cubic-bezier(.2,.8,.2,1);
}
.game-view.closing { animation: slide-out 0.24s ease-in forwards; }
/* The game view is the Scores page (2026-09-28): it stops at the GFFL bar (phone, fixed at the
   bottom) and starts under GFFL's 34px top strip (desktop), so the bar is always there. */
.game-view { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .game-view { bottom: 0; } }           /* top: under GFFL's header, below */
/* The board is now only a loading screen, and the page for a week with no games. */
body.game-open #board-view { visibility: hidden; }
#ff-head, #status-line { display: none; }
.gv-week { display: flex; align-items: center; flex: none; }
.gv-week .week-label { min-height: 40px; }
.gv-set { flex: none; }
.gv-set svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 10px 8px; max-width: 760px; margin: 0 auto; scrollbar-width: none; }
.g-strip::-webkit-scrollbar { display: none; }
.g-strip[hidden] { display: none; }
.gs-it { flex: none; display: grid; gap: 2px; min-width: 88px; padding: 6px 9px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.gs-it.current { box-shadow: inset 0 0 0 2px var(--pylon); color: var(--ink); background: var(--surface-2); }
.gs-t { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 6px; font: 700 13px/1.15 var(--cond); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.gs-t img, .gs-t .logo { width: 16px; height: 16px; }
.gs-t b { font-weight: 800; color: var(--ink); }
.gs-it small { font: 600 11px/1.2 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gs-it.live small { color: var(--pylon-text); }
@media (min-width: 1080px) { .g-strip { display: none; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out { to { transform: translateX(100%); } }
body.game-open { overflow: hidden; }

.g-top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--topbar-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.g-top-row { display: flex; align-items: center; gap: 8px; padding: 3px 10px; max-width: 760px; margin: 0 auto; min-height: 50px; }
.back { display: flex; align-items: center; gap: 2px; min-height: 44px; font: 600 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0 10px 0 2px; }
.g-mini {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px;
  font: 800 17px/1 var(--display); letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
.g-top.scrolled .g-mini { opacity: 1; transform: none; }
.g-mini img { width: 22px; height: 22px; }
.g-mini .clk { font: 700 12px/1 var(--cond); letter-spacing: 0.08em; color: var(--pylon-text); text-transform: uppercase; }
.g-mini .clk.pre { color: var(--muted); }
.g-top-sp { width: 70px; }

.g-body { max-width: 760px; margin: 0 auto; padding: 0 0 calc(40px + env(safe-area-inset-bottom, 0px)); }

/* Header: two teams around the score */
.g-hero { position: relative; overflow: hidden; color: #fff; padding: 12px 10px; }
@media (min-width: 640px) { .g-hero { margin: 12px var(--gutter) 0; border-radius: 16px; } }
.g-hero .bg { position: absolute; inset: 0; }
/* Per-side ink on solid team colours */
.gt.on-light, .gs .on-light { color: #ffffff; --ts: 0 1px 6px rgba(0,0,0,0.35); }
.gt.on-dark, .gs .on-dark { color: #111611; --ts: none; }
.g-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 2px; }
.gs { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.gt { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
@supports (grid-template-rows: subgrid) {
  .gt { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; justify-items: center; align-items: center; row-gap: 5px; }
}
.g-hero.two-line .gt .nm { min-height: 2em; display: -webkit-box; }
.gt .lg, .gt .logo-fb { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45)); }
.gt .logo-fb { font-size: 15px; }
.gt .nm { font: 800 clamp(19px, 5.8vw, 24px)/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; text-shadow: var(--ts, none); }
.gt .meta { font: 600 13px/1 var(--cond); letter-spacing: 0.04em; display: flex; gap: 6px; align-items: center; justify-content: center; white-space: nowrap; text-shadow: var(--ts, none); }
.gt .to { display: flex; align-items: center; gap: 3px; height: 12px; font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-shadow: var(--ts, none); }
.gt .to b { font-weight: 700; margin-right: 2px; }
.gt .to i { width: 12px; height: 4px; border-radius: 2px; background: currentColor; }
.gt .to i.used { opacity: 0.25; }
.gt .lgw { position: relative; }
.gs { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.gs .scores { display: flex; align-items: center; gap: 8px; font: 900 52px/0.85 var(--display); font-variant-numeric: tabular-nums; }
.gs .scores .on-light { text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.gs .scores .lose { opacity: 0.55; }
.gs .scores .hp { width: 22px; height: 14px; flex: none; visibility: hidden; margin: 0 -4px; }
.gs .scores .hp svg { width: 22px; height: 14px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.gs .scores .hp.on { visibility: visible; }
.gs .scores .hp.pop { animation: hp-in 0.4s ease-out; }
.gs .scores .bump { animation: bump 1.4s ease-out; }
@keyframes hp-in { from { transform: scale(0.4); opacity: 0; } }
.gs .scores .dash { font-size: 22px; opacity: 0.5; }
/* Clock: a plain white pill that reads on any team colour; a small red dot marks a live game. */
.gs .clock { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 999px; background: #ffffff; color: #111611; box-shadow: 0 1px 3px rgba(0,0,0,0.2); white-space: nowrap; text-shadow: none; }
.gs .clock.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0262b; flex: none; }
.gs .kick { font: 800 22px/1 var(--display); letter-spacing: 0.04em; text-align: center; }
.gs .kick small { display: block; font: 600 12px/1.4 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.gh-upset { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; width: fit-content; max-width: 100%; margin: 10px auto 0; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,210,31,0.65); color: #fff; font: 600 12px/1.25 var(--cond); letter-spacing: 0.04em; text-align: center; }
.gh-upset b { color: #ffd21f; text-transform: uppercase; letter-spacing: 0.08em; }
.gh-upset svg { width: 14px; height: 14px; color: #ffd21f; }
.gh-upset.watch { border-color: rgba(255,255,255,0.3); }

/* The field */
.field-sec { padding: 10px var(--gutter) 4px; }
.stadium {
  position: relative; border-radius: 16px; overflow: hidden; color: var(--stadium-ink);
  background: var(--stadium-bg);
  padding: 10px 8px 8px;
  box-shadow: inset 0 0 0 1px var(--stadium-edge), var(--shadow);
}
.stadium.pre .field-3d { max-width: 74%; margin: 0 auto; }
.field-cap { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-height: 32px; padding: 0 4px; }
.field-cap .dd { font: 800 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.field-cap .spot { font: 600 12px/1.1 var(--cond); letter-spacing: 0.08em; color: var(--stadium-ink-2); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.field-cap .ret {
  position: relative; margin-left: auto; flex: none; min-height: 32px; padding: 0 12px;
  display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
  font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stadium-ret); border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor;
}
.field-cap .ret::after { content: ""; position: absolute; inset: -6px -2px; }
.field-cap .ret svg { width: 9px; height: 9px; fill: currentColor; }
.field-svg text { font-family: var(--display); }
.field-3d { perspective: 900px; perspective-origin: 50% -30%; }
.field-3d svg { width: 100%; height: auto; transform: rotateX(24deg); transform-origin: 50% 100%; border-radius: 6px; box-shadow: var(--field-shadow); overflow: visible; }
@media (min-width: 640px) { .field-3d svg { transform: rotateX(30deg); } }
.drive-sum { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; padding: 0 4px; font: 600 12px/1.2 var(--cond); letter-spacing: 0.04em; text-transform: uppercase; color: var(--stadium-ink-2); align-items: center; }
.drive-sum b { color: var(--stadium-ink); font-weight: 700; }
.drive-sum img { width: 18px; height: 18px; }
.legend { display: flex; gap: 12px; margin-left: auto; }
@media (max-width: 479px) { .legend { display: none; } }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.field-svg .play-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.field-svg .ball-glow { animation: ballglow 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ballglow { 0% { opacity: 0.8; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.2); } }

/* Replay controls */
.replay { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0 2px; }
.replay button {
  position: relative; flex: none; min-height: 36px; min-width: 36px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; gap: 6px; align-items: center; justify-content: center;
  font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--stadium-ctl); color: var(--stadium-ink); box-shadow: inset 0 0 0 1px var(--stadium-ctl-line);
}
.replay button.sq { padding: 0; width: 36px; }
.replay button::after { content: ""; position: absolute; inset: -4px; }
.replay button svg { width: 12px; height: 12px; fill: currentColor; }
.replay input[type="range"] { flex: 1; accent-color: #ff6a1a; min-width: 0; height: 36px; }
.replay .rp-lbl { font: 600 12px/1 var(--cond); letter-spacing: 0.08em; color: var(--stadium-ink-2); text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Last play */
.lp { margin: 8px var(--gutter) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.lp.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { 0% { box-shadow: 0 0 0 2px var(--pylon), var(--shadow); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow); } }
.lp .hs { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); overflow: hidden; }
.lp .hs.logo-only { object-fit: contain; padding: 7px; }
.lp .k { font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.lp .k .yd { font: 800 13px/1 var(--display); letter-spacing: 0.04em; padding: 3px 6px; border-radius: 4px; }
.lp .tx { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp .tx.open { display: block; }
.lp .more { position: relative; margin-top: 2px; font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.lp .more::after { content: ""; position: absolute; inset: -8px -12px; }
.lp .who { font: 700 13px/1.2 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); margin-top: 4px; }
.yd.pos { color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent); }
.yd.neg { color: var(--bad-text); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.yd.pen { color: var(--flag-ink); background: color-mix(in srgb, var(--flag) 18%, transparent); }
.yd.zero { color: var(--muted); background: var(--surface-3); }

/* Win probability strip under the last play */
.wp-strip { margin: 10px var(--gutter) 0; display: grid; gap: 6px; }
.wp-strip .lbl { font: 700 11px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wp-strip .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font: 700 13px/1 var(--cond); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.wp-strip .bar { height: 8px; border-radius: 4px; overflow: hidden; display: flex; gap: 2px; background: var(--bg); }
.wp-strip .bar i { height: 100%; transition: width 0.8s ease; }
.wp-strip .note { font-size: 14px; color: var(--ink-2); }
.wp-strip .note b { color: var(--ink); }

/* Tabs */
.tabs {
  position: sticky; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 51px);
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  margin-top: 14px; padding: 6px 10px;
  background: var(--topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 1 0; min-width: max-content; min-height: 40px; padding: 0 8px; font: 700 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-radius: 8px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--pylon); }
.tab-body { padding: 14px var(--gutter) 0; }

/* Drives */
.drive { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.drive-h { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 56px; text-align: left; padding: 10px 12px; }
.drive-h img, .drive-h .logo-fb { width: 26px; height: 26px; }
.drive-h .res { font: 800 17px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.drive-h .res.scored { color: var(--pylon-text); }
.drive-h .res.to { color: var(--bad-text); }
.drive-h .ds { font: 600 12px/1.25 var(--cond); letter-spacing: 0.04em; color: var(--muted); margin-top: 3px; }
.drive-h .sc { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.drive-h .sc small { display: block; font: 600 11px/1.3 var(--cond); letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; margin-top: 2px; }
.drive.cur { border-color: color-mix(in srgb, var(--pylon) 50%, transparent); }
.drive.viewing { box-shadow: inset 3px 0 0 var(--pylon); }
.drive-plays { border-top: 1px solid var(--line); }
.play { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: start; font-size: 14px; line-height: 1.35; }
.play:first-child { border-top: 0; }
.play .pd { font: 700 12px/1.2 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); }
.play .pd small { display: block; color: var(--faint); font-weight: 600; margin-top: 2px; }
.play .pt { color: var(--ink-2); }
.play .pt b { display: block; font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.play.scoring { background: color-mix(in srgb, var(--pylon) 9%, transparent); }
.play.scoring .pt b { color: var(--pylon-text); }
.play.turnover .pt b { color: var(--bad-text); }
.play.meta-play { opacity: 0.65; }
.play .ydc { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.play .yd { font: 800 13px/1 var(--display); padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.drive-more { width: 100%; min-height: 44px; font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; border-top: 1px solid var(--line); }

/* Stats */
.stat-head { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 6px; }
.stat-head div { display: flex; align-items: center; gap: 8px; font: 800 17px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.stat-head div:last-child { justify-content: flex-end; }
.stat-head img { width: 26px; height: 26px; }
.srow { padding: 10px 0; border-top: 1px solid var(--line); }
.srow .v { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; }
.srow .v .a, .srow .v .h { font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.srow .v .h { text-align: right; }
.srow .v .l { font: 600 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.srow .v .dim { color: var(--muted); font-weight: 700; }
.srow .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 7px; }
.srow .bars div { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; display: flex; }
.srow .bars div:first-child { justify-content: flex-end; }
.srow .bars i { display: block; height: 100%; border-radius: 3px; transition: width 0.6s ease; }

/* Players */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-bottom: 12px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 700 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.seg button img { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pcat { margin-bottom: 16px; }
.tscroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ptable th { font: 700 11px/1 var(--cond); letter-spacing: 0.08em; color: var(--muted); padding: 10px 8px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ptable td { padding: 8px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; height: 44px; }
.ptable tr:first-child td { border-top: 0; }
.ptable th:first-child, .ptable td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.ptable .pn { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ptable .pn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.ptable .pn small { color: var(--faint); font: 600 11px/1 var(--cond); }
.ptable tr.tot td { font-weight: 700; color: var(--muted); }

/* Win probability chart */
.wpc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wpc svg { width: 100%; height: auto; overflow: visible; }
.wpc .now { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wpc .now div { display: flex; align-items: center; gap: 8px; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.wpc .now img { width: 28px; height: 28px; }
.wpc .now small { font: 600 12px/1 var(--cond); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.wpc text { font-family: var(--cond); font-weight: 600; letter-spacing: 0.04em; fill: var(--muted); }
.wpc .cap { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Scoring summary, linescore, info */
.scsum .sp { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.scsum .sp:first-of-type { border-top: 0; }
.scsum .sp img { width: 26px; height: 26px; }
.scsum .sp .t { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.scsum .sp .t b { display: block; font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.scsum .sp .s { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-box { padding: 6px 12px; }
.linescore { width: 100%; table-layout: fixed; border-collapse: collapse; font: 600 13px/1 var(--cond); letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.linescore th { font-weight: 600; color: var(--muted); padding: 8px 2px; text-align: center; font-size: 11px; letter-spacing: 0.08em; }
.linescore td { padding: 8px 2px; text-align: center; border-top: 1px solid var(--line); height: 38px; }
.linescore th:first-child, .linescore td:first-child { width: 34%; text-align: left; }
.linescore .tn { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.linescore .tn img { width: 18px; height: 18px; }
.linescore td.t { font-weight: 800; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 14px; }
.box-t { font: 700 12px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.box-t:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child { border-top: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }
.venue-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 12px; margin-bottom: 10px; display: block; background: var(--surface-2); }
.pred { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pred div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pred img { width: 30px; height: 30px; }
.pred b { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.pred small { font: 600 11px/1.2 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Toasts */
.toasts { position: fixed; z-index: 60; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 8px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 var(--gutter); }
.toast {
  pointer-events: auto; max-width: 440px; width: 100%;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; gap: 10px; align-items: center;
  padding: 10px 8px 10px 14px; border-radius: 14px; color: #fff;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
  animation: toast-in 0.4s cubic-bezier(.2,.9,.3,1.2);
  text-align: left; touch-action: pan-x;
}
.toast.out { animation: toast-out 0.3s ease-in forwards; }
.toast img { width: 34px; height: 34px; }
.toast b { display: block; font: 800 17px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.toast span { font-size: 13px; opacity: 0.95; }
.toast .x { flex: none; min-width: 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; line-height: 1; opacity: 0.8; }
@keyframes toast-in { from { transform: translateY(-30px) scale(0.95); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(-20px); opacity: 0; } }

/* Big moment overlay */
.celebrate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; overflow: hidden; color: #fff; cursor: pointer; }
.celebrate .sweep { position: absolute; inset: -10% -25%; transform: skewX(-14deg); animation: sweep 2.8s cubic-bezier(.7,0,.2,1) forwards; }
.celebrate .word { position: relative; text-align: center; animation: word 2.8s cubic-bezier(.2,.9,.2,1) forwards; }
.celebrate .word img { width: 96px; height: 96px; margin: 0 auto 8px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.celebrate .word b { display: block; font: 900 clamp(56px, 17vw, 120px)/0.85 var(--display); letter-spacing: 0.01em; text-transform: uppercase; font-style: italic; text-shadow: 0 8px 40px rgba(0,0,0,0.35); }
.celebrate .word span { display: block; font: 700 18px/1.3 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 12px; padding: 0 24px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.celebrate .stripes { position: absolute; inset: 0; background: repeating-linear-gradient(-14deg, transparent 0 40px, rgba(255,255,255,0.06) 40px 80px); animation: sweep 2.8s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes sweep { 0% { clip-path: inset(0 100% 0 0); } 18% { clip-path: inset(0 0 0 0); } 82% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
@keyframes word { 0% { opacity: 0; transform: scale(1.6); } 16% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1.03); } 100% { opacity: 0; transform: scale(0.94); } }

/* Week picker sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.5); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s; }
.sheet-in { width: 100%; max-width: 520px; max-height: 78dvh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 0 var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); animation: up 0.28s cubic-bezier(.2,.8,.2,1); }
.sheet-hd { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 6px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-hd::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
.sheet-hd h4 { margin: 12px 0 0; font: 800 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.sheet-hd .icon-btn { width: 44px; height: 44px; margin-top: 8px; }
.sheet h5 { margin: 16px 0 6px; font: 700 12px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wk { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 12px; border-radius: 10px; font: 600 15px/1 var(--body); }
.wk small { color: var(--muted); font: 600 13px/1 var(--cond); letter-spacing: 0.04em; }
.wk[aria-current="true"] { background: var(--surface-3); }
.wk .cur { color: var(--pylon-text); font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Desktop game view: detail + scoreboard sidebar ── */
.gv-side { display: none; }
.game-view.swap { animation: none; }
.gv-side-h { display: flex; align-items: baseline; gap: 8px; font: 800 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 2px 12px; }
.gv-side-h span { font: 700 12px/1 var(--cond); letter-spacing: 0.08em; color: var(--muted); }
.gv-side-list { display: flex; flex-direction: column; gap: 18px; }
.gv-side .current { box-shadow: 0 0 0 2px var(--pylon), var(--shadow); }
.gv-side .lrow.current { box-shadow: inset 3px 0 0 var(--pylon); background: var(--surface-2); }
@media (min-width: 1080px) {
  .gv-wrap { display: grid; grid-template-columns: minmax(0, 760px) 380px; justify-content: center; column-gap: 28px; padding: 0 24px; }
  .gv-main { min-width: 0; }
  .gv-side { display: block; position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow-y: auto; padding: 14px 4px 32px; scrollbar-width: thin; }
  .gv-side .grid.two { grid-template-columns: 1fr; }
  .gv-side .sec { gap: 8px; }
}

/* ─────────────────────────  The GFFL bar + pages───────────────────────── */
/* The GFFL bar: league.html's #bnav, same seven entries (the last is this page, labelled Scores),
   same type and sizing, so moving between the two pages the bar does not jump. Phone: fixed at the
   bottom. Each box at 390px is (390 − 12) / 7 = 54px; 600 11px / .5px Barlow Condensed is GFFL's
   seven-tab type (MATCHUP inks ~39px in it). */
body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
.gnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  padding: 6px calc(6px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) calc(6px + env(safe-area-inset-left, 0px));
  background: var(--topbar-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-2);
}
.gnav a {
  flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center;
  padding: 6px 1px; font: 600 11px var(--cond); letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--faint); border-bottom: 2px solid transparent; white-space: nowrap;
}
.gnav a:hover { color: var(--ink-2); }
.gnav a[aria-current="page"] { color: var(--pylon-text); border-bottom-color: var(--pylon); }
/* Desktop: GFFL's own top strip, above Sunday's top bar, which now sticks just under it. */
@media (min-width: 1024px) {
  body { padding-bottom: 24px; }
  .gnav {
    position: sticky; top: 0; bottom: auto; height: 34px; padding: 0 24px; justify-content: center;
    border-top: 0; border-bottom: 1px solid var(--line);
  }
  .gnav a { flex: 0 0 auto; min-height: 0; height: 100%; padding: 0 12px; font-size: 12.5px; letter-spacing: 1.5px; color: var(--muted); }
  .gnav a[aria-current="page"] { color: var(--ink); }
  .topbar { top: 34px; }
}
/* GFFL's header (2026-09-28, user: "should feel like any other GFFL tab"): league.html's desktop
   masthead, measured off it: 46px including a 3px red top rule, 24px side padding, 700 20px / 1.2px
   wordmark, the tagline centred in white 700 11px, the 30px crest pinned right. The gnav sticks
   under it at 46px, as #bnav does there, and the game view starts under both (80px). The week
   picker and Settings sit where GFFL shows "Week N · year", so Scores' own bar goes: the board's
   top bar, and the game view's week row (its phone strip stays until the sidebar takes over). */
.ghdr { display: none; }
@media (min-width: 1024px) {
  .ghdr {
    position: sticky; top: 0; z-index: 31; display: flex; align-items: center; gap: 16px; box-sizing: border-box;
    height: calc(46px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 24px 0;
    background: var(--topbar-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 3px solid var(--pylon);
  }
  .gh-word { font: 700 20px/1 var(--cond); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
  .gh-word span { color: var(--pylon-text); }
  .gh-sub { flex: 1 1 auto; text-align: center; font: 700 11px var(--body); color: var(--ink); }
  .gh-meta { display: flex; align-items: center; gap: 6px; }
  .gh-week .icon-btn { width: 32px; height: 32px; }
  .gh-week .week-label { min-height: 32px; font: 600 12px var(--cond); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
  .gh-meta .gv-set { width: 32px; height: 32px; }
  .gh-av { width: 32px; height: 32px; flex: none; display: flex; }
  .gh-av[hidden] { display: none; }
  .gh-crest { flex: none; display: block; height: 30px; width: auto; }
  .gnav { top: calc(46px + env(safe-area-inset-top, 0px)); }
  .topbar { display: none; }
  .game-view { top: calc(80px + env(safe-area-inset-top, 0px)); }
  .g-top { padding-top: 0; }
  .g-top-row { display: none; }
}
@media (min-width: 1080px) { .g-top { display: none; } }
.badge-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--pylon); box-shadow: 0 0 0 2px var(--bg); }
#settings-btn { position: relative; }
#settings-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page { max-width: 760px; margin: 0 auto; padding: 14px var(--gutter) 24px; }
.page-in { display: flex; flex-direction: column; gap: 12px; }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-h h2 { margin: 0; font: 800 30px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.page-h .seg { margin: 0; }
.page-sub { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.page-sub.others b { color: var(--ink-2); }
.muted-p { margin: 10px 0; color: var(--muted); font-size: 14px; }
.ldot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pylon); margin: 0 4px; vertical-align: 1px; animation: pulse 1.6s ease-out infinite; }

/* Rankings */
.rk-row { display: grid; grid-template-columns: 26px 34px 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 8px 14px; border-top: 1px solid var(--line); }
.rk-row:first-child { border-top: 0; }
.rk-row:active { background: var(--surface-2); }
.rk-n { font: 800 22px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.trend { font: 700 11px/1 var(--cond); letter-spacing: 0.04em; color: var(--faint); text-align: center; }
.trend.up { color: var(--good); }
.trend.down { color: var(--bad-text); }
.trend.new { color: var(--pylon-text); text-transform: uppercase; }
.rk-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-nm b { font: 600 16px/1.1 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-nm small { font: 600 12px/1 var(--cond); letter-spacing: 0.04em; color: var(--muted); }
.gchip { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 800 15px/1 var(--display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.gchip small { font: 600 11px/1 var(--cond); letter-spacing: 0.04em; color: var(--muted); }
.gchip.up { color: var(--good); }
.gchip.down { color: var(--bad-text); }
.gchip .ldot { margin: 0 4px 0 0; }

/* Standings */
.conf-chips { padding: 2px 0 4px; margin: 0; max-width: none; }
.st { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.st th { font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st th:nth-child(2) { text-align: left; }
.st td { padding: 0 8px; height: 46px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
.st tr:first-child td { border-top: 0; }
.st .st-n { width: 28px; color: var(--faint); font: 700 13px/1 var(--cond); }
.st td:nth-child(2) { text-align: left; width: 100%; }
.st-team { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.st-team img { width: 22px; height: 22px; }
@media (max-width: 380px) { .st .st-strk { display: none; } }

/* Team page */
.t-hero-in { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-items: center; padding: 16px var(--gutter); }
.t-hero-in.on-light { color: #fff; }
.t-hero-in.on-dark { color: #111611; }
@media (min-width: 640px) { .t-hero-in { margin: 12px var(--gutter) 0; border-radius: 16px; } }
.t-logo, .t-hero-in .logo-fb { width: 72px; height: 72px; object-fit: contain; }
.t-id h2 { margin: 0; font: 800 30px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.t-id p { margin: 3px 0 0; font: 600 14px/1.2 var(--cond); letter-spacing: 0.04em; opacity: 0.9; }
.t-id .t-meta { margin-top: 6px; }
.lrow.sched { grid-template-columns: 64px minmax(0, 1fr) auto; }
.res { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.res.w { color: var(--good); }
.res.l { color: var(--bad-text); }
.res.live { color: var(--pylon-text); }
.res.pre { font: 700 13px/1.2 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); display: flex; flex-direction: column; align-items: flex-end; }
.res.pre small { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; }
.lg-link { display: block; border-radius: 10px; }
.team-view .tab-body { padding-bottom: 24px; }

/* Moments + highlights */
.mom-box { padding: 2px 0; }
.mom { border-top: 1px solid var(--line); padding: 4px 12px; }
.mom:first-child { border-top: 0; }
.mom-main { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 0; min-height: 48px; }
.mom-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--display); background: var(--ink); color: var(--surface); }
.mom-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mom-k { font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mom-t { font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swing { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 6px 8px; border-radius: 8px; box-shadow: inset 3px 0 0 var(--tc); background: var(--surface-2); }
.swing b { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.swing small { font: 700 11px/1 var(--cond); letter-spacing: 0.08em; color: var(--muted); }
.mom-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px 36px; }
.clip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.clip-btn svg { width: 10px; height: 10px; fill: currentColor; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.vid { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.vth { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.vth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,0.55); color: #fff; }
.vplay svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.vdur { position: absolute; right: 6px; bottom: 6px; font: 700 11px/1 var(--cond); padding: 3px 5px; border-radius: 4px; background: rgba(0,0,0,0.7); color: #fff; }
.vh { font-size: 13px; line-height: 1.3; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vmodal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); background: rgba(0,0,0,0.85); }
.vm-in { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 10px; }
.vm-in video { width: 100%; max-height: 75dvh; border-radius: 12px; background: #000; }
.vm-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; font-size: 14px; }
.vm-cap .icon-btn { color: #fff; width: 44px; height: 44px; }

/* Settings */
.set-note { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sw-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.sw-row span { display: flex; flex-direction: column; gap: 3px; }
.sw-row b { font-weight: 600; font-size: 15px; }
.sw-row small { font-size: 13px; color: var(--muted); }
.sw-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-row i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background 0.2s; box-shadow: inset 0 0 0 1px var(--line-2); }
.sw-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.2s; }
.sw-row input:checked + i { background: var(--good); }
.sw-row input:checked + i::after { transform: translateX(18px); }
.sw-row input:focus-visible + i { outline: 2px solid var(--pylon); outline-offset: 2px; }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sheet .seg { margin-bottom: 8px; }

/* Play animations */
.lp-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-watch { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--bg); white-space: nowrap; }
.lp-watch::after { content: ""; position: absolute; inset: -8px -4px; }
.lp-watch svg { width: 8px; height: 8px; fill: currentColor; }
.pl-anim { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pl-anim::after { content: ""; position: absolute; inset: -8px; }
.pl-anim svg { width: 9px; height: 9px; fill: currentColor; margin-left: 2px; }
.ra { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 12px; background: rgba(0,0,0,0.72); }
.ra-in { width: 100%; max-width: 760px; max-height: 100%; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.ra-top { display: flex; align-items: center; gap: 10px; }
.ra-meta { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 700 12px/1.2 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ra-meta b { font: 800 17px/1 var(--display); letter-spacing: 0.04em; color: var(--ink); }
.ra-meta .ra-sc { color: var(--ink-2); }
.ra-top .icon-btn { width: 44px; height: 44px; flex: none; }
.ra-stage { position: relative; border-radius: 6px; overflow: hidden; background: #23793a; aspect-ratio: 4 / 3.1; box-shadow: 0 0 0 3px #101010; }
@media (min-width: 640px) { .ra-stage { aspect-ratio: 16 / 9; } }
.ra-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.ra-banner { position: absolute; left: 50%; top: 5px; transform: translate(-50%, -8px) scale(0.9); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 11px; background: var(--bb, #1a2a8a); color: var(--bi, #fff); box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #101010, 6px 8px 0 3px rgba(0,0,0,0.35); white-space: nowrap; pointer-events: none; transition: opacity 0.12s steps(3), transform 0.18s steps(3); }
.ra-banner.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ra-banner b { font: 400 14px/1.1 "Press Start 2P", monospace; text-transform: uppercase; }
.ra-banner span { font: 400 8px/1.2 "Press Start 2P", monospace; text-transform: uppercase; }
/* The halftime desk's chat bubble (2026-09-28): white card, hard black pixel border and shadow, the
   speaker's name in their suit colour, a tail down to their head (--tx from the bubble's left). */
.ht-bub { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 0.5em; padding: 0.8em 0.9em; background: #fbfbf4; color: #101010; box-shadow: 0 0 0 2px #101010, 4px 4px 0 2px rgba(0,0,0,0.4); font: 400 9px/1.55 "Press Start 2P", monospace; pointer-events: none; opacity: 0; transition: opacity 0.1s steps(2); overflow-wrap: anywhere; }
.ht-bub.on { opacity: 1; }
/* "Halftime show / starts in 0:30" while the script is written (2026-09-28), over the monitor. */
.ht-soon { position: absolute; z-index: 2; left: 50%; top: 9%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.7em; padding: 0.9em 1.3em; background: #0d1a3f; color: #ffd21f; box-shadow: 0 0 0 2px #fbfbf4, 0 0 0 4px #101010, 4px 6px 0 3px rgba(0,0,0,0.4); font: 400 11px/1.3 "Press Start 2P", monospace; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.ht-soon[hidden] { display: none; }
/* Over a replay in the desk show (2026-09-28): the speaking analyst's inset is drawn on the canvas
   (top left); this is their speech bubble beside it along the top, its tail pointing left at them
   (--ty from the bubble's top). No REPLAY tag: the inset says who is talking over what. */
.ht-cap { position: absolute; z-index: 2; right: 6px; display: flex; flex-direction: column; gap: 0.45em; padding: 0.7em 0.85em; background: #fbfbf4; color: #101010; box-shadow: 0 0 0 2px #101010, 4px 4px 0 2px rgba(0,0,0,0.35); font: 400 9px/1.5 "Press Start 2P", monospace; pointer-events: none; overflow-wrap: anywhere; }
.ht-cap[hidden] { display: none; }
.ht-cap b { font-weight: 400; font-size: 0.85em; text-transform: uppercase; }
.ht-cap::before { content: ""; position: absolute; right: 100%; top: var(--ty, 12px); border: 6px solid transparent; border-right: 9px solid #101010; }
.ht-cap::after { content: ""; position: absolute; right: calc(100% - 3px); top: calc(var(--ty, 12px) + 2px); border: 4px solid transparent; border-right: 7px solid #fbfbf4; }
.ht-soon span { color: #fbfbf4; font-size: 0.8em; font-variant-numeric: tabular-nums; }
.ht-bub b { font-weight: 400; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.02em; }
.ht-bub.dots span { letter-spacing: 0.3em; }
.ht-bub::after { content: ""; position: absolute; top: 100%; left: calc(var(--tx, 50%) - 6px); border: 6px solid transparent; border-top: 8px solid #101010; }
.ht-bub::before { content: ""; position: absolute; top: calc(100% - 2px); left: calc(var(--tx, 50%) - 4px); z-index: 1; border: 4px solid transparent; border-top: 6px solid #fbfbf4; }
.ra-ctl { display: grid; grid-template-columns: 1fr 1.3fr 64px 1fr; gap: 8px; }
.ra-b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 12px; font: 700 13px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.ra-b svg { width: 10px; height: 10px; fill: currentColor; }
.ra-b.main { background: var(--ink); color: var(--bg); box-shadow: none; }
.ra-b:disabled { opacity: 0.35; cursor: default; }
.ra-tx { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.ra-follow { border-top: 1px solid var(--line); min-height: 52px; }
@media (max-width: 520px) { .ra { padding: 0; place-items: end stretch; } .ra-in { border-radius: 18px 18px 0 0; max-height: 96dvh; padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }

/* Yardage inside play text */
.yds { font-weight: 700; color: var(--ink); }
.yds.neg { color: var(--bad-text); }

/* Live field card, top of the desktop sidebar */
.side-live { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px 12px; cursor: pointer; }
.side-live:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.sl-h { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); flex: none; }
.sl-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0262b; }
.sl-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #228b2e; box-shadow: 0 0 0 2px #101010; }
.sl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.ra-banner.sl-banner { top: 4px; padding: 5px 8px; gap: 3px; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #101010; }
.ra-banner.sl-banner b { font-size: 10px; }
.ra-banner.sl-banner span { font-size: 7px; }
.sl-tx { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }

/* RedZone (sd-redzone.js): its own entry, first in the phone strip and at the top of the desktop
   sidebar. Opened, the game view follows it from game to game, and under the field this card (the live
   games as channels, the league's fantasy feed) takes the place of one game's tabs. */
.rzn { margin: 10px var(--gutter) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px 12px; }
.rzn[hidden], .rzn-chs[hidden], .rzn-entry[hidden] { display: none; }
.game-view.rz-mode #tabs, .game-view.rz-mode #tab-body { display: none; }
.rzn-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rzn-logo { display: inline-flex; align-items: center; gap: 7px; font: italic 800 20px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.rzn-logo b { color: var(--pylon-text); font-weight: 800; }
.rzn-logo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0262b; box-shadow: 0 0 0 3px color-mix(in srgb, #e0262b 25%, transparent); animation: rzn-pulse 1.6s ease-in-out infinite; }
@keyframes rzn-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #e0262b 0%, transparent); } }
.rzn-n { margin-left: auto; font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rzn-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 20px; font: 600 13px/1.2 var(--cond); letter-spacing: 0.04em; color: var(--ink-2); }
.rzn-now:empty { display: none; }
.rzn-mo { flex: none; font: 700 11px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad-text); }
.rzn-mo.k-score { background: var(--flag); color: var(--flag-ink); }
.rzn-mo.k-turnover { background: var(--bad); color: #ffffff; }
.rzn-mo.k-big, .rzn-mo.k-gffl, .rzn-mo.k-play, .rzn-mo.k-pat, .rzn-mo.k-dead { background: var(--surface-3); color: var(--ink-2); }
/* The cut: a red bar sweeps across the field as the new game comes up. */
.stadium.rz-cut { position: relative; }
.stadium.rz-cut::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(100deg, transparent 0 30%, var(--pylon) 30% 70%, transparent 70%); transform: translateX(-100%); animation: rzn-wipe 0.45s ease-out forwards; }
@keyframes rzn-wipe { to { transform: translateX(100%); } }
.rzn-chs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rzn-ch { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font: 600 13px/1 var(--cond); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; cursor: pointer; }
.rzn-ch i { font-style: normal; color: var(--faint); }
.rzn-ch:hover { border-color: var(--muted); color: var(--ink); }
.rzn-ch.on { border-color: var(--pylon); background: var(--surface-3); color: var(--ink); }
.rzn-ch.rz::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0262b; }
.rzn-ch.news::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 0 2px var(--surface); }
.rzn-ch.half { opacity: 0.55; }
.rzn-fh { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; font: 700 12px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rzn-fh small { margin-left: auto; font: 600 11px/1 var(--cond); letter-spacing: 0.06em; color: var(--faint); }
.rzn-feed { max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid var(--line); }
.rzn-row { display: block; padding: 8px 2px 9px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rzn-row:hover { background: var(--surface-2); }
.rzn-rm { display: flex; gap: 8px; font: 600 11px/1 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.rzn-rt { color: var(--ink-2); }
.ff-play.rzn-rc { margin-top: 5px; }
.rzn-rx { margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rzn-rx .yds { color: var(--ink-2); }
.rzn-empty { padding: 14px 4px; font-size: 13px; color: var(--muted); }
/* The entries. Desktop: a card at the top of the sidebar's games. Phone: the strip's first item. */
.rzn-entry { display: grid; gap: 4px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.rzn-entry:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.rzn-entry.current { box-shadow: 0 0 0 2px var(--pylon), var(--shadow); }
.rzn-es { font: 700 13px/1.2 var(--cond); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.rzn-eg { font-size: 12px; color: var(--muted); }
.gs-it.gs-rz { align-content: center; }
.gs-rz .rzn-logo { font-size: 15px; gap: 5px; }
.gs-rz .rzn-logo::before { width: 6px; height: 6px; }

/* Field view ↔ big 8-bit view */
.fv-tog { position: relative; flex: none; min-height: 32px; padding: 0 11px; margin-left: 8px; border-radius: 999px; font: 400 9px/1 "Press Start 2P", monospace; letter-spacing: 0; text-transform: uppercase; color: var(--stadium-ink); box-shadow: inset 0 0 0 1.5px var(--stadium-ctl-line); background: var(--stadium-ctl); white-space: nowrap; }
.fv-tog::after { content: ""; position: absolute; inset: -6px -3px; }
.field-cap .fv-tog:first-of-type:not(:only-child) { margin-left: 8px; }
.field-cap:not(:has(.ret)) .fv-tog { margin-left: auto; }
.stadium.tecmo .field-3d, .stadium.rp8 .rp-start { display: none; }
.big-tecmo { margin-top: 4px; }
.bt-stage { aspect-ratio: 16 / 10; }
.sl-stage.studio-tall { aspect-ratio: 4 / 3; }        /* the halftime desk on a narrow stage (sideRun) */
.bt-tx { margin: 8px 4px 0; color: var(--stadium-ink-2); }
.stadium.tecmo .fv-tog { margin-left: auto; }
.stadium.tecmo:not(.rp8) .field-cap .ret + .fv-tog { margin-left: 8px; }

/* 8-bit replay: from game start or this drive, at 1×, 2× or 3× */
.bt-rp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin: 8px 2px 0; }
.bt-rp[hidden] { display: none; }
/* The drive row under the replay controls (2026-09-28): one chip per drive, scrolls sideways, the
   drive being replayed lit in its team's colour. */
.rp-drs { flex: 1 0 100%; display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.rp-drs::-webkit-scrollbar { display: none; }
.bt-rp .rp-dr { flex: none; display: grid; gap: 2px; min-width: 64px; min-height: 44px; padding: 6px 9px; border-radius: 10px; text-align: left; scroll-snap-align: center;
  background: var(--stadium-ctl); color: var(--stadium-ink); box-shadow: inset 0 0 0 1.5px var(--stadium-ctl-line), inset 4px 0 0 var(--tc, transparent); }
.bt-rp .rp-dr b { font: 400 9px/1 "Press Start 2P", monospace; }
.bt-rp .rp-dr span { font: 600 11px/1.1 var(--cond); letter-spacing: 0.04em; text-transform: uppercase; color: var(--stadium-ink-2); white-space: nowrap; }
.bt-rp .rp-dr.on { box-shadow: inset 0 0 0 2px var(--tc, #fff), inset 4px 0 0 var(--tc, transparent); background: color-mix(in srgb, var(--tc, #333) 28%, var(--stadium-ctl)); }
.bt-rp button {
  position: relative; flex: none; min-height: 36px; min-width: 36px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; gap: 6px; align-items: center; justify-content: center;
  font: 700 12px/1 var(--cond); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: var(--stadium-ctl); color: var(--stadium-ink); box-shadow: inset 0 0 0 1px var(--stadium-ctl-line);
}
.bt-rp button::after { content: ""; position: absolute; inset: -4px; }
.bt-rp button svg { width: 10px; height: 10px; fill: currentColor; }
.bt-rp-l { flex: 1 1 auto; min-width: 0; font: 600 12px/1.2 var(--cond); letter-spacing: 0.08em; color: var(--stadium-ink-2); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.bt-rp .ch { flex: 1 1 auto; max-width: 220px; }
.bt-sp { display: inline-flex; flex: none; border-radius: 999px; background: var(--stadium-ctl); box-shadow: inset 0 0 0 1px var(--stadium-ctl-line); }
.bt-rp .bt-sp + button { margin-left: auto; }
.bt-spw { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.bt-rp .bt-sp button { min-width: 44px; padding: 0 10px; background: transparent; box-shadow: none; }
.bt-rp .bt-sp button[aria-pressed="true"] { background: var(--stadium-ink); color: var(--stadium-on); }
.ra-credit { margin: 6px 4px 0; font-size: 11px; line-height: 1.35; color: var(--stadium-ink-2); }
.ra .ra-credit { margin: 0; color: var(--faint); }
