/* HermesLines — one stylesheet for every page.
   Type: Barlow Condensed for headings and numbers, Barlow for reading.
   Color: slate ink on cool paper; blue marks the under (the product),
   green/red only for results. Dark mode follows the system setting. */

:root {
  --paper:   #f3f5f4;
  --surface: #ffffff;
  --sunk:    #e8ecea;
  --ink:     #13202a;
  --ink-2:   #4d5b66;
  --rule:    #d3dadd;
  --under:   #2350c8;
  --under-soft: rgba(35, 80, 200, .12);
  --on-under: #ffffff;
  --pos:     #16784a;
  --neg:     #b42318;
  --warn:    #9a5b00;
  --warn-soft: #fbf1df;
  --radius:  6px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0e151b;
    --surface: #151f27;
    --sunk:    #1b2731;
    --ink:     #e3eaef;
    --ink-2:   #97a5b0;
    --rule:    #26333d;
    --under:   #7ea2ff;
    --under-soft: rgba(126, 162, 255, .16);
    --on-under: #0e151b;
    --pos:     #53c98e;
    --neg:     #ff7c70;
    --warn:    #f0b35a;
    --warn-soft: #2a2215;
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
img, svg { max-width: 100%; }
a { color: var(--under); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--under); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .005em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.fine { font-size: .875rem; color: var(--ink-2); margin-top: .75rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.hidden, [hidden] { display: none !important; }
.page-end { margin-bottom: 64px; }
code { font-size: .9em; background: var(--sunk); padding: .1em .35em; border-radius: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--rule); }
.h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-lede { color: var(--ink-2); max-width: 62ch; margin-bottom: 28px; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
.page-head p { color: var(--ink-2); max-width: 64ch; }

/* ── Buttons & forms ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 1rem/1 var(--body);
  padding: .8em 1.2em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--under); color: var(--on-under); }
.btn-primary:hover { background: color-mix(in srgb, var(--under) 85%, var(--ink)); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-sm { font-size: .9rem; padding: .5em .85em; }
.btn-lg { font-size: 1.0625rem; padding: .95em 1.4em; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .65em .75em;
}
input:focus, select:focus { outline: 2px solid var(--under); outline-offset: 0; border-color: var(--under); }
.field { margin-bottom: 16px; }

/* ── Header / footer ──────────────────────────────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand {
  font: 700 1.6rem/1 var(--display);
  color: var(--ink); text-decoration: none; letter-spacing: .01em; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark { height: 40px; width: auto; display: block; }
.site-footer .brand-mark { height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--under); }
.plan-tag { font: 600 .95rem/1 var(--display); letter-spacing: .04em; color: var(--under); border: 1px solid var(--under); border-radius: 4px; padding: 4px 7px; }
.nav-toggle { display: none; margin-left: auto; font: 600 .95rem var(--body); color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--under); }
  .nav .btn, .nav .plan-tag { margin-top: 12px; align-self: flex-start; }
}

.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: .9rem; color: var(--ink-2); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: baseline; }
.site-footer .brand { font-size: 1.25rem; }
.site-footer p { margin: 0; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink-2); }
.dev-marker { color: var(--warn); font-weight: 600; }
@media (max-width: 700px) { .footer-row { grid-template-columns: 1fr; gap: 10px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: inherit; }

/* Legal pages and other long reading */
.prose h2 { font-size: 1.5rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); max-width: 68ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }

/* Checkbox with its label text (signup agreement) */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--under); }

/* Results banner above the header (base.html). One light sweep on load; the
   global reduced-motion rule turns it off. */
.promo { position: relative; overflow: hidden; background: var(--under); color: var(--on-under); }
.promo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: promo-sweep 1.4s ease-out .5s 1 forwards;
}
.promo-record { background: linear-gradient(90deg, var(--under), color-mix(in srgb, var(--under) 70%, var(--pos))); }
@keyframes promo-sweep { to { transform: translateX(100%); } }
.promo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 48px; padding-block: 8px; }
.promo-text { margin: 0; flex: 1 1 300px; font-size: .95rem; }
.promo-num { font: 700 1.55rem/1 var(--display); margin-right: 4px; vertical-align: -2px; }
.promo-tag { font: 700 .8rem/1 var(--body); color: var(--under); background: var(--on-under); border-radius: 999px; padding: 5px 9px; }
.promo-link { color: inherit; font-weight: 600; white-space: nowrap; }
.promo-close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; padding: 2px 8px; cursor: pointer; opacity: .75; }
.promo-close:hover { opacity: 1; }

