/* Minimal Draft v1: a lighter shared canvas with restrained Copper Court accents.
   Shared by every page; game rules and semantic result colors stay game-owned. */
:root {
  --arena-version: minimal-draft-v1;
  --bg: #fbf8f1;
  --bg-soft: #f3efe7;
  --surface: #fffdf8;
  --surface-2: #f0ece3;
  --surface-3: #e5ddd2;
  --ink: #202426;
  --muted: #525957;
  --muted-2: #5a615e;
  --orange: #f39a5a;
  --orange-light: #ffc08a;
  --green: #f39a5a;
  --line: rgba(236, 215, 197, .15);
  --line-strong: rgba(236, 215, 197, .28);
  --arena-highlight: rgba(243, 154, 90, .1);
  --arena-panel: linear-gradient(150deg, rgba(243, 154, 90, .055), transparent 58%), var(--surface);
}

body[data-game-frame] {
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 290px, rgba(177, 87, 39, .21), transparent 620px),
    radial-gradient(ellipse at 85% 30px, rgba(255, 192, 138, .045), transparent 440px),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  background-size: 100% 1000px;
  background-repeat: no-repeat;
}
body[data-game-frame] .noise { opacity: .022; }
.site-header--common { border-bottom-color: var(--line); }
.site-footer--common { color: var(--muted-2); border-top-color: var(--line); }
.game-titlebar { border-top-color: var(--line); border-bottom-color: var(--line); }
.game-nav-sidebar {
  border-right-color: var(--line);
  background: linear-gradient(180deg, #201812, #15110f 72%);
  color: var(--muted);
}
.game-nav-sidebar nav a, .game-nav-about { color: var(--muted); }
.game-nav-icon img, .game-nav-fallback {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(243, 154, 90, .14), rgba(255, 255, 255, .025));
  filter: saturate(.86) brightness(.98) contrast(1.02);
}
.game-titlebar details nav { background: var(--surface); border-color: var(--line-strong); }

/* Adapt existing page-specific tokens to the same palette. */
.games-page--picker {
  --picker-bg: var(--bg);
  --picker-panel: var(--surface);
  --picker-panel-2: var(--surface-2);
  --picker-ink: var(--ink);
  --picker-muted: var(--muted);
  --picker-dim: var(--muted-2);
  --picker-orange: var(--orange);
  --picker-orange-light: var(--orange-light);
  --picker-cream: #f3c99c;
  --picker-line: var(--line);
}
.bingo-page {
  --bingo-bg: var(--bg);
  --bingo-panel: var(--surface);
  --bingo-panel-deep: var(--bg-soft);
  --bingo-panel-soft: var(--surface-2);
  --bingo-ink: var(--ink);
  --bingo-muted: var(--muted);
  --bingo-dim: var(--muted-2);
  --bingo-orange: var(--orange);
  --bingo-orange-light: var(--orange-light);
  --bingo-line: var(--line);
  --bingo-line-strong: var(--line-strong);
}

/* Brighter neutral surfaces; selected, correct, wrong and trophy states are untouched. */
.picker-card-art--game-icon {
  background: radial-gradient(circle at 50% 48%, rgba(219, 119, 58, .2), transparent 68%),
    linear-gradient(145deg, var(--surface-3), var(--bg-soft) 78%);
}
.picker-guide, .policy-grid, .ref-card, .league-prose article, .league-faq { background: var(--arena-panel); }
.wordle-panel, .wordle-onboarding-dialog, .wordle-suggestions,
.wordle-stat, .league-change nav { background: var(--surface); }
.wordle-search, .wordle-modes { background: var(--bg-soft); }
.wordle-cell--empty { background: var(--surface-2); }
.grid-board, .grid-system-state, .grid-archive, .grid-clue-guide,
.quiz-status, .bingo-stats, .bingo-archive, .bingo-guide { background: var(--surface); }
.grid-cell.open { background: var(--bg-soft); }
.grid-cell.open:hover { background: var(--surface-2); }
.bingo-player-stage { background: var(--arena-panel); }
.bingo-tile--open { background: var(--surface); }
.bingo-tile--open:hover { background: var(--surface-2); }
.quiz-card { background: radial-gradient(circle at 95% 5%, rgba(243, 154, 90, .1), transparent 34%), var(--surface); }

/* Keep the existing Starting Five layout, but remove the unrelated blue-gray panels. */
body[data-game-frame="starting-five"] .player-card,
body[data-game-frame="starting-five"] .result-card-five { background: var(--surface); }
body[data-game-frame="starting-five"] .player-photo {
  background: radial-gradient(circle at 50% 38%, #4b3528, var(--surface) 62%, var(--bg-soft));
}
body[data-game-frame="starting-five"] .player-photo::after { background: linear-gradient(transparent, var(--surface)); }
body[data-game-frame="starting-five"] .lineup-slot:not(.active) { background: var(--surface); }

/* Connections: the selected preview's larger cards, clearer labels and subtle court. */
.connections-page { --c-board-size: min(556px, calc(100vw - 32px)); }
.connections-game { position: relative; isolation: isolate; min-height: 660px; padding-top: 28px; }
.connections-game::before {
  position: absolute;
  z-index: -1;
  top: 5px;
  left: 50%;
  width: min(720px, 100%);
  height: 670px;
  border: 1px solid rgba(255, 185, 126, .035);
  border-radius: 34px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 185, 126, .025) 50%, transparent calc(50% + .5px)),
    radial-gradient(ellipse at 50% 38%, rgba(243, 154, 90, .045), transparent 70%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}
