
/* Layout: dark, app-like shell (Sleeper-style). Sticky header with logo and a pill tab rail on wide screens;
   on phones the rail moves to a fixed bottom tab bar. One centered column (max 920px) of rounded cards.
   Palette: deep ink-blue ground, highlighter-yellow accent, and the "pens in the pocket" for positions. */
:root {
  color-scheme: dark;
  --bg: #0D1120;          /* page ground: deep ink blue */
  --bg-2: #11162A;        /* header and bottom bar */
  --surface: #161C34;     /* cards */
  --surface-2: #1E2645;   /* raised controls, hovered rows */
  --ink: #F2F4FF;
  --ink-2: #B9C1DF;
  --muted: #828BB0;
  --line: #252D50;
  --line-strong: #353F6B;
  --accent: #FFD23F;      /* highlighter yellow */
  --accent-weak: #2B2A2F;
  --on-accent: #191304;
  --link: #6DB4FF;
  --pen-pink: #FF5D8F;    /* QB */
  --pen-mint: #3DDC97;    /* RB */
  --pen-sky: #4DA3FF;     /* WR */
  --pen-orange: #FF9F43;  /* TE */
  --away: #3987e5;        /* chart pair, CVD-checked */
  --home: #d95926;
  --pos: #3987e5;
  --neg: #e66767;
  --mid: #262E52;
  --good: #3CD47A;
  --bad: #FF6B6B;
  --on-fill: #FFFFFF;
  --font-display: "Rubik", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px;
  --r-sm: 10px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 56px;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg-2); }