.flashes { padding-top: 16px; }
.flash { margin: 0 0 8px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); transition: opacity .4s; }
.flash-success { border-color: var(--pos); }
.flash-danger  { border-color: var(--neg); }
.flash-warning { border-color: var(--warn); background: var(--warn-soft); }

/* ── Home: hero ───────────────────────────────────────────────────────── */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.display { font-size: clamp(2.9rem, 6.4vw, 5.1rem); line-height: .95; letter-spacing: -.005em; margin-bottom: .35em; max-width: 12ch; }
.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 54ch; }
.hero-result { display: flex; align-items: center; gap: 16px; margin: 4px 0 24px; padding: 12px 0; border-block: 1px solid var(--rule); max-width: 54ch; }
.hero-result-num { font: 700 3rem/1 var(--display); color: var(--pos); flex: none; }
.hero-result span:last-child { color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* The line figure: the book's number, our projection, and the under side shaded. */
.line-fig { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 24px 24px 20px; }
.line-fig-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.line-fig-tag { font-size: .875rem; font-weight: 600; color: var(--under); }
.line-fig-player { font: 700 2.1rem/1.05 var(--display); }
.line-fig-market { color: var(--ink-2); }
.line-fig-empty p:last-child { color: var(--ink-2); margin: 0; }

.scale { position: relative; height: 96px; margin: 0 6px 22px; }
.scale-axis { position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--rule); }
.scale-under {
  position: absolute; left: 0; bottom: 22px; height: 56px;
  background: repeating-linear-gradient(135deg, var(--under-soft) 0 6px, transparent 6px 11px);
  border-bottom: 2px solid var(--under);
}
.scale-line { position: absolute; bottom: 14px; width: 0; height: 82px; border-left: 2px solid var(--ink); }
.scale-line span { position: absolute; top: -4px; left: 8px; font: 700 1.35rem/1 var(--display); white-space: nowrap; }
.scale-line span::after { content: ' line'; font: 500 .8rem var(--body); color: var(--ink-2); }
.scale-proj { position: absolute; bottom: 16px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--under); box-shadow: 0 0 0 4px var(--surface); }
.scale-proj span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font: 600 1.05rem/1 var(--display); color: var(--under); white-space: nowrap; }
.scale-proj span::after { content: ' ours'; font: 500 .8rem var(--body); color: var(--ink-2); }

.line-fig-facts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.line-fig-facts dt { font-size: .8rem; color: var(--ink-2); }
.line-fig-facts dd { margin: 0; font-weight: 600; }
.pick-side { color: var(--under); }
@media (max-width: 520px) { .line-fig-facts { grid-template-columns: 1fr 1fr; } }

