/* College Football Sickos Pick 'Em: one stylesheet, light and dark. Colors and type are tokens; every text pair is
   checked for contrast (stage 2 report, 2026-10-22, and app\BUILD_STATUS.md for the earlier pass).
   2026-10-22, gameday stage 2 ("C, Game day", his choice): navy broadcast bands, Big Shoulders Display for scores,
   titles, ranks and labels, Barlow for everything you read. Both faces are self-hosted in /fonts under the SIL Open
   Font License (license text beside each file): the CSP allows no font host. Brand blue still means "your bet", green
   still means a result, leather means only the Model. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* one variable file (weight 100 to 900) serves both display weights, 800 and 900 */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/bigshouldersdisplay-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "Barlow", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --bg: #ecebe6; --surface: #ffffff; --surface-2: #f5f4f0; --ink: #12161f; --muted: #555b66; --line: #d6d3ca; --line-strong: #c9c3b1;
  --accent: #1f4fb8; --accent-ink: #ffffff; --accent-soft: #e6ecf9;
  --pick-fill: #1f4fb8; --pick-ink: #ffffff; --pick-sub: #dbe5fb; --pick-mtag: #f7d9b9;
  --navy: #0c1c43; --navy-2: #15295a; --navy-line: #3b5089; --on-navy: #ffffff; --on-navy-2: #c6d0e6; --tab-idle: #aebbd8;
  --yellow: #ffc93c; --on-yellow: #0c1c43; --lead-soft: #fff4d4;
  --onair: #c0261b; --onair-ink: #ffffff;
  --model: #8a4a1f; --model-soft: #f6efe4; --model-chip: #8a4a1f; --model-chip-ink: #ffffff;
  --win: #13703a; --win-soft: #e2f3e8; --loss: #c0261b; --push: #555b66; --live: #a34400; --live-soft: #fdeee0;
  --pick: #0d6b3a; --pick-soft: #e1f3e8;
  --parlay: #6a3fb5; --parlay-soft: #efe8fa;
  --shadow: 0 1px 2px rgba(12, 28, 67, .08), 0 3px 8px rgba(12, 28, 67, .06);
  --tabbar-h: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14; --surface: #151a23; --surface-2: #1c222e; --ink: #eef0f4; --muted: #a8afbc; --line: #2b3240; --line-strong: #3a4252;
    --accent: #8fb0f6; --accent-ink: #0b0e14; --accent-soft: #1b2847;
    --pick-fill: #2853c4; --pick-ink: #ffffff; --pick-sub: #dbe5fb; --pick-mtag: #f7d9b9;
    --lead-soft: #2c2610;
    --model: #f0a877; --model-soft: #2a1d14;
    --win: #6fd49b; --win-soft: #12301f; --loss: #ff8a80; --push: #a9b3c6; --live: #f6b56b; --live-soft: #33240f;
    --pick: #6fd49b; --pick-soft: #15301f;
    --parlay: #c2a5f2; --parlay-soft: #2a2140;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e14; --surface: #151a23; --surface-2: #1c222e; --ink: #eef0f4; --muted: #a8afbc; --line: #2b3240; --line-strong: #3a4252;
  --accent: #8fb0f6; --accent-ink: #0b0e14; --accent-soft: #1b2847;
  --pick-fill: #2853c4; --pick-ink: #ffffff; --pick-sub: #dbe5fb; --pick-mtag: #f7d9b9;
  --lead-soft: #2c2610;
  --model: #f0a877; --model-soft: #2a1d14;
  --win: #6fd49b; --win-soft: #12301f; --loss: #ff8a80; --push: #a9b3c6; --live: #f6b56b; --live-soft: #33240f;
  --pick: #6fd49b; --pick-soft: #15301f;
  --parlay: #c2a5f2; --parlay-soft: #2a2140;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--font);
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; font-size: 16px; caret-color: var(--accent); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar: the SICKOS PICK 'EM wordmark on navy ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--on-navy);
  padding: calc(env(safe-area-inset-top) + 6px) 12px 6px; display: flex; align-items: center; gap: 8px;
}
.topbar h1 { margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
             font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; }