.wrap { max-width: 920px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--link); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.7rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 12px 0; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 34px; height: 34px; flex: none; }
.brand h1 { font-size: 1.45rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.brand h1 span { color: var(--accent); }
.asof { font-size: 0.8rem; color: var(--muted); }
.tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 721px) { .tabs { flex-wrap: wrap; gap: 4px 6px; overflow: visible; } .tabs a { padding: 7px 14px; } }
.tabs a {
  flex: none; text-decoration: none; color: var(--ink-2);
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  padding: 7px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.tabs a:hover { background: var(--surface); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
/* "More": the secondary sections, grouped (dropdown on desktop, bottom sheet on phones) */
.tabs a, .morebtn { line-height: 1.35; }
.morebtn { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); background: none; cursor: pointer;
  color: var(--ink-2); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; padding: 6px 10px 6px 14px; border-radius: 999px; }
.morebtn svg { width: 16px; height: 16px; transition: transform 0.15s; }
.morebtn:hover, .morebtn[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.morebtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.morebtn[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.sgroup { display: grid; gap: 4px; align-content: start; }
.sgroup .label { padding: 0 10px 4px; }
@media (min-width: 721px) {
  .sheet:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; position: fixed; z-index: 9;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
  .sheet a { text-decoration: none; color: var(--ink-2); font-family: var(--font-display); font-weight: 500; padding: 8px 10px; border-radius: 10px; }
  .sheet a:hover { background: var(--surface-2); color: var(--ink); }
  .sheet a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
  .sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 8; background: transparent; }
}
main { padding-top: 22px; }
.view { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }  /* children never push the page wider than the screen */
.intro { color: var(--ink-2); max-width: 62ch; }

/* Bottom tab bar (phones) */
.bottombar, .sheet, .sheet-backdrop { display: none; }
@media (max-width: 720px) {
  .top .tabs { display: none; }
  .top { padding-block: 12px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .bottombar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }
  .bottombar a, .bottombar button {
    display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; cursor: pointer;
    text-decoration: none; color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.02em;
  }
  .bottombar svg { width: 24px; height: 24px; }
  .bottombar [aria-current="page"], .bottombar button[aria-expanded="true"] { color: var(--accent); }
  .sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 7; background: rgba(5, 7, 15, 0.55); }
  .sheet:not([hidden]) {
    display: grid; grid-template-columns: 1fr; gap: 14px; position: fixed; z-index: 8; left: 0; right: 0; max-height: 72vh; overflow-y: auto;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line-strong);
    border-radius: 20px 20px 0 0;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .sgroup { grid-template-columns: 1fr 1fr; gap: 8px; } .sgroup .label { grid-column: 1 / -1; padding: 0 2px; }
  .sheet a { text-decoration: none; color: var(--ink); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-family: var(--font-display); font-weight: 500; }
  .sheet a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
}

/* Cards */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* Week view */
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weekbar > div { text-align: center; }
.weekbar h2 { font-size: 1.9rem; font-weight: 800; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
.iconbtn:hover:not(:disabled) { background: var(--surface-2); }
.iconbtn:disabled { opacity: 0.35; cursor: default; }
.week-summary { text-align: center; color: var(--ink-2); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; align-items: start; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 6px; display: grid; gap: 8px; min-width: 0; }
.game-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.tag { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.66rem; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.live { background: color-mix(in oklab, var(--pen-mint) 18%, var(--surface)); color: var(--pen-mint); }
.tag.strong { background: var(--accent); color: var(--on-accent); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.qbchip { font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, var(--surface)); border-radius: 999px; padding: 2px 7px; cursor: help; }
.lineup { display: grid; gap: 0; }
.lu-row { display: grid; grid-template-columns: auto 3em 1fr 6.5em; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lu-row:last-child { border-bottom: 0; }
.lu-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.lu-row input[type="number"] { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); text-align: right; }
.lu-row .note { color: var(--ink-2); font-size: 0.9rem; min-width: 0; }
.lu-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.btn { border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 700; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.team-row { display: grid; grid-template-columns: 3.2em 1fr auto auto; align-items: baseline; gap: 8px; }
.abbr { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.tname { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.trec { color: var(--muted); font-size: 0.82rem; }
.tscore { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; min-width: 1.6em; text-align: right; }
.tscore.lost { color: var(--muted); font-weight: 400; }
.probbar { display: flex; gap: 3px; height: 8px; }
.probbar span { display: block; height: 100%; }
.probbar .a { background: var(--away); border-radius: 999px 0 0 999px; }
.probbar .h { background: var(--home); border-radius: 0 999px 999px 0; }
.prob-labels { display: flex; justify-content: space-between; font-size: 0.88rem; margin-top: -4px; }
.prob-labels b { font-weight: 700; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.swatch.a { background: var(--away); } .swatch.h { background: var(--home); }
.game-foot { font-size: 0.9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.verdict { font-size: 0.88rem; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.verdict.good { color: var(--good); } .verdict.bad { color: var(--bad); } .verdict.none { color: var(--muted); font-weight: 500; }

/* Tables */
.tablewrap { overflow-x: auto; margin: 0 -4px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--muted); text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th.l, td.l { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
th button[aria-pressed="true"] { color: var(--accent); }
.teamcell { display: flex; align-items: baseline; gap: 8px; }
.teamcell .abbr { font-size: 1.05rem; min-width: 2.6em; }
.netbar { display: inline-grid; grid-template-columns: 44px 44px; align-items: center; vertical-align: middle; margin-left: 8px; }
.netbar span { height: 8px; display: block; }
.netbar .neg { justify-self: end; background: var(--neg); border-radius: 999px 0 0 999px; }
.netbar .pos { justify-self: start; background: var(--pos); border-radius: 0 999px 999px 0; }
.netbar .zero { grid-column: 1 / span 2; }
td.heat { position: relative; }
.pv { font-weight: 700; }
.heatcell { display: inline-block; min-width: 3.4em; padding: 2px 6px; border-radius: 6px; text-align: center; }

/* Controls */
.seg { display: inline-flex; border-radius: 999px; padding: 4px; gap: 2px; background: var(--surface); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.field { display: grid; gap: 6px; min-width: 0; }
.field select, .field input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); width: 100%; }
.pickers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.pickers .at { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--muted); padding-bottom: 8px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.slider { display: grid; gap: 4px; }
.slider-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; }
.slider input { width: 100%; accent-color: var(--accent); }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { display: grid; gap: 2px; }
.side.r { text-align: right; }
.bigpct { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.fact b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Team view */
.teamhead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; }
.teamhead h2 { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.sched { display: grid; }
.sched-row { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-row .wk { font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.sched-row .opp { min-width: 0; }
.sched-row .opp b { font-family: var(--font-display); font-size: 1.05rem; }
.res { font-weight: 700; text-align: right; }
.res.w { color: var(--good); } .res.l { color: var(--bad); } .res.t { color: var(--ink-2); }
.pbar { display: inline-block; width: 64px; height: 8px; background: var(--mid); border-radius: 999px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--pos); border-radius: 999px; }

/* Charts */
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { fill: var(--muted); font-family: var(--font-body); font-size: 12px; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .base { stroke: var(--line-strong); stroke-width: 1; }
svg.chart .hit { fill: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--ink-2); }
.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: 0.84rem; max-width: 240px; line-height: 1.3; font-weight: 600; }

/* Tiles, prose, notices */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tile b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1.1; letter-spacing: -0.02em; }
/* College tab */
.cfb-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 14px; }
.cfb-filters .field { flex: 1 1 220px; max-width: 340px; }
.cfb-filters input { font: inherit; font-size: 16px; color: var(--ink); }
.cfb-day { margin: 18px 0 10px; font-family: var(--font-display); font-size: 1rem; color: var(--ink-2); }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 2px 0; }
.crow .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .tscore { font-family: var(--font-display); font-weight: 700; color: var(--ink-2); }
.cfb-rank .up { color: var(--good); font-weight: 700; } .cfb-rank .down { color: var(--bad); font-weight: 700; }
#cfb-all { margin-top: 10px; }
.nw { white-space: nowrap; }
.cfb-played { margin-top: 18px; } .cfb-played summary { cursor: pointer; color: var(--ink-2); font-weight: 600; padding: 6px 0; } .cfb-played .games { margin-top: 10px; }
/* Parlays tab */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; }
.rung { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; background: var(--bg-2); }
.rung b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.rung span { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); min-height: 1em; }
.rung.done { background: color-mix(in oklab, var(--good) 14%, var(--surface)); border-color: color-mix(in oklab, var(--good) 40%, var(--line)); }
.rung.now { border: 2px solid var(--accent); background: color-mix(in oklab, var(--accent) 10%, var(--surface)); }
.rung.now span { color: var(--accent); }
.rung.next b { color: var(--ink-2); }
.rung.record { border-style: dashed; border-color: var(--accent); }
.rung.record span::after { content: " · new high"; color: var(--accent); }
.slips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.slip { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--bg-2); display: grid; gap: 8px; align-content: start; }
.slip.played { border: 2px solid color-mix(in oklab, var(--accent) 70%, var(--line)); }
.slip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slip-head b { font-family: var(--font-display); font-size: 1.05rem; margin-right: auto; }
.pill { font-weight: 800; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.play { background: var(--accent); color: var(--on-accent); }
.pill.won { background: color-mix(in oklab, var(--good) 20%, var(--surface)); color: var(--good); }
.pill.lost { background: color-mix(in oklab, var(--bad) 18%, var(--surface)); color: var(--bad); }
.legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legs li { display: flex; align-items: baseline; gap: 8px; font-size: 0.92rem; }
.legs li > span:first-of-type { flex: 1; min-width: 0; }
.legs .mk { font-style: normal; font-weight: 900; width: 1em; text-align: center; color: var(--muted); }
.legs .mk.w { color: var(--good); } .legs .mk.l { color: var(--bad); }
.runs { display: grid; gap: 10px; }
.runrow { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.runrow p { margin: 0; }
@media (max-width: 520px) { .ladder { grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 6px; } .rung { padding: 7px 6px; } .rung b { font-size: 1rem; } .rung.record span::after { content: ""; } }
.slip-foot { margin: 0; font-weight: 700; font-size: 0.86rem; color: var(--ink-2); }
.prose { display: grid; gap: 10px; max-width: 65ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.notice { background: color-mix(in oklab, var(--accent) 6%, var(--bg)); border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--line)); border-radius: var(--r); padding: 12px 16px; color: var(--ink-2); font-size: 0.9rem; }
.loading { color: var(--muted); font-style: italic; }
.foot { margin-top: 36px; padding-block: 18px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.foot a { color: var(--ink-2); }
.footcta { flex-basis: 100%; }
.footcta a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Growth: newsletter card, partner links, first-visit welcome (site_config.json) */
.nl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px;
  background: linear-gradient(120deg, color-mix(in oklab, var(--accent) 13%, var(--surface)), var(--surface) 65%);
  border-color: color-mix(in oklab, var(--accent) 38%, var(--line)); padding-right: 40px; }
.nl-copy h3 { font-size: 1.12rem; line-height: 1.25; margin: 3px 0 3px; }
.nl-tag { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.68rem; color: var(--accent); }
.nl-form { display: flex; gap: 8px; }
.nl-form input { min-width: 230px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); font: inherit; }
.nl-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.nl-form button, .nl-go { border: 0; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--on-accent); font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.nl-soon { display: inline-block; border: 1px dashed var(--line-strong); color: var(--muted); border-radius: 999px; padding: 9px 16px; font-size: 0.9rem; white-space: nowrap; }
.nl-done { margin: 0; color: var(--ink-2); max-width: 320px; }
.nl-done b { color: var(--good, #3ddc97); }
.nl-frame { width: min(100%, 400px); border: 0; background: transparent; display: block; }
.nl-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
.nl-x:hover { color: var(--ink); }
@media (max-width: 640px) { .nl-card { grid-template-columns: 1fr; } .nl-form { flex-direction: column; } .nl-form input { min-width: 0; width: 100%; }
  .nl-form button, .nl-go, .nl-soon { width: 100%; text-align: center; } }
.pgrid, .wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.pcard, .wcard { display: grid; gap: 3px; align-content: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.pcard:hover, .wcard:hover { border-color: var(--accent); }
.pcard b, .wcard b { font-family: var(--font-display); font-size: 1rem; }
.pgo { color: var(--accent); font-weight: 700; font-size: 0.86rem; margin-top: 4px; }
.pdisc { margin-top: 10px; }
.partners .panel-head { margin-bottom: 10px; }
.welcome { position: relative; padding-right: 40px; }
.welcome h3 { font-size: 1.15rem; }
.welcome > p { margin: 2px 0 12px; }
@media (max-width: 560px) { .wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .wcard { padding: 10px; text-align: center; } .wcard span { display: none; } }

@media (max-width: 520px) {
  .brand h1 { font-size: 1.3rem; }
  .bigpct { font-size: 2.4rem; }
  .hide-sm { display: none; }
  .pickers { grid-template-columns: 1fr; }
  .pickers .at { padding: 0; text-align: center; }
  .asof { width: 100%; }
}
.qbnote { margin: -2px 0 8px; padding-left: 8px; border-left: 2px solid var(--accent); font-size: 0.8rem; line-height: 1.4; color: var(--ink-2); }
.qbnote b { color: var(--ink); font-weight: 700; }
/* Confidence pills */
.pickrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 2px; font-size: 0.9rem; color: var(--ink-2); }
.pickrow b { color: var(--ink); }
.conf { display: inline-block; white-space: nowrap; font-weight: 700; font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.conf.c-strong { background: color-mix(in oklab, var(--good) 22%, var(--surface)); color: var(--good); }
.conf.c-solid { background: color-mix(in oklab, var(--good) 12%, var(--surface)); color: var(--ink); }
.conf.c-lean { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); color: var(--ink); }
.conf.c-noedge, .conf.c-tossup, .conf.c-coinflip { color: var(--muted); }
/* Lists: group headers, show-more buttons, jump links */
.ptable tr.grouprow td { padding-top: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); white-space: normal; }
.ptable tr.grouprow:first-child td { padding-top: 6px; }
.ptable tr.grouprow b { font-size: 0.95rem; }
.ptable tr.passrow td { opacity: 0.6; }
.morebtn { margin-top: 10px; }
.tablefoot { display: flex; flex-wrap: wrap; gap: 8px; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 14px; }
.jump button { border: 1px solid var(--line-strong); background: none; color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.jump button:hover { color: var(--ink); border-color: var(--ink-2); }
.panel[id] { scroll-margin-top: 170px; }
.games .dayhead { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 1rem; }
.games .dayhead:first-child { margin-top: 0; }
@media (max-width: 720px) { .panel[id] { scroll-margin-top: 100px; } }
.ptable tr.btnrow td { padding: 4px 0 8px; border: 0; }
/* Status to watch + copy pick */
.watchstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 0.86rem; }
.watchstrip .label { margin-right: 2px; }
.witem { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wchip { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.wchip.w-bad { background: color-mix(in oklab, var(--pen-pink) 18%, var(--surface)); color: var(--pen-pink); }
.wchip.w-warn { background: color-mix(in oklab, var(--pen-orange) 18%, var(--surface)); color: var(--pen-orange); }
.wchip.w-good { background: color-mix(in oklab, var(--pen-mint) 16%, var(--surface)); color: var(--pen-mint); }
.wlist { display: grid; }
.wrow { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.wrow:first-child { border-top: 0; padding-top: 2px; }
.wrow .wchip { justify-self: start; margin-top: 3px; }
.wrow .ppos { margin-left: 6px; }
.wrow p { margin: 0; } .wrow p + p { margin-top: 3px; color: var(--ink-2); }
@media (max-width: 560px) { .wrow { grid-template-columns: minmax(0, 1fr); } }
.cardlinks { display: flex; align-items: center; gap: 14px; }
.copybtn { border: 1px solid var(--line-strong); background: none; color: var(--ink-2); border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 0.78rem; cursor: pointer; }
.copybtn:hover { color: var(--ink); border-color: var(--ink-2); }
.copybtn.done { border-color: var(--pen-mint); color: var(--pen-mint); }
/* Start / sit */
.ssgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 6px 0 14px; }
.sscard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sscard.best { border-color: var(--accent); }
.sshead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ssbadge { margin-left: auto; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ssbadge.start { background: var(--accent); color: var(--on-accent); }
.sspts { display: flex; align-items: baseline; gap: 8px; }
.sspts b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.ssdl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 0.86rem; }
.ssdl dt { color: var(--muted); font-weight: 700; }
.ssdl dd { margin: 0; color: var(--ink-2); }
.sscard .linkbtn { align-self: flex-start; margin-top: auto; }
/* Draft tab */
.draftbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.draftbar .field { flex: 1 1 240px; max-width: 360px; }
.btn.small { padding: 5px 12px; font-size: 0.82rem; }
.btn.ghost { background: none; }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.dchip { border: 1px solid var(--line-strong); background: none; color: var(--ink-2); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.dchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dpos { display: inline-block; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; color: var(--ink-2); background: var(--surface-2); }
.dpos.dp-qb { color: var(--pen-pink); background: color-mix(in oklab, var(--pen-pink) 16%, var(--surface)); }
.dpos.dp-rb { color: var(--pen-mint); background: color-mix(in oklab, var(--pen-mint) 16%, var(--surface)); }
.dpos.dp-wr { color: var(--pen-sky); background: color-mix(in oklab, var(--pen-sky) 16%, var(--surface)); }
.dpos.dp-te { color: var(--pen-orange); background: color-mix(in oklab, var(--pen-orange) 16%, var(--surface)); }
.needtag { font-size: 0.7rem; font-weight: 800; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.via { font-size: 0.72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.mock { list-style: none; margin: 12px 0 0; padding: 0; }
.mock li { display: grid; grid-template-columns: 2.4rem minmax(0, 14rem) minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 11px 6px; border-top: 1px solid var(--line); }
.mock li.mine { background: color-mix(in oklab, var(--accent) 9%, var(--surface)); border-radius: 10px; }
.mock .no { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.3; color: var(--ink-2); }
.mock .team { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.mock .team .small { flex-basis: 100%; }
.mock .pl { display: grid; gap: 3px; }
.mock .pl b { font-size: 1.02rem; }
.mock .why { font-size: 0.82rem; color: var(--muted); }
.onclock { border: 1px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin: 12px 0; background: color-mix(in oklab, var(--accent) 6%, var(--surface)); }
.onclock-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.onclock .dchips { margin: 10px 0 6px; }
.clocktable td:nth-child(3) { white-space: normal; }
.clocktable th:nth-child(2), .clocktable td:nth-child(2) { padding-left: 4px; padding-right: 4px; }
.srcs { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 560px) {
  .mock li { grid-template-columns: 2rem minmax(0, 1fr); }
  .mock .pl { grid-column: 2; }
  .mock .no { grid-row: span 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .probbar span, .pbar i { transition: width 0.3s ease; }
}

/* Games at a glance (compact cards) */
.game { grid-template-columns: minmax(0, 1fr); }
.game > * { min-width: 0; }
.gmore { min-width: 0; }
.gmore > summary > * { min-width: 0; }
.teams { display: grid; gap: 2px; }
.game .team-row { grid-template-columns: 4.2em minmax(0, 1fr) auto auto; }
.game .team-row .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row .abbr { display: inline-flex; align-items: center; gap: 6px; }
.team-row .abbr .swatch { width: 8px; height: 8px; border-radius: 2px; margin: 0; flex: none; }
.team-row:not(.picked) .abbr, .game:not(.done) .team-row:not(.picked) .tname { color: var(--ink-2); font-weight: 500; }
.team-row.picked .tname { color: var(--ink); font-weight: 600; }
.probbar.slim { height: 6px; }
.gline { margin: 0; font-size: 0.84rem; color: var(--ink-2); }
.gline b { color: var(--ink); }
.game .verdict { font-size: 0.8rem; }
.gmore { border-top: 1px solid var(--line); margin: 2px -16px 0; padding: 0 16px; }
.gmore > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.gmore > summary::-webkit-details-marker { display: none; }
.gmore > summary::after { content: '▾'; margin-left: auto; padding-left: 6px; flex: none; }
.gmore[open] > summary::after { content: '▴'; }
.gwhy { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gnews, .gwx { flex: none; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.gnews { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.gwx { background: var(--surface-2); color: var(--ink-2); }
.gmore[open] { padding-bottom: 10px; }
.gmore[open] > summary .gwhy { white-space: normal; }
.gmore .qbline { margin: 0 0 6px; }
.gmore .small { margin: 6px 0; }
.recbar { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 0.86rem; color: var(--ink-2); }
.recbar b { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }
.watchbox { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.watchbox > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-size: 0.88rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.watchbox > summary::-webkit-details-marker { display: none; }
.watchbox > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.watchbox[open] > summary::after { content: '▴'; }
.watchbox .watchstrip { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; margin: 0; background: none; }
@media (max-width: 560px) { .recbar { justify-content: space-between; gap: 4px 10px; font-size: 0.78rem; } .recbar span { display: grid; text-align: center; } .recbar .muted { display: none; } }
/* Betting at a glance */
.bestgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-bottom: 12px; }
.bestcard { border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line)); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.bestcard .bbig { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--ink); line-height: 1.15; }
.bestcard .bnow { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.bestcard .bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.folds { display: grid; }
.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 11px 26px 11px 0; border-top: 1px solid var(--line); position: relative; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '▾'; position: absolute; right: 4px; top: 11px; color: var(--muted); }
.fold[open] > summary::after { content: '▴'; }
.fold .ftitle { font-weight: 700; color: var(--ink); }
.fold[open] { padding-bottom: 8px; }
.shopfold { padding: 4px 18px; }
.shopfold > summary { border-top: 0; padding: 14px 26px 14px 0; }
.shopfold > summary .ftitle { font-size: 1.05rem; }
.shopfold[open] { padding-bottom: 16px; }
.howto { margin-top: 10px; }
.howto > summary { cursor: pointer; font-size: 0.82rem; color: var(--muted); width: max-content; }
.howto > div { margin-top: 6px; max-width: 66ch; line-height: 1.5; }
.blist { display: grid; }
.brow { display: grid; grid-template-columns: minmax(78px, 0.8fr) 1fr 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: start; min-width: 0; }
.brow.bhead { border-top: 0; padding: 0 0 4px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; font-weight: 700; }
.bgame { display: grid; min-width: 0; }
.bcell { min-width: 0; }
.bcell .bpick { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.bcell .bpick .res { font-size: 0.85rem; }
.bcell:not(.edge) .bpick b { font-weight: 600; color: var(--ink-2); }
.bcell .conf { font-size: 0.7rem; padding: 1px 6px; }
.llist { display: grid; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.llist > .lrow:first-child { border-top: 0; }
.lrow .lmain { min-width: 0; }
.lrow .pname { font-weight: 600; }
.lrow .ppos { font-weight: 800; color: var(--ink-2); background: var(--surface-2); font-size: 0.64rem; letter-spacing: 0.06em; margin-left: 6px; padding: 2px 6px; border-radius: 999px; vertical-align: 1px; }
.lrow.pass { opacity: 0.6; }
.lrow .res { flex: none; }
.lrow .conf { font-size: 0.7rem; padding: 1px 6px; }
.lgame { padding: 10px 0 2px; }
@media (max-width: 560px) { .brow { grid-template-columns: 1fr 1fr; } .brow .bgame { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; } .brow.bhead span:first-child { display: none; } }
/* Share buttons + toast */
.sharebtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: none; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; cursor: pointer; line-height: 1.2; }
.sharebtn svg { width: 14px; height: 14px; flex: none; }
.sharebtn:hover { color: var(--ink); border-color: var(--ink-2); }
.sharebtn.done { border-color: var(--pen-mint); color: var(--pen-mint); }
.sharebtn.icon { width: 30px; height: 30px; padding: 0; justify-content: center; border-color: var(--line); flex: none; }
.sharebtn.icon svg { width: 15px; height: 15px; }
.gm-r { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.game-meta > span:first-child { white-space: nowrap; }
.shareline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; max-width: min(92vw, 420px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); text-align: center; }
@media (min-width: 721px) { .toast { bottom: 28px; } }
/* My team & My roster */
.star { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 4px 6px 4px 0; margin: -4px 2px -4px 0; vertical-align: -1px; }
.star:hover { color: var(--ink); }
.star.on, .mystar { color: var(--accent); }
.mystar { margin: 0 2px 0 4px; font-size: 0.9em; }
.mytoggle { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; cursor: pointer; align-self: end; }
.mytoggle .cnt { font-size: 0.78em; opacity: 0.75; margin-left: 2px; }
.mytoggle[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mypick { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-2); font-weight: 600; align-self: end; }
.mypick select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); max-width: 13em; }
.myrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.linkbtn.small { font-size: 0.86rem; }
.mybox > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-right: 22px; position: relative; }
.mybox > summary::-webkit-details-marker { display: none; }
.mybox > summary::after { content: '▾'; position: absolute; right: 0; top: 0; color: var(--muted); }
.mybox[open] > summary::after { content: '▴'; }
.mybox[open] > summary { margin-bottom: 10px; }
.mybox-act { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin: 12px 0 8px; }
.mybox-act .field { min-width: min(100%, 260px); flex: 1 1 260px; max-width: 420px; }
.game.mine { border-color: color-mix(in oklab, var(--accent) 75%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent); }
tr.mine td { background: color-mix(in oklab, var(--accent) 8%, var(--surface)); }
tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.prow.minerow { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.ssmine { margin: 2px 0 12px; display: grid; gap: 6px; }
.ssmine-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ssq { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.ssq:hover { border-color: var(--accent); }
/* secondary tabs loading their data */
.lzload { display: flex; align-items: center; gap: 12px; padding: 48px 4px; color: var(--muted); font-size: 0.95rem; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: pp-spin 0.8s linear infinite; flex: none; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.lzfail { display: grid; gap: 10px; justify-items: start; }
.ptable .sub { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-top: 2px; padding-left: 22px; }
.only-sm { display: none; }
@media (max-width: 520px) { .ptable .sub.only-sm { display: block; } }
.myrow { justify-content: center; }
/* Live scores (src/live.js) */
.game.is-live { border-color: color-mix(in oklab, var(--bad) 55%, var(--line)); }
.livebar { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 0.84rem; min-width: 0; }
.lb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.livebadge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: #E0234E; padding: 2px 8px 2px 7px; border-radius: 999px; }
.livebadge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pp-pulse 1.6s ease-in-out infinite; }
.livebadge.fin { background: var(--line-strong); color: var(--ink); }
.livebadge.fin::before { display: none; }
.lb-clock { color: var(--ink); }
.lb-dd { color: var(--ink-2); }
.lb-dd.red { color: var(--bad); font-weight: 700; }
.lb-upd { margin-left: auto; color: var(--muted); font-size: 0.74rem; white-space: nowrap; }
.lb-play { margin: 0; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-row.has-ball .tname::after { content: ''; display: inline-block; width: 11px; height: 7px; margin-left: 6px; border-radius: 50%; background: #C2783C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); vertical-align: 1px; }
.lsum { padding: 2px 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.lwp { display: grid; gap: 4px; }
.lwp .num { font-weight: 700; font-size: 0.86rem; }
.lplays { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 0.84rem; line-height: 1.4; }
.lplays li .muted { display: block; }
.lplays li.score { font-weight: 600; }
@keyframes pp-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .livebadge::before { animation: none; } }
/* Player Impact Ratings (src/impact.js) */
.irb { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; padding: 2px 6px; border-radius: 8px; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; line-height: 1.3; font-variant-numeric: tabular-nums; flex: none; }
.irb.t-elite { background: color-mix(in oklab, var(--good) 26%, transparent); color: var(--good); }
.irb.t-strong { background: color-mix(in oklab, var(--pen-sky) 24%, transparent); color: var(--pen-sky); }
.irb.t-solid { background: var(--surface-2); color: var(--ink-2); }
.irb.t-rough { background: color-mix(in oklab, var(--bad) 18%, transparent); color: var(--bad); }
.perf { display: grid; gap: 5px; padding-top: 2px; }
.perf-h { margin: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.perf-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-width: 0; font-size: 0.84rem; }
.perf-row .irb { font-size: 0.74rem; min-width: 1.9em; padding: 1px 5px; grid-row: span 2; align-self: start; margin-top: 1px; }
.perf-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 0.8rem; }
.perf-e { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.impd { margin: 4px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.impl { margin: 6px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.impl li { line-height: 1.45; }
.top5 .t5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: t5; }
.top5 .t5 li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; counter-increment: t5; }
.top5 .t5 li::before { content: counter(t5); font-family: var(--font-display); font-weight: 800; color: var(--muted); width: 1em; text-align: right; }
.t5-m { display: grid; min-width: 0; }
.t5-m .small { color: var(--ink-2); }
.t5-v { text-align: right; font-size: 0.8rem; font-weight: 700; line-height: 1.35; }
.ilist { display: grid; }
.irow { display: grid; grid-template-columns: 1.6em auto minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.ilist > .irow:first-child { border-top: 0; }
.irk { text-align: right; padding-top: 3px; font-size: 0.82rem; }
.irow .irb { margin-top: 1px; }
.irm p { margin: 0; }
.irm .ppos { font-weight: 800; color: var(--ink-2); background: var(--surface-2); font-size: 0.64rem; letter-spacing: 0.06em; margin-left: 6px; padding: 2px 6px; border-radius: 999px; vertical-align: 1px; }
.irm p + p { margin-top: 2px; }
.impflag { display: inline-block; margin-left: 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.impflag.buy { background: color-mix(in oklab, var(--good) 20%, transparent); color: var(--good); }
.impflag.sell { background: color-mix(in oklab, var(--pen-orange) 22%, transparent); color: var(--pen-orange); }
.impmm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.impmm h3 { margin: 0 0 2px; }
/* ---------- Play: nav dots ---------- */
.newtag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--pen-pink); color: #1a0710; font: 800 0.58rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 1px; }
.sheet a[data-dot].dot::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--pen-pink); vertical-align: 2px; }
#more-btn.dot, #more-top.dot { position: relative; }
#more-btn.dot::after, #more-top.dot::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--pen-pink); box-shadow: 0 0 0 2px var(--bg-2); }
#more-btn.dot::after { top: 5px; left: calc(50% + 9px); }
#more-top.dot::after { top: -2px; right: -2px; }
.sdot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--pen-pink); vertical-align: 2px; }

/* ---------- My picks (Pools) ---------- */
.mptiles .tile b small { font-size: 1.1rem; font-weight: 700; }
.tile.hot { border-color: var(--pen-orange); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--pen-orange) 45%, transparent); }
.mpbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mplist { display: grid; }
.mprow { display: grid; grid-template-columns: 6.8em minmax(0, 1fr) auto minmax(0, 1fr) 3.4em; align-items: center; gap: 6px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mprow:last-child { border-bottom: 0; }
.mprow.mine { box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }
.mpteam { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2); cursor: pointer; font: inherit; text-align: left; }
.mpteam .abbr { font: 700 0.95rem var(--font-display); color: var(--ink); }
.mpteam .tn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.mpteam .mpp, .mpteam .mpsc { margin-left: auto; }
.mpteam .mpsc { font: 700 1rem var(--font-display); color: var(--ink); }
.mpteam:hover:not(:disabled) { border-color: var(--ink-2); }
.mpteam.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mpteam.on .abbr, .mpteam.on .muted, .mpteam.on .mpsc { color: var(--on-accent); }
.mpteam:disabled { cursor: default; }
.mpteam:disabled:not(.on) { opacity: 0.6; }
.mpteam.on.r-w { background: color-mix(in oklab, var(--good) 22%, var(--surface-2)); border-color: var(--good); color: var(--ink); }
.mpteam.on.r-l { background: color-mix(in oklab, var(--bad) 18%, var(--surface-2)); border-color: var(--bad); color: var(--ink); }
.mpteam.on.r-w .abbr, .mpteam.on.r-w .mpsc, .mpteam.on.r-l .abbr, .mpteam.on.r-l .mpsc { color: var(--ink); }
.mpteam.on.r-t { opacity: 1; }
.mpres { text-align: center; font-weight: 800; }
.mpat { text-align: center; }
@media (max-width: 560px) {
  .mprow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 2.6em; gap: 4px 6px; }
  .mpwhen { grid-column: 1 / -1; }
  #view-pools .tiles.mptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mpteam .tn { display: none; }
  .mpteam { padding: 8px; }
}
.youtag { display: inline-block; margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 800 0.58rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
.youtag.w { background: var(--good); color: #06150c; }
.youtag.l { background: var(--bad); color: #1c0606; }
.injlink { white-space: nowrap; }
.seg button small { font-size: 0.72em; margin-left: 4px; }


[hidden]{display:none!important} img{max-width:100%}
.gamepage { display: grid; gap: 18px; padding-top: 22px; }
.gamepage h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; line-height: 1.15; margin-top: 4px; }
.gamepage h2 { font-size: 1.15rem; margin-bottom: 10px; }
.brandname { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brandname span { color: var(--accent); }
.pagenav { display: flex; gap: 6px; flex-wrap: wrap; }
.pagenav a { text-decoration: none; color: var(--ink-2); font-family: var(--font-display); font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--surface); }
.gamepage .top, .top { padding-block: 12px; }
.good { color: var(--good); font-weight: 700; } .bad { color: var(--bad); font-weight: 700; }
body { padding-bottom: 40px; }
.gamepage td { white-space: normal; }
.gamepage td:last-child, .gamepage th:last-child { white-space: nowrap; }
@media (max-width: 520px) { .gamepage table { font-size: 0.9rem; } .gamepage .tile b { font-size: 1.7rem; } }
.nlrow { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.nlrow > div { display: grid; gap: 4px; }
.nlrow .btn { text-decoration: none; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