/* ── Ledger (record tables) ───────────────────────────────────────────── */
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 16px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ledger thead th { font-size: .85rem; font-weight: 600; color: var(--ink-2); padding-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ledger .num { text-align: right; }
.ledger tbody th { font-weight: 600; }
.ledger td.num { font: 600 1.6rem/1 var(--display); }
.ledger-sport { font: 700 1.05rem/1 var(--display); color: var(--under); margin-right: 4px; }
.ledger-note { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.ledger-live td.num { font-size: 2rem; }
.ledger tfoot td, .ledger tfoot th { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.after-table { margin-top: 18px; color: var(--ink-2); max-width: 72ch; }
.ledger.compact th, .ledger.compact td { padding: 10px 12px; }
.ledger.compact td.num { font: 500 1.05rem/1.2 var(--body); }
@media (max-width: 600px) {
  .ledger th, .ledger td { padding: 12px 6px; }
  .ledger td.num { font-size: 1.25rem; }
  .ledger-live td.num { font-size: 1.45rem; }
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Record page: game days oldest first, the box opens at the latest; older days scroll inside it */
.rows-scroll { max-height: 22rem; overflow-y: auto; border-bottom: 1px solid var(--rule); }
.rows-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); }
.rows-scroll tfoot th, .rows-scroll tfoot td { position: sticky; bottom: 0; background: var(--paper); border-top: 2px solid var(--ink); }
.rows-scroll td.day, .rows-scroll tfoot th { white-space: nowrap; }

/* ── Home: steps, plans, FAQ ──────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps h3 { font-size: 1.75rem; display: flex; gap: 10px; align-items: baseline; }
.steps h3::before { content: counter(step); color: var(--under); }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin-bottom: 24px; }
.plan { padding: 24px; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan h3 { font-size: 1.5rem; margin-bottom: .2em; }
.plan p { color: var(--ink-2); margin: 0; }
.plan .price { color: var(--ink); margin: 4px 0 12px; }
.plan .price span { font: 700 2.6rem/1 var(--display); }
.plan-main { box-shadow: inset 0 3px 0 var(--under); }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
}

.faq { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.125rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 1.5rem/1 var(--display); color: var(--under); }
.faq[open] summary::after { content: '\2212'; }
.faq p { color: var(--ink-2); margin: 0 0 18px; max-width: 66ch; }

/* ── Record page ──────────────────────────────────────────────────────── */
.block { margin: 40px 0 56px; }
.block h2 { font-size: 2rem; }
.block h3 { font-size: 1.4rem; margin-top: 32px; }
.block > p { color: var(--ink-2); max-width: 70ch; }
.headline-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin: 12px 0 24px; }
.headline-stat .big { font: 700 clamp(3.5rem, 9vw, 5.5rem)/.9 var(--display); color: var(--pos); }
.headline-stat .big.neg { color: var(--neg); }
.headline-stat + .headline-stat { margin-top: -8px; }
.headline-stat + .headline-stat .big { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.headline-stat .what { font-size: 1.05rem; color: var(--ink-2); max-width: 40ch; }
.headline-stat .what strong { color: var(--ink); }

/* ── Picks board ──────────────────────────────────────────────────────── */
.board { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.board-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.board-main { min-width: 0; }   /* let wide tables scroll inside .table-scroll instead of widening the page */
.side-block h2 { font-size: 1.25rem; margin-bottom: 8px; }
.side-block p { font-size: .95rem; color: var(--ink-2); margin-bottom: .6em; }
.side-rows { margin: 0; }
.side-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.side-rows dt { color: var(--ink-2); }
.side-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) {
  .board { grid-template-columns: 1fr; gap: 24px; }
  .board-side { position: static; order: 2; }
}

.sport-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.sport-tab {
  font: 600 1.25rem/1 var(--display); letter-spacing: .02em;
  color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 10px 14px 12px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.sport-tab:hover { color: var(--ink); }
.sport-tab-active, .sport-tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--under); }
.sport-tab small { font: 500 .75rem var(--body); color: var(--ink-2); margin-left: 4px; }

.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.board-head h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin: 0; }
.board-status { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
.status-live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pos); margin-right: 7px; vertical-align: 1px; }
.status-stale { color: var(--warn); font-weight: 600; }

