/* =====================================================================
   THEME: "Saturday night broadcast"
   The presentation layer: a night stadium behind everything, glass panels,
   italic condensed type, angled broadcast shapes, scoreboard numerals.
   Loaded last; game logic and markup stay the same. Team colors arrive as
   --accent / --team / --team-2 from identity.js.
   ===================================================================== */

:root {
  --bg: #070a10;
  --panel: #0f141d;
  --panel-2: #161c28;
  --line: #222a38;
  --glass: rgba(14, 19, 28, 0.82);
  --glass-2: rgba(22, 29, 42, 0.86);
  --hairline: rgba(255, 255, 255, 0.07);
  --ink: #eef2f8;
  --ink-2: #aab4c4;
  --ink-3: #6d788b;
  --team: var(--accent);
  --shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --skew: -10deg;
}

html { background: var(--bg); }
body { background: transparent; }
body { font-feature-settings: "tnum" 1, "ss01" 1; -webkit-font-smoothing: antialiased; }

/* ---- the stage: night stadium behind every screen --------------------- */
.stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stage-lights {
  position: absolute; inset: -20% -10% auto -10%; height: 90vh;
  background:
    radial-gradient(40% 55% at 12% 0%, rgba(255, 246, 214, 0.10), transparent 70%),
    radial-gradient(40% 55% at 88% 0%, rgba(255, 246, 214, 0.10), transparent 70%),
    radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--team) 22%, transparent), transparent 75%);
}
.stage-field {
  position: absolute; left: -10%; right: -10%; bottom: -8vh; height: 46vh;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9%),
    linear-gradient(180deg, transparent, rgba(30, 92, 51, 0.16) 55%, rgba(30, 92, 51, 0.24));
  transform: perspective(600px) rotateX(58deg); transform-origin: bottom;
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.stage-grain {
  position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.55)); }
/* #game and #menu stay out of any stacking context, so the fixed tab bar and button can sit above the fades */

/* ---- type ----------------------------------------------------------------- */
h2, .logo, .dlg-title, .prog-name, .moment-title, .fac-name, .group-head b, .pcard-name, .hero-name, .award .v, .matchup, .clutch-sit, .fired-title {
  font-style: italic; text-transform: uppercase; letter-spacing: 0.02em;
}
h2 { font-weight: 800; font-size: 19px; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 9px; }
.panel-head h2::before {
  content: ""; width: 5px; height: 17px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff));
  transform: skewX(var(--skew)); border-radius: 1px; flex: none;
}
.big, .money, .fact .v, .gauge.deal b, .prog-stats b, .pcard-num, .gap-num { font-variant-numeric: tabular-nums; }