.connections-daily-meta, .connections-status { font-size: .68rem; }
.connections-daily-meta strong { font-size: .73rem; }
.connections-card {
  border-color: var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(155deg, var(--surface-3), var(--surface-2));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16), 0 1px 0 rgba(255, 255, 255, .025) inset;
}
.connections-card img { height: 79%; filter: saturate(.76) brightness(.98) contrast(1.04); }
.connections-monogram {
  bottom: 24%;
  background: radial-gradient(circle at 50% 45%, rgba(243, 154, 90, .18), transparent 62%),
    linear-gradient(145deg, rgba(243, 154, 90, .08), rgba(255, 255, 255, .015));
}
.connections-card span {
  min-height: 35px;
  padding-inline: 7px;
  background: linear-gradient(180deg, rgba(36, 28, 23, .9), var(--surface));
  font-size: .72rem;
}
.connections-card:hover { border-color: var(--orange-light); }
.connections-card:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; }
.connections-actions { margin-top: 22px; }
.connections-actions button, .connections-result button { min-height: 40px; border-radius: 9px; font-size: .72rem; }
.connections-actions .is-primary, .connections-result button {
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  color: #28150c;
}
.connections-result { background: var(--surface); }
.connections-content {
  width: min(780px, calc(100% - 40px));
  padding: 32px 30px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--arena-panel);
}
.connections-content h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.connections-content p, .connections-howto { font-size: .85rem; }
.connections-quick-facts div { background: var(--surface-2); }

@media (max-width: 900px) {
  .connections-page { --c-board-size: min(518px, calc(100vw - 30px)); }
  .connections-game { min-height: 600px; padding-top: 24px; }
  .connections-card span { min-height: 29px; font-size: clamp(.625rem, 1.7vw, .68rem); }
}
@media (max-width: 480px) {
  .connections-page { --c-board-size: min(350px, calc(100vw - 20px)); --c-gap: 6px; }
  .connections-game { min-height: 505px; padding-top: 18px; }
  .connections-game::before { height: 450px; border: 0; }
  .connections-daily-meta { font-size: .625rem; }
  .connections-daily-meta strong { font-size: .65rem; }
  .connections-status { gap: 5px; font-size: .625rem; }
  .connections-status > span:last-child { gap: 4px; }
  .connections-card { border-radius: 8px; }
  .connections-card img { height: 76%; }
  .connections-monogram { bottom: 27%; }
  .connections-card span { min-height: 27px; padding-inline: 3px; font-size: .625rem; line-height: 1.08; }
  .connections-actions { margin-top: 16px; }
  .connections-content { width: calc(100% - 20px); padding: 26px 17px 4px; border-radius: 14px; }
  .connections-content h2 { font-size: 1.25rem; }
  .connections-content p, .connections-howto { font-size: .8rem; }
}