.wm .w1 { font-weight: 900; letter-spacing: .02em; }
.wm .w2 { font-weight: 800; font-size: 16px; letter-spacing: .06em; color: var(--yellow); }
.topbar select {
  border: 1px solid var(--navy-line); border-radius: 6px; background: var(--navy-2); color: var(--on-navy);
  padding: 6px 8px; min-height: 40px; max-width: 46vw; font-weight: 600;
}
.iconbtn {
  min-width: 44px; min-height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 700; cursor: pointer;
}
.topbar .iconbtn { background: var(--navy-2); border-color: var(--navy-line); color: var(--on-navy); }

/* ---------- layout ---------- */
main { max-width: 640px; margin: 0 auto; padding: 12px 12px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 84px); }
.screen-title { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: .01em;
                text-transform: uppercase; margin: 8px 2px 6px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 2px 12px; font-size: 15px; }
/* the navy band behind each screen's title and controls; it bleeds to both edges at any width */
.band { background: var(--navy-2); color: var(--on-navy); margin: -12px -12px 12px; padding: 8px 12px 12px;
        box-shadow: 0 0 0 100vmax var(--navy-2); clip-path: inset(0 -100vmax); }
.band .screen-title { color: var(--on-navy); margin: 6px 0; }
.band .sub { color: var(--on-navy-2); margin: 0 0 10px; }
.band .linkbtn { color: var(--on-navy); }
.band .seg { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.band .seg button { color: var(--on-navy-2); }
.band .seg button[aria-pressed="true"] { background: var(--on-navy); color: var(--navy); outline: 0; box-shadow: none; }
.band .seg:last-child { margin-bottom: 0; }
.band .banner, .band .banner.info { background: rgba(255, 255, 255, .1); color: var(--on-navy); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.card h2 { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: .02em;
           text-transform: uppercase; margin: 0 0 8px; text-wrap: balance; }
.card h3 { font-size: 16px; font-weight: 700; margin: 14px 0 4px; }
.card > h3:first-child { margin-top: 2px; }
.card p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.joke { color: var(--muted); font-size: 14px; text-align: center; margin: 18px 8px 4px; }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin: 4px 8px 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.secondary { background: var(--surface); color: var(--accent); }
.btn.block { width: 100%; }
.btn.danger { background: var(--surface); color: var(--loss); border-color: var(--loss); }
.btn[disabled] { opacity: .55; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 10px 4px; min-height: 44px; cursor: pointer;
           text-decoration: underline; text-underline-offset: 3px; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; margin: 0 0 12px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 6px; background: none; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); outline: 1px solid var(--line); }

/* ---------- day headers: scoreboard caps, a red on-air dot for Live now ---------- */
.dayhead { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: .03em;
           text-transform: uppercase; color: var(--ink); margin: 16px 2px 8px; display: flex; align-items: center; gap: 8px; }
.dayhead.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--onair); flex: none; }