/* ---- header: the scorebug ------------------------------------------------ */
.top {
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.94), rgba(8, 11, 17, 0.80));
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--hairline), 0 12px 30px -18px #000;
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--team-2, var(--accent)) 50%, var(--accent) 82%, transparent);
  opacity: 0.85;
}
.brand-crest {
  padding: 5px; background: linear-gradient(135deg, color-mix(in srgb, var(--team) 55%, #000), #0b0f17);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); filter: drop-shadow(0 4px 10px #000a);
}
.logo {
  font-weight: 900; font-size: 25px; letter-spacing: 0.16em;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--accent) 70%, #fff) 60%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px color-mix(in srgb, var(--accent) 40%, transparent));
}
.school { font-style: italic; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13.5px; color: var(--ink-2); }
.pill {
  border-radius: 0; border: 0; background: rgba(255, 255, 255, 0.06); font-style: italic;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding: 7px 18px;
}
.pill.phase { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #fff)); color: var(--accent-ink); }
.meter-label { font-size: 10px; letter-spacing: 0.14em; font-weight: 700; }
.meter.small .big { font-size: 26px; font-weight: 800; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent); }
.bar { height: 9px; background: rgba(255, 255, 255, 0.05); border: 0; box-shadow: inset 0 1px 2px #000a; }
.bar-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, #000), var(--accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent); }

/* the big button */
.advance {
  position: relative; overflow: hidden; border-radius: 0; font-style: italic; font-weight: 900; letter-spacing: 0.07em;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding: 13px 30px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 75%, #000));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.advance::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); animation: sheen 4.5s ease-in-out infinite;
}
.advance:hover { filter: brightness(1.08); transform: none; }
.advance:disabled { filter: grayscale(0.6); opacity: 0.5; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---- tabs ------------------------------------------------------------------ */
.tabs { background: rgba(8, 11, 17, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); gap: 2px; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; font-style: italic; font-weight: 800; letter-spacing: 0.1em; padding: 12px 16px; border-bottom: 0; }
.tabs button i { display: inline-flex; }
.tabs button .ico { width: 17px; height: 17px; opacity: 0.8; }
.tabs button.on { color: #fff; border: 0; }
.tabs button.on::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  background: var(--accent); transform: skewX(var(--skew)); box-shadow: 0 0 14px var(--accent);
}
.tabs button.on .ico { color: var(--accent); opacity: 1; }

/* ---- banner: a lower third ------------------------------------------------- */
.banner {
  position: relative; border: 0; border-radius: 4px 14px 14px 4px; padding: 13px 18px 13px 26px;
  background: linear-gradient(90deg, rgba(16, 21, 31, 0.95), rgba(16, 21, 31, 0.78));
  box-shadow: var(--shadow), inset 0 1px 0 var(--hairline);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000));
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
}
.hot-seat { color: #ffb1a3; }

/* ---- panels: glass with a team edge ---------------------------------------- */
.panel, .cycle-card, .game-card, .fac, .award, .coach-card {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.panel { position: relative; border-radius: 14px; }
.panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), transparent 65%); opacity: 0.75;
}
.panel-head { border-bottom: 1px solid var(--hairline); padding: 14px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); }
.cycle-card { border-left: 0; position: relative; padding-left: 20px; }
.cycle-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ink-3); }
.cycle-card.accent::before { background: var(--accent); }
.cycle-card.good::before { background: var(--good); }
.cycle-card.bad::before { background: var(--bad); }
.section-title { letter-spacing: 0.16em; font-weight: 700; color: var(--ink-3); }

/* rows */
.row { border-bottom: 1px solid var(--hairline); transition: background 0.15s, transform 0.15s; }
.row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.name { font-weight: 650; letter-spacing: 0.005em; }
.stars { background: linear-gradient(180deg, #ffe58a, #f2b230); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1.5px; }
.money { font-weight: 800; font-size: 17px; }
.tag { border-radius: 3px; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); letter-spacing: 0.08em; }
.tag.good { background: rgba(62, 207, 142, 0.10); }
.tag.bad { background: rgba(242, 85, 90, 0.12); }
.tag.warn { background: rgba(242, 197, 61, 0.10); }
.tag.info { background: rgba(90, 169, 242, 0.10); }
.tag.accent { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }

/* chips: angled */
.chip { border-radius: 0; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); padding: 4px 12px; border: 0; background: rgba(255, 255, 255, 0.06); font-style: italic; }
.chip.on { background: var(--accent); color: var(--accent-ink); }

/* buttons */
.btn {
  border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.10); transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary {
  border: 0; border-radius: 0; font-style: italic; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--cond); font-weight: 800; font-size: 15px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding: 10px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 80%, #000));
}
.btn.danger { border-color: rgba(242, 85, 90, 0.35); }
.opt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border-color: rgba(255, 255, 255, 0.09); border-radius: 10px; transition: border-color 0.15s, transform 0.15s; }
.opt:hover:not(:disabled) { transform: translateX(3px); }
.moment { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--glass-2)), var(--glass)); }

/* fact tiles */
.fact { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--hairline); border-radius: 10px; }
.fact .v { font-size: 22px; font-weight: 800; font-style: italic; }