/* Minimal Draft v1: a lighter reading canvas while the current game rail stays intact. */
body[data-game-frame] {
  color-scheme: light;
  --bg: #fbf8f1;
  --bg-soft: #f3efe7;
  --surface: #fffdf8;
  --surface-2: #f0ece3;
  --surface-3: #e5ddd2;
  --ink: #202426;
  --muted: #525957;
  --muted-2: #5a615e;
  --orange: #e56f32;
  --orange-light: #e78a58;
  --green: #d56d37;
  --line: rgba(32, 36, 38, .14);
  --line-strong: rgba(32, 36, 38, .28);
  --arena-highlight: rgba(229, 111, 50, .1);
  --arena-panel: #fffdf8;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(229, 111, 50, .08), transparent 640px),
    linear-gradient(180deg, #f6f2ea, #fbf8f1 500px);
}

body[data-game-frame] .noise { opacity: .012; mix-blend-mode: multiply; }
body[data-game-frame] .site-header--common {
  color: var(--ink);
  background: rgba(251, 248, 241, .92);
  border-bottom-color: var(--line);
}
body[data-game-frame] .site-footer--common { color: var(--muted); border-top-color: var(--line); }
body[data-game-frame] .game-titlebar {
  background: rgba(251, 248, 241, .58);
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}
body[data-game-frame] .game-titlebar h1 { color: var(--ink); }
body[data-game-frame] .game-titlebar-tag { color: var(--muted-2); }

/* Keep the existing sidebar geometry, rail icons and drawer behavior. Only its skin changes. */
body[data-game-frame] .game-nav-sidebar {
  border-right-color: var(--line);
  background: linear-gradient(180deg, #f2ede4, #fbf8f1 72%);
  color: #737976;
  box-shadow: 7px 0 18px rgba(32, 36, 38, .05);
}
body[data-game-frame] .game-nav-sidebar nav a,
body[data-game-frame] .game-nav-about { color: #737976; }
body[data-game-frame] .game-nav-sidebar nav a:hover,
body[data-game-frame] .game-nav-about:hover {
  background: rgba(229, 111, 50, .08);
  color: var(--ink);
}
body[data-game-frame] .game-nav-sidebar nav a[aria-current="page"],
body[data-game-frame] .game-nav-about[aria-current="page"] {
  background: rgba(229, 111, 50, .12);
  color: var(--ink);
}
body[data-game-frame] .game-nav-icon img,
body[data-game-frame] .game-nav-fallback {
  border-color: rgba(32, 36, 38, .17);
  background: linear-gradient(145deg, #fffdf8, #e9e1d6);
  box-shadow: 0 4px 9px rgba(32, 36, 38, .08);
  filter: saturate(.78) brightness(1.02) contrast(.98);
}
body[data-game-frame] .game-nav-sidebar a:hover .game-nav-icon img,
body[data-game-frame] .game-nav-sidebar a[aria-current="page"] .game-nav-icon img {
  border-color: rgba(229, 111, 50, .55);
  filter: saturate(.9) brightness(1.03) contrast(.98);
}
body[data-game-frame] .game-nav-fallback { color: var(--orange); }
body[data-game-frame] .game-nav-sidebar nav a[aria-current="page"]::before,
body[data-game-frame] .game-nav-about[aria-current="page"]::before { background: var(--orange); }

/* Shared content surfaces: fewer heavy panels, more whitespace and readable contrast. */
body[data-game-frame] .picker-guide,
body[data-game-frame] .policy-grid,
body[data-game-frame] .ref-card,
body[data-game-frame] .league-prose article,
body[data-game-frame] .league-faq,
body[data-game-frame] .grid-board,
body[data-game-frame] .grid-system-state,
body[data-game-frame] .grid-archive,
body[data-game-frame] .grid-clue-guide,
body[data-game-frame] .quiz-status,
body[data-game-frame] .quiz-card,
body[data-game-frame] .wordle-panel,
body[data-game-frame] .wordle-onboarding-dialog,
body[data-game-frame] .wordle-suggestions,
body[data-game-frame] .wordle-stat,
body[data-game-frame] .league-change nav,
body[data-game-frame] .connections-content {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(32, 36, 38, .06);
}
body[data-game-frame] .wordle-search,
body[data-game-frame] .wordle-modes,
body[data-game-frame] .grid-archive-heading,
body[data-game-frame] .grid-clue-guide summary,
body[data-game-frame] .connections-quick-facts div { background: var(--surface-2); }
body[data-game-frame] .wordle-cell--empty,
body[data-game-frame] .grid-cell.open { background: var(--surface-2); }
body[data-game-frame] .grid-cell.open:hover,
body[data-game-frame] .bingo-tile--open:hover { background: #fff0e5; }

/* Career Simulator is the reference surface for the selected Minimal Draft direction. */
body[data-game-frame="career"] .home-page { gap: clamp(36px, 6vw, 90px); }
body[data-game-frame="career"] .home-copy,
body[data-game-frame="career"] .career-player-header,
body[data-game-frame="career"] .decision-card,
body[data-game-frame="career"] .history-card,
body[data-game-frame="career"] .player-summary { color: var(--ink); }
body[data-game-frame="career"] .home-copy > p:not(.eyebrow),
body[data-game-frame="career"] .career-player-header p,
body[data-game-frame="career"] .decision-card p,
body[data-game-frame="career"] .history-card p { color: var(--muted); }
body[data-game-frame="career"] .home-page .home-preview {
  border-color: rgba(32, 36, 38, .18);
  border-radius: 4px;
  background: #d87846;
  box-shadow: 0 16px 35px rgba(32, 36, 38, .14);
}
body[data-game-frame="career"] .home-cover-image { filter: saturate(.78) brightness(1.06); }
body[data-game-frame="career"] .home-cover-shade {
  background: linear-gradient(180deg, rgba(18, 21, 21, .02), transparent 36%, rgba(18, 21, 21, .52));
}
body[data-game-frame="career"] .onboarding-promise { border-top-color: var(--line); }
body[data-game-frame="career"] .ref-card,
body[data-game-frame="career"] .career-player-header,
body[data-game-frame="career"] .decision-card,
body[data-game-frame="career"] .history-card,
body[data-game-frame="career"] .player-summary {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(32, 36, 38, .06);
}
body[data-game-frame="career"] .offer-card {
  background: #f8f5ee;
  border-color: var(--line);
  color: var(--ink);
}
body[data-game-frame="career"] .offer-card:hover { background: #fff0e5; }
body[data-game-frame="career"] .offer-card.chosen,
body[data-game-frame="career"] .offer-card:active {
  background: #fff0e5;
  color: var(--ink);
}
body[data-game-frame="career"] .offer-card.chosen .offer-content > strong,
body[data-game-frame="career"] .offer-card:active .offer-content > strong { color: var(--ink); }
body[data-game-frame="career"] .offer-card.chosen .offer-content > em,
body[data-game-frame="career"] .offer-card:active .offer-content > em { color: var(--muted); }
body[data-game-frame="career"] .career-history-head { background: var(--surface-2); border-bottom-color: var(--line); }
body[data-game-frame="career"] .career-history-row { border-bottom-color: var(--line); color: var(--muted); }
body[data-game-frame="career"] .career-history-row span:first-child { color: var(--ink); }
body[data-game-frame="career"] .trophy-cabinet {
  background: #fff5ec;
  border-color: rgba(229, 111, 50, .28);
}
body[data-game-frame="career"] .season-simulation { background: rgba(251, 248, 241, .9); }
body[data-game-frame="career"] .career-legacy-report {
  background: var(--surface);
  border-color: rgba(229, 111, 50, .28);
}
body[data-game-frame="career"] .legacy-report-heading strong,
body[data-game-frame="career"] .legacy-report-grid article strong { color: var(--ink); }
body[data-game-frame="career"] .legacy-report-grid article + article { border-left-color: var(--line); }

/* Bingo has its own token set, so map it explicitly to the shared Minimal palette. */
body[data-game-frame="bingo"] .bingo-page,
body.bingo-page[data-game-frame="bingo"] {
  --bingo-bg: var(--bg);
  --bingo-panel: var(--surface);
  --bingo-panel-deep: var(--bg-soft);
  --bingo-panel-soft: var(--surface-2);
  --bingo-line: var(--line);
  --bingo-line-strong: var(--line-strong);
  --bingo-ink: var(--ink);
  --bingo-muted: var(--muted);
  --bingo-dim: var(--muted-2);
  --bingo-orange: var(--orange);
  --bingo-orange-light: var(--orange-light);
  --bingo-orange-dark: #b44d22;
}
body[data-game-frame="bingo"] .bingo-board-panel,
body[data-game-frame="bingo"] .bingo-stage,
body[data-game-frame="bingo"] .bingo-result,
body[data-game-frame="bingo"] .bingo-stats,
body[data-game-frame="bingo"] .bingo-archive,
body[data-game-frame="bingo"] .bingo-guide {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(32, 36, 38, .06);
}
body[data-game-frame="bingo"] .bingo-meta,
body[data-game-frame="bingo"] .bingo-round-bar { background: var(--surface-2); }
body[data-game-frame="bingo"] .bingo-tile { background: var(--bg-soft); }
body[data-game-frame="bingo"] .bingo-tile--filled { background: #fff0e5; }

/* Mobile drawer: same current behavior, with the lighter rail skin. */
@media (max-width: 820px) {
  body[data-game-frame] .game-nav-sidebar {
    background: #fbf8f1;
    box-shadow: 22px 0 55px rgba(32, 36, 38, .16);
  }
  body[data-game-frame].game-nav-is-open .game-nav-backdrop {
    background: rgba(32, 36, 38, .25);
    backdrop-filter: blur(5px);
  }
  body[data-game-frame] .game-nav-mobile-head { border-bottom-color: var(--line); }
  body[data-game-frame] .game-nav-mobile-head a { color: var(--ink); }
  body[data-game-frame] .game-nav-mobile-head button { border-color: var(--line-strong); color: var(--orange); }
}

/* Minimal Draft v2: gameplay feedback, dialogs and in-game status surfaces. */
body[data-game-frame] .toast,
body[data-game-frame] .trivia-toast,
body[data-game-frame] .bingo-toast,
body[data-game-frame] .five-toast {
  border-color: rgba(229, 111, 50, .34);
  background: rgba(255, 253, 248, .98);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(32, 36, 38, .16);
  backdrop-filter: blur(12px);
}
body[data-game-frame] .trivia-toast.good,
body[data-game-frame] .bingo-toast.good { border-color: rgba(39, 122, 82, .38); color: #27633f; }
body[data-game-frame] .trivia-toast.bad,
body[data-game-frame] .bingo-toast.bad { border-color: rgba(169, 70, 74, .35); color: #9b3f42; }
body[data-game-frame] .trivia-toast button {
  border-color: rgba(155, 63, 66, .32);
  background: #f7e6e3;
  color: #8e383c;
}
body[data-game-frame] .trivia-toast button:hover { background: #f1d8d4; }

/* Shared overlays now read as a light sheet over the page instead of a black screen. */
body[data-game-frame] .game-nav-backdrop,
body[data-game-frame] .site-menu-backdrop,
body[data-game-frame] .picker-backdrop,
body[data-game-frame] .connections-modal-backdrop,
body[data-game-frame] .wordle-onboarding-backdrop,
body[data-game-frame] .wordle-nav-backdrop,
body[data-game-frame] .chapter-recap-backdrop,
body[data-game-frame] .pb-award-overlay {
  background: rgba(32, 36, 38, .34);
  backdrop-filter: blur(8px);
}
body[data-game-frame] .site-menu-panel,
body[data-game-frame] .picker-panel,
body[data-game-frame] .connections-modal section,
body[data-game-frame] .wordle-onboarding-dialog,
body[data-game-frame] .site-menu-panel {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(32, 36, 38, .18);
  color: var(--ink);
}
body[data-game-frame] .site-menu-nav a { border-color: var(--line); color: var(--muted); }
body[data-game-frame] .site-menu-nav a:hover,
body[data-game-frame] .site-menu-nav a[aria-current="page"] { color: var(--ink); }
body[data-game-frame] .site-menu-close,
body[data-game-frame] .picker-close { border-color: var(--line-strong); background: var(--surface-2); color: var(--orange); }
body[data-game-frame] .site-menu-nav a[aria-current="page"] { background: #fff0e5; }
/* Career's live simulation and chapter report. */
body[data-game-frame="career"] .season-simulation { background: rgba(251, 248, 241, .94); }
body[data-game-frame="career"] .chapter-recap,
body[data-game-frame="career"] .chapter-recap--scoreboard {
  border-color: rgba(229, 111, 50, .34);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(32, 36, 38, .2);
  color: var(--ink);
}
body[data-game-frame="career"] .chapter-recap::after { border-color: rgba(229, 111, 50, .12); }
body[data-game-frame="career"] .chapter-recap h2,
body[data-game-frame="career"] .recap-scoreboard-copy h2 { color: var(--ink); }
body[data-game-frame="career"] .chapter-recap-top p,
body[data-game-frame="career"] .recap-scoreboard-copy > p { color: var(--muted); }
body[data-game-frame="career"] .chapter-team-mark,
body[data-game-frame="career"] .recap-result-mark { background: var(--surface-2); box-shadow: none; }
body[data-game-frame="career"] .recap-choice { border-color: var(--line); background: var(--surface-2); }
body[data-game-frame="career"] .recap-choice strong,
body[data-game-frame="career"] .recap-decision-result strong { color: var(--ink); }
body[data-game-frame="career"] .recap-seasons .recap-season,
body[data-game-frame="career"] .chapter-recap--scoreboard .recap-season { border-color: var(--line); background: #f8f5ee; }
body[data-game-frame="career"] .recap-season > div:first-child strong,
body[data-game-frame="career"] .recap-season-line > strong,
body[data-game-frame="career"] .recap-scoreboard-summary strong,
body[data-game-frame="career"] .recap-scoreboard-stats strong { color: var(--ink); }
body[data-game-frame="career"] .recap-season p,
body[data-game-frame="career"] .recap-scoreboard-summary span,
body[data-game-frame="career"] .recap-scoreboard-stats span { color: var(--muted); }
body[data-game-frame="career"] .recap-outcomes { border-color: var(--line); background: var(--line); }
body[data-game-frame="career"] .recap-outcomes > div { background: var(--surface-2); }

/* Grid and trivia status panels, pickers and result states. */
body[data-game-frame="grid"] .grid-board,
body[data-game-frame="grid"] .grid-system-state,
body[data-game-frame="grid"] .grid-result-card,
body[data-game-frame="grid"] .grid-archive,
body[data-game-frame="grid"] .grid-clue-guide,
body[data-game-frame="grid"] .trivia-status,
body[data-game-frame="trivia"] .trivia-status,
body[data-game-frame="trivia"] .quiz-filters,
body[data-game-frame="trivia"] .quiz-mode-switch,
body[data-game-frame="trivia"] .quiz-finish {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(32, 36, 38, .06);
}
body[data-game-frame="grid"] .grid-cell { background: var(--bg-soft); color: var(--ink); }
body[data-game-frame="grid"] .grid-cell.correct { background: #fff0e5; }
body[data-game-frame="grid"] .grid-cell-portrait { border-color: var(--line); background: linear-gradient(145deg, #fffdf8, #e7ded3); }
body[data-game-frame="grid"] .grid-player-name { background: linear-gradient(180deg, transparent, rgba(255, 253, 248, .97) 35%); color: var(--ink); }
body[data-game-frame="grid"] .trivia-status > span { color: var(--muted); }
body[data-game-frame="grid"] .trivia-status strong { color: var(--ink); }
body[data-game-frame="grid"] .grid-result-pattern { background: var(--surface-2); }
body[data-game-frame="grid"] .grid-result-pattern span { background: #d9d0c4; }
body[data-game-frame="trivia"] .picker-panel,
body[data-game-frame="trivia"] .picker-search input { background: var(--surface); color: var(--ink); }
body[data-game-frame="trivia"] .picker-player > img { background: var(--surface-2); }
body[data-game-frame="trivia"] .quiz-finish--daily,
body[data-game-frame="trivia"] .quiz-review-finish { background: #fff5ec; }
body[data-game-frame="trivia"] .quiz-answer { background: var(--surface-2); }
body[data-game-frame="trivia"] .quiz-answer:hover:not(:disabled) { background: #fff0e5; }

/* Wordle cells and help dialog keep semantic answer colors but lose the black chrome. */
body[data-game-frame="wordle"] .wordle-panel,
body[data-game-frame="wordle"] .wordle-stat,
body[data-game-frame="wordle"] .wordle-search,
body[data-game-frame="wordle"] .wordle-modes,
body[data-game-frame="wordle"] .wordle-suggestions,
body[data-game-frame="wordle"] .wordle-cell,
body[data-game-frame="wordle"] .wordle-result,
body[data-game-frame="wordle"] .league-card,
body[data-game-frame="wordle"] .league-change nav {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
body[data-game-frame="wordle"] .wordle-cell { background: var(--surface-2); }
body[data-game-frame="wordle"] .wordle-cell.is-miss { background: var(--surface-3); color: var(--muted); }
body[data-game-frame="wordle"] .wordle-cell small { color: var(--muted); }
body[data-game-frame="wordle"] .wordle-arrow { color: var(--ink); }
body[data-game-frame="wordle"] .wordle-onboarding-dialog { border-color: var(--line-strong); }
body[data-game-frame="wordle"] .wordle-onboarding-dialog > p,
body[data-game-frame="wordle"] .wordle-onboarding-example p { color: var(--muted); }
body[data-game-frame="wordle"] .wordle-onboarding-close { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
body[data-game-frame="wordle"] .wordle-onboarding-clue span,
body[data-game-frame="wordle"] .wordle-onboarding-clue strong.is-direction { border-color: var(--line-strong); background: var(--surface-3); color: var(--ink); }

/* Connections and Bingo inline status/result panels. */
body[data-game-frame="connections"] .connections-card span { background: linear-gradient(180deg, rgba(255, 253, 248, .2), var(--surface)); color: var(--ink); }
body[data-game-frame="connections"] .connections-result { background: var(--surface); }
body[data-game-frame="bingo"] .bingo-stat-grid span,
body[data-game-frame="bingo"] .bingo-tile,
body[data-game-frame="bingo"] .bingo-tile--filled { border-color: var(--line); }
body[data-game-frame="bingo"] .bingo-stat-grid span { background: var(--surface-2); }
body[data-game-frame="bingo"] .bingo-tile { background: var(--bg-soft); }
body[data-game-frame="bingo"] .bingo-tile--filled { background: #fff0e5; }
body[data-game-frame="bingo"] .bingo-player-stage-copy,
body[data-game-frame="bingo"] .bingo-reference-status { color: var(--ink); }

/* Starting Five in-game badges and feedback. Photo/court artwork stays image-led. */
body[data-game-frame="starting-five"] .lineup-slot,
body[data-game-frame="starting-five"] .player-card,
body[data-game-frame="starting-five"] .result-card-five { border-color: var(--line); background: var(--surface); }
body[data-game-frame="starting-five"] .intro-five-label,
body[data-game-frame="starting-five"] .ovr-badge { border-color: rgba(229, 111, 50, .34); background: rgba(255, 253, 248, .88); color: var(--orange); }

/* Awards are an in-game result surface too; artwork may stay dark, copy stays light. */
body[data-game-frame="awards"] {
  --pb-award-bg: #fbf8f1;
  --pb-award-surface: #fffdf8;
  --pb-award-line: rgba(32, 36, 38, .14);
  --pb-award-ink: #202426;
  --pb-award-muted: #525957;
  --pb-award-shadow: 0 24px 64px rgba(32, 36, 38, .2);
}
body[data-game-frame="awards"] .pb-award-modal { border-color: var(--line-strong); }
body[data-game-frame="awards"] .pb-award-close { border-color: var(--line-strong); background: rgba(255, 253, 248, .88); color: var(--ink); }

/* Minimal Draft v3: the season timeline must remain readable on the light result page. */
body[data-game-frame="career"] .career-season-log {
  border-color: rgba(229, 111, 50, .28);
  background: linear-gradient(145deg, #fffdf8 0%, #f8f5ee 52%, #f1ece3 100%);
  box-shadow: 0 12px 32px rgba(32, 36, 38, .06);
}
body[data-game-frame="career"] .career-season-log .season-log-summary {
  border-bottom-color: rgba(229, 111, 50, .2);
}
body[data-game-frame="career"] .career-season-log .season-log-list-head {
  border-bottom-color: rgba(229, 111, 50, .28);
  background: #202426;
  color: #f7f3eb;
}
body[data-game-frame="career"] .career-season-log .season-log-row {
  border-bottom-color: rgba(32, 36, 38, .11);
  background: rgba(255, 253, 248, .86);
  color: var(--ink);
}
body[data-game-frame="career"] .career-season-log .season-log-row:nth-child(odd) { background: rgba(246, 241, 233, .92); }
body[data-game-frame="career"] .career-season-log .season-log-row:hover { background: #fff0e5; }
body[data-game-frame="career"] .career-season-log .season-log-row.is-champion { background: #fff2cf; }
body[data-game-frame="career"] .career-season-log .season-log-season strong { color: var(--orange); }
body[data-game-frame="career"] .career-season-log .season-log-season small,
body[data-game-frame="career"] .career-season-log .season-log-team small,
body[data-game-frame="career"] .career-season-log .season-log-record small,
body[data-game-frame="career"] .career-season-log .season-log-production small,
body[data-game-frame="career"] .career-season-log .season-log-result small { color: #66706b; }
body[data-game-frame="career"] .career-season-log .season-log-team strong,
body[data-game-frame="career"] .career-season-log .season-log-record strong,
body[data-game-frame="career"] .career-season-log .season-log-production strong { color: var(--ink); }
body[data-game-frame="career"] .career-season-log .season-log-result strong { color: #3f4844; }
body[data-game-frame="career"] .career-season-log .season-log-result strong.is-highlight { color: #a55320; }

/* Minimal Draft v4: the home guide and signature footer need the same calm,
   readable light treatment as the rest of the shared shell. */
body[data-game-frame="home"] .picker-guide {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
  border-color: rgba(32, 36, 38, .14);
  border-radius: 12px;
  background: linear-gradient(145deg, #fffdf8 0%, #f5f1e9 100%);
  box-shadow: 0 14px 34px rgba(32, 36, 38, .06);
}
body[data-game-frame="home"] .picker-guide .eyebrow { color: #b44d22; }
body[data-game-frame="home"] .picker-guide h2 {
  max-width: 900px;
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}
body[data-game-frame="home"] .picker-guide > p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}
body[data-game-frame="home"] .picker-guide a {
  color: #a94b24;
  text-underline-offset: 3px;
}
body[data-game-frame="home"] .picker-guide-faq {
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(32, 36, 38, .14);
}
body[data-game-frame="home"] .picker-guide-faq details {
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(32, 36, 38, .14);
}
body[data-game-frame="home"] .picker-guide-faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  color: var(--ink);
  font: 600 .78rem/1.35 "Space Grotesk", sans-serif;
  list-style: none;
  cursor: pointer;
}
body[data-game-frame="home"] .picker-guide-faq summary::-webkit-details-marker { content: ""; }
body[data-game-frame="home"] .picker-guide-faq summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  color: #d35f2b;
  content: "+";
  font: 500 .95rem/1 "DM Mono", monospace;
  transform: translateY(-50%);
}
body[data-game-frame="home"] .picker-guide-faq details[open] summary::after { content: "−"; }
body[data-game-frame="home"] .picker-guide-faq summary:focus-visible {
  outline: 2px solid rgba(211, 95, 43, .52);
  outline-offset: 4px;
}
body[data-game-frame="home"] .picker-guide-faq p {
  max-width: 760px;
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

/* Shared footer: the Minimal canvas uses one light footer across home and games. */
body[data-game-frame] .site-footer.site-footer--signature {
  border-top-color: rgba(32, 36, 38, .14);
  background: linear-gradient(130deg, rgba(229, 111, 50, .08), transparent 44%), #f0ece3;
  color: var(--muted);
}
body[data-game-frame] .site-footer--signature .ft-brand,
body[data-game-frame] .site-footer--signature .ft-intro h2,
body[data-game-frame] .site-footer--signature .ft-links h2 {
  color: var(--ink);
}
body[data-game-frame] .site-footer--signature .ft-brand-dot,
body[data-game-frame] .site-footer--signature .ft-values i { color: #d35f2b; }
body[data-game-frame] .site-footer--signature .ft-intro p,
body[data-game-frame] .site-footer--signature .ft-links a,
body[data-game-frame] .site-footer--signature .ft-bottom-line { color: var(--muted); }
body[data-game-frame] .site-footer--signature .ft-text-link { color: #b44d22; }
body[data-game-frame] .site-footer--signature .ft-disclosure { color: var(--muted-2); }
body[data-game-frame] .site-footer--signature .ft-signature-bottom { border-top-color: rgba(32, 36, 38, .14); }
body[data-game-frame] .site-footer--signature a:hover { color: #8f3e1f; }

@media (max-width: 680px) {
  body[data-game-frame="home"] .picker-guide h2 { font-size: clamp(1.85rem, 9vw, 2.65rem); }
  body[data-game-frame="home"] .picker-guide > p:not(.eyebrow) { font-size: .86rem; }
}

/* Minimal Draft v5: Career onboarding and decision cards now use the same
   light surface system at every breakpoint. Artwork can stay expressive; UI
   chrome and controls must remain readable. */
body[data-game-frame="career"] .home-page,
body[data-game-frame="career"] .setup-page {
  color: var(--ink);
}
body[data-game-frame="career"] .home-page .eyebrow,
body[data-game-frame="career"] .home-page .hero-highlight,
body[data-game-frame="career"] .setup-page .eyebrow,
body[data-game-frame="career"] .setup-page .card-kicker,
body[data-game-frame="career"] .setup-page .stepper .active,
body[data-game-frame="career"] .setup-page .stepper .done,
body[data-game-frame="career"] .setup-page .lineup-info-kicker,
body[data-game-frame="career"] .setup-page .court-label-bottom,
body[data-game-frame="career"] .setup-page .route-stat,
body[data-game-frame="career"] .setup-page .route-tag {
  color: #a55320;
}
body[data-game-frame="career"] .home-page .button,
body[data-game-frame="career"] .setup-page .button:not(.secondary):not(.ghost) {
  background: var(--orange);
  color: #fffaf3;
}
body[data-game-frame="career"] .home-page .button:hover,
body[data-game-frame="career"] .setup-page .button:not(.secondary):not(.ghost):hover {
  background: #c95c29;
}
body[data-game-frame="career"] .home-page .onboarding-promise { color: var(--muted); }
body[data-game-frame="career"] .home-page .onboarding-promise strong { color: #a55320; }
body[data-game-frame="career"] .career-league-option {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(32, 36, 38, .05);
}
body[data-game-frame="career"] .career-league-option:hover {
  border-color: rgba(229, 111, 50, .42);
  background: #fffaf3;
}
body[data-game-frame="career"] .career-league-option span { color: #a55320; }
body[data-game-frame="career"] .career-league-option strong { color: var(--ink); }
body[data-game-frame="career"] .career-league-option small { color: var(--muted); }
body[data-game-frame="career"] .career-league-option em { color: var(--muted-2); }
body[data-game-frame="career"] .career-league-option .text-link { color: #a55320; }

body[data-game-frame="career"] .setup-page {
  --setup-border: var(--line);
}
body[data-game-frame="career"] .setup-page .setup-heading p:not(.eyebrow) { color: var(--muted); }
body[data-game-frame="career"] .setup-page .stepper {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted-2);
}
body[data-game-frame="career"] .setup-page .stepper .active,
body[data-game-frame="career"] .setup-page .stepper .done {
  color: var(--ink);
}
body[data-game-frame="career"] .setup-page .stepper .active { background: #ffe9d8; }
body[data-game-frame="career"] .setup-page .ref-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(32, 36, 38, .06);
}
body[data-game-frame="career"] .setup-page .jersey-view strong,
body[data-game-frame="career"] .setup-page .position-heading-row > span,
body[data-game-frame="career"] .setup-page .position-chip {
  border-color: var(--line);
  color: var(--muted-2);
}
body[data-game-frame="career"] .setup-page .field label,
body[data-game-frame="career"] .setup-page .lineup-help { color: var(--muted); }
body[data-game-frame="career"] .setup-page .field input,
body[data-game-frame="career"] .setup-page .country-search,
body[data-game-frame="career"] .setup-page .jersey-number-control,
body[data-game-frame="career"] .setup-page .country-count {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
body[data-game-frame="career"] .setup-page .field input::placeholder,
body[data-game-frame="career"] .setup-page .name-field input::placeholder { color: var(--muted-2); }
body[data-game-frame="career"] .setup-page .jersey-number-control button { color: var(--muted); }
body[data-game-frame="career"] .setup-page .jersey-number-control button:hover {
  background: #ffe9d8;
  color: #a55320;
}
body[data-game-frame="career"] .setup-page .jersey-number-control input { color: var(--ink); }
body[data-game-frame="career"] .setup-page .country-option { color: var(--muted); }
body[data-game-frame="career"] .setup-page .country-option:hover,
body[data-game-frame="career"] .setup-page .country-option.selected {
  background: #fff0e4;
  color: var(--ink);
}
body[data-game-frame="career"] .setup-page .more-countries,
body[data-game-frame="career"] .setup-page .text-link { color: #a55320; }
body[data-game-frame="career"] .setup-page .ref-lineup-court {
  border-color: rgba(165, 83, 32, .25);
  background:
    repeating-linear-gradient(90deg, rgba(255, 253, 248, .18) 0 1px, transparent 1px 46px),
    linear-gradient(145deg, #e7b887, #d49561 52%, #bb7548);
  box-shadow: inset 0 0 36px rgba(113, 57, 29, .14), 0 8px 18px rgba(32, 36, 38, .08);
}
body[data-game-frame="career"] .setup-page .ref-lineup-court::before { border-color: rgba(255, 253, 248, .62); }
body[data-game-frame="career"] .setup-page .ref-court-hoop { border-color: #fff8ed; }
body[data-game-frame="career"] .setup-page .ref-court-hoop::before { background: #fff8ed; }
body[data-game-frame="career"] .setup-page .ref-court-paint { border-color: rgba(255, 253, 248, .7); background: rgba(255, 253, 248, .16); }
body[data-game-frame="career"] .setup-page .ref-court-arc { border-color: rgba(255, 253, 248, .62); }
body[data-game-frame="career"] .setup-page .ref-court-line { border-color: rgba(255, 253, 248, .52); }
body[data-game-frame="career"] .setup-page .ref-lineup-court .court-label { color: rgba(255, 253, 248, .78); }
body[data-game-frame="career"] .setup-page .ref-lineup-court .lineup-player-code {
  border-color: rgba(255, 253, 248, .86);
  background: rgba(255, 253, 248, .94);
  color: var(--ink);
  box-shadow: 0 7px 15px rgba(32, 36, 38, .16);
}
body[data-game-frame="career"] .setup-page .ref-lineup-court .lineup-player-label {
  background: rgba(255, 253, 248, .92);
  color: var(--ink);
}
body[data-game-frame="career"] .setup-page .ref-lineup-info .lineup-selected-code { color: #a55320; }
body[data-game-frame="career"] .setup-page .ref-lineup-info .lineup-legend-item { color: var(--ink); }
body[data-game-frame="career"] .setup-page .ref-lineup-info .lineup-legend-item:hover,
body[data-game-frame="career"] .setup-page .ref-lineup-info .lineup-legend-item.selected {
  border-color: rgba(229, 111, 50, .34);
  background: #fff0e4;
}
body[data-game-frame="career"] .setup-page .ref-lineup-info .legend-code { color: #a55320; }
body[data-game-frame="career"] .setup-page .profile-stage .archetype-card,
body[data-game-frame="career"] .setup-page .profile-stage .route-card,
body[data-game-frame="career"] .setup-page .role-card {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
body[data-game-frame="career"] .setup-page .profile-stage .archetype-card.selected,
body[data-game-frame="career"] .setup-page .profile-stage .route-card.selected,
body[data-game-frame="career"] .setup-page .role-card.selected {
  border-color: rgba(229, 111, 50, .58);
  background: #fff0e4;
  box-shadow: inset 3px 0 0 var(--orange);
}
body[data-game-frame="career"] .setup-page .role-desc,
body[data-game-frame="career"] .setup-page .role-note,
body[data-game-frame="career"] .setup-page .profile-stage .archetype-desc,
body[data-game-frame="career"] .setup-page .profile-stage .route-desc { color: var(--muted); }

/* A decision is the primary mobile action: stack offers into readable rows,
   then let the compact history table scroll inside its own panel. */
@media (max-width: 700px) {
  body[data-game-frame="career"] .career-page .career-reference-grid { gap: 10px; }
  body[data-game-frame="career"] .career-page .decision-card { order: 1; }
  body[data-game-frame="career"] .career-page .history-card { order: 2; }
  body[data-game-frame="career"] .career-page .player-header-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 4px;
  }
  body[data-game-frame="career"] .career-page .player-header-stats div:nth-child(4) { border-left: 0; }
  body[data-game-frame="career"] .career-page .player-header-stats span { font-size: .42rem; }
  body[data-game-frame="career"] .career-page .player-header-stats strong { font-size: .72rem; }
  body[data-game-frame="career"] .career-page .offer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }
  body[data-game-frame="career"] .career-page .offer-card,
  body[data-game-frame="career"] .career-page .offer-card:last-child {
    display: grid;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
    min-height: 170px;
    border-color: var(--line);
    background: var(--surface);
  }
  body[data-game-frame="career"] .career-page .offer-visual {
    min-height: 170px;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  body[data-game-frame="career"] .career-page .offer-content { padding: 12px 11px; }
  body[data-game-frame="career"] .career-page .offer-content small { color: #a55320; }
  body[data-game-frame="career"] .career-page .offer-content > strong { color: var(--ink); }
  body[data-game-frame="career"] .career-page .offer-content > em { color: var(--muted); }
  body[data-game-frame="career"] .career-page .choice-risk {
    border-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
  }
  body[data-game-frame="career"] .career-page .chance-row {
    border-color: rgba(39, 122, 82, .28);
    background: #e5f4e9;
  }
  body[data-game-frame="career"] .career-page .chance-row > b { background: #c9e8d1; color: #27633f; }
  body[data-game-frame="career"] .career-page .chance-row > span { color: #27633f; }
  body[data-game-frame="career"] .career-page .chance-row.setback { border-color: rgba(169, 70, 74, .28); background: #f7e6e3; }
  body[data-game-frame="career"] .career-page .chance-row.setback > b,
  body[data-game-frame="career"] .career-page .chance-row.setback > span { color: #9b3f42; }
  body[data-game-frame="career"] .career-page .career-history-table {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  body[data-game-frame="career"] .career-page .career-history-row {
    min-width: 500px;
    min-height: 24px;
    font-size: .52rem;
  }
  body[data-game-frame="career"] .career-page .career-history-head {
    min-width: 500px;
    min-height: 24px;
    background: var(--surface-2);
    color: var(--muted-2);
  }
}

@media (max-width: 480px) {
  body[data-game-frame="career"] .setup-page .identity-fields { grid-template-columns: 1fr; }
  body[data-game-frame="career"] .setup-page .jersey-field { width: 100%; }
  body[data-game-frame="career"] .setup-page .jersey-number-control { grid-template-columns: 44px 1fr 44px; }
  body[data-game-frame="career"] .home-page .career-league-option { padding: 13px; }
}