/* ---------- game card: a TV score bug ---------- */
.game { padding: 0 10px 10px; overflow: hidden; }
/* the card's top strip: status, kickoff, TV on navy */
.game .meta { --strip-y: 7px; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin: 0 -10px; padding: var(--strip-y) 10px;
              background: var(--navy); color: var(--on-navy-2); font-size: 13px; line-height: 1.35; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge.live { background: var(--onair); color: var(--onair-ink); border-color: var(--onair); }
.badge.final { background: var(--surface-2); color: var(--ink); }
.badge.lock { background: var(--surface-2); color: var(--muted); }
.badge.lock.soon { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
/* status badges read as scoreboard caps wherever they sit (props, Picks), not only in the card strip */
.badge.live, .badge.final, .badge.lock { font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1.3; letter-spacing: .05em;
                                         text-transform: uppercase; border-radius: 4px; padding: 0 7px; }
.meta .badge { font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1.2; letter-spacing: .05em;
               text-transform: uppercase; border-radius: 4px; padding: 0 7px; background: transparent; color: var(--on-navy-2); border-color: var(--navy-line); }
.meta .badge.live { background: var(--onair); color: var(--onair-ink); border-color: var(--onair); }
.meta .badge.final { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }
/* the lock countdown under an hour (stage 1's urgency, game-day colors): yellow, like a shot clock */
.meta .badge.lock.soon { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
/* Game of the Week: a solid yellow banner across the top of its card, above the strip */
.meta .badge.gotw { flex: 0 0 calc(100% + 20px); margin: calc(-1 * var(--strip-y)) -10px 3px; padding: 6px 10px 4px; border: 0; border-radius: 0;
                    background: var(--yellow); color: var(--on-yellow);
                    font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: .05em; }
/* teams and scores: a scoreboard, the score bigger than the name; the side behind dims. No rule between the two rows:
   the type and the dimming carry it, and a rule there sat flush against the text (Impeccable detector, cramped-padding) */
.teams { display: block; margin: 6px 0 2px; }
a.teams { color: inherit; text-decoration: none; }        /* the list card's matchup opens the game (2026-10-22) */
.trow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 2px 0; }
.teams .t { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase;
            letter-spacing: .01em; overflow-wrap: anywhere; }
.teams .at { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0;
             margin: 0 6px 0 0; vertical-align: 2px; }
.teams .s { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums;
            text-align: right; min-width: 1.2ch; }
.teams .s:empty { display: none; }
.trow.trail .t, .trow.trail .s { color: var(--muted); }
.asof { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.card p.asof { margin: 2px 0 0; }
/* the Model as a named opponent: one leather chip, the same on every card */
.modelline {
  display: block; width: 100%; text-align: left; background: var(--model-soft); color: var(--ink); border: 0; border-radius: 6px;
  padding: 7px 9px; margin: 8px 0; cursor: pointer; font-size: 14px; line-height: 1.4;
}
.modelline .mb { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.35;
                 letter-spacing: .07em; text-transform: uppercase; background: var(--model-chip); color: var(--model-chip-ink);
                 border-radius: 3px; padding: 0 6px; margin-right: 7px; vertical-align: 1px; }
.modelline b { color: var(--model); }
.modelline .more { color: var(--accent); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.modelline .mnote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 2px; color: var(--ink); }  /* two lines (his call 2026-10-22) */
.modelline .res-win, .modelline .res-loss, .modelline .res-push { font-family: var(--display); font-weight: 800; font-size: 15px;
                                                                  text-transform: uppercase; letter-spacing: .04em; }
.mkt { margin: 10px 0 0; }
.mkt .lab { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase;
            color: var(--ink); margin: 0 1px 5px; display: flex; gap: 6px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair.one { grid-template-columns: 1fr; }                    /* a touchdown prop has one side (2026-10-17) */
ul.plines .pair { margin: 6px 0 4px; }
.bet.prop .l2 { font-size: 13px; }
/* bet tiles: a betting board, the number large, the tile itself calm */
.bet {
  text-align: left; min-height: 44px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 6px;
  padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; position: relative;
}
.bet .l1 { font-weight: 700; font-size: 15px; line-height: 1.2; }
.bet .l1.split { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.bet .l1 .num { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bet .l2 { font-size: 13px; color: var(--muted); line-height: 1.3; }   /* the line and payout lead (2026-10-22) */
.bet .l3 { font-size: 14px; font-weight: 700; color: var(--ink); }
.bet .price { font-size: 12px; color: var(--muted); font-weight: 600; }
/* your pick is the brand blue, green is for results only; "Your bet" and "In parlay" are real pills (his decision 2) */
.bet.on { border: 2px solid var(--accent); background: var(--pick-fill); color: var(--pick-ink); padding: 7px 9px; }
.bet.on .l2, .bet.on .price { color: var(--pick-sub); }
.bet.on .l3 { color: var(--pick-ink); }
.bet.on .mtag { color: var(--pick-mtag); }
.bet.leg { border: 2px dashed var(--parlay); background: var(--parlay-soft); padding: 7px 9px; }
.bet-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 2px; }
.mine-tag, .leg-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; line-height: 1.5;
                      border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.mine-tag { background: var(--yellow); color: var(--on-yellow); padding-left: 5px; }
.mine-tag svg { width: 11px; height: 11px; flex: none; }
.leg-tag { background: var(--parlay); color: var(--parlay-soft); }
.bet .mtag { font-size: 12px; font-weight: 700; color: var(--model); }
.bet[disabled] { cursor: default; opacity: .8; }
.bet.on[disabled] { opacity: 1; }
.noline { font-size: 13px; color: var(--muted); padding: 6px 2px; }
.mine-strip { font-size: 13px; margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.why { font-size: 14px; }
/* "Show prices": a right-aligned text link with a 44 px tap area that adds only 32 px to the row (2026-10-22) */
.qbtn { margin: -6px -2px -6px auto; min-height: 44px; min-width: 44px; padding: 0 2px; border: 0; border-radius: 0; background: none;
        color: var(--accent); font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
        text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- results ---------- */
.res-win { color: var(--win); font-weight: 700; }
.res-loss { color: var(--loss); font-weight: 700; }
.res-push { color: var(--push); font-weight: 700; }
.res-live { color: var(--live); font-weight: 700; }
.pos { color: var(--win); }
.neg { color: var(--loss); }
/* a won bet and a won matchup get a stamp (stage 2, critique issue 14); it stamps in once per bet on this phone, and
   never moves when the phone asks for reduced motion */
.won { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 900; font-size: 15px; line-height: 1.2;
       letter-spacing: .05em; text-transform: uppercase; color: var(--win); background: var(--win-soft); border: 2px solid var(--win);
       border-radius: 4px; padding: 1px 7px; transform: rotate(-3deg); white-space: nowrap; }
.won svg { width: 12px; height: 12px; flex: none; }
.bet .won { align-self: flex-start; margin-top: 4px; }
.won.big { font-size: 20px; padding: 3px 10px; gap: 6px; white-space: normal; text-wrap: balance; }   /* the matchup sentence may wrap on a narrow phone */
.won.big svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .won.fresh { animation: stamp-in .55s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-3deg) scale(1.7); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* ---------- model card (full): the same leather chip as the list ---------- */
.mcard > h2 { display: inline-block; background: var(--model-chip); color: var(--model-chip-ink); border-radius: 4px; padding: 2px 9px;
              letter-spacing: .07em; }
.mcard h3 { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
            color: var(--model); margin: 16px 0 4px; }
.mcard p, .mcard li { font-size: 16px; line-height: 1.5; }
.mcard ol { padding-left: 20px; margin: 4px 0; }
.mcard .head { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 4px 0; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 2px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.betline { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; }
.betline .what { font-weight: 700; }
.betline .when { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.betline .state { text-align: right; font-size: 14px; white-space: nowrap; }
.betline .chance { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.legs { margin: 6px 0 0 12px; padding: 0; list-style: none; font-size: 14px; }
.legs li { padding: 2px 0; border: 0; }

/* ---------- standings: a leaderboard built to be screenshotted ---------- */
.stcard { background: none; border: 0; box-shadow: none; padding: 0; }
table.st { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; margin-top: -6px; }
table.st th { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
              text-align: right; padding: 0 6px; border: 0; white-space: nowrap; }
table.st th:nth-child(2) { text-align: left; }
table.st td { background: var(--surface); padding: 6px; border: 0; text-align: right; font-size: 15px; white-space: nowrap; vertical-align: middle; }
table.st td:first-child { border-radius: 6px 0 0 6px; }
table.st td:last-child { border-radius: 0 6px 6px 0; }
table.st td:nth-child(2) { text-align: left; overflow-wrap: anywhere; white-space: normal; width: 100%; }
table.st tr.me td { background: var(--accent-soft); }
table.st tr.lead td { background: var(--lead-soft); }
table.st tr.model td:nth-child(2), table.st tr.model .nm { color: var(--model); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin: 10px 0 4px; }
.field { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); }
.field.code { letter-spacing: .3em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
textarea.field { min-height: 80px; resize: vertical; }
.help { font-size: 14px; color: var(--muted); margin: 4px 0; }

/* ---------- welcome and sign-in: a navy title card ---------- */
.welcome { text-align: center; background: var(--navy); color: var(--on-navy); margin: -12px -12px 14px; padding: 18px 16px 20px;
           box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.welcome .logo { width: 84px; height: 84px; border-radius: 20px; }
.welcome h1 { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: .95; letter-spacing: .01em; text-transform: uppercase;
              margin: 12px 0 10px; text-wrap: balance; }
.welcome h1 .pk { color: var(--yellow); }
.welcome .who { color: var(--on-navy-2); margin: 0 0 12px; }
.welcome .joke { color: var(--on-navy-2); margin: 0 8px 12px; }
.welcome a { color: var(--on-navy); }
.stack { display: grid; gap: 10px; text-align: left; }
.or { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0; }
.initials { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.initials span { width: 36px; height: 36px; border-radius: 18px; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px;
                 background: var(--navy-2); color: var(--on-navy); border: 1px solid var(--navy-line); }
.initials span.m { background: var(--model-chip); color: var(--model-chip-ink); border-color: var(--model-chip); }

/* ---------- tab bar: navy, the current tab in yellow ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy); border-top: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  min-height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--tab-idle); text-decoration: none; font-size: 12px; font-weight: 600;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--yellow); font-weight: 700; }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); }

/* ---------- parlay slip ---------- */
.slipbar {
  position: fixed; left: 8px; right: 8px; z-index: 25; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  max-width: 624px; margin: 0 auto; background: var(--parlay); color: #fff; border-radius: 10px; padding: 8px 10px 8px 14px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
:root[data-theme="dark"] .slipbar { color: #160d26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slipbar { color: #160d26; } }
.slipbar .t { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.25; }
.slipbar button { min-height: 44px; border-radius: 6px; border: 0; padding: 0 14px; font-weight: 700; background: #fff; color: #4b2a85; cursor: pointer; }
.sheet-back { position: fixed; inset: 0; background: rgba(4, 10, 26, .55); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 14px 14px 0 0;
  max-height: 86vh; overflow-y: auto; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto;
}
.sheet h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 70px);
  background: var(--ink); color: var(--bg); border-radius: 8px; padding: 10px 14px; font-weight: 600; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.toast button { background: none; border: 0; color: var(--bg); font-weight: 700; text-decoration: underline; min-height: 36px; cursor: pointer; }

.banner { background: var(--live-soft); color: var(--ink); border-radius: 6px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.banner.info { background: var(--accent-soft); }
.stamp { font-size: 12px; color: var(--muted); text-align: right; margin: -4px 4px 8px; }
.band .stamp { color: var(--on-navy-2); }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }

/* ---------- message board (2026-10-07) ---------- */
.board textarea.field { min-height: 64px; }
.board .compose { justify-content: space-between; margin: 6px 0 2px; }
.msgs .msg .msgbody { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; }
.msgs .msg .linkbtn { min-height: 36px; padding: 6px 2px; font-size: 13px; }
.tabbar a { position: relative; }
.tabbar a.has-new::after { content: ""; position: absolute; top: 7px; left: calc(50% + 8px); width: 10px; height: 10px;
  border-radius: 50%; background: var(--onair); border: 2px solid var(--navy); }
.msgs .msg .report { display: inline-block; font-size: 13px; color: var(--muted); padding: 8px 2px; }

/* ---------- league rules (2026-10-07) ---------- */
.rules { margin: 0 0 4px; padding-left: 20px; }
.rules li { margin: 6px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }

/* ---------- everyone's picks (2026-10-07) ---------- */
.namebtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.gametitle { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
             color: var(--ink); text-decoration: none; flex: 1; }
.legs { list-style: none; margin: 4px 0 0; padding-left: 12px; font-size: 14px; }
.legs li { padding: 2px 0; }
.res-void { color: var(--muted); font-weight: 700; }
/* player props (2026-10-08; bets since 2026-10-17) */
ul.props { list-style: none; padding: 0; margin: 8px 0 0; }
ul.props li.prop { padding: 10px 0; border-top: 1px solid var(--line); }
ul.props li.prop:first-child { border-top: 0; padding-top: 2px; }
.prow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pkind { color: var(--muted); font-size: 13px; }
.badge.nab { background: var(--surface-2); color: var(--muted); }
.badge.rec { background: var(--pick-soft); color: var(--pick); border-color: transparent; }
.plean { margin-top: 4px; font-size: 14px; }
.pinj { margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.pinj.stop { color: var(--loss); font-weight: 700; }
.pinj.checked { color: var(--win); }
.pinj.unchecked { color: var(--live); }
/* injury status beside each prop player (2026-10-08): red high risk, orange some risk, green clear, gray unknown */
.pstatus { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; }
.pstatus.high { background: var(--loss); color: var(--surface); }
.pstatus.mid { background: var(--live-soft); color: var(--live); border-color: var(--live); }
.pstatus.ok { background: var(--pick-soft); color: var(--pick); }
.pstatus.unknown { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
/* props grouped by matchup, team and player; Why toggles; the Model's leans (2026-10-08) */
details.matchup { padding: 0; }
details.matchup > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
details.matchup > summary::-webkit-details-marker { display: none; }
details.matchup > summary::after { content: "Open"; margin-left: auto; color: var(--accent); font-weight: 700; font-size: 13px; }
details.matchup[open] > summary::after { content: "Close"; }
details.matchup > .pteams, details.matchup > a { margin: 0 16px; }
details.matchup > a { display: inline-block; margin-bottom: 14px; }
.mtitle { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.msub { width: 100%; font-size: 13px; color: var(--muted); }
.pteam { margin: 14px 0 2px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .03em; text-transform: uppercase;
         padding-bottom: 4px; border-bottom: 2px solid var(--line); }
ul.players { list-style: none; padding: 0; margin: 0; }
li.pplayer { padding: 10px 0; border-top: 1px solid var(--line); }
li.pplayer:first-child { border-top: 0; }
ul.plines { list-style: none; padding: 0; margin: 6px 0 0; }
ul.plines > li { padding: 4px 0; }
.pline { font-size: 14px; display: inline; }
.nab-inline { color: var(--muted); font-size: 12px; margin-left: 6px; }
details.why { margin: 4px 0 2px; font-size: 13px; }
details.why > summary { cursor: pointer; color: var(--accent); font-weight: 700; }
details.why ul { list-style: none; padding: 0 0 0 10px; margin: 4px 0; }
details.why li { padding: 2px 0; }
details.why li.whyhead { font-weight: 700; }
details.why ul.why-for li.whyhead { color: var(--win); }
details.why ul.why-against li.whyhead { color: var(--loss); }
ul.leans { list-style: none; padding: 0; margin: 8px 0 0; }
ul.leans > li { padding: 8px 0; border-top: 1px solid var(--line); }
ul.leans > li:first-child { border-top: 0; }


/* ---------- 2026-10-08, audit fixes ---------- */
.msgs .linkbtn, .report, .toast button { min-height: 44px; }                                        /* UX-14 */
.namebtn { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44px; width: 100%;
           padding: 4px 0; text-decoration: none; position: relative; }   /* name over its record (2026-10-22) */
.matchup-card .mu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.matchup-card .side { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.matchup-card .who { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.matchup-card .amt { font-family: var(--display); font-size: 34px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 2px 0; }
.matchup-card .amt.pos { color: var(--win); } .matchup-card .amt.neg { color: var(--loss); }
.matchup-card.mu-won { border: 2px solid var(--win); }   /* not .won: that is the stamp itself */
.mu-result { margin: 10px 0 4px; }
.intro li { margin: 8px 0; font-size: 16px; }
/* seven filters in one row that scrolls sideways (2026-10-22, stage 1); on the band, the chosen one is yellow (stage 2) */
.seg.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: none; border: 0; border-radius: 0;
               padding: 3px 12px; margin: 0 -12px 8px; gap: 8px; }
.seg.filters::-webkit-scrollbar { display: none; }
.seg.filters button { flex: 0 0 auto; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
                      color: var(--ink); box-shadow: none; outline: 0; }
.seg.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: none; outline: 0; }
.band .seg.filters { background: none; border: 0; margin-bottom: 0; }
.band .seg.filters button { background: transparent; border: 1px solid rgba(255, 255, 255, .34); color: var(--on-navy); }
.band .seg.filters button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }

/* ---------- 2026-10-16, audit 16 and the fun layer ---------- */
.stamp button { min-height: 44px; padding: 0 6px; font-size: 12px; }            /* "Refresh" beside the scores stamp */
.injline { font-size: 13px; color: var(--live); margin: -4px 2px 8px; }          /* first line of the Model's injury report */
/* the first-bet tour: a navy callout with the instruction in yellow */
.callout { background: var(--navy); color: var(--on-navy); border-radius: 6px; padding: 8px 10px; margin: 6px 0;
           font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.callout b { color: var(--yellow); flex: 1 1 60%; }
.callout .linkbtn { color: var(--on-navy); min-height: 40px; padding: 6px 4px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chip { min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
        padding: 8px 14px; font-weight: 600; cursor: pointer; }
.chip.own { border-color: var(--accent); color: var(--accent); }
.company { font-size: 13px; color: var(--muted); grid-column: 1 / -1; flex-basis: 100%; }
/* Sunday awards: each title on a yellow ribbon */
.awards li { padding: 10px 2px; }
.awards li b { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.3; letter-spacing: .05em;
               text-transform: uppercase; background: var(--yellow); color: var(--on-yellow); border-radius: 3px; padding: 0 7px; margin-bottom: 4px; }
.awards li b + span { display: block; }
.banner.streak { font-weight: 600; }

/* the chances card on a game's page (2026-10-17), laid out like his ESPN screenshot; scoreboard type since stage 2 */
.chances .ch-push { text-align: center; margin: 2px 0 8px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.chances .ch-push b { color: var(--ink); }
.chances .ch-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-weight: 700; margin: 6px 0; }
.chances .ch-name { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.chances .ch-badge { border: 1px solid var(--line); background: var(--surface-2); border-radius: 4px; padding: 3px 8px; font-size: 14px; font-weight: 600; }
.chances .ch-pct { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; }
.chances .ch-score { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 10px 0 8px; box-shadow: var(--shadow); }
.chances .ch-phase { font-weight: 700; margin-bottom: 4px; }
.chances .ch-team { display: flex; gap: 10px; align-items: baseline; }
.chances .ch-pts { font-family: var(--display); font-size: 28px; font-weight: 900; line-height: 1.1; min-width: 2ch; font-variant-numeric: tabular-nums; }
.chance-chart { display: block; width: 100%; height: auto; margin: 4px 0; }
.chance-chart .grid { stroke: var(--line); stroke-width: 1; }
.chance-chart .grid.dot { stroke-dasharray: 2 4; }
.chance-chart .mid { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chance-chart .area { fill: var(--accent-soft); stroke: none; }
.chance-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 5 2; }
.chance-chart .now { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chance-chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
/* the member's own bet on the chances card (2026-10-17, his ask: "I want to see the % chance of winning my bet") */
.chances .ch-tabs { flex-wrap: wrap; }
.chances .ch-tabs button { flex: 1 1 30%; }
.chances .ch-hero { margin: 4px 0 6px; }
.chances .ch-hero-label { font-weight: 700; font-size: 16px; }
.chances .ch-hero-pct { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.chances .ch-big { font-family: var(--display); font-size: 58px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.chances .ch-big-words { font-size: 16px; color: var(--muted); font-weight: 600; }
.chances .ch-split { margin: 2px 0 6px; font-size: 14px; color: var(--muted); }
/* props on a started game (2026-10-17): closed, not open-looking */
.pclosed { color: var(--muted); font-size: 12px; font-weight: 700; margin-left: 6px; }
.pmine { font-size: 13px; font-weight: 700; margin: 4px 0; }
h3.pstarted { margin: 18px 2px 8px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
details.matchup.closed summary .mtitle { color: var(--muted); }

/* ---------- 2026-10-22, gameday stage 1: structure and density (critique issues 1-4, 6-13; his decisions 1-5) ---------- */
/* Games header: the week's title and the scores stamp share a row */
.titlerow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; }
.titlerow .screen-title { margin: 4px 0; }
.titlerow .stamp { margin: 0 -4px 0 auto; }
/* a started, final or called-off game in the list: score row, the Model's pick in one row, your bets. Stage 2 keeps it
   tight so the scoreboard type costs little height: smaller strip, rows with no padding, the score at 30 px */
.game.compact { padding-bottom: 8px; margin-bottom: 8px; }
.game.compact .meta { --strip-y: 4px; }
.game.compact .teams { margin: 3px 0 0; }
.game.compact .trow { padding: 0; }
.game.compact .teams .t { font-size: 21px; }
.game.compact .teams .s { font-size: 28px; }
.game.compact .modelline { padding: 4px 8px; margin: 5px 0 0; font-size: 13px; line-height: 1.3; }
.game.compact .mine-strip { margin-top: 5px; }
/* standings: rank boxes (the leader yellow), names in caps, profit large on the right */
table.st .nm { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
table.st .namebtn .nm { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; }
table.st .rec { display: block; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; margin-top: 1px; }
table.st td.key .big { display: block; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.05; }
table.st td.pf { font-family: var(--display); font-weight: 900; font-size: 25px; line-height: 1; }
table.st td.amt { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1; }
table.st td.n { font-weight: 600; color: var(--muted); }
table.st td.rk { text-align: center; width: 44px; padding-right: 0; }
.rkb, .rk1 { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; background: var(--navy); color: var(--on-navy);
             font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1; }
.rk1 { background: var(--yellow); color: var(--on-yellow); }
details.how { margin: 2px 0 0; }
details.how > summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 700; font-size: 14px; min-height: 44px;
                        display: flex; align-items: center; }
details.how > summary::-webkit-details-marker { display: none; }
/* keyboard focus: one visible ring from the palette; yellow wherever the ground is navy */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }
.seg button:focus-visible, .seg button[aria-pressed]:focus-visible, .seg.filters button[aria-pressed]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.topbar :focus-visible, .band :focus-visible, .band .seg button:focus-visible, .band .seg.filters button[aria-pressed]:focus-visible,
.welcome :focus-visible, .callout :focus-visible, .tabbar a:focus-visible { outline-color: var(--yellow); }
.tabbar a:focus-visible { outline-offset: -4px; }
.field:focus-visible { outline-offset: 1px; }
::selection { background: var(--yellow); color: var(--on-yellow); }