/* scores: scoreboard slabs */
.score { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--hairline); border-radius: 8px; }
.score.mine { box-shadow: inset 4px 0 0 var(--accent); }
.score .w { font-family: var(--cond); font-weight: 800; font-size: 15px; }

/* tables */
.results th, table.mini th { letter-spacing: 0.14em; color: var(--ink-3); border-bottom-color: var(--hairline); }
.results td, table.mini td { border-bottom-color: var(--hairline); }
.results tr.you td, table.mini tr.you td { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 4%, transparent)); }

/* dialogs */
dialog {
  background: linear-gradient(180deg, #131a26, #0c1119); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px;
  box-shadow: 0 40px 100px -20px #000, 0 0 0 1px rgba(0, 0, 0, 0.6);
}
dialog::backdrop { background: rgba(3, 5, 9, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg-head { position: relative; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); }
.dlg-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.dlg-title { font-size: 28px; font-weight: 900; }
.dlg-foot { border-top-color: var(--hairline); }

/* toast: a broadcast lower third */
.toast {
  background: linear-gradient(90deg, #121826f2, #0d121bf2); color: var(--ink); border-radius: 4px 12px 12px 4px;
  border-left: 6px solid var(--accent); box-shadow: 0 18px 40px -10px #000, inset 0 1px 0 var(--hairline);
  padding: 13px 20px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* gauges & confidence */
.conf-bar { background: rgba(255, 255, 255, 0.05); border: 0; box-shadow: inset 0 1px 3px #000c; }
.conf-bar div { box-shadow: 0 0 14px currentColor; }
.confidence b { font-weight: 900; font-style: italic; }

/* ---- game day: the matchup ----------------------------------------------- */
.matchup-hero {
  position: relative; overflow: hidden; border-radius: 14px; margin: -2px 0 12px; min-height: 190px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--home) 70%, #000) 0 49.6%, transparent 49.6%),
    linear-gradient(105deg, transparent 50.4%, color-mix(in srgb, var(--away) 70%, #000) 50.4%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -20px #000;
}
.matchup-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 60%), linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}
.matchup-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.18;
  background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(255, 255, 255, 0.10) 22px 24px);
  mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
}
.mh-label {
  position: relative; z-index: 1; display: block; width: max-content; margin: 0 auto; padding: 5px 18px;
  font-family: var(--cond); font-style: italic; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
  background: #000a; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.mh-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 10px 14px 14px; }
.mh-team { display: grid; justify-items: center; gap: 2px; text-align: center; min-width: 0; }
.mh-team .helmet { width: 110px; height: auto; filter: drop-shadow(0 10px 14px #000c); }
.mh-team.opp svg.helmet { transform: scaleX(-1); }
.mh-team.opp .helmet text { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
.mh-name { font-family: var(--cond); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; text-shadow: 0 2px 10px #000; overflow-wrap: anywhere; }
.mh-rec { font-family: var(--cond); font-weight: 700; font-size: 15px; color: #ffffffcc; letter-spacing: 0.06em; }
.mh-mid { display: grid; justify-items: center; gap: 6px; }
.mh-vs {
  font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 26px; letter-spacing: 0.04em;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3346, #070a10); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 10px 22px #000;
}
.mh-odds { font-family: var(--cond); font-weight: 900; font-style: italic; font-size: 20px; line-height: 1; text-align: center; text-shadow: 0 2px 8px #000; }
.mh-odds small { display: block; font-size: 9.5px; letter-spacing: 0.14em; font-weight: 700; font-style: normal; color: #ffffffb0; text-transform: uppercase; }
.game-card { border-radius: 14px; }
.game-card.title { border-color: color-mix(in srgb, var(--star) 60%, transparent); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--star) 35%, transparent) inset; }

/* ---- player cards: a little more shine ----------------------------------- */
.pcard { transition: transform 0.18s ease, box-shadow 0.18s ease; box-shadow: 0 14px 28px -16px #000; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -16px #000, 0 0 0 1px color-mix(in srgb, var(--c1) 60%, transparent); }
.pcard::before { background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 92%, #fff), var(--c1) 35%, color-mix(in srgb, var(--c1) 40%, #000)); }
.pcard-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 100%, rgba(255, 255, 255, 0.18), transparent 70%); pointer-events: none; }
.hero { box-shadow: inset 0 -40px 60px -40px #000a; }

/* league and offer cards */
.prog { box-shadow: var(--shadow); transition: transform 0.18s ease; }
.prog:hover { transform: translateY(-2px); }
.prog-band { position: relative; }
.prog-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, 0.06) 10px 12px); }

/* ---- title screen ----------------------------------------------------------- */
.menu-screen { background: transparent; }
.menu-hero { position: relative; height: clamp(260px, 42vh, 420px); margin: -36px -20px 0; overflow: hidden; border-radius: 0 0 28px 28px; }
.menu-hero .stadium-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--bg)); }
.menu-hero .beams { animation: sway 9s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes sway { from { opacity: 0.75; } to { opacity: 1; } }
.menu-brand { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; padding: 0 20px; }
.big-logo {
  font-size: clamp(54px, 10vw, 104px) !important; font-weight: 900; letter-spacing: 0.18em; line-height: 0.95;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 45%, transparent));
}
.menu-tag { font-family: var(--cond); font-style: italic; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 15px; color: #dfe6f1; text-shadow: 0 2px 8px #000; }
.menu-inner { padding-top: 36px; }
.prog-card {
  position: relative; overflow: hidden; border: 1px solid var(--hairline); border-top: 0; border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1, #333) 30%, #0d121b) 0%, #0d121b 55%);
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prog-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c1, #555), var(--c2, #999)); }
.prog-card:hover { transform: translateY(-3px); }
.prog-card.on { box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
.prog-card-art .helmet { width: 58px; height: auto; filter: drop-shadow(0 6px 8px #000b); }
.prog-tier { font-style: italic; letter-spacing: 0.16em; }

/* ---- motion ----------------------------------------------------------------- */
#view > *, .cycle-cards { animation: rise 0.32s ease both; }
#view > main > * { animation: rise 0.34s ease both; }
#view > main > *:nth-child(2) { animation-delay: 0.04s; }
#view > main > *:nth-child(3) { animation-delay: 0.08s; }
#view > main > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .advance::after, .menu-hero .beams, #view > *, #view > main > *, .cycle-cards { animation: none; }
}

/* ---- phones ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .tabs { background: rgba(8, 11, 17, 0.92); }
  .tabs button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; }
  .tabs button .ico { width: 21px; height: 21px; }
  .tabs button.on::after { left: 22%; right: 22%; top: 0; bottom: auto; }
  .tabs button i { filter: none; }
  .tabs button:not(.on) .ico { opacity: 0.55; }
  .advance { position: fixed; clip-path: none; border-radius: 12px; }
  .mh-team .helmet { width: 72px; }
  .mh-name { font-size: 17px; }
  .mh-vs { width: 46px; height: 46px; font-size: 20px; }
  .matchup-hero { min-height: 160px; }
  .menu-hero { margin: -36px -16px 0; }
  .banner { border-radius: 4px 12px 12px 4px; }
}

.facts.two { grid-template-columns: 1fr 1fr; }

/* title-screen cards use their own stat line, not the league card's grid */
.prog-card .prog-stats { display: flex; gap: 10px; flex-wrap: wrap; padding: 6px 0 0; border: 0; margin-top: 6px; font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prog-card .prog-stats span { font-size: 11.5px; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.prog-card .prog-stats span:first-child { color: var(--ink); font-weight: 700; }

/* mid widths: the button keeps its shape instead of stretching across the header */
@media (min-width: 761px) and (max-width: 1180px) {
  .top .advance { justify-self: start; min-width: 300px; }
}
/* the win chance sits on its own plate so it reads on any team color */
.mh-odds { background: rgba(0, 0, 0, 0.62); padding: 5px 10px 4px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* timeline rows that are awards are not award cards */
.tl.award { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; padding: 6px; }

/* phones: a blurred header would become the frame for the fixed button inside it */
@media (max-width: 760px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, #080b11, #0a0e16); }
}

/* bigger portraits on the cards: the illustration is the point */
.pcard::before { height: 128px; }
.pcard-art { height: 98px; }
.pcard-art .avatar { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.face .avatar, .dlg-face .avatar { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }

/* ---- 3D renders ------------------------------------------------------------ */
img.helmet, img.crest { display: block; object-fit: contain; user-select: none; }
img.helmet-3d { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55)); }
.team img.crest { display: inline-block; vertical-align: middle; }
.hero-helmet { position: absolute; right: 3%; top: 4%; width: min(30vw, 320px); height: min(26vw, 270px); z-index: 1; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7)); }
@media (max-width: 760px) { .hero-helmet { right: 50%; transform: translateX(50%); bottom: 34%; width: 220px; height: 180px; opacity: 0.95; } }

/* ---- game day broadcast ------------------------------------------------------ */
dialog.live-dlg { width: min(1000px, calc(100vw - 24px)); }
.lv { display: grid; gap: 12px; padding: 14px; }
.lv-bug { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -12px #000, inset 0 0 0 1px rgba(255,255,255,.08); }
.lv-team { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.lv-team.me { background: linear-gradient(90deg, color-mix(in srgb, var(--me) 85%, #000), var(--me)); }
.lv-team.op { background: linear-gradient(270deg, color-mix(in srgb, var(--op) 85%, #000), var(--op)); justify-content: flex-end; }
.lv-abbr { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 22px; letter-spacing: .06em; text-shadow: 0 2px 6px #000a; }
.lv-score { font-family: var(--cond); font-weight: 900; font-size: 40px; line-height: 1; min-width: 48px; text-align: center; text-shadow: 0 2px 8px #000; font-variant-numeric: tabular-nums; }
.lv-team.me .lv-score { margin-left: auto; }
.lv-team.op .lv-score { margin-right: auto; }
.lv-clock { display: grid; place-items: center; align-content: center; padding: 6px 18px; background: #06080d; min-width: 150px; text-align: center; }
.lv-clock span { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.lv-clock small { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-field { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 16px 34px -18px #000; }
#lvBall { transition: transform .7s ease-out; }
.lv-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lv-meters span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.lv-wp { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.lv-wp b { font-family: var(--cond); font-weight: 900; font-size: 22px; text-align: right; }
.lv-wpbar, .lv-mobar { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--op) 55%, #111); overflow: hidden; }
.lv-wpbar div { height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--me) 70%, #000), var(--me)); transition: width .6s ease; }
.lv-mo { display: grid; gap: 6px; }
.lv-mobar { background: rgba(255,255,255,.06); }
.lv-mobar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(255,255,255,.4); }
.lv-mobar div { position: absolute; top: 0; bottom: 0; transition: all .5s ease; }
.lv-feed { max-height: 260px; overflow-y: auto; display: grid; gap: 4px; padding-right: 4px; }
.lv-item { display: grid; grid-template-columns: 74px 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.035); font-size: 13px; animation: rise .35s ease both; }
.lv-item.score { background: linear-gradient(90deg, color-mix(in srgb, var(--me) 30%, transparent), transparent 70%); font-weight: 600; }
.lv-item.score.op { background: linear-gradient(90deg, color-mix(in srgb, var(--op) 30%, transparent), transparent 70%); }
.lv-time { font-family: var(--cond); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lv-sc { font-family: var(--cond); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.lv-break { text-align: center; font-family: var(--cond); font-style: italic; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--warn); padding: 4px 0; }
.lv-call { display: none; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, #0f141d), #0c1119); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); animation: rise .3s ease both; }
.lv-call.on { display: block; }
.lv-call-head { display: grid; gap: 2px; margin-bottom: 10px; }
.lv-call-head b { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.lv-call-head span { color: var(--ink-2); }
.lv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-bottom: 8px; }
.lv-final { text-align: center; display: grid; gap: 8px; }
.lv-final-score { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 40px; letter-spacing: .04em; }
.lv-final.win .lv-final-score { color: var(--good); }
.lv-final.loss .lv-final-score { color: var(--bad); }
.lv-final-actions { display: flex; justify-content: center; gap: 10px; }
.lv-controls { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.watch-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.watch-toggle input { accent-color: var(--accent); }
@media (max-width: 760px) {
  .lv { padding: 10px; gap: 10px; }
  .lv-score { font-size: 30px; min-width: 34px; }
  .lv-abbr { font-size: 17px; }
  .lv-team { padding: 6px 8px; gap: 6px; }
  .lv-team img.crest, .lv-team svg.crest { width: 26px; height: 26px; }
  .lv-clock { min-width: 92px; padding: 4px 8px; }
  .lv-meters { grid-template-columns: 1fr; gap: 8px; }
  .lv-item { grid-template-columns: 58px 18px 1fr auto; font-size: 12px; }
  .lv-feed { max-height: 200px; }
}

/* ---- v1.8: difficulty, word readout, Hall of Fame, New Game+, Pro GM ---- */
.meter-sub { font-size: 10px; color: var(--ink-2); letter-spacing: 0.04em; margin-top: -2px; white-space: nowrap; }
.dial-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dial-row:last-of-type { border-bottom: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-btn { padding: 7px 10px; font-size: 12px; font-weight: 700; background: transparent; color: var(--ink-2); border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.seg-btn:last-child { border-right: 0; }
.seg-btn.on { background: var(--accent); color: var(--accent-ink); }
.preset { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.preset select { padding: 8px 10px; }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.btn.tiny.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pos-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.hof-gm, .pro-offer-row { display: flex; align-items: center; gap: 14px; }
.hof-gm { padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, #d8b25a 22%, transparent), transparent); border: 1px solid color-mix(in srgb, #d8b25a 45%, transparent); margin-bottom: 10px; }
.hof-title { font-family: var(--cond); font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.hof-news .panel-head h2 { color: #e8c874; }
.pro-offer { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pro-player { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pro-player .avatar { flex: none; border-radius: 8px; }
.ovr { font-family: var(--cond); font-size: 18px; }
tr.dim-row td { opacity: 0.5; }
tr.hurt td { background: color-mix(in srgb, var(--bad) 10%, transparent); }
tr.cutline td { border-bottom: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.wire-item.hurt { border-left: 3px solid var(--bad); }
.pro-matchup { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.mu-mid { text-align: center; }
.mu-vs { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.bracket { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.b-round .wire-item { font-size: 12px; }
@media (max-width: 760px) {
  .dial-row { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; padding: 8px 4px; }
  .bracket { grid-template-columns: 1fr; }
  .pro-matchup svg, .pro-matchup img { width: 40px; height: auto; }
}

/* ---- compared with last season ---- */
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.cmp-table { width: 100%; }
.cmp-table td, .cmp-table th { padding: 5px 6px; }
.cmp-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cmp-g { display: grid; justify-items: center; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.cmp-g b { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); }
.cmp-g span { font-family: var(--cond); font-weight: 800; font-size: 20px; }
.cmp-g small { font-size: 10px; color: var(--ink-2); }
.cmp-g.bad { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.cmp-g.bad small { color: var(--bad); }
.cmp-g.good { border-color: color-mix(in srgb, var(--good) 55%, transparent); }
.cmp-g.good small { color: var(--good); }
.cmp .fixes li { margin-bottom: 8px; }
@media (max-width: 760px) {
  .cmp-grid { grid-template-columns: 1fr; }
}

/* A decision the big button is waiting on: flash it when you get sent there. */
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 3px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent); } }
.moment.nudge { animation: nudge 1.4s ease 2; border-radius: 12px; }