.notice { border: 1px solid var(--rule); border-left: 4px solid var(--under); background: var(--surface); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; font-size: .975rem; }
.notice p:last-child { margin: 0; }
.notice-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.unlock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.unlock p { margin: 0; }
.unlock form { margin: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 0; margin-bottom: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toolbar label { font-size: .8rem; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.toolbar select { width: auto; min-width: 120px; padding: .45em .6em; font-size: .95rem; }
.toolbar .pick-count { margin-left: auto; color: var(--ink-2); font-size: .95rem; padding-bottom: 8px; }

.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 120px;
  gap: 8px 20px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--rule);
}
.pick-who strong { display: block; font: 700 1.45rem/1.1 var(--display); }
.pick-who span { color: var(--ink-2); font-size: .925rem; }
.pick-bet { font-variant-numeric: tabular-nums; }
.pick-bet .side { display: block; font: 700 1.35rem/1.1 var(--display); color: var(--under); }
.pick-bet .where { font-size: .925rem; color: var(--ink-2); }
.pick-note { grid-column: 1 / -1; font-size: .875rem; color: var(--warn); margin: 0; }
.pick-reasons { grid-column: 1 / -1; margin: 0; padding-left: 18px; font-size: .875rem; color: var(--ink-2); }
.pick-reasons li { margin: 2px 0; }
.conf { text-align: right; }
.conf-num { font: 700 1.6rem/1 var(--display); }
.conf-num small { font: 500 .8rem var(--body); color: var(--ink-2); }
.conf-bar { height: 4px; background: var(--sunk); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.conf-bar i { display: block; height: 100%; background: var(--under); }
.pick-top .conf-num { color: var(--under); }
.m-sub { display: block; font-size: .8rem; color: var(--ink-2); margin-top: 4px; white-space: nowrap; }
.pick-list .m { display: none; }
.pick-list[data-show="conf"] .m-conf,
.pick-list[data-show="edge"] .m-edge,
.pick-list[data-show="time"] .m-time { display: block; }
@media (max-width: 600px) {
  .pick-row { grid-template-columns: 1fr auto; }
  .pick-bet { grid-column: 1; }
  .conf { grid-row: 1; grid-column: 2; }
}

.locked-head { font: 700 1.4rem/1.1 var(--display); margin: 36px 0 4px; }
.pick-row.locked { color: var(--ink-2); }
.pick-row.locked .blur { filter: blur(6px); user-select: none; }

.offseason { padding: 40px 0; max-width: 60ch; }
.offseason h1 { font-size: 2.6rem; }
.offseason p { color: var(--ink-2); }

/* ── Pricing page ─────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 16px 0 24px; }
.price-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; }
.price-card.plan-main { border-color: var(--under); box-shadow: inset 0 3px 0 var(--under); }
.price-card h2 { font-size: 1.75rem; margin-bottom: 0; }
.price-card .price { margin: 4px 0 16px; color: var(--ink-2); }
.price-card .price span { font: 700 3rem/1 var(--display); color: var(--ink); }
.price-card ul { margin: 0 0 20px; padding-left: 1.1em; color: var(--ink-2); }
.price-card li { margin-bottom: 6px; }
.price-card form { margin-top: auto; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; border: 0; padding: 0; }
.choices legend { font-size: .9rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; font: 600 1.1rem/1 var(--display); letter-spacing: .03em; padding: 9px 14px; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.choice input:checked + span { background: var(--under); border-color: var(--under); color: var(--on-under); }
.choice input:focus-visible + span { outline: 2px solid var(--under); outline-offset: 2px; }
.choice small { display: block; font: 400 .7rem var(--body); letter-spacing: 0; margin-top: 3px; opacity: .8; }
.form-hint { font-size: .875rem; color: var(--warn); margin: -6px 0 12px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ── Auth pages ───────────────────────────────────────────────────────── */
.auth { max-width: 420px; margin: 0 auto; padding: 56px 20px 72px; }
.auth h1 { font-size: 2.6rem; margin-bottom: .15em; }
.auth .sub { color: var(--ink-2); margin-bottom: 28px; }
.auth form { margin-bottom: 20px; }
.auth .links { font-size: .95rem; color: var(--ink-2); }
.auth .links p { margin: 0 0 6px; }

/* ── EPL ──────────────────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin: 8px 0 20px; }
.stat-row > div { padding: 18px 20px; }
.stat-row > div + div { border-left: 1px solid var(--rule); }
.stat-row .v { font: 700 2.3rem/1 var(--display); display: block; margin-bottom: 6px; }
.stat-row .k { font-weight: 600; display: block; }
.stat-row .s { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row > div:nth-child(3) { border-left: 0; }
  .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.good { color: var(--pos); font-weight: 600; }

/* ── Parlay calculator ────────────────────────────────────────────────── */
.parlay { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 8px 0 64px; align-items: start; }
@media (max-width: 960px) { .parlay { grid-template-columns: 1fr; } }
.parlay-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.parlay-pick-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.ppc-player { font: 700 1.25rem/1.1 var(--display); }
.ppc-meta, .ppc-edge { font-size: .875rem; color: var(--ink-2); }
.ppc-line { font-weight: 600; color: var(--under); }
.ppc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.parlay-add-btn { font: 600 .9rem var(--body); color: var(--under); background: none; border: 1px solid var(--under); border-radius: var(--radius); padding: 5px 10px; cursor: pointer; }
.parlay-add-btn:disabled { color: var(--ink-2); border-color: var(--rule); cursor: default; }
.parlay-empty { grid-column: 1 / -1; color: var(--ink-2); padding: 16px 0; }
.parlay-manual { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.parlay-manual h2 { font-size: 1.3rem; }
.manual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.slip, .result { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
.slip-col { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .slip-col { position: static; } }
.slip-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.slip-header h2 { font-size: 1.5rem; margin: 0; }
.slip-count { color: var(--ink-2); font-size: .9rem; }
.slip-empty { color: var(--ink-2); font-size: .95rem; padding: 12px 0; }
.slip-leg { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.slip-leg-player { font-weight: 600; }
.slip-leg-detail, .slip-leg-game { font-size: .875rem; color: var(--ink-2); }
.slip-remove-btn { background: none; border: 0; color: var(--ink-2); cursor: pointer; font-size: 1rem; padding: 2px 6px; }
.slip-remove-btn:hover { color: var(--neg); }
.slip-footer { margin-top: 12px; }
.result-header { display: flex; justify-content: space-between; align-items: baseline; }
.result-header h2 { font-size: 1.5rem; margin: 0; }
.result-verdict { font: 700 1rem/1 var(--display); letter-spacing: .04em; }
.verdict-value { color: var(--pos); }
.verdict-fair { color: var(--warn); }
.verdict-no-value { color: var(--neg); }
.fair-odds { margin: 14px 0; }
.fair-odds .v { font: 700 3rem/1 var(--display); display: block; }
.fair-odds .s { color: var(--ink-2); font-size: .9rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; }
.result-grid .k { font-size: .8rem; color: var(--ink-2); display: block; }
.result-grid .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.result-sub { font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
.corr-pair, .res-leg { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .875rem; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.res-leg-player { font-weight: 600; flex: 1 1 100%; }
.res-leg-detail { color: var(--ink-2); flex: 1; }
.edge-pos, .corr-pos { color: var(--pos); }
.edge-neg, .corr-neg { color: var(--neg); }

/* ── NHL analytics ────────────────────────────────────────────────────── */
.tool-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 8px 0 32px; }
.tool-list div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.tool-list h3 { font-size: 1.3rem; margin-bottom: 2px; }
.tool-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 700px) { .tool-list { grid-template-columns: 1fr; } }
.tpc-frame { width: 100%; height: 80vh; min-height: 640px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
pre.cli { background: var(--sunk); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: .875rem; }

/* ── Admin ────────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin: 8px 0 32px; }
.kpis > div { padding: 16px 18px; border-right: 1px solid var(--rule); }
.kpis .k { font-size: .85rem; color: var(--ink-2); display: block; }
.kpis .v { font: 700 2.2rem/1.1 var(--display); }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tiers span { border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 10px; font-size: .95rem; }
.tiers b { font-family: var(--display); font-size: 1.1rem; margin-left: 6px; }
.tag-admin { font-size: .75rem; font-weight: 600; color: var(--under); border: 1px solid var(--under); border-radius: 3px; padding: 1px 5px; margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ── Legal drafts (terms / privacy) ───────────────────────────────────── */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 36px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .35em; }
.draft-banner { border: 2px dashed var(--warn); background: var(--warn-soft); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; }
.review { display: block; border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--ink); padding: 8px 12px; margin: 10px 0; font-weight: 600; font-size: .95rem; }
/* Drafts must never render without these: they can't be hidden by .hidden/[hidden] or
   collapsed on small screens. */
.draft-banner, .review { display: block !important; visibility: visible !important; opacity: 1 !important;
                         position: static !important; height: auto !important; overflow: visible !important; }
.proposed { margin: 6px 0 14px; padding: 8px 12px; border: 1px dashed var(--rule); border-radius: var(--radius); background: var(--surface); }
.proposed p { margin: 0; color: var(--ink-2); font-style: italic; }
.proposed .proposed-label { font: 600 .75rem var(--body); font-style: normal; letter-spacing: .03em; text-transform: uppercase; color: var(--warn); margin-bottom: 4px; }
.fact-label { font: 600 .8rem var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }

/* Terms agreement (agree.html): a dialog over the dimmed page. The server enforces it. */
.agree-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 14, 20, .62); }                 /* fixed dark scrim: dims in light and dark themes */
.agree-dialog { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
.agree-dialog h1 { font-size: 2rem; margin: 0 0 .3em; }
.agree-dialog p { color: var(--ink-2); }
.agree-out { margin: 14px 0 0; font-size: .95rem; text-align: center; }

/* "In testing" label: ML receiving overs, on the board since Oct 2026 */
.testing-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--rule);
  border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
h3 .testing-tag { font-family: var(--body); }
