/* BetBot Picks "Sharp Sheet" design system.
 * A bettor's printed sheet: near-black paper, bone ink, one signal green. Flat panels, hairline rules, 2px corners.
 * Instrument Serif for headlines, Schibsted Grotesk for UI, Martian Mono for every number.
 *
 * Colour meaning lock:
 *   Green = live, value, positive, primary action.
 *   Gold  = an edge found / premium / caution about money.
 *   Blue (--info) = middles and informational notices only.
 *   Loss red = losses and destructive actions only.
 *   No gradients, no glows. */

:root, :root[data-theme="light"] .theme-dark {
  color-scheme: dark;
  /* Channel tokens for translucent colours: rgb(var(--c-green) / 20%). Light mode flips these too. */
  --c-paper: 11 13 12; --c-sheet: 18 21 19; --c-sheet2: 26 30 27; --c-bone: 237 231 215;
  --c-green: 61 220 151; --c-gold: 231 196 107; --c-loss: 233 128 106; --c-info: 156 195 217;
  --night-0: #0b0d0c;
  --night-1: #121513;
  --night-2: #1a1e1b;
  --glass: rgb(var(--c-sheet) / 92%);
  --glass-2: rgb(var(--c-sheet2) / 94%);
  --rule: rgb(var(--c-bone) / 12%);
  --rule-strong: rgb(var(--c-bone) / 26%);
  --rule-soft: rgb(var(--c-bone) / 7%);
  --ink: #ede7d7;
  --ink-2: #b9b4a6;
  --ink-3: #8a867c;
  --emerald: #3ddc97;
  --emerald-2: #5fe6ab;
  --emerald-deep: #1f7a52;
  --emerald-ink: #03140c;
  --emerald-glow: transparent;
  --gold: #e7c46b;
  --gold-2: #f0d48a;
  --gold-deep: #7a6430;
  --gold-ink: #1a1405;
  --gold-glow: transparent;
  --loss: #e9806a;
  --push: #9fb0aa;
  --info: #9cc3d9;
  --discord: #4752C4;
  --focus: #e7c46b;

  /* Legacy aliases so older page scripts keep resolving. */
  --signal: var(--emerald);
  --signal-ink: var(--emerald-ink);
  --signal-deep: var(--emerald-deep);
  --amber: var(--gold);
  --amber-deep: var(--gold-deep);
  --desk-0: var(--night-0);
  --desk-1: var(--night-1);
  --desk-2: var(--night-2);
  --paper-ink-2: var(--ink-2);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-card: 4px; --r-control: 2px; --r-pill: 2px; --r-ticket: var(--r-card);
  --dur-1: 120ms;  /* hover, press */
  --dur-2: 200ms;  /* toggle, tab, chip */
  --dur-3: 420ms;  /* card reveal, sheet */
  --dur-4: 700ms;  /* hero stagger, count-up base */
  --dur-5: 900ms;  /* edge sweep */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.2, .8, .2, 1); /* toast only, no overshoot */
  --stagger: 70ms;
  /* Old names, kept as aliases for one release. */
  --ease-fast: var(--dur-1) var(--ease-out); --ease: var(--dur-2) var(--ease-out);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --hairline-gold: linear-gradient(var(--rule-strong), var(--rule-strong));
  --panel-bg: linear-gradient(var(--night-1), var(--night-1));
  --panel-shadow: none;
  --constellation: none;
  --circuit: none;
}

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/martian-mono-var.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: radial-gradient(1200px 800px at 70% -10%, var(--night-2), transparent 70%) fixed, radial-gradient(900px 700px at -10% 60%, rgb(var(--c-green) / 6%), transparent 70%) fixed, radial-gradient(800px 600px at 110% 80%, rgb(98 120 255 / 7%), transparent 70%) fixed, var(--night-0); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: transparent;
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
}
body > main { flex: 1; }

/* ---------- Night sky ---------- */
/* ui.js puts one fixed canvas behind every page (z-index -1, body transparent): seeded stars, four faint constellations
 * with gold node stars, a slow twinkle that stops under reduced motion and on hidden tabs. */
.bg-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--emerald); color: var(--emerald-ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 var(--s3);
  font: 600 13px/1.2 var(--font-body);
  color: var(--emerald);
}
.eyebrow::before { content: none; }
.eyebrow.muted { color: var(--ink-3); }
.eyebrow.muted::before { background: var(--ink-3); box-shadow: none; }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1.display {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
}
h2.display { font-size: clamp(28px, 4vw, 38px); }
h3.display { font-size: 22px; }
.lede { margin: var(--s4) 0 0; max-width: 60ch; color: var(--ink-2); font-size: 18px; }
.muted { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-3); }
.gold { color: var(--gold-2); }
.glow { color: var(--emerald); }

/* ---------- AppHeader ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgb(var(--c-paper) / 82%);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
}
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c-green) / 45%), transparent); pointer-events: none; }
.hdr-inner { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: auto; height: 44px; filter: drop-shadow(0 0 10px rgb(var(--c-green) / 35%)); }
.brand-word { font: 400 21px/1 var(--font-display); letter-spacing: -.005em; }
.brand-word b { color: var(--emerald); font-weight: 700; }
.nav { display: flex; gap: var(--s1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; border-radius: var(--r-control);
  font: 600 15px/1 var(--font-body); letter-spacing: -.01em;
  color: var(--ink-2); text-decoration: none; transition: color var(--ease-fast), background var(--ease-fast);
}
.nav a:hover { color: var(--ink); background: rgb(var(--c-green) / 7%); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--emerald); border-radius: 0; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.session { display: flex; align-items: center; gap: var(--s2); }
.session-skel { display: block; width: 140px; height: 34px; }
.menu { position: relative; }
.menu > button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill); background: var(--glass); color: var(--ink);
  font: 600 14px/1 var(--font-body); cursor: pointer;
}
.menu > button:hover { border-color: var(--emerald); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); color: var(--emerald-ink); font: 700 14px/1 var(--font-body);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--night-1); border: 1px solid var(--rule-strong); border-radius: var(--r-control);
  box-shadow: 0 20px 50px rgb(0 0 0 / 60%);
}
.menu-list a, .menu-list button {
  display: block; width: 100%; padding: 12px; border: 0; border-radius: var(--r-control); background: none; text-align: left;
  color: var(--ink); font: 500 14px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.menu-list a:hover, .menu-list button:hover { background: rgb(var(--c-green) / 8%); }
.menu-meta { padding: 8px 12px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.nav-toggle { display: none; }

@media (max-width: 1080px) { .hdr .pill-live { display: none; } }
@media (max-width: 900px) {
  .hdr-inner { gap: var(--s3); }
  .nav { display: none; }
    .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong);
    border-radius: var(--r-control); background: var(--glass); color: var(--ink); cursor: pointer;
  }
  .hdr .pill-live, .hdr .hide-sm { display: none; }
  .brand-word { font-size: 19px; }
}
@media (max-width: 440px) {
  .session .btn-ghost { display: none; }
  .brand-mark { height: 30px; }
  .brand-word { font-size: 17px; letter-spacing: -.02em; }
  .hdr-inner { gap: var(--s2); }
}

/* ---------- Pills & chips ---------- */
.pill {
  background: transparent;
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong); color: var(--ink-2);
  font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.pill-live { color: var(--emerald); border-color: rgb(var(--c-green) / 40%); background: rgb(var(--c-green) / 6%); }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.pill-premium { color: var(--gold-2); border-color: rgb(var(--c-gold) / 50%); background: rgb(var(--c-gold) / 8%); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--c-green) / 55%); } 50% { box-shadow: 0 0 0 5px rgb(var(--c-green) / 0%); } }
.chip-edge {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 10px; border-radius: var(--r-control);
  background: linear-gradient(180deg, var(--emerald), var(--emerald-2)); color: var(--emerald-ink);
  font: 700 16px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: none;
}
.chip-edge small { font-size: 12px; letter-spacing: .1em; opacity: .85; }
.chip-edge.ev { background: rgb(var(--c-green) / 10%); color: var(--emerald); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 55%); }
.chip-edge.middle { background: rgb(var(--c-info) / 12%); color: var(--info); box-shadow: inset 0 0 0 1px rgb(var(--c-info) / 55%); }
.chip-edge.dfs { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--emerald); --btn-fg: var(--emerald-ink); --btn-bd: transparent; --btn-glow: var(--emerald-glow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid var(--btn-bd); border-radius: var(--r-control);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 16px/1 var(--font-body); letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 8px 24px -10px var(--btn-glow);
  transition: box-shadow var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast), filter var(--ease-fast), transform var(--ease-fast);
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 10px 30px -8px var(--btn-glow); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-gold { --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: var(--gold-ink); --btn-glow: var(--gold-glow); }
.btn-outline { --btn-bg: rgb(var(--c-sheet) / 50%); --btn-fg: var(--ink); --btn-bd: var(--rule-strong); box-shadow: none; }
.btn-outline:hover { --btn-bd: var(--emerald); filter: none; box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; box-shadow: none; }
.btn-ghost:hover { --btn-fg: var(--ink); filter: none; box-shadow: none; }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--loss); --btn-bd: rgb(var(--c-loss) / 45%); box-shadow: none; }
.btn-discord { --btn-bg: var(--discord); --btn-fg: #fff; --btn-bd: var(--discord); --btn-glow: rgb(88 101 242 / 40%); }
.btn-discord svg { width: 20px; height: 20px; }
.btn-google { --btn-bg: #fff; --btn-fg: #1f1f1f; --btn-bd: #dadce0; --btn-glow: transparent; }
.btn-google svg { width: 18px; height: 18px; }
.auth-providers { display: grid; gap: var(--s3); }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.link-row:first-child { border-top: 0; }
.link-row > div { flex: 1 1 200px; min-width: 0; }
.link { color: var(--emerald); text-decoration: underline; text-decoration-color: rgb(var(--c-green) / 45%); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--emerald); }

/* ---------- Fields ---------- */
.field { display: grid; gap: 6px; margin: 0 0 var(--s4); }
.field > label, .field-label { font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field input, .field select, .input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-control);
  background: rgb(var(--c-paper) / 70%); color: var(--ink); font: 400 16px/1 var(--font-body);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.field input::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover { border-color: rgb(var(--c-green) / 40%); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: var(--emerald); box-shadow: 0 0 0 4px rgb(var(--c-green) / 12%); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field-error input { border-color: var(--loss); box-shadow: inset 3px 0 0 var(--loss); }
.field .error { font-size: 13px; color: var(--loss); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 0 0 var(--s2); font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--emerald); flex: none; }
.meter { height: 4px; margin-top: 2px; border-radius: 2px; background: rgb(255 255 255 / 8%); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--loss); transition: width var(--ease), background var(--ease); }
.meter[data-level="1"] i { width: 25%; }
.meter[data-level="2"] i { width: 50%; background: var(--gold); }
.meter[data-level="3"] i { width: 75%; background: var(--emerald-2); }
.meter[data-level="4"] i { width: 100%; background: var(--emerald); }

/* ---------- Notice / toast / empty ---------- */
.notice { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--rule-soft); border-left: 3px solid var(--info); border-radius: var(--r-control); background: var(--glass); font-size: 14px; color: var(--ink); }
.notice.warn { border-left-color: var(--gold); }
.notice.error { border-left-color: var(--loss); }
.notice.ok { border-left-color: var(--emerald); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 12px 18px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: var(--night-1); color: var(--ink); font-weight: 600; box-shadow: 0 16px 40px rgb(0 0 0 / 55%); }
.empty { padding: var(--s6) var(--s5); border: 1px dashed var(--rule-strong); border-radius: var(--r-card); text-align: center; color: var(--ink-2); background: rgb(var(--c-sheet) / 40%); }
.skeleton { background: linear-gradient(90deg, rgb(var(--c-sheet2) / 70%), rgb(var(--c-sheet2) / 70%), rgb(var(--c-sheet2) / 70%)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: var(--r-card); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Age gate ---------- */
.gate {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--rule-strong); border-radius: var(--r-card);
  background: var(--panel-bg), var(--night-1); color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / 70%);
}
.gate::before { content: ""; display: block; height: 2px; background: var(--hairline-gold); }
.gate::backdrop { background: radial-gradient(circle at 50% 40%, rgb(var(--c-paper) / 80%), rgb(var(--c-paper) / 94%)); backdrop-filter: blur(4px); }
.gate-body { padding: var(--s6) var(--s5) var(--s5); }
.gate-stamp {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s4);
  border: 2px solid var(--gold); border-radius: 50%; color: var(--gold-2);
  font: 400 24px/1 var(--font-display); letter-spacing: -.005em;
  box-shadow: 0 0 0 4px rgb(var(--c-gold) / 12%);
}
.gate h2 { margin: 0 0 var(--s2); font: 400 30px/1.05 var(--font-display); }
.gate p { margin: 0 0 var(--s5); color: var(--ink-2); }
.gate-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.gate-actions .btn { flex: 1 1 160px; }

/* ---------- SiteFooter ---------- */
.ftr { position: relative; margin-top: var(--s8); border-top: 1px solid var(--rule); background: linear-gradient(180deg, rgb(var(--c-paper) / 70%), rgb(var(--c-paper) / 95%)); font-size: 14px; color: var(--ink-2); }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--hairline-gold); opacity: .6; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); padding: var(--s7) 0 var(--s5); }
.ftr h4 { margin: 0 0 var(--s3); font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--gold-2); }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 36px; }
.ftr a { color: var(--ink-2); text-decoration: none; }
.ftr a:hover { color: var(--emerald); }
.rg-line { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.badge-21 { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%; font: 600 18px/1 var(--font-body); color: var(--gold-2); flex: none; }
.rg-line strong { color: var(--ink); }
.rg-line a { color: var(--emerald); font-family: var(--font-mono); font-weight: 600; }
.ftr-legal { padding: 0 0 var(--s6); font-size: 12px; color: var(--ink-3); max-width: 90ch; }
@media (max-width: 760px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Ticket (glass pick card) ---------- */
.tkt {
  --edge: var(--emerald);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-card);
  background: var(--panel-bg);
  color: var(--ink);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tkt:has(.chip-edge.middle) { --edge: var(--info); }
.tkt:has(.chip-edge.dfs), .tkt.is-locked { --edge: var(--gold); }
.tkt a:not(.btn) { color: inherit; }
.tkt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--rule-soft); }
.tkt-sport { padding: 4px 8px; border: 1px solid rgb(var(--c-green) / 40%); border-radius: var(--r-control); color: var(--emerald); font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; }
.tkt-type { font: 700 14px/1 var(--font-body); letter-spacing: -.01em; color: var(--ink-2); }
.tkt-time { margin-left: auto; font: 400 12px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.tkt-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; padding: 12px 16px 12px 20px; }
.tkt-event { margin: 0; font: 400 22px/1.08 var(--font-display); letter-spacing: -.005em; overflow-wrap: anywhere; color: var(--ink); }
/* Small flair, not decoration: team logos sit before the matchup, initials before a player's name. */
.tkt-logos { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: -3px; }
.tkt-logos img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 1px rgb(var(--c-bone) / 35%)); }
.tkt-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; border: 1px solid var(--rule-strong); background: rgb(var(--c-sheet2)); font: 600 10px/1 var(--font-mono); letter-spacing: .02em; color: var(--ink-2); }
.pick-page .tkt-logos img { width: 32px; height: 32px; }
.pick-page .tkt-avatar { width: 36px; height: 36px; font-size: 13px; vertical-align: 6px; }
.odds-game-in .tkt-logos { margin-right: 0; }
.tkt-market { grid-column: 1; margin: 0; font-size: 14px; color: var(--ink-2); }
.tkt-body .chip-edge { grid-row: 1 / span 2; grid-column: 2; }
.tkt-books { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px 20px; }
/* How to bet this: numbered steps under the books. Cards keep it folded; guide mode off hides it on cards. */
.howto { position: relative; z-index: 2; margin: -4px 16px 14px 20px; border: 1px solid var(--rule); border-radius: var(--r-control); background: rgb(var(--c-paper) / 55%); }
.howto summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; cursor: pointer; list-style: none; font: 600 13px/1.2 var(--font-body); color: var(--emerald); }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-2) var(--ease-out); }
.howto[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.howto ol { display: grid; gap: 8px; margin: 0; padding: 2px 14px 10px 34px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.howto li::marker { font: 600 12px var(--font-mono); color: var(--emerald); }
.howto li strong { color: var(--ink); font-weight: 600; }
.howto-more { display: inline-block; margin: 0 14px 12px 34px; font-size: 13px; }
[data-guide="off"] .howto.is-card { display: none; }
.board-welcome { margin: 18px 0 6px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 3px solid var(--emerald); border-radius: var(--r-card); background: var(--glass); }
.board-welcome-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.board-welcome-head h2 { margin: 4px 0 0; font: 400 24px/1.1 var(--font-display); }
.board-welcome-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 12px; padding: 0; list-style: none; counter-reset: wstep; }
.board-welcome-steps li { counter-increment: wstep; padding: 12px 14px; border: 1px solid var(--rule-soft); border-radius: var(--r-control); background: rgb(var(--c-paper) / 55%); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.board-welcome-steps li::before { content: counter(wstep); display: block; margin-bottom: 6px; font: 600 13px var(--font-mono); color: var(--emerald); }
.board-welcome-steps li strong { display: block; margin-bottom: 2px; color: var(--ink); }
.board-welcome .fine { margin: 0; }
@media (max-width: 760px) { .board-welcome-steps { grid-template-columns: 1fr; } .board-welcome { padding: 16px; } }
.pick-page .howto { margin-top: 4px; }
.pick-page .howto ol { font-size: 15px; gap: 10px; }
.tkt-book {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 6px 10px;
  border: 1px solid var(--rule-soft); border-radius: var(--r-control); background: rgb(var(--c-paper) / 55%); font-size: 13px; color: var(--ink-2); text-decoration: none;
}
.tkt-book img, .book-fallback { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.book-fallback { display: inline-grid; place-items: center; background: var(--night-2); color: var(--ink); font: 700 12px/1 var(--font-body); text-transform: none; }
.tkt-book .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkt-book .od { font: 600 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.od-pct { font: 500 0.78em/1 var(--font-mono); color: var(--ink-3); margin-left: 0.3em; }
.tkt-book.best { border-color: rgb(var(--c-green) / 60%); background: rgb(var(--c-green) / 10%); color: var(--ink); box-shadow: none; }
.tkt-book.best .od { color: var(--emerald); }
a.tkt-book:hover { border-color: var(--emerald); }
.tkt-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 12px 20px; border-top: 1px solid var(--rule-soft); background: rgb(var(--c-paper) / 35%); font-size: 13px; color: var(--ink-2); }
.tkt-foot .grow { flex: 1; }
.tkt-id { font: 400 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--ink-3); }
.tkt.is-link { cursor: pointer; transition: transform var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast); }
.tkt.is-link:hover { transform: translateY(-2px); border-color: rgb(var(--c-green) / 38%); box-shadow: var(--panel-shadow); }
.tkt.is-stale { opacity: .6; }
.tkt-lock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 16px 14px 20px; padding: 12px 14px;
  border: 0; border-radius: var(--r-control);
  background: rgb(var(--c-gold) / 7%);
}
.tkt-lock strong { display: flex; align-items: center; gap: 8px; font: 600 16px/1 var(--font-body); letter-spacing: -.005em; color: var(--gold-2); }
.tkt-lock strong svg { width: 16px; height: 16px; }
.tkt-lock .btn { min-height: 44px; font-size: 14px; --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: var(--gold-ink); --btn-glow: var(--gold-glow); }
.tkt-lock span { font-size: 13px; color: var(--ink-2); }

/* ---------- Result badge ---------- */
.res { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-control); font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; border: 1px solid currentColor; }
.res.won { color: var(--emerald); background: rgb(var(--c-green) / 8%); }
.res.lost { color: var(--loss); background: rgb(var(--c-loss) / 8%); }
.res.push, .res.void, .res.expired { color: var(--push); }
.res.pending { color: var(--gold-2); }

/* ---------- Stat tiles / track strip ---------- */
.track-strip {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden;
  border: 1px solid var(--rule-strong); border-radius: var(--r-card);
  background: var(--circuit) right -30px bottom -20px / 330px no-repeat, var(--panel-bg);
  box-shadow: var(--panel-shadow);
}
.track-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline-gold); }
.stat { padding: var(--s5); border-left: 1px solid var(--rule-soft); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 600 34px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: -.02em; }
.stat strong.pos { color: var(--emerald); }
.stat strong.neg { color: var(--loss); }
.stat span { display: block; margin-top: 6px; font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.stat .link { display: inline-flex; min-height: 44px; align-items: center; font: 600 18px/1 var(--font-body); letter-spacing: -.005em; }
@media (max-width: 640px) {
  .track-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s4); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .stat strong { font-size: 26px; }
}

/* ---------- Tables ---------- */
.result-type { margin-bottom: var(--s4); }
.tkt-stake { display: inline-block; margin-left: 8px; font: 600 12px/1 var(--font-mono); color: var(--ink-2); }
/* DFS: a pick above the break-even rate for its slip */
.dfs-picks li.is-above { box-shadow: inset 3px 0 0 var(--emerald); }
.dfs-picks li.is-above .dfs-p strong { color: var(--emerald); }
.dfs-leg.is-above input { border-color: var(--emerald); }
.swipe-hint { display: none; margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .swipe-hint { display: block; } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-card); background: rgb(var(--c-paper) / 70%); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
.tbl thead th { font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--gold-2); background: rgb(var(--c-sheet) / 90%); border-bottom-color: var(--rule); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: rgb(255 255 255 / 2%); }
.tbl tbody tr:hover { background: rgb(var(--c-green) / 4%); }
.tbl .num { text-align: right; white-space: nowrap; font-family: var(--font-mono); }
.tbl .yes { color: var(--emerald); font-weight: 700; }
.tbl .no { color: var(--ink-3); }
.tbl .pos { color: var(--emerald); }
.tbl .neg { color: var(--loss); }
.tbl-step { font: 400 38px/1 var(--font-display); color: var(--gold); width: 72px; }
.tbl-step + td strong { display: block; font: 400 21px/1.1 var(--font-display); letter-spacing: -.005em; margin-bottom: 4px; color: var(--ink); }
.tbl-step + td { color: var(--ink-2); }

/* ---------- Segmented tabs / filter bar ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule-strong); border-radius: var(--r-card); background: rgb(var(--c-paper) / 70%); max-width: 100%; overflow-x: auto; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-control);
  background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--font-body); letter-spacing: -.01em;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: linear-gradient(180deg, rgb(var(--c-green) / 22%), rgb(var(--c-green) / 10%)); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 50%); }
.seg .ct { font: 400 12px/1 var(--font-mono); opacity: .75; }
.filters { position: sticky; top: 64px; z-index: 30; padding: var(--s3) 0; background: rgb(var(--c-paper) / 88%); border-bottom: 1px solid var(--rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.filters-row { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; }
.filters .field { margin: 0; }
.filters .field input { height: 40px; width: 150px; font-size: 14px; }
.filters .field input[type="number"] { width: 90px; }
.filters .check { margin: 0; min-height: 40px; color: var(--ink-2); }
.filters .count { margin-left: auto; align-self: center; font: 400 13px/1 var(--font-mono); color: var(--ink-3); }
/* Desktop: pick types get their own full row so none is cut off; filters (My books first) sit on the row below. */
@media (min-width: 900px) { .filters .filters-row { flex-wrap: wrap; } .filters-row > #tabs { flex: 0 1 auto; overflow: visible; } .filters-row > #tabs + .chip-bar { flex: 1 1 100%; } }
.toggle-filters { display: none; }
.sheet { width: 100%; max-width: 100%; margin: auto 0 0; padding: 0; border: 0; border-top: 1px solid var(--rule-strong); border-radius: 4px 4px 0 0; background: var(--night-1); color: var(--ink); }
.sheet::backdrop { background: rgb(var(--c-paper) / 75%); }
.sheet-body { padding: var(--s5) var(--gutter) var(--s6); }
.sheet .field input { width: 100%; }
@media (max-width: 760px) {
  .filters-row .field, .filters-row .check, .filters-row #fApply { display: none; }
  .toggle-filters { display: inline-flex; min-height: 44px; }
  .seg button { height: 44px; padding: 0 12px; }
}

/* ---------- Picks board ---------- */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s6); padding-bottom: var(--s4); }
.board-meta { display: flex; align-items: center; gap: var(--s3); }
.board-meta p { margin: 0; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: var(--s5) var(--s4); align-items: start; padding: var(--s5) 0; }
.board > .empty, .board > .board-skel, .reviews > .empty { grid-column: 1 / -1; }
.board-skel { height: 220px; }
.lock-banner { margin-top: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.evt { padding: var(--s4); border: 1px solid var(--rule-soft); border-radius: var(--r-card); background: rgb(var(--c-paper) / 45%); }
.evt-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-bottom: var(--s3); margin-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.evt-head h2 { flex-basis: 100%; order: 2; margin: 0; font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; }
.evt-count { margin-left: auto; }
.evt-tickets { display: grid; gap: var(--s3); }
.evt.is-stale .evt-head h2 { color: var(--ink-2); }
.grid-disclosure { margin-top: var(--s3); }
.grid-toggle[aria-expanded="true"] { --btn-fg: var(--ink); }
.grid-odds { margin-top: var(--s2); }
.grid-odds .tbl th, .grid-odds .tbl td { padding: 10px 12px; white-space: nowrap; }
.odds-cell { display: inline-block; min-width: 56px; padding: 5px 8px; border: 1px solid transparent; border-radius: var(--r-control); font: 600 14px/1 var(--font-mono); color: var(--ink-2); text-decoration: none; }
.odds-cell.best { background: rgb(var(--c-green) / 14%); border-color: rgb(var(--c-green) / 60%); color: var(--emerald); }
a.odds-cell:hover { border-color: var(--emerald); }
.empty-cell { color: var(--ink-3); }
.pager { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }
.pager .btn { min-height: 44px; }
@media (max-width: 640px) {
  .evt { padding: var(--s3); }
  .evt-tickets { grid-template-columns: minmax(0, 1fr); }
  .evt-count { margin-left: 0; }
  .tkt-event { font-size: 20px; }
}

/* ---------- Pick detail ---------- */
.pick-page { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); align-items: start; padding-bottom: var(--s6); }
.pick-page .tkt-event { font-size: clamp(30px, 4vw, 44px); }
.pick-page .tkt-body .chip-edge { font-size: 20px; padding: 9px 13px; }
.tkt-book .sel { color: var(--ink-3); font-size: 12px; }
.tkt-book.best .sel { color: var(--ink-2); }
.tkt-book .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tkt-book .who .leg-side { line-height: 1.25; overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.tkt-book .who .nm { max-width: none; font-size: 12px; color: var(--ink-3); }
.pick-actions { display: flex; gap: var(--s2); flex-wrap: wrap; padding: 0 16px 16px 20px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.facts div { padding: var(--s3) 0; border-bottom: 1px solid var(--rule-soft); }
.facts dt { font: 600 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font: 600 18px/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 90px; color: var(--emerald); }
.spark-wrap { margin-top: var(--s5); padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel-bg); }
.spark-wrap h2, .pick-side h2 { margin: 0 0 var(--s3); font: 400 22px/1 var(--font-display); letter-spacing: -.005em; }
.pick-side .notice { margin: 0 0 var(--s4); }
.book-list { margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: 14px; }
.book-list li { display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.book-list li span { font-family: var(--font-mono); color: var(--ink-2); }
.book-list li a { margin-left: auto; color: var(--emerald); font-weight: 600; }
.pick-page .page-head { padding-bottom: 0; }
@media (max-width: 900px) { .pick-page { grid-template-columns: 1fr; } }

/* ---------- Page scaffolds ---------- */
.page-head { padding-top: var(--s7); padding-bottom: var(--s5); }
.page-head .lede { font-size: 17px; }
.section { padding-top: var(--s8); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head p { margin: 0; }
.section-head .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Auth (login/signup) ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: var(--s8); align-items: start; padding: var(--s7) 0; }
.auth-slip { padding: var(--s6) var(--s5) var(--s5); border-color: var(--rule-strong); box-shadow: var(--panel-shadow); }
.auth-slip::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; border-radius: 0; background: var(--hairline-gold); box-shadow: none; }
.auth-slip .slip-top { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); font: 400 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.auth-slip h1 { margin: 0 0 var(--s2); font: 400 40px/1 var(--font-display); letter-spacing: -.005em; }
.auth-slip > p { margin: 0 0 var(--s5); color: var(--ink-2); }
.or { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0; font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.auth-slip .notice { margin-bottom: var(--s4); }
.auth-alt { margin: var(--s4) 0 0; font-size: 14px; color: var(--ink-2); }
.auth-alt .link, .field .hint .link { display: inline-block; padding: 12px 0; }
.auth-side { position: relative; padding-top: var(--s5); }
/* The bull sits below the side text, never behind it (owner rule: text is never laid over the bull). */
.auth-side::after {
  content: ""; display: block; width: min(440px, 100%); aspect-ratio: 856 / 880; margin: -14px auto -30px; pointer-events: none;
  background: url("/img/hero-full-856.webp") center 40% / 112% auto no-repeat;
  -webkit-mask-image: radial-gradient(60% 58% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(60% 58% at 50% 46%, #000 62%, transparent 100%);
  animation: ng-float 7s ease-in-out infinite;
}
.auth-side .display { font-size: clamp(34px, 5vw, 52px); }
.ledger { margin: var(--s5) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.ledger li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule-soft); }
.ledger li b { font: 600 13px/1.6 var(--font-mono); color: var(--gold-2); }
.ledger li strong { display: block; color: var(--ink); }
.ledger li span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s5); }
  .auth-side { padding-top: 0; }
}
@media (max-width: 480px) { .auth-slip { padding: var(--s5) var(--s4) var(--s4); } .auth-slip h1 { font-size: 34px; } }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s7); padding-bottom: var(--s6); }
.acct-nav { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.acct-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-left: 2px solid var(--rule); color: var(--ink-2); text-decoration: none; font: 600 15px/1 var(--font-body); letter-spacing: -.01em; }
.acct-nav a:hover { color: var(--ink); border-left-color: var(--emerald); background: rgb(var(--c-green) / 5%); }
.panel { padding: var(--s5); margin-bottom: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel-bg); box-shadow: var(--panel-shadow); scroll-margin-top: 88px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.panel-head h2 { margin: 0; font: 400 24px/1 var(--font-display); letter-spacing: -.005em; }
.panel.danger { border-color: rgb(var(--c-loss) / 30%); }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px var(--s4); margin: 0 0 var(--s4); }
.kv dt { font: 600 12px/1.8 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.split-2 form > .field-label { margin: 0 0 var(--s3); color: var(--ink); font-size: 13px; }
.discord-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.discord-row .avatar { width: 40px; height: 40px; background: var(--discord); color: #fff; }
.sessions { margin: 0; padding: 0; list-style: none; }
.sessions li { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--rule-soft); font-size: 14px; }
.sessions li .grow { flex: 1; min-width: 0; }
.sessions li small { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 900px) {
  .acct { grid-template-columns: 1fr; gap: var(--s4); }
  .acct-nav { position: static; display: flex; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--rule); }
  .acct-nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .split-2 { grid-template-columns: 1fr; }
}

/* ---------- Home: Night Game ---------- */
/* The live bull under the night sky with its constellation traced in gold, a stadium field on the horizon, then the
 * slate on a jumbotron, the play, the bench, the standings and the season passes. Section rhythm: generous, calm. */
.ng { padding-bottom: 20px; }
.ng .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ng .gold { color: var(--gold); }
.ng-hero { position: relative; display: grid; justify-items: center; text-align: center; padding-top: 18px; padding-bottom: 170px; }
.ng-bull { position: relative; width: min(500px, 80%); margin: 0 0 clamp(18px, 3vw, 36px); animation: ng-arrive 1.2s var(--ease-out) both; }
.ng-bull img { width: 100%; height: auto; }
@keyframes ng-arrive { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.ng-stars { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ng-stars .ln polyline { fill: none; stroke: #8eedc2; stroke-opacity: .55; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ng-trace 2.4s cubic-bezier(.4, 0, .2, 1) .9s forwards; }
.ng-stars .st circle { fill: var(--gold); filter: drop-shadow(0 0 6px rgb(var(--c-gold) / 90%)); opacity: 0; animation: ng-star-in .5s ease-out 1.2s forwards, ng-breathe 4s ease-in-out 2s infinite; }
.ng-stars .st circle.big { fill: #f0d48a; }
.ng-stars .st circle:nth-child(3n) { animation-delay: 1.5s, 2.6s; } .ng-stars .st circle:nth-child(3n+1) { animation-delay: 1.8s, 3.2s; }
@keyframes ng-trace { to { stroke-dashoffset: 0; } }
@keyframes ng-star-in { to { opacity: 1; } }
@keyframes ng-breathe { 50% { opacity: .55; } }
.ng-h1 { margin: 0; font: 400 clamp(54px, 7.4vw, 112px)/.86 var(--font-display); text-wrap: balance; }
.ng-h1 em { font-style: italic; color: var(--emerald); }
.ng-lede { max-width: 40em; margin: 18px 0 0; font-size: 19px; color: var(--ink-2); }
.ng-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.ng-free { margin: 14px 0 0; font: 600 14px/1.3 var(--font-mono); color: var(--emerald); }
.ng-free a { text-decoration: none; } .ng-free a:hover { text-decoration: underline; } .ng-free b { color: var(--ink); }
.ng-season { display: flex; flex-wrap: wrap; justify-content: center; margin: 32px 0 0; }
.ng-season div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 4px 28px; border-left: 1px solid var(--rule-strong); }
.ng-season div:first-child { border-left: 0; }
.ng-season dt { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ng-season dd { margin: 0; font: 700 30px/1 var(--font-mono); }
.ng-field { position: absolute; left: 50%; bottom: 0; width: 100vw; max-width: none; height: 200px; transform: translateX(-50%); z-index: -1; }

.ng-sec { margin-top: clamp(80px, 9vw, 128px); }
.ng-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ng-head h2 { margin: 0; font: 400 clamp(38px, 4.4vw, 60px)/.9 var(--font-display); }
.ng-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 13px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--emerald); }
.ng-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); box-shadow: 0 0 0 4px rgb(var(--c-loss) / 18%); }
.ng-meta { margin: 0; font: 600 13px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--ink-3); }

.ng-slate { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ng-slate:has(> .ng-tiles[hidden]) { grid-template-columns: 1fr; }
.ng-jumbo { padding: 20px; border-radius: var(--r-card); background: linear-gradient(180deg, rgb(var(--c-sheet)), rgb(var(--c-paper))); box-shadow: 0 0 0 1px var(--rule-strong), 0 30px 80px -40px rgb(0 0 0 / 85%); }
.ng-jumbo-skel { height: 240px; border-radius: var(--r-control); }
.ng-j-top { display: flex; justify-content: space-between; gap: 12px; font: 600 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ng-live { color: var(--loss); }
.ng-j-event { margin: 10px 0 0; font: 600 18px/1.1 var(--font-body); letter-spacing: -.005em; color: var(--ink-3); }
.ng-j-rows { display: grid; gap: 8px; margin-top: 12px; }
.ng-side { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 16px; border-radius: var(--r-control); background: rgb(255 255 255 / 4%); }
.ng-side b { font: 400 clamp(26px, 3vw, 40px)/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-side .px { font: 700 clamp(24px, 2.6vw, 34px)/1 var(--font-mono); }
.ng-side .bk { min-width: 76px; text-align: right; font: 600 13px/1.3 var(--font-mono); color: var(--ink-2); }
.ng-j-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ng-edge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r-control); background: rgb(var(--c-green) / 12%); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 40%); }
.ng-edge b { font: 700 30px/1 var(--font-mono); color: var(--emerald); }
.ng-edge span { font: 600 12px/1.25 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ng-tiles { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ng-tile-skel { height: 72px; border-radius: var(--r-card); }
.ng-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.ng-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ng-tile .sp { grid-column: 1 / -1; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ng-tile b { font: 400 23px/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-tile .e { font: 700 21px/1 var(--font-mono); color: var(--emerald); }
.ng-tile.is-locked .e { color: var(--ink-3); }
.ng-tile .lock { font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.ng-more { display: inline-flex; gap: 10px; margin-top: 18px; font: 400 20px/1 var(--font-display); letter-spacing: -.005em; color: var(--emerald); text-decoration: none; }
.ng-more span:not([aria-hidden]) { color: var(--ink-3); }
.ng-more:hover { text-decoration: underline; text-underline-offset: 5px; }

.ng-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.ng-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--rule-strong), var(--emerald) 50%, var(--rule-strong)); opacity: .6; }
.ng-steps li { position: relative; }
.ng-node { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night-0); box-shadow: inset 0 0 0 2px var(--gold); font: 700 15px/1 var(--font-mono); color: var(--gold); }
.ng-steps h3 { margin: 18px 0 6px; font: 400 28px/1 var(--font-display); }
.ng-steps p { margin: 0; color: var(--ink-2); max-width: 32ch; }

.ng-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ng-tool { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.ng-tool:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ng-tag { justify-self: start; padding: 5px 9px; border-radius: 4px; background: rgb(var(--c-green) / 12%); color: var(--emerald); font: 700 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.ng-tag.is-gold { background: rgb(var(--c-gold) / 14%); color: var(--gold); }
.ng-tool h3 { margin: 6px 0 0; font: 400 30px/1 var(--font-display); }
.ng-tool p { margin: 0; color: var(--ink-2); }
.ng-go { margin-top: 8px; font: 600 17px/1 var(--font-body); letter-spacing: -.005em; color: var(--emerald); }

.ng-standings-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); }
.ng-standings { width: 100%; border-collapse: collapse; }
.ng-standings th, .ng-standings td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--rule); }
.ng-standings thead th { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ng-standings tbody th { font: 400 24px/1 var(--font-display); }
.ng-standings td { font: 600 18px/1 var(--font-mono); }
.ng-standings .r { text-align: right; }
.ng-standings .up { color: var(--emerald); } .ng-standings .down { color: var(--loss); }
.ng-standings tfoot th, .ng-standings tfoot td { border-bottom: 0; background: rgb(255 255 255 / 3%); }
.ng-standings tfoot th { font: 400 20px/1 var(--font-display); color: var(--ink-2); }
.ng-standings tfoot td { font-size: 22px; font-weight: 700; }
.ng-fine { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

.ng-passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ng-best { display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; }
.ng-compare { margin-top: 22px; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); }
.ng-compare div { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .7fr)); gap: 8px; align-items: center; min-height: 44px; padding: 8px 16px; border-top: 1px solid var(--rule); }
.ng-compare div:first-child { border-top: 0; font: 700 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ng-compare span:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.ng-compare .yes { color: var(--emerald); font-weight: 700; }
.ng-proof { margin: 14px 0 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.ng-helpline { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--ink-3); font-size: 14px; }
.ng-helpline a { color: inherit; }
.ng-21 { display: inline-grid; place-items: center; min-width: 36px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--emerald); color: #04140e; font: 700 12px/1 var(--font-mono); }
.ng-ticket { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px 20px; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); }
.ng-ticket::before, .ng-ticket::after { content: ""; position: absolute; top: 74px; width: 16px; height: 16px; border-radius: 50%; background: var(--night-0); }
.ng-ticket::before { left: -8px; } .ng-ticket::after { right: -8px; }
.ng-t-name { margin: 0; font: 700 13px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.ng-t-price { margin: 0 0 6px; padding-bottom: 16px; border-bottom: 1px dashed var(--rule-strong); font: 700 42px/1 var(--font-mono); }
.ng-t-price small { font-size: 15px; color: var(--ink-3); margin-left: 3px; }
.ng-ticket p:not([class]) { margin: 0; color: var(--ink-2); font-size: 16px; }
.ng-ticket .btn { justify-self: start; margin-top: 6px; }
.ng-ticket.is-star { background: linear-gradient(180deg, #1a1e1b, #0c1733); box-shadow: inset 0 0 0 1px rgb(var(--c-gold) / 55%); }
.ng-ticket.is-star .ng-t-name { color: var(--gold); }
.ng-ribbon { position: absolute; top: -11px; right: 16px; padding: 5px 10px; border-radius: 4px; background: var(--gold); color: var(--gold-ink); font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.ng-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.section-tight { padding-top: var(--s5); }
.tbl-compare td { width: 18%; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }
.tbl-compare thead th:last-child { color: var(--gold-2); }
.tbl-compare th[scope="row"] { font-weight: 500; }
.price-teaser {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap;
  padding: var(--s6); border: 1px solid rgb(var(--c-gold) / 35%); border-radius: var(--r-card);
  background: var(--circuit) right 20% center / 360px no-repeat, radial-gradient(600px 240px at 0% 0%, rgb(var(--c-gold) / 12%), transparent 70%), var(--panel-bg);
  box-shadow: var(--panel-shadow);
}
.price-teaser::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline-gold); }
.price-teaser .muted { margin: var(--s2) 0 0; }
.price-teaser h2 .mono { color: var(--gold-2); }
.price-teaser > .btn, .price-teaser .row-actions .btn:first-child { --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: var(--gold-ink); --btn-glow: var(--gold-glow); }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.review { margin: 0; padding: var(--s5); border: 1px solid var(--rule); border-top: 2px solid var(--gold); border-radius: var(--r-card); background: var(--panel-bg); }
.review blockquote { margin: var(--s3) 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.review figcaption { font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.review-stars { color: var(--gold-2); letter-spacing: 2px; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-control); background: rgb(var(--c-sheet) / 50%); box-shadow: 0 0 0 1px var(--rule) inset; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; font: 600 18px/1.25 var(--font-body); letter-spacing: -.005em; }
.faq summary:hover { color: var(--emerald); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule-strong); border-radius: 50%; font: 400 18px/1 var(--font-mono); color: var(--emerald); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; max-width: 75ch; color: var(--ink-2); }
/* ---------- Night Game: depth and life (the happy medium) ----------
 * One aura breathing behind the bull, a horizon glow where the field meets the sky, a light pass rolling down the
 * field, rare shooting stars in the sky (ui.js), and cards that catch light on their top edge and lift on hover. */
.ng-hero { isolation: isolate; }
.ng-aura { position: absolute; z-index: -1; left: 50%; top: 0; width: min(980px, 120%); height: 640px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side at 50% 42%, rgb(var(--c-green) / 22%), rgb(var(--c-green) / 8%) 45%, transparent 75%),
              radial-gradient(40% 30% at 30% 30%, rgb(98 120 255 / 12%), transparent 70%),
              radial-gradient(35% 28% at 72% 26%, rgb(var(--c-gold) / 8%), transparent 70%);
  filter: blur(8px); animation: ng-aura 9s ease-in-out infinite alternate; }
@keyframes ng-aura { from { opacity: .75; transform: translateX(-50%) scale(.97); } to { opacity: 1; transform: translateX(-50%) scale(1.03); } }
.ng-bull img { animation: ng-float 7s ease-in-out 1.4s infinite; }
@keyframes ng-float { 50% { transform: translateY(-8px); } }
.ng-bull::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--c-green) / 35%), transparent); filter: blur(6px); z-index: -1; animation: ng-shadow 7s ease-in-out 1.4s infinite; }
@keyframes ng-shadow { 50% { transform: scaleX(.88); opacity: .7; } }
.ng-h1 em, .ng-head h2 em { font-style: italic; background: linear-gradient(180deg, #5fe6ab, var(--emerald) 60%, #2fae78); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgb(var(--c-green) / 28%)); }
.ng-horizon { position: absolute; left: 50%; bottom: 150px; width: 100vw; height: 140px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgb(var(--c-green) / 22%), transparent 70%); }
.ng-sweep { stroke: #8eedc2; stroke-opacity: 0; stroke-width: 2; transform-box: fill-box; transform-origin: 50% 50%; animation: ng-sweep 6s cubic-bezier(.4, 0, .6, 1) 2.5s infinite; }
@keyframes ng-sweep { 0% { transform: translateY(0); stroke-opacity: 0; } 10% { stroke-opacity: .55; } 70% { stroke-opacity: .2; } 100% { transform: translateY(150px) scaleX(1.8); stroke-opacity: 0; } }
.ng-season dd { }
.ng-season .gold { }

.ng-head { position: relative; padding-bottom: 14px; }
.ng-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--emerald), rgb(var(--c-green) / 25%) 30%, transparent 75%); }
@keyframes ng-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--c-loss) / 45%); } 50% { box-shadow: 0 0 0 7px rgb(var(--c-loss) / 0%); } }

.ng-jumbo { position: relative; overflow: hidden; }
.ng-jumbo::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgb(var(--c-green) / 22%) .8px, transparent 1px); background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
.ng-jumbo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--emerald) 30%, #8eedc2 50%, var(--emerald) 70%, transparent); }
.ng-jumbo > * { position: relative; }
.ng-side { transition: background-color var(--dur-2) var(--ease-out); }
.ng-side:hover { background: rgb(var(--c-green) / 7%); }
.ng-edge { box-shadow: inset 0 0 0 1px rgb(var(--c-gold) / 40%); }

.ng-tile, .ng-tool, .ng-ticket, .ng-standings-wrap { position: relative; }
.ng-tile::before, .ng-tool::before, .ng-standings-wrap::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--c-green) / 45%), transparent); opacity: .7; }
.ng-tile:hover, .ng-tool:hover { box-shadow: inset 0 0 0 1px var(--rule-strong), 0 18px 40px -24px rgb(var(--c-green) / 45%); }
.ng-tool { overflow: hidden; }
.ng-tool::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--c-green) / 14%), transparent); transition: transform .5s var(--ease-out); pointer-events: none; }
.ng-tool:hover::after { transform: scale(1.35); }
.ng-tool:nth-child(3)::after { background: radial-gradient(closest-side, rgb(var(--c-gold) / 16%), transparent); }
.ng-node { animation: ng-node 3.6s ease-in-out infinite; }
.ng-steps li:nth-child(2) .ng-node { animation-delay: 1.2s; } .ng-steps li:nth-child(3) .ng-node { animation-delay: 2.4s; }
@keyframes ng-node { 50% { box-shadow: inset 0 0 0 2px var(--gold); } }
.ng-ticket { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.ng-ticket:hover { transform: translateY(-4px); }
.ng-ticket.is-star { box-shadow: inset 0 0 0 1px rgb(var(--c-gold) / 55%), 0 24px 60px -30px rgb(var(--c-gold) / 45%); }
.ng-ticket.is-star .ng-t-price { color: var(--gold-2); }
.ng-standings tbody tr { transition: background-color var(--dur-2) var(--ease-out); }
.ng-standings tbody tr:hover { background: rgb(var(--c-green) / 5%); }
@media (prefers-reduced-motion: reduce) { .ng-aura, .ng-bull img, .ng-bull::after, .ng-sweep, .ng-dot, .ng-node { animation: none !important; } }

@media (max-width: 980px) {
  .ng-slate, .ng-tools, .ng-steps { grid-template-columns: 1fr; }
  .ng-steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--rule-strong), var(--emerald), var(--rule-strong)); }
  .ng-steps li { padding-left: 64px; } .ng-steps .ng-node { position: absolute; left: 0; top: 0; } .ng-steps h3 { margin-top: 8px; }
  .ng-passes { grid-template-columns: 1fr 1fr; }
  .ng-faq, .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ng-hero { padding-bottom: 120px; }
  .ng-actions .btn { flex: 1 1 100%; }
  .ng-season div { padding: 4px 14px; } .ng-season dd { font-size: 24px; }
  .ng-passes { grid-template-columns: 1fr; }
  .ng-side { gap: 10px; padding: 12px; } .ng-side .bk { min-width: 0; }
  .ng-standings th, .ng-standings td { padding: 12px 10px; } .ng-standings td { font-size: 15px; } .ng-standings tbody th { font-size: 20px; }
  .ng-standings thead th { font-size: 10px; letter-spacing: .08em; } .ng-standings tfoot td { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ng-stars .ln polyline { stroke-dashoffset: 0; } .ng-stars .st circle { opacity: 1; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6) var(--s5) var(--s5); }
.plan::before { display: none; }
.plan.is-featured {
  border-color: rgb(var(--c-gold) / 65%);
  background: radial-gradient(420px 220px at 50% 0%, rgb(var(--c-gold) / 14%), transparent 70%), var(--panel-bg);
  box-shadow: var(--panel-shadow), 0 0 0 1px rgb(var(--c-gold) / 25%), 0 20px 60px -24px var(--gold-glow);
  transform: translateY(-8px);
}
.plan.is-featured::before { display: block; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; border-radius: 0; background: var(--hairline-gold); box-shadow: none; opacity: 1; }
.plan.is-featured .btn { --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: var(--gold-ink); --btn-glow: var(--gold-glow); }
.plan.is-featured li::before { border-color: var(--gold-2); }
.plan-flag { align-self: flex-start; padding: 5px 10px; border-radius: var(--r-pill); background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); font: 700 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; }
.plan h2 { margin: 0; font: 400 30px/1 var(--font-display); letter-spacing: -.005em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0; padding-bottom: var(--s3); border-bottom: 1px solid var(--rule-soft); }
.plan-price strong { font: 400 48px/1 var(--font-display); letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.plan.is-featured .plan-price strong { color: var(--gold-2); }
.plan-price span { color: var(--ink-2); font-size: 15px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan-status { min-height: 18px; margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); }
.plan.is-unavailable .plan-price strong { color: var(--ink-3); }
.plan.is-current { border-color: var(--emerald); box-shadow: var(--panel-shadow), 0 0 0 1px var(--emerald); }
.pricing-state { margin: var(--s5) 0 0; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan.is-featured { transform: none; } .plan[data-plan-card="monthly"] { order: -1; } }

/* ---------- Results ---------- */
.tabs-bar { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s5); }
.tab-panel { min-height: 200px; }
.ledger-list { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.explainer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s6); }
.explainer h3, .explainer h2.explainer-h { margin: 0 0 var(--s2); font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; }
.explainer p { margin: 0 0 var(--s3); color: var(--ink-2); }
.big-num { font: 600 56px/1 var(--font-mono); color: var(--emerald); }
@media (max-width: 900px) { .explainer { grid-template-columns: minmax(0, 1fr); } .ledger-list { grid-template-columns: 1fr; } }

/* ---------- Calculators ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s4); align-items: start; }
.calc-body { padding: var(--s4) var(--s4) var(--s5) 20px; }
.calc h2 { margin: 0 0 4px; font: 400 26px/1.05 var(--font-display); letter-spacing: -.005em; }
.calc-sub { margin: 0 0 var(--s4); font-size: 14px; color: var(--ink-2); }
.calc-out { margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px solid rgb(var(--c-green) / 30%); border-radius: var(--r-control); background: rgb(var(--c-paper) / 70%); color: var(--ink); font-size: 14px; line-height: 1.6; }
.calc-out strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.calc-out.is-error { border-color: var(--loss); color: var(--loss); }
.calc-pos { color: var(--emerald); }
.calc-legs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-bottom: var(--s3); }
.calc-legs div { display: grid; gap: 2px; padding: var(--s2) var(--s3); border: 1px solid var(--rule-soft); border-radius: var(--r-control); }
.calc-legs span { font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.calc-legs strong { font-size: 20px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 72ch; padding-bottom: var(--s6); color: var(--ink-2); font-size: 17px; }
.prose h2 { margin: var(--s7) 0 var(--s3); font: 400 28px/1.1 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.prose h2::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: var(--s3); background: var(--gold); box-shadow: none; }
.prose p, .prose li { line-height: 1.72; }
.prose strong { color: var(--ink); }
.prose a { color: var(--emerald); text-underline-offset: 3px; }
.prose a.btn { color: var(--btn-fg); }
.prose h3 { margin: var(--s5) 0 var(--s2); font: 400 21px/1.15 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.prose ul li::marker, .prose ol li::marker { color: var(--emerald); }
.list { margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.65; }
.list li + li { margin-top: 4px; }
.list strong { color: var(--ink); }
.prose code, .list code { padding: 1px 6px; border-radius: 4px; background: rgb(var(--c-green) / 8%); color: var(--ink); font: 400 .88em var(--font-mono); }
.prose pre { overflow-x: auto; padding: var(--s4); border: 1px solid var(--rule); border-left: 3px solid var(--emerald); border-radius: var(--r-control); background: rgb(var(--c-paper) / 70%); line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: var(--ink); }
.prose .tbl-wrap, .prose .review, .prose .facts { margin: var(--s4) 0; }
.prose .tbl { color: var(--ink); font-size: 15px; }

/* ---------- Content pages (blog, learn, sportsbooks) ---------- */
.page-head .eyebrow a { color: inherit; }
.eyebrow .state-books { margin-left: var(--s2); text-transform: none; letter-spacing: 0; color: var(--emerald); }
.post-title { max-width: 22ch; }
.post-meta { margin: var(--s3) 0 0; }
a.tkt { text-decoration: none; transition: transform var(--ease-fast), border-color var(--ease-fast); }
a.tkt:hover { transform: translateY(-2px); border-color: rgb(var(--c-green) / 40%); }
.post-list .tkt { grid-template-rows: auto 1fr auto; }
.post-list .tkt-event { font-size: 24px; }
.post-list .tkt-id { color: var(--emerald); }
.post-cta { margin: var(--s4) 0 var(--s5); }
.post-cta h2.display { font-size: clamp(26px, 3.4vw, 32px); }
.post-nav-link { display: grid; gap: 6px; margin: 0; min-height: 44px; text-decoration: none; transition: border-color var(--ease-fast); }
.post-nav-link:hover { border-color: rgb(var(--c-green) / 40%); }
.post-nav-link.is-next { text-align: right; justify-items: end; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s4); }
.card-grid .panel { display: flex; flex-direction: column; gap: var(--s2); margin: 0; }
.card-grid .panel h3 { margin: 0; font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.card-grid .panel p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card-grid .panel .link { margin-top: auto; }
.card-grid a.panel { color: inherit; text-decoration: none; transition: border-color var(--ease-fast); }
.card-grid a.panel:hover { border-color: rgb(var(--c-green) / 40%); }
.tbl .warn { color: var(--gold-2); }
@media (max-width: 600px) {
  .tbl-states thead { display: none; }
  .tbl-states tr { display: grid; grid-template-columns: 1fr auto; }
  .tbl-states th, .tbl-states td { border-bottom: 0; padding: 10px 14px 0; }
  .tbl-states td:last-child { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); font-size: 14px; }
}
.todo { padding: 2px 6px; border: 1px dashed var(--gold); color: var(--gold-2); font: 600 12px/1.6 var(--font-mono); }
.hotline { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: var(--s5) 0; padding: var(--s5); border: 1px solid var(--rule-strong); border-left: 3px solid var(--emerald); border-radius: var(--r-card); background: var(--panel-bg); }
.hotline a { font: 600 28px/1 var(--font-mono); color: var(--emerald); text-decoration: none; }

/* ---------- Legacy pages wearing the new shell (dashboard, affiliates) ---------- */
/* styles.css components expect its light tokens; restore them inside the legacy panel. */
main.legacy-main {
  --ink: #1a1e1b; --focus: #1f7fc2; --ease: 180ms ease;
  color-scheme: light; color: var(--ink); background: #f3f6f8;
  width: min(1220px, calc(100vw - 32px)); margin: var(--s5) auto var(--s6); padding: var(--s5) clamp(12px, 2vw, 24px);
  border-radius: var(--r-card); border-top: 2px solid var(--gold);
}
main.legacy-main h2 { font-family: var(--font-display); letter-spacing: -.005em; }
main.legacy-main aside { top: 80px; }

@media (pointer: coarse), (max-width: 760px) {
  .btn-sm { min-height: 44px; }
  .ftr ul a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pill-live::before { box-shadow: 0 0 0 2px rgb(var(--c-green) / 30%); }
}

/* ---------- Simplified header + footer ---------- */
.hdr-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.hdr-login:hover { color: var(--ink); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: #1a1204; --btn-bd: var(--gold); }
.ftr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.ftr-links, .ftr-legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ftr-links a, .ftr-legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.ftr-links a:hover, .ftr-legal-links a:hover { color: var(--emerald); }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); padding-top: var(--s4); font-size: 13px; color: var(--ink-3); }
.ftr-bottom p { margin: 0; max-width: 62ch; line-height: 1.6; }
.ftr-bottom p a { color: var(--emerald); }
@media (max-width: 700px) {
  .ftr-row { flex-direction: column; align-items: flex-start; }
  .ftr-links { gap: 0 18px; }
}
/* Plain-English explainer */
.explain { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.explain-card { padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-card); background: rgb(255 255 255 / 2%); }
.explain-card h3 { margin: 0 0 6px; font: 600 18px/1.2 var(--font-body); letter-spacing: -.005em; color: var(--emerald); }
.explain-card p { margin: 0; color: var(--ink-2); }

.hdr-login { white-space: nowrap; }

/* ---------- My books and state ---------- */
.setup { display: grid; gap: var(--s4); }
.setup .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--emerald) 50%), linear-gradient(135deg, var(--emerald) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.setup .field select option { background: var(--night-1); color: var(--ink); }
.setup-part > .field { margin-bottom: var(--s3); }
.setup-state-note .notice { margin: 0; }
.chip-group { margin: 0 0 var(--s4); padding: 0; border: 0; min-width: 0; }
.chip-group legend, .chip-group > summary { margin-bottom: var(--s2); padding: 0; font: 600 12px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--gold-2); }
.chip-group > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.chip-group > summary::-webkit-details-marker { display: none; }
.chip-group > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--rule-strong); border-radius: 50%; font: 400 14px/1 var(--font-mono); color: var(--gold-2); transition: transform var(--ease); }
.chip-group[open] > summary::before { transform: rotate(45deg); }
.chip-group .notice { margin: 0 0 var(--s3); }
.chip-group .fine { margin: var(--s2) 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { position: relative; display: inline-flex; }
.chip-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-toggle span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill); background: rgb(var(--c-paper) / 70%);
  color: var(--ink-2); font: 600 14px/1 var(--font-body); cursor: pointer; transition: border-color var(--ease-fast), background var(--ease-fast), color var(--ease-fast);
}
.chip-toggle span::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--rule-strong); border-radius: 4px; flex: none; transition: background var(--ease-fast), border-color var(--ease-fast); }
.chip-toggle:hover span { border-color: rgb(var(--c-green) / 50%); color: var(--ink); }
.chip-toggle input:checked + span { border-color: var(--emerald); background: rgb(var(--c-green) / 12%); color: var(--ink); box-shadow: none; }
.chip-toggle input:checked + span::before { border-color: var(--emerald); background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%2303130c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.chip-toggle input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.setup-actions { margin-top: var(--s2); }
.setup-sheet { max-height: 92vh; overflow-y: auto; }
.setup-sheet .sheet-body > .muted { margin: var(--s2) 0 var(--s4); }
@media (min-width: 760px) {
  .setup-sheet { width: min(720px, calc(100vw - 48px)); margin: auto; border: 1px solid var(--rule-strong); border-radius: var(--r-card); }
}
.mybooks-ctl { display: flex; align-items: center; gap: var(--s2); }
.filters .mybooks-ctl .check { margin: 0; }
@media (max-width: 760px) {
  .filters-row .mybooks-ctl, .filters-row .mybooks-ctl .check { display: flex; }
  .filters-row .mybooks-ctl .check[hidden] { display: none; }
}
.tbl-states .num .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .tbl-states tr { grid-template-columns: 1fr auto; }
  .tbl-states td:nth-child(3) { grid-column: 1 / -1; padding-bottom: 6px; color: var(--ink-2); font-size: 14px; }
  .tbl-states td:last-child { grid-column: 1 / -1; text-align: left; padding: 0 14px 12px; }
}

/* ---------- Welcome onboarding ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: start; padding-top: var(--s7); padding-bottom: var(--s6); }
.welcome-intro { position: sticky; top: 96px; }
.welcome-intro .lede { font-size: 17px; }
.step-rail { margin: var(--s6) 0 var(--s5); padding: 0; list-style: none; border-left: 1px solid var(--rule-strong); }
.step-rail li { position: relative; display: flex; align-items: baseline; gap: var(--s3); padding: 10px 0 10px 22px; color: var(--ink-3); font: 600 18px/1.2 var(--font-body); letter-spacing: -.005em; }
.step-rail li::before { content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -5px; transform: rotate(45deg); background: var(--night-0); border: 1px solid var(--rule-strong); }
.step-rail b { font: 600 12px/1 var(--font-mono); color: inherit; }
.step-rail li[aria-current="step"] { color: var(--ink); }
.step-rail li[aria-current="step"]::before { background: var(--gold); border-color: var(--gold); box-shadow: none; }
.step-rail li[aria-current="step"] b { color: var(--gold-2); }
.step-rail li.is-done { color: var(--emerald); }
.step-rail li.is-done::before { background: var(--emerald); border-color: var(--emerald); }
.badge-inline { display: inline-grid; width: 30px; height: 30px; margin-right: 6px; font-size: 12px; vertical-align: middle; border-width: 1px; }
.welcome-card { position: relative; overflow: hidden; padding: var(--s6) var(--s5) var(--s5); border-color: var(--rule-strong); }
.welcome-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline-gold); }
.welcome-card h2.display { margin: 6px 0 var(--s2); font-size: clamp(28px, 3.4vw, 36px); }
.welcome-card > .muted { margin: 0 0 var(--s5); max-width: 56ch; }
.welcome-card .notice.error { margin-top: var(--s3); }
.welcome-actions { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.welcome-actions .grow { flex: 1; }
.welcome-actions .link { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .welcome { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s5); }
  .welcome-intro { position: static; }
  .step-rail { display: flex; gap: var(--s4); border-left: 0; margin: var(--s4) 0 0; }
  .step-rail li { padding: 0; font-size: 14px; }
  .step-rail li::before { display: none; }
  .welcome-intro > .fine { display: none; }
  .welcome-card { padding: var(--s5) var(--s4) var(--s4); }
}

/* ---------- Bet now ---------- */
.btn-bet {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 12px; border: 1px solid rgb(var(--c-gold) / 60%); border-radius: var(--r-control);
  background: rgb(var(--c-gold) / 8%); color: var(--gold-2); text-decoration: none; white-space: nowrap;
  font: 650 14px/1 var(--font-body); letter-spacing: -.01em;
  transition: background var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
}
.btn-bet svg { width: 12px; height: 12px; }
.btn-bet:hover { border-color: var(--gold-2); background: rgb(var(--c-gold) / 16%); box-shadow: none; }
.tkt a.btn-bet, .book-list li a.btn-bet { color: var(--gold-2); font-weight: 700; }
.tkt-books.has-bet { display: grid; gap: 6px; }
.tkt-leg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tkt-leg .tkt-book { flex: 1; min-width: 0; }
.tkt-leg .tkt-book .od { margin-left: auto; }
.book-list li a.btn-bet { margin-left: auto; }
.disclosure { margin: var(--s3) 0 0; max-width: 90ch; }
.disclosure a { color: var(--emerald); }
@media (pointer: coarse) { .btn-bet { min-height: 44px; } }

/* ---------- Bet tracker ---------- */
.btn-track {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-control);
  background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none;
  font: 600 14px/1 var(--font-body);
}
.btn-track:hover { border-color: var(--emerald); color: var(--ink); }
.tkt-tracked { height: 24px; }
@media (pointer: coarse) { .btn-track { min-height: 44px; } }
.bet-sheet { max-height: 92vh; overflow-y: auto; }
.pay-sheet { max-height: 94vh; overflow-y: auto; }
@media (min-width: 760px) { .pay-sheet { width: min(560px, calc(100vw - 48px)); margin: auto; border: 1px solid var(--rule-strong); border-radius: var(--r-card); } .pay-sheet[open] { animation: pop-in var(--dur-3) var(--ease-out); } }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.pay-head .display { font-size: clamp(26px, 3vw, 32px); margin: 0; }
.pay-mount { min-height: 320px; margin: var(--s4) 0 var(--s3); }
.pay-loading { padding: var(--s6) 0; text-align: center; }
@media (min-width: 760px) { .bet-sheet { width: min(620px, calc(100vw - 48px)); margin: auto; border: 1px solid var(--rule-strong); border-radius: var(--r-card); } }
.bet-sheet .display { font-size: clamp(26px, 3vw, 32px); }
.bet-sheet-event { margin: 6px 0 var(--s4); }
.bet-sheet .notice { margin: 0 0 var(--s3); }
.bet-sheet .fine { margin: var(--s3) 0 0; }
.bet-leg-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 120px; gap: var(--s3); align-items: end; padding: var(--s2) 0; border-top: 1px solid var(--rule-soft); }
.bet-leg-row > div:first-child { display: grid; gap: 2px; padding-bottom: 12px; }
.bet-leg-row .field { margin: 0; }
.bet-lock { margin: var(--s3) 0 var(--s4); font-size: 14px; color: var(--ink-2); }
.bet-lock .pos { color: var(--emerald); }
.bet-lock .neg { color: var(--loss); }
@media (max-width: 520px) { .bet-leg-row { grid-template-columns: 1fr 1fr; } .bet-leg-row > div:first-child { grid-column: 1 / -1; padding-bottom: 0; } }

.bets-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.unit-editor { display: flex; align-items: flex-end; gap: var(--s2); padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel-bg); }
.unit-editor .field { margin: 0; }
.unit-editor input { width: 120px; height: 40px; }
.bets-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bets-strip .stat strong { font-size: clamp(22px, 2.6vw, 34px); }
.bets-explain { margin: var(--s3) 0 var(--s6); max-width: 90ch; }
.tabs-bar .grow { flex: 1; }
.bet-list { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.bet-list > .empty { padding: var(--s7) var(--s5); }
.empty-actions { justify-content: center; margin-top: var(--s4); }
.bet-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, auto); gap: var(--s4) var(--s6);
  padding: var(--s4) var(--s5) var(--s4) 22px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel-bg); box-shadow: var(--panel-shadow);
}
.bet-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--emerald); opacity: .8; }
.bet-row.needs-result::before { background: var(--gold); box-shadow: none; }
.bet-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bet-row h3 { margin: 8px 0 6px; font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; overflow-wrap: anywhere; }
.bet-legs { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.bet-legs li { display: grid; grid-template-columns: minmax(72px, 130px) minmax(0, 1fr) auto auto; gap: var(--s3); align-items: baseline; font-size: 14px; color: var(--ink-2); }
.bet-legs .mono { text-align: right; color: var(--ink); }
.bet-book { color: var(--ink); font-weight: 600; }
.bet-notes { margin: var(--s2) 0 0; font-style: italic; }
.bet-side { display: grid; align-content: start; justify-items: end; gap: var(--s2); text-align: right; }
.bet-result { display: flex; align-items: center; gap: var(--s3); }
.bet-profit { font: 600 24px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.bet-profit.pos { color: var(--emerald); }
.bet-profit.neg { color: var(--loss); }
.bet-actions, .settle-bar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.settle-bar { padding: var(--s2) var(--s3); border: 1px dashed var(--rule-strong); border-radius: var(--r-control); }
.bet-delete:hover { --btn-fg: var(--loss); }
@media (max-width: 760px) {
  .bets-strip { grid-template-columns: 1fr 1fr; }
  .bets-strip .stat:nth-child(3) { border-left: 0; }
  .bets-strip .stat:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .bets-strip .stat:nth-child(5) { grid-column: 1 / -1; }
  .bet-row { grid-template-columns: 1fr; padding: var(--s4) var(--s4) var(--s4) 18px; }
  .bet-side { justify-items: start; text-align: left; }
  .bet-actions, .settle-bar { justify-content: flex-start; }
  .bet-legs li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .bet-legs li .fine { display: none; }
  .unit-editor { width: 100%; }
  .unit-editor .field { flex: 1; }
  .unit-editor input { width: 100%; }
}
/* With the members sidebar open, the list can be ~680px on a 1024px screen: the legs ran under the four action
   buttons. Stack by the list's own width, not the window's. */
.bet-list { container-type: inline-size; }
@container (max-width: 760px) {
  .bet-row { grid-template-columns: 1fr; }
  .bet-side { justify-items: start; text-align: left; }
  .bet-actions, .settle-bar { justify-content: flex-start; }
}

/* ---------- Bonus bet converter ---------- */
.bonus-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s7); align-items: start; }
.bonus-head { padding-bottom: 0; }
.bonus-steps { margin-top: var(--s5); }
.bonus-form { position: relative; margin: var(--s7) 0 0; overflow: hidden; border-color: var(--rule-strong); }
.bonus-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline-gold); }
.bonus-form .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--emerald) 50%), linear-gradient(135deg, var(--emerald) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.bonus-form .field select option, .bonus-form .field select optgroup { background: var(--night-1); color: var(--ink); }
.bonus-form .notice { margin: var(--s3) 0 0; }
.bonus-results { display: grid; gap: var(--s4); }
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: var(--s4); }
.bonus-card {
  position: relative; display: grid; gap: var(--s3); padding: var(--s4) var(--s5) var(--s4) 22px;
  border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel-bg); box-shadow: var(--panel-shadow);
}
.bonus-card-head { display: flex; align-items: center; gap: 10px; }
.bonus-card-head .chip-edge { margin-left: auto; }
.bonus-card h3 { margin: 0; font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; overflow-wrap: anywhere; }
.bonus-steps-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--s2); }
.bonus-steps-list li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3); border: 1px solid var(--rule-soft); border-radius: var(--r-control); background: rgb(var(--c-paper) / 45%); font-size: 15px; color: var(--ink-2); }
.bonus-steps-list li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-2); font: 600 12px/1 var(--font-mono); }
.bonus-steps-list strong { color: var(--ink); }
.bonus-keep { margin: 0; font-size: 16px; color: var(--ink-2); }
.bonus-keep strong { font: 600 20px/1 var(--font-mono); color: var(--emerald); }
.bonus-lower { align-items: start; gap: var(--s6); }
.bonus-lower .section-head { margin-bottom: var(--s3); }
.bonus-lower .tbl .num .btn-bet { font-size: 12px; }
@media (max-width: 900px) {
  .bonus-top { grid-template-columns: 1fr; gap: var(--s4); }
  .bonus-form { margin-top: 0; }
}
@media (max-width: 560px) {
  .bonus-card { padding: var(--s4) var(--s3) var(--s4) 18px; }
  .bonus-steps-list li { grid-template-columns: 26px minmax(0, 1fr); }
  .bonus-steps-list li .btn-bet { grid-column: 2; justify-self: start; }
}
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) {
  .hdr-inner { gap: var(--s3); }
  .nav a { padding: 0 8px; font-size: 14px; letter-spacing: .06em; }
  .brand-word { font-size: 18px; }
  .hdr .menu > button > span.hide-sm { display: none; }
}

.btn-bet.is-join { border-style: dashed; }

/* ---------- Growth: no-card trial stub, invite panel ---------- */
.trial-stub {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s5);
  margin: var(--s5) 0 var(--s6); padding: var(--s5) var(--s6); overflow: hidden;
  border: 1px solid rgb(var(--c-gold) / 45%); border-radius: var(--r-card);
  background: radial-gradient(520px 220px at 0% 50%, rgb(var(--c-gold) / 13%), transparent 70%), var(--circuit) right -40px bottom -30px / 300px no-repeat, var(--panel-bg);
  box-shadow: var(--panel-shadow), 0 24px 60px -30px var(--gold-glow);
}
.trial-stub::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline-gold); }
.trial-days { display: grid; justify-items: center; gap: 4px; padding-right: var(--s5); border-right: 2px dashed rgb(var(--c-gold) / 35%); }
.trial-days strong { font: 400 76px/.85 var(--font-display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.trial-days span { font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--gold); }
.trial-copy h2, .trial-copy h3 { margin: 0 0 6px; font: 400 28px/1.05 var(--font-display); letter-spacing: -.005em; }
.trial-copy p { margin: 0; font-size: 15px; color: var(--ink-2); }
.trial-action { display: grid; gap: 6px; justify-items: center; text-align: center; }
.trial-action .fine { margin: 0; }
.trial-stub.is-compact { margin: var(--s2) 0 var(--s4); padding: var(--s4) var(--s5); }
.trial-stub.is-compact .trial-days strong { font-size: 54px; }
.trial-stub.is-compact .trial-copy h3 { font-size: 22px; }
@media (max-width: 720px) {
  .trial-stub, .trial-stub.is-compact { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
  .trial-days { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 0 0 var(--s3); border-right: 0; border-bottom: 2px dashed rgb(var(--c-gold) / 35%); }
  .trial-days strong, .trial-stub.is-compact .trial-days strong { font-size: 44px; }
  .trial-copy h2, .trial-stub.is-compact .trial-copy h3 { font-size: 22px; }
  .trial-action { justify-items: stretch; }
}
.menu-list .menu-trial { color: var(--gold-2); font-weight: 600; }
.tkt-lock .trial-note { font-size: 12px; color: var(--ink-3); }
.trial-meter { height: 6px; margin: 0 0 var(--s4); border-radius: var(--r-pill); background: rgb(var(--c-gold) / 12%); overflow: hidden; }
.trial-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: none; }
.invite { position: relative; overflow: hidden; border-color: rgb(var(--c-gold) / 35%); }
.invite::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--hairline-gold); }
.invite-link { display: flex; gap: var(--s2); margin: var(--s4) 0; }
.invite-link input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px dashed rgb(var(--c-gold) / 55%); border-radius: var(--r-control); background: rgb(var(--c-paper) / 60%);
  color: var(--gold-2); font: 500 15px/1 var(--font-mono);
}
.invite-link input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.invite-link .btn { min-height: 44px; }
.invite-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-control); background: rgb(var(--c-paper) / 35%); }
.invite-stats .stat { padding: var(--s4); }
.invite-stats .stat strong { font-size: 28px; }
.invite-stats .stat strong.gold { color: var(--gold-2); }
@media (max-width: 480px) {
  .invite-link { flex-direction: column; }
  .invite-stats .stat { padding: var(--s3); }
  .invite-stats .stat strong { font-size: 22px; }
}

/* =====================================================================
 * Motion system and the three signatures (Circuit Trace, Edge Pulse, The Tape).
 * Transform and opacity only. Every piece has a reduced-motion state at the end of this file.
 * ===================================================================== */

/* ---------- Reveal ---------- */
.motion [data-reveal]:not(.is-in) { opacity: 0; }
[data-reveal].is-in { animation: reveal-in var(--dur-3) var(--ease-out) calc(var(--i, 0) * var(--stagger)) backwards; }
@keyframes reveal-in { from { opacity: 0; translate: 0 14px; } }

/* ---------- Signature 2: Edge Pulse (gold means an edge was found) ---------- */
.edge-pulse { position: relative; overflow: hidden; }
.chip-edge.edge-pulse { position: relative; }

/* ---------- Signature 3: The Tape ---------- */
[data-tape]:not([hidden]) { min-height: 44px; }
.tape-empty { display: flex; align-items: center; padding-left: 18px; color: var(--ink-3); font-size: 14px; white-space: nowrap; }
/* Reserve the table and fix the toolbar widths so loading prices and sport names never move the page. */
#oddsWrap { min-height: min(60vh, 560px); }
.odds-tools .field select, .odds-tools .field input { width: 100%; }
.odds-tools .odds-sport { flex: 0 0 180px; }
.tape { position: relative; z-index: 5; height: 44px; overflow: hidden; background: rgb(var(--c-paper) / 92%); border-bottom: 1px solid var(--rule); }
.tape-inner { display: flex; align-items: stretch; height: 100%; }
.tape-label {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 9px;
  padding: 0 18px 0 max(16px, calc((100vw - var(--max)) / 2 + var(--gutter)));
  border-right: 1px solid var(--rule); background: var(--night-0);
  font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--emerald);
}
.tape-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.tape-view {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 56px), transparent);
}
.tape-track { display: flex; width: max-content; height: 100%; margin: 0; padding: 0; list-style: none; animation: tape-run var(--tape-dur, 60s) linear infinite; will-change: transform; }
.tape-track.is-loading { animation: none; will-change: auto; gap: 14px; align-items: center; padding-left: 18px; }
.tape-skel { display: block; width: 240px; height: 16px; border-radius: var(--r-control); }
.tape:hover .tape-track, .tape:focus-within .tape-track, .tape.is-paused .tape-track { animation-play-state: paused; }
@keyframes tape-run { to { transform: translateX(-50%); } }
.tape-track li { display: flex; }
.tape-item {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border-right: 1px solid var(--rule-soft); color: var(--ink-2); text-decoration: none; white-space: nowrap;
  font: 500 12px/1 var(--font-body); letter-spacing: 0; text-transform: none;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.tape-item:hover { background: rgb(var(--c-green) / 7%); color: var(--ink); }
.tape-item:focus-visible { outline-offset: -3px; }
.tape-sport { color: var(--ink-3); }
.tape-name { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.tape-edge { font-weight: 700; color: var(--emerald); }
.t-middle .tape-edge { color: var(--info); }
.t-dfs .tape-edge, .tape-item.is-locked .tape-edge { color: var(--gold-2); }
.tape-lock { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-2); }
.tape-lock svg { width: 11px; height: 11px; }
@media (max-width: 760px) {
  .tape { height: 40px; }
  .tape-item { min-height: 40px; padding: 0 16px; gap: 8px; }
  .tape-label { padding: 0 12px 0 16px; font-size: 0; gap: 0; }
}

/* ---------- Signature 1: Circuit Trace ---------- */
main { position: relative; }
.eyebrow[data-n]::before { content: none; }


/* ---------- Header: nav ink, mobile sheet ---------- */
.nav { position: relative; }
.nav a[aria-current="page"] { box-shadow: none; border-radius: var(--r-control); }
.nav-ink { position: absolute; left: 0; bottom: 0; width: 1px; height: 2px; background: var(--emerald); transform-origin: left; opacity: 0; pointer-events: none; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.nav-ink.is-on { opacity: 1; }
.session-skel { height: 44px; }
html.is-locked, html.is-locked body { overflow: hidden; }
.msheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear var(--dur-3); }
.msheet.is-open { visibility: visible; transition-delay: 0s; }
.msheet-backdrop { position: absolute; inset: 0; background: rgb(var(--c-paper) / 72%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.msheet.is-open .msheet-backdrop { opacity: 1; }
.msheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s4); padding: 0 var(--s5) var(--s5);
  background: var(--panel-bg), var(--night-1); border-left: 1px solid var(--rule-strong); box-shadow: -30px 0 60px rgb(0 0 0 / 55%);
  transform: translateX(100%); transition: transform 320ms var(--ease-out);
}
.msheet-panel::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--gold), transparent 60%); }
.msheet.is-open .msheet-panel { transform: none; }
.msheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--rule); }
.msheet-top .brand-word { font-size: 19px; }
.msheet-x { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: var(--glass); color: var(--ink); cursor: pointer; }
.msheet-nav { display: grid; }
.msheet-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font: 400 20px/1 var(--font-display); letter-spacing: -.005em; }
.msheet-nav a:hover { color: var(--ink); background: rgb(var(--c-green) / 6%); }
.msheet-nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--gold); background: linear-gradient(90deg, rgb(var(--c-gold) / 12%), transparent 80%); }
.msheet.is-open .msheet-nav a { animation: rise var(--dur-3) var(--ease-out) backwards; }
.msheet.is-open .msheet-nav a:nth-child(2) { animation-delay: 40ms; }
.msheet.is-open .msheet-nav a:nth-child(3) { animation-delay: 80ms; }
.msheet.is-open .msheet-nav a:nth-child(4) { animation-delay: 120ms; }
.msheet.is-open .msheet-nav a:nth-child(5) { animation-delay: 160ms; }
.msheet-account { display: grid; gap: 2px; padding-top: var(--s4); border-top: 1px solid var(--rule); }
.msheet-account > a:not(.btn), .msheet-account > button { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: 600 16px/1 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.msheet-account > a:not(.btn):hover, .msheet-account > button:hover { background: rgb(var(--c-green) / 6%); }
.msheet-account .btn { margin-top: var(--s2); }
.msheet-account .is-gold { color: var(--gold-2); }
.msheet-meta { margin: 0 0 4px; padding: 0 14px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.msheet-rg { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding-top: var(--s4); font-size: 13px; color: var(--ink-3); }
.msheet-rg .badge-21 { width: 36px; height: 36px; font-size: 14px; }
.msheet-rg a { color: var(--emerald); white-space: nowrap; }
@media (min-width: 901px) { .msheet { display: none; } }

/* ---------- Tabs: sliding thumb ---------- */
.seg { position: relative; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; z-index: 0; border-radius: var(--r-control); pointer-events: none; background: linear-gradient(180deg, rgb(var(--c-green) / 22%), rgb(var(--c-green) / 10%)); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 50%); }
.seg.is-ready .seg-thumb { transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out); }
.seg.has-thumb button { position: relative; z-index: 1; transition: color var(--dur-2) var(--ease-out); }
.seg.has-thumb button[aria-selected="true"] { background: none; box-shadow: none; }

/* ---------- Tickets: link overlay, compact, one-row lock, result banner ---------- */
.tkt-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tkt-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.tkt.is-link a:not(.tkt-link), .tkt.is-link button { position: relative; z-index: 2; }
.tkt.is-link:active { transform: translateY(0) scale(.995); }
.tkt.is-compact .tkt-head { min-height: 40px; padding: 9px 14px 8px 18px; }
.tkt.is-compact .tkt-body { padding: 10px 14px 10px 18px; }
.tkt.is-compact .tkt-event { font-size: 19px; }
.tkt.is-compact .chip-edge { font-size: 15px; padding: 6px 9px; }
.tkt.is-compact .tkt-books { padding: 0 14px 12px 18px; }
.tkt.is-compact .tkt-foot { min-height: 36px; padding: 6px 14px 7px 18px; }
.tkt.is-compact .tkt-body .chip-edge { grid-row: 1; }
.tkt-event.is-market { font-size: 19px; line-height: 1.12; }
.tkt-event.is-muted { font-size: 15px; letter-spacing: .08em; color: var(--ink-3); }
.tkt-lock.is-row { flex-wrap: nowrap; margin: 0 14px 12px 18px; padding: 7px 7px 7px 12px; }
.tkt-lock.is-row strong { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; }
.tkt-lock.is-row .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
@media (pointer: coarse) { .tkt-lock.is-row .btn { min-height: 44px; } }
.tkt-result { padding: 5px 9px; border-radius: var(--r-control); background: var(--edge); color: var(--emerald-ink); font: 700 13px/1 var(--font-body); letter-spacing: -.01em; }
.tkt.is-result.is-won { --edge: var(--emerald); }
.tkt.is-result.is-lost { --edge: var(--loss); }
.tkt.is-result.is-push, .tkt.is-result.is-void { --edge: var(--push); }
.tkt.is-result .tkt-head { background: linear-gradient(90deg, color-mix(in srgb, var(--edge) 16%, transparent), transparent 70%); }

/* ---------- Toast, busy, dialogs ---------- */
.toast { display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.toast svg { width: 16px; height: 16px; flex: none; color: var(--emerald); }
.toast.ok { border-color: rgb(var(--c-green) / 45%); }
.toast.err { border-left: 3px solid var(--loss); }
.toast.is-in { animation: toast-in var(--dur-3) var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.btn[aria-busy="true"] { opacity: 1; }
.btn[aria-busy="true"]:disabled { opacity: .85; }
.btn[aria-busy="true"]::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
dialog.sheet[open] { animation: sheet-up var(--dur-3) var(--ease-out); }
dialog[open]::backdrop { animation: fade-in var(--dur-2) ease-out; }
.gate[open] { animation: pop-in var(--dur-3) var(--ease-out); }
@media (min-width: 760px) { .setup-sheet[open], .bet-sheet[open] { animation: pop-in var(--dur-3) var(--ease-out); } }
@media (max-width: 759px) { .sheet .sheet-body::before { content: ""; display: block; width: 36px; height: 4px; margin: -8px auto 16px; border-radius: 2px; background: var(--rule-strong); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.field input, .field select { transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.field .error:not(:empty) { animation: drop-in var(--dur-2) var(--ease-out); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
.chip-toggle:active span, .chip-select:active { transform: scale(.96); }
.chip-toggle span { transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.skeleton { animation-duration: 1.6s; contain: paint; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.step {
  position: relative; display: grid; align-content: start; gap: var(--s2); padding: var(--s5); overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--circuit) right -70px bottom -50px / 260px no-repeat, var(--panel-bg); box-shadow: var(--panel-shadow);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.step-n { font: 400 44px/1 var(--font-display); color: var(--gold); }
.step-glyph { width: 40px; height: 40px; fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgb(var(--c-green) / 35%)); }
.step h3 { margin: 0; font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -1px; width: 12px; height: 1px; background: var(--rule-strong); }
.teaser-trial { margin: var(--s2) 0 0; font: 600 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--gold-2); }
.review figcaption small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- Picks board v2: chip filters, popovers, groups without double borders ---------- */
.board-top { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rule-soft); }
.board-top .board-head { position: relative; }
.filters-row { align-items: center; flex-wrap: nowrap; gap: 10px; }
.filters .seg button { padding: 0 12px; }
.chip-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pop-wrap { position: relative; }
.chip-select {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 14px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill); background: rgb(var(--c-paper) / 70%); color: var(--ink-2); cursor: pointer;
  font: 600 14px/1 var(--font-body); white-space: nowrap;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.chip-select .val:empty { display: none; }
.chip-select .val { max-width: 120px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); font: 500 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; }
.chip-select::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-2) var(--ease-out); }
.chip-select.is-action::after { content: none; }
.chip-select[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.chip-select:hover { border-color: rgb(var(--c-green) / 50%); color: var(--ink); }
.chip-select.is-on { border-color: var(--emerald); background: rgb(var(--c-green) / 12%); color: var(--ink); }
.chip-select.is-on .val { color: var(--emerald); }
.popover {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 35; min-width: 220px; max-width: 300px; padding: 6px;
  background: var(--night-1); border: 1px solid var(--rule-strong); border-radius: var(--r-control); box-shadow: 0 20px 50px rgb(0 0 0 / 60%);
  transform-origin: top left; animation: pop-in var(--dur-2) var(--ease-out);
}
.pop-search { width: 100%; height: 40px; margin-bottom: 6px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: rgb(var(--c-paper) / 70%); color: var(--ink); font: 400 15px/1 var(--font-body); }
.pop-search::placeholder { color: var(--ink-3); }
.pop-list { display: grid; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.pop-list button { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-control); background: none; color: var(--ink); font: 500 14px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.pop-list button:hover, .pop-list button:focus-visible { background: rgb(var(--c-green) / 8%); }
.pop-list button[aria-selected="true"] { color: var(--emerald); box-shadow: inset 2px 0 0 var(--emerald); }
.pop-note { margin: 6px 8px 10px; font-size: 13px; color: var(--ink-2); }
.pop-books { padding: 10px; min-width: 260px; }
.pop-books .check { margin: 0 4px 8px; }
.filters .chip-toggle span { min-height: 40px; }
.filters .count { flex: none; }
.pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--gold); color: var(--gold-ink); font: 700 12px/1 var(--font-mono); letter-spacing: 0; }
.lock-banner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); flex-wrap: wrap;
  margin-top: var(--s4); padding: 10px 10px 10px 18px; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--glass);
}
.lock-banner p { margin: 0; font-size: 14px; }
.lock-banner p span { color: var(--ink-2); }
.board { transition: opacity var(--dur-2) var(--ease-out); }
.board.is-loading { opacity: .4; }
.board-skel { height: 176px; }
.evt { padding: 0; border: 0; border-radius: 0; background: none; display: grid; gap: var(--s2); align-content: start; }
.evt-head { gap: 10px; padding: 0 2px 2px; margin: 0; border: 0; align-items: baseline; flex-wrap: wrap; }
.evt-head .tkt-sport { align-self: center; }
.evt-head h2 { order: 2; min-width: 0; flex: 1 1 100%; font: 600 17px/1.15 var(--font-body); letter-spacing: -.005em; color: var(--ink); }
.evt-start, .evt-count { font: 400 12px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.evt-count { margin-left: 0; color: var(--emerald); }
.evt-tickets { gap: var(--s2); }
.grid-disclosure { margin-top: 0; }
.disclosure { margin-top: 0; font-size: 12px; }
.load-more { margin: 0 0 var(--s4); }
.empty .tkt.is-ghost { width: min(320px, 100%); height: 96px; margin: 0 auto var(--s4); border: 0; background: var(--surface-2); box-shadow: none; backdrop-filter: none; }
.empty .tkt.is-ghost::before { opacity: .35; }
.empty strong { display: block; color: var(--ink); font: 400 22px/1.1 var(--font-display); letter-spacing: -.005em; }
.empty p { margin: 6px 0 0; }
.empty.is-error strong { color: var(--loss); }
@media (min-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .filters-row { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .chip-bar { display: none; }
  .filters-row { flex-wrap: nowrap; gap: var(--s2); }
  .filters .count { display: none; }
  .seg-scroll { flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); scrollbar-width: none; }
  .seg-scroll::-webkit-scrollbar { display: none; }
  .toggle-filters { flex: none; gap: 8px; }
  .board-head h1.display { font-size: 36px; }
  .board-meta { width: 100%; }
  .board-meta > #updated { flex-basis: 100%; }
  .sheet-actions { margin-top: var(--s4); }
}

/* ---------- Pricing v2: savings flag, hover lift, compare table, phone Continue bar ---------- */
.plan { cursor: default; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.plan:hover { transform: translateY(-2px); border-color: rgb(var(--c-green) / 30%); }
.plan.is-featured:hover { transform: translateY(-10px); border-color: rgb(var(--c-gold) / 75%); }
.plan-flag.is-muted { background: rgb(var(--c-gold) / 10%); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgb(var(--c-gold) / 45%); }
.plan-flag.is-ghost { visibility: hidden; }
.plan-aside { margin: 0; font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.plan.is-featured li::before { border-color: var(--gold-2); }
.pricing-trust { text-align: center; }
.plan-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 10px 10px 10px 16px; border: 1px solid rgb(var(--c-gold) / 50%); border-radius: var(--r-card);
  background: rgb(var(--c-sheet) / 94%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgb(0 0 0 / 60%);
  transform: translateY(calc(100% + 24px)); transition: transform var(--dur-3) var(--ease-out);
}
.plan-bar p { margin: 0; display: grid; gap: 2px; }
.plan-bar strong { font: 600 18px/1 var(--font-body); letter-spacing: -.005em; }
.plan-bar span { font: 600 14px/1 var(--font-mono); color: var(--gold-2); }
.plan-bar .btn { --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: var(--gold-ink); --btn-glow: var(--gold-glow); }
.plan-bar.is-on { transform: none; }
@media (max-width: 760px) { .plan-bar { display: flex; } main:has(#plans) { padding-bottom: 88px; } }
@media (max-width: 900px) { .plan:hover, .plan.is-featured:hover { transform: none; } }

/* ---------- Results v2: head action, units chart, result rails, rank column ---------- */
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.strip-skel { height: 120px; margin: var(--s3) 0; }
.track-strip .strip-skel { grid-column: 1 / -1; margin: 0; border-radius: 0; }
.line-skel { display: inline-block; width: min(260px, 80%); height: 14px; border-radius: 4px; vertical-align: middle; }
.units-chart { margin: var(--s5) 0 0; padding: var(--s4) var(--s5) var(--s5); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--panel-bg); box-shadow: var(--panel-shadow); }
.units-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.chart-title { font: 400 22px/1 var(--font-display); letter-spacing: -.005em; }
.chart-box { position: relative; height: 240px; margin-right: 92px; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-zero { stroke: var(--rule-strong); stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--emerald); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgb(var(--c-green) / 45%)); }
.chart-area { fill: rgb(var(--c-green) / 8%); }
.chart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(var(--c-gold) / 20%); }
.chart-last { position: absolute; left: calc(100% + 14px); transform: translateY(-50%); font: 600 16px/1 var(--font-mono); white-space: nowrap; }
.chart-last.pos { color: var(--emerald); } .chart-last.neg { color: var(--loss); }
.units-chart.is-in svg { animation: chart-draw 1.2s var(--ease-out) 150ms backwards; }
.units-chart.is-in .chart-dot { animation: pop-in var(--dur-3) var(--ease-out) 1.2s backwards; }
@keyframes chart-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ledger-row .tkt-body { grid-template-columns: minmax(0, 1fr) auto; }
.ledger-units { grid-row: 1 / span 2; grid-column: 2; font: 600 22px/1 var(--font-mono); color: var(--ink-2); }
.ledger-units.pos { color: var(--emerald); }
.ledger-units.neg { color: var(--loss); }
.tbl-rank td.rank { font-weight: 600; color: var(--ink-3); }
.tbl-rank tr:nth-child(-n+3) td.rank { color: var(--gold-2); }
.tab-panel:not([hidden]) { animation: fade-in var(--dur-2) var(--ease-out); }
#reviews-panel .section-head { margin-bottom: var(--s4); }
@media (max-width: 640px) { .chart-box { height: 180px; margin-right: 0; } .chart-last { left: auto; right: 0; transform: translateY(-160%); } }

/* ---------- Bonus v2: sticky form, keep meter, steps collapse on phones ---------- */
@media (min-width: 901px) { .bonus-form { position: sticky; top: 88px; } }
.bonus-how > summary { display: none; }
.hedge-hint { margin: 0 0 var(--s4); padding: 12px 14px; border: 1px dashed var(--rule-strong); border-radius: var(--r-control); font-size: 14px; color: var(--ink-2); }
.bonus-card { overflow: hidden; }
.keep-meter { position: relative; height: 6px; border-radius: var(--r-pill); background: rgb(var(--c-gold) / 12%); overflow: visible; }
.keep-meter i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: none; transform-origin: left; transform: scaleX(var(--keep, 0)); }
.bonus-card.is-in .keep-meter i { animation: meter-fill var(--dur-4) var(--ease-out) calc(var(--i, 0) * var(--stagger) + 200ms) backwards; }
@keyframes meter-fill { from { transform: scaleX(0); } }
.keep-meter b { position: absolute; left: 70%; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .7; }
.keep-meter b::after { content: "strong"; position: absolute; left: 6px; top: -14px; font: 600 12px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.keep-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.bonus-card .bonus-keep { margin-bottom: var(--s3); }
@media (max-width: 760px) {
  .bonus-how { margin-top: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--glass); }
  .bonus-how > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--s4); cursor: pointer; list-style: none; font: 600 17px/1 var(--font-body); letter-spacing: -.005em; }
  .bonus-how > summary::-webkit-details-marker { display: none; }
  .bonus-how > summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--gold-2); transition: transform var(--dur-2) var(--ease-out); }
  .bonus-how[open] > summary::after { transform: rotate(45deg); }
  .bonus-how .bonus-steps { margin: 0; padding: 0 var(--s4); }
}

/* ---------- Pick detail v2: breadcrumb, actions row, similar picks, phone action bar ---------- */
.crumbs { flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--emerald); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--ink-3); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-head { padding-bottom: var(--s4); }
.pick-head #accountState:empty { display: none; }
.pick-page .pick-main, .pick-page .pick-aside { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.pick-actions { padding: var(--s4) 0 0; gap: var(--s2); }
.pick-actions .btn { padding: 0 14px; font-size: 14px; }
.pick-actions .btn svg, .pick-bar .btn svg { width: 16px; height: 16px; flex: none; }
.btn.is-static { cursor: default; }
.pick-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.pick-hint:has(#loginLink[hidden]) { display: none; }
.close-line { margin: var(--s3) 0 0; padding: 10px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--edge, var(--emerald)); border-radius: var(--r-control); background: var(--glass); font: 500 14px/1.4 var(--font-mono); color: var(--ink); }
.pick-page .spark-wrap { margin-top: 0; }
.pick-page .trial-stub.is-compact { margin: var(--s4) 0 0; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s4); }
.pick-page .trial-stub.is-compact .trial-days { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 0 0 var(--s3); border-right: 0; border-bottom: 2px dashed rgb(var(--c-gold) / 35%); }
.pick-page .trial-stub.is-compact .trial-action { justify-items: stretch; }
.pick-similar h2 { margin: 0 0 var(--s3); font: 400 22px/1 var(--font-display); letter-spacing: -.005em; }
.similar-list { display: grid; gap: var(--s3); }
.pick-page .similar-list .tkt-event { font-size: 18px; }
.pick-page .similar-list .chip-edge { font-size: 14px; padding: 6px 9px; }
.pick-bar { display: none; }
@media (max-width: 900px) {
  .pick-page { display: flex; flex-direction: column; align-items: stretch; }
  .pick-page .pick-main, .pick-page .pick-aside { display: contents; }
  #pickDetail { order: 1; } .pick-hint { order: 2; } #pickFacts { order: 3; } #pickMove { order: 4; } #pickSimilar { order: 5; }
  .pick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-actions .btn { min-height: 44px; padding: 0 8px; font-size: 13px; letter-spacing: .06em; }
  .pick-actions > :first-child:is(button, a, span) { grid-column: 1 / -1; }
  .pick-bar.is-on:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: block; animation: sheet-up var(--dur-3) var(--ease-out); filter: drop-shadow(0 16px 30px rgb(0 0 0 / 60%)); }
  main:has(.pick-bar:not([hidden])) { padding-bottom: 80px; }
}

/* ---------- Learn v2: four step cards, example tickets ---------- */
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps .step .link { margin-top: var(--s2); justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.learn-tkt { margin: var(--s4) 0; }
.prose .learn-tkt h4.tkt-event { margin: 0; font: 400 22px/1.08 var(--font-display); }
.learn-tkt .tkt-foot { color: var(--ink-2); }
.learn-stake { flex: none; min-width: 56px; padding: 0 10px; font: 600 14px/36px var(--font-mono); text-align: right; color: var(--gold-2); border: 1px dashed rgb(var(--c-gold) / 45%); border-radius: var(--r-control); }
.approach .prose { max-width: none; }
.faq-gloss { margin: var(--s7) 0 var(--s4); }
@media (max-width: 1099px) { .steps.steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps.steps-4 { grid-template-columns: 1fr; } }

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .motion [data-reveal]:not(.is-in) { opacity: 1; translate: none; }
  .edge-pulse::after, .hero-sweep { display: none; }
  .tape-view { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .tape-item { scroll-snap-align: start; }
  .tape-track li:has(> [aria-hidden="true"]) { display: none; }
  .msheet-panel, .msheet-backdrop { transition: none; }
}
.btn > .hide-sm { margin-left: -8px; }

/* Footer: room to breathe at the bottom, and the 21+ badge sits beside the text instead of inside the wrap. */
.ftr { padding-block: var(--s6) calc(var(--s8) + env(safe-area-inset-bottom, 0px)); }
.ftr-rg { display: flex; align-items: flex-start; gap: 12px; }
.ftr-rg .badge-21 { flex: none; width: 34px; height: 34px; margin: 0; font-size: 14px; transform: none; }
.ftr-rg > span:last-child { padding-top: 6px; }
.ng-aside { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 16px 20px; border-radius: var(--r-card); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); }

/* ---------- App shell: sidebar on desktop, top bar + drawer + bottom tabs on phones ---------- */
:root { --side-w: 256px; }
.side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: var(--side-w); display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgb(var(--c-sheet) / 94%), rgb(var(--c-paper) / 97%)); border-right: 1px solid var(--rule);
  box-shadow: 1px 0 0 rgb(255 255 255 / 3%) inset, 24px 0 60px -40px rgb(0 0 0 / 80%); }
.side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px; pointer-events: none;
  background: radial-gradient(80% 100% at 30% 0%, rgb(var(--c-green) / 10%), transparent 70%); }
.side-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 14px; border-bottom: 1px solid var(--rule); }
.side-top .brand-word { font-size: 21px; }
.side-x { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink-2); cursor: pointer; }
.side-nav { position: relative; display: grid; gap: 14px; padding-top: 8px; }
.side-title { margin: 0 0 4px; padding: 0 10px; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.side-group { display: grid; gap: 2px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r-card); color: var(--ink-2); text-decoration: none; font: 600 15px/1 var(--font-body);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .8; }
.side-link:hover { background: rgb(var(--c-bone) / 5%); color: var(--ink); }
.side-link[aria-current="page"] { background: linear-gradient(90deg, rgb(var(--c-green) / 16%), rgb(var(--c-green) / 4%)); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 22%); }
.side-link[aria-current="page"] svg { color: var(--emerald); opacity: 1; }
.side-link[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); }
.side-foot { position: relative; display: grid; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); }
.side-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.side-plan:empty { display: none; }
.side-plan .link { font-size: 13px; }
.side-user { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.side-who { display: grid; min-width: 0; flex: 1; }
.side-who b { font: 600 14px/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-who span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-out { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink-3); cursor: pointer; }
.side-out:hover { background: rgb(var(--c-loss) / 10%); color: var(--loss); }
.side-out svg { width: 18px; height: 18px; }
.side-rg { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: var(--ink-3); }
.side-rg .badge-21 { width: 28px; height: 28px; font-size: 11px; border-width: 1.5px; }
.side-rg a { color: var(--ink-2); }

body.in-app { padding-left: var(--side-w); }
body.in-app > main { min-height: 100vh; }
.appbar, .tabbar, .side-scrim { display: none; }
.ftr-app { margin-top: var(--s7); padding-block: var(--s4) var(--s5); background: transparent; }
.ftr-app::before { display: none; }
.ftr-app-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.ftr-app-row p { margin: 0; }
.ftr-app-row nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ftr-app-row a { color: var(--ink-2); text-decoration: none; } .ftr-app-row a:hover { color: var(--emerald); }

@media (max-width: 1023px) {
  body.in-app { padding-left: 0; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .side { transform: translateX(-100%); transition: transform .28s var(--ease-out); width: min(300px, 86vw); }
  body.side-open .side { transform: none; }
  .side-x { display: grid; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgb(var(--c-paper) / 60%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.side-open .side-scrim { opacity: 1; pointer-events: auto; }
  .appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 var(--gutter);
    background: rgb(var(--c-paper) / 82%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
  .appbar .brand { margin-right: auto; } .appbar .brand-word { font-size: 19px; }
  .appbar-menu { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--glass); color: var(--ink); cursor: pointer; }
  .appbar-user { display: grid; place-items: center; text-decoration: none; }
  .tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgb(var(--c-paper) / 92%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; min-height: 52px; padding: 6px 2px; border: 0; border-radius: var(--r-card); background: transparent; color: var(--ink-3); font: 600 11px/1.1 var(--font-body); text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--emerald); background: rgb(var(--c-green) / 8%); }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
/* Inside the app there is no top header on desktop: sticky bars sit at the top edge (phones keep the 60px app bar). */
body.in-app .filters { top: 0; }
body.in-app .acct-nav, body.in-app .welcome-intro, body.in-app .bonus-form, body.in-app .desk-side, body.in-app .inspector { top: 24px; }
body.in-app .new-pill { top: 16px; }
@media (max-width: 1023px) { body.in-app .filters { top: 60px; } }

/* Live / Paused feed switch (picks board + dashboard). */
.feed { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-switch { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--glass); box-shadow: inset 0 0 0 1px var(--rule); }
.feed-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 13px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-3); font: 600 13px/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.feed-switch button:hover { color: var(--ink); }
.feed-switch button[aria-pressed="true"] { background: rgb(var(--c-green) / 14%); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 30%); }
.feed.is-paused .feed-switch button[aria-pressed="true"] { background: rgb(var(--c-gold) / 14%); box-shadow: inset 0 0 0 1px rgb(var(--c-gold) / 35%); }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.feed:not(.is-paused) .feed-dot { background: var(--emerald); animation: feed-live 1.8s ease-in-out infinite; }
@keyframes feed-live { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--c-green) / 55%); } 50% { box-shadow: 0 0 0 5px rgb(var(--c-green) / 0%); } }
.feed-new { min-height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--gold); color: var(--gold-ink); font: 700 13px/1 var(--font-body); cursor: pointer; animation: feed-pop .3s var(--ease-out); }
@keyframes feed-pop { from { transform: scale(.9); opacity: 0; } }
.board-meta { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .feed-dot, .feed-new { animation: none !important; } }

/* Book setup: one-tap select-all per group. */
.chip-group legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.setup-all-link { min-height: 32px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--font-body); }
.setup-all { margin: 0 0 var(--s3); }

/* =====================================================================================================
 * Polish layer (applies site-wide). Same calm-but-alive level as the home page: surfaces catch light on
 * their top edge, controls answer the pointer, focus is always visible, and nothing moves on its own
 * except where it means something. Remove this block to fall back to the base components.
 * ===================================================================================================== */

/* Page entrance: content settles in once, quickly. */
body > main { animation: page-in .45s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* Scrollbars and selection that match the night sky. */
html { scrollbar-color: rgb(var(--c-bone) / 25%) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(var(--c-bone) / 22%); border-radius: var(--r-card); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(var(--c-bone) / 38%); }

/* ---------- Surfaces: one family for panels, tickets, tables and empty states ---------- */
.panel, .tkt, .edge-card, .tbl-wrap, .snap, .bonus-slot, .plan, .calc, .welcome-card, .acct-section { position: relative; }
.panel::after, .tbl-wrap::after, .snap::after, .bonus-slot::after, .calc::after, .welcome-card::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--c-green) / 40%), transparent); opacity: .7;
}
.panel { border-color: rgb(var(--c-bone) / 12%); }
.panel-head h2, .panel h2:first-child { letter-spacing: .02em; }

/* Pick tickets: lit edge, lift and glow on hover, the edge chip glows in its own colour. */
.tkt { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.tkt::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgb(var(--c-green) / 40%), transparent); }
.tkt.is-link:hover, .tkt:focus-within { transform: translateY(-2px); border-color: var(--rule-strong); box-shadow: var(--panel-shadow), 0 18px 40px -26px rgb(var(--c-green) / 50%); }
.chip-edge { box-shadow: 0 0 18px -6px currentColor; }

/* Edge cards on the desk get the same hover answer. */
.edge-card.is-row { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.edge-card.is-row:hover { transform: translateY(-1px); box-shadow: var(--panel-shadow), 0 14px 34px -24px rgb(var(--c-green) / 45%); }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(255 255 255 / 18%), transparent 55%); opacity: .8; }
.btn-outline::after, .btn-ghost::after { display: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); filter: brightness(.96); }
.btn:focus-visible, .seg button:focus-visible, .chip-toggle input:focus-visible + span, .side-link:focus-visible, .feed-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-outline { background: rgb(var(--c-sheet) / 55%); }
.btn-gold:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 12px 30px -10px rgb(var(--c-gold) / 55%); }

/* ---------- Form controls ---------- */
.field input, .field select, .input, textarea, select {
  border-color: var(--rule); background-color: rgb(var(--c-paper) / 70%);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.field input:hover, .field select:hover, .input:hover { border-color: var(--rule-strong); }
.field input:focus, .field select:focus, .input:focus, textarea:focus {
  outline: none; border-color: var(--emerald); background-color: rgb(var(--c-sheet) / 85%);
  box-shadow: 0 0 0 4px rgb(var(--c-green) / 14%);
}
.field > label, .field-label { color: var(--ink-2); }
.chip-toggle span { transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.chip-toggle input:checked + span { box-shadow: 0 0 0 1px rgb(var(--c-green) / 35%) inset; }

/* ---------- Segmented tabs ---------- */
.seg { background: rgb(var(--c-paper) / 70%); border-color: var(--rule); box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset; }
.seg button[aria-selected="true"] { }

/* ---------- Tables ---------- */
.tbl thead th { position: sticky; top: 0; z-index: 1; background: rgb(var(--c-sheet) / 92%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tbl tbody tr { transition: background-color var(--dur-1) var(--ease-out); }
.tbl tbody tr:hover { background: rgb(var(--c-green) / 5%); }
.tbl tbody tr:nth-child(even) { background-image: linear-gradient(rgb(255 255 255 / 1.5%), rgb(255 255 255 / 1.5%)); }

/* ---------- Pills, notices, empty states, skeletons, toasts ---------- */
.pill { box-shadow: 0 0 16px -8px currentColor; }
.notice { background: rgb(var(--c-sheet) / 60%); box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset; }
.empty { background: radial-gradient(60% 80% at 50% 0%, rgb(var(--c-green) / 6%), transparent 70%), rgb(var(--c-sheet) / 50%); }
.empty strong { letter-spacing: .02em; }
.skeleton { background: linear-gradient(90deg, rgb(var(--c-sheet2) / 60%), rgb(var(--c-green) / 10%), rgb(var(--c-sheet2) / 60%)); background-size: 200% 100%; }
.toast { background: rgb(var(--c-sheet) / 94%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 80%), 0 0 0 1px var(--rule-strong); }

/* ---------- Page heads: a short lit rule under every page title ---------- */
.page-head h1.display, .board-head h1.display, .desk-title h1 { position: relative; }
.page-head h1.display::after, .board-head h1.display::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 14px; border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), rgb(var(--c-green) / 0%)); box-shadow: none;
}

/* ---------- Login and sign up: the bull and its constellation keep watch beside the form ---------- */
.auth { position: relative; }
.auth-slip { background: linear-gradient(180deg, rgb(var(--c-sheet) / 92%), rgb(var(--c-sheet) / 95%)); box-shadow: var(--panel-shadow), 0 30px 80px -40px rgb(var(--c-green) / 40%); }
@media (max-width: 900px) { .auth-side::after { width: min(340px, 86%); margin: var(--s3) auto 0; } }

/* ---------- Sidebar: the active marker slides, groups breathe ---------- */
.side-link::before { transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.side-link:not([aria-current="page"])::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--emerald); opacity: 0; transform: scaleY(.3); }
.side-link:hover::before { opacity: .5; transform: none; }
.side-group + .side-group { padding-top: 10px; border-top: 1px solid rgb(var(--c-bone) / 7%); }

@media (prefers-reduced-motion: reduce) {
  body > main, .auth-side::after { animation: none !important; }
  .tkt.is-link:hover, .edge-card.is-row:hover, .btn:hover { transform: none; }
}

/* ---------- Low hold: a cost, not an edge, so it reads neutral ---------- */
.chip-edge.lowhold { background: rgb(var(--c-sheet) / 70%); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.tkt:has(.chip-edge.lowhold) { --edge: var(--ink-3); }
.type-note { margin: 0 0 var(--s4); padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--r-card); background: rgb(var(--c-sheet) / 55%); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.type-note strong { color: var(--ink); }
.type-note[hidden] { display: none; }

/* ---------- Calculators: jump nav, paired fields, live answers ---------- */
.calc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s5); }
.calc-nav a { padding: 7px 12px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: rgb(var(--c-sheet) / 55%); color: var(--ink-2); font-size: 14px; text-decoration: none; transition: border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.calc-nav a:hover, .calc-nav a:focus-visible { border-color: var(--emerald); color: var(--ink); }
.calc { scroll-margin-top: 96px; }
.calc .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.calc .leg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.calc #plAdd { margin: 0 0 var(--s3); }
.calc #plAdd[hidden] { display: none; }
.calc-out { min-height: 52px; }
.calc-out.is-hint { border-color: var(--rule); color: var(--ink-3); }
.calc-out strong small, .calc-legs strong small { font-size: .62em; color: var(--ink-3); font-weight: 500; }
.calc-neg { color: var(--loss); }
.calc-legs div:only-child { grid-column: 1 / -1; }

/* ---------- Price alerts: account list and the alert sheet ---------- */
.acct-sub { margin: var(--s4) 0 4px; font: 700 15px/1.2 var(--font-body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.price-alerts { margin-bottom: var(--s3); }
.alert-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.alert-preset { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--s3); padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-card); background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.alert-preset strong { font-size: 15px; }
.alert-preset small { grid-column: 1; color: var(--ink-3); font-size: 13px; }
.alert-preset-state { grid-column: 2; grid-row: 1 / span 2; font: 500 12px/1 var(--font-mono); color: var(--ink-3); padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; }
.alert-preset[aria-pressed="true"] { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 8%, transparent); }
.alert-preset[aria-pressed="true"] .alert-preset-state { color: var(--emerald); border-color: var(--emerald); }
.alert-preset:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.price-alerts .pill { white-space: nowrap; }
.price-alerts .pill-live::before { display: none; }
.alert-side { margin: 0 0 var(--s3); font-size: 15px; color: var(--ink-2); }
.alert-side strong { color: var(--ink); }
@media (max-width: 560px) { .price-alerts li { flex-wrap: wrap; } .price-alerts li .grow { flex-basis: 100%; } }

/* ---------- Push notification opt-in ---------- */
.push-host[hidden] { display: none; }
.push-card { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: var(--r-card); background: rgb(var(--c-sheet) / 55%); }
.push-copy { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.push-copy strong { font-size: 15px; color: var(--ink); }
.push-copy span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.push-prefs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.push-card.is-compact { margin: 0; flex-direction: column; align-items: stretch; }
.push-card.is-compact .push-copy { flex-basis: auto; }

/* ---------- Odds screen ---------- */
.odds-tools { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
.odds-tools .field { margin: 0; min-width: 150px; }
.odds-tools .odds-find { min-width: 180px; }
.odds-stamp { margin: 0; align-self: center; }
.odds-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.odds-tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.odds-tbl thead th { white-space: nowrap; }
.odds-tbl .odds-side { position: sticky; left: 0; z-index: 2; min-width: 190px; max-width: 240px; text-align: left; background: var(--night-1); }
.odds-tbl thead .odds-side { z-index: 3; }
.odds-game th { padding: 14px 14px 6px; text-align: left; font-weight: 400; border-top: 1px solid var(--rule); background: transparent; }
.odds-game-in { position: sticky; left: 14px; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.odds-game strong { margin: 0; font: 600 17px/1.2 var(--font-body); letter-spacing: -.005em; color: var(--ink); }
.odds-meta { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.odds-row th, .odds-row td { padding: 8px 12px; border-top: 1px solid var(--rule-soft); }
.odds-side { font-size: 14px; color: var(--ink); }
.odds-side span { vertical-align: middle; }
.odds-bell { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 6px; padding: 0; border: 1px solid transparent; border-radius: var(--r-control); background: none; color: var(--ink-3); cursor: pointer; vertical-align: middle; }
.odds-bell svg { width: 15px; height: 15px; }
/* Touch screens: a 40px invisible hit area around the 28px bell, so a thumb lands on it without zooming. */
@media (pointer: coarse) { .odds-bell { position: relative; } .odds-bell::before { content: ""; position: absolute; inset: -6px; } }
.odds-bell:hover, .odds-bell:focus-visible { border-color: var(--rule-strong); color: var(--gold); }
.odds-px { min-width: 74px; font: 600 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.odds-px.is-best { color: var(--emerald); background: rgb(var(--c-green) / 10%); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 40%); border-radius: var(--r-control); }
.odds-row.is-locked td { color: var(--ink-3); }
.odds-lockline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.odds-lockline svg { width: 14px; height: 14px; color: var(--gold); }
.odds-tbl tbody tr:nth-child(even) { background-image: none; }
@media (max-width: 640px) {
  .odds-tools .field, .odds-tools .odds-find { min-width: 0; flex: 1 1 140px; }
  .odds-tbl .odds-side { min-width: 140px; max-width: 160px; font-size: 13px; }
  .odds-px { min-width: 62px; font-size: 14px; }
}

/* ---------- Bonus page: offer worth and the boost rater ---------- */
.promo-worth strong { display: block; color: var(--emerald); font-size: 16px; }
.promo-worth small { display: block; margin-top: 2px; font: 500 11px/1.2 var(--font-body); color: var(--ink-3); white-space: normal; }
.bonus-lower > * { min-width: 0; }
.boost-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.boost-find .seg { margin-bottom: var(--s3); }
.boost-results { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 330px; overflow-y: auto; }
.boost-results button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-card); background: rgb(var(--c-paper) / 60%); color: var(--ink); text-align: left; cursor: pointer; }
.boost-results button span { font-size: 12px; color: var(--ink-3); }
.boost-results button:hover, .boost-results button.is-on { border-color: var(--emerald); }
.boost-results li.is-empty, .boost-results li.is-locked { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; color: var(--ink-3); }
.boost-pick { margin: 0 0 var(--s3); font-size: 14px; color: var(--ink-2); }
.boost-pick strong { color: var(--ink); }
@media (max-width: 760px) { .boost-body { grid-template-columns: 1fr; } }

/* ---------- DFS slip builder ---------- */
.dfs-tools { display: flex; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); }
.dfs-tools .seg[hidden] { display: none; }
.dfs-best { margin-bottom: var(--s5); }
.dfs-sum { grid-template-columns: repeat(3, 1fr); }
.dfs-picks { display: grid; gap: 8px; margin: 0 0 var(--s3); padding: 0; list-style: none; counter-reset: dfs; }
.dfs-picks li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-card); background: rgb(var(--c-paper) / 55%); counter-increment: dfs; }
.dfs-picks li > div { display: grid; gap: 2px; min-width: 0; }
.dfs-picks li strong { color: var(--ink); font-size: 15px; }
.dfs-picks li span { font-size: 13px; color: var(--ink-3); }
.dfs-p { text-align: right; }
.dfs-p strong { font: 600 18px/1 var(--font-mono); color: var(--emerald) !important; }
.dfs-legs { display: grid; gap: 0; }
.dfs-leg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 var(--s3); }
.dfs-lower > * { min-width: 0; }
.dfs-pay td { white-space: normal; }
@media (max-width: 560px) { .dfs-picks li { flex-direction: column; align-items: flex-start; } .dfs-p { text-align: left; } .dfs-sum { grid-template-columns: 1fr 1fr; } }
.bets-years { margin-top: var(--s6); }
.dfs-best .lock-banner svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--gold); }
.lb-form { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; } .lb-form .field { margin: 0; min-width: 220px; }

/* BetBot Learn: Start here slip, guide library, guide pages */
.start-slip { max-width: 860px; margin-bottom: var(--s7); }
.start-meter { height: 3px; margin: 0 16px 0 20px; border-radius: 3px; background: var(--rule-soft); overflow: hidden; }
.start-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--emerald-deep), var(--emerald)); box-shadow: none; transition: width .6s ease; }
.start-steps { list-style: none; margin: 0; padding: var(--s2) 16px var(--s2) 20px; counter-reset: step; }
.start-step { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--s3) var(--s4); align-items: center; padding: var(--s4) 0; border-bottom: 1px dashed var(--rule-soft); }
.start-step:last-child { border-bottom: 0; }
.start-check { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule-strong); border-radius: 50%; font: 700 15px/1 var(--font-mono); color: var(--emerald-ink); counter-increment: step; }
.start-check:empty::before { content: counter(step); color: var(--ink-3); font-weight: 600; font-size: 13px; }
.start-copy h2 { margin: 0; font: 400 19px/1.15 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.start-copy p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.start-step.is-next .start-check { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.start-step.is-next .start-check:empty::before { color: var(--gold-2); }
.start-step.is-done .start-check { border-color: var(--emerald); background: var(--emerald); box-shadow: none; }
.start-step.is-done .start-copy h2 { color: var(--ink-2); }
.start-step.is-done .btn { opacity: .55; }
.start-bonus { margin: 0; padding: var(--s3) 16px var(--s4) 20px; border-top: 1px solid var(--rule-soft); color: var(--ink-2); font-size: 15px; }
@media (max-width: 600px) {
  .start-step { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  .start-step .btn { grid-column: 2; justify-self: start; }
}
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--s4); align-items: start; }
.track { padding: var(--s4) var(--s4) var(--s2); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--glass); }
.track-head h3 { margin: 0; font: 400 21px/1.1 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.track-head p { margin: 4px 0 var(--s2); color: var(--ink-3); font-size: 14px; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--rule-soft); color: var(--ink-2); text-decoration: none; }
.guide-list a:hover .guide-name, .guide-list a:focus-visible .guide-name { color: var(--emerald); }
.guide-check { width: 14px; height: 14px; border: 1px solid var(--rule-strong); border-radius: 4px; }
.guide-list a.is-read .guide-check { border-color: var(--emerald); background: var(--emerald); box-shadow: none; }
.guide-list a.is-read .guide-name { color: var(--ink-3); }
.guide-name { font-size: 15px; line-height: 1.35; color: var(--ink); }
.guide-min { font: 400 12px/1 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.guide-crumb { color: var(--ink-3); font-weight: 400; }
.guide-tool { max-width: 520px; margin: 0 0 var(--s6); }
.guide-tool .calc-grid { grid-template-columns: 1fr; }
.guide-rg { max-width: 72ch; margin: 0 0 var(--s5); }
.guide-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-bottom: var(--s6); }
.guide-nav a { display: flex; flex-direction: column; gap: 4px; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--glass); color: var(--ink); text-decoration: none; }
.guide-nav a:hover, .guide-nav a:focus-visible { border-color: var(--rule-strong); }
.guide-nav a.next { text-align: right; }
.guide-nav small { font: 600 12px/1 var(--font-body); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.guide-nav span { font: 600 17px/1.2 var(--font-body); letter-spacing: -.005em; }
@media (max-width: 600px) { .guide-nav { grid-template-columns: 1fr; } .guide-nav a.next { text-align: left; } }
.promo-tbl td:last-child, .promo-tbl th:last-child { white-space: nowrap; }
@media (max-width: 600px) { .promo-tbl th:nth-child(3), .promo-tbl td:nth-child(3) { display: none; } }
.promo-claim { display: flex; width: fit-content; margin-top: 8px; font-family: var(--font-display); }

/* Sportsbooks page: state finder, status pills, searchable table */
.state-finder { margin-bottom: var(--s7); }
.finder-body { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: var(--s5); padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 4px); }
.finder-pick { display: flex; flex-direction: column; gap: var(--s3); align-self: start; position: sticky; top: 96px; }
.finder-label { font: 600 14px/1.3 var(--font-body); color: var(--ink-2); }
.finder-select { appearance: none; width: 100%; min-height: 48px; padding: 0 44px 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); color: var(--ink); font: 600 16px/1 var(--font-body); cursor: pointer;
  background: rgb(var(--c-paper) / 70%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2327e3a0' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.finder-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.finder-select option { background: var(--night-1); color: var(--ink); }
.finder-pick .btn { width: 100%; }
.finder-pick .btn[disabled] { opacity: .7; cursor: default; }
.finder-empty { margin: 0; padding: var(--s5); border: 1px dashed var(--rule); border-radius: var(--r-control); text-align: center; }
.finder-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.finder-head h2 { margin: 0; font: 400 30px/1 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.finder-note { margin: var(--s2) 0 0; color: var(--ink-2); font-size: 15px; }
.finder-books { list-style: none; margin: var(--s4) 0 var(--s3); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: var(--s3); }
.finder-book { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-control); background: rgb(var(--c-paper) / 45%); transition: border-color .2s ease, transform .2s ease; }
.finder-book:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.finder-book-id { display: flex; align-items: center; gap: var(--s2); }
.finder-book-id img, .finder-book-id .book-fallback { width: 28px; height: 28px; border-radius: var(--r-control); flex: none; }
.finder-book-id strong { font: 600 18px/1.1 var(--font-body); letter-spacing: -.005em; color: var(--ink); }
.finder-offer { flex: 1; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.finder-worth { display: block; margin-top: 4px; color: var(--emerald); font: 600 13px/1.3 var(--font-mono); }
.finder-book .btn { align-self: flex-start; }
@media (max-width: 760px) {
  .finder-body { grid-template-columns: 1fr; padding: var(--s4) var(--s4) var(--s4) calc(var(--s4) + 4px); }
  .finder-pick { position: static; }
}
.state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--r-pill); font: 600 13px/1.2 var(--font-body); white-space: nowrap; }
.state-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-pill.is-ok { color: var(--emerald); border-color: rgb(var(--c-green) / 40%); background: rgb(var(--c-green) / 8%); }
.state-pill.is-warn { color: var(--gold-2); border-color: rgb(var(--c-gold) / 40%); background: rgb(var(--c-gold) / 8%); }
.state-pill.is-muted { color: var(--ink-2); }
.state-pill.is-off { color: var(--loss); border-color: rgb(var(--c-loss) / 35%); background: rgb(var(--c-loss) / 7%); }
.state-search input { width: min(320px, 100%); min-height: 44px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: rgb(var(--c-paper) / 60%); color: var(--ink); font: 400 15px/1 var(--font-body); }
.state-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.state-link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.state-link:hover, .state-link:focus-visible { color: var(--emerald); text-decoration-color: var(--emerald); }
.tbl-states .btn-sm { white-space: nowrap; }
.offers-cta .price-teaser { margin: 0; }

/* Account-safe mode */
.safe-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--s3); margin: var(--s4) 0 var(--s3); padding: 0; border: 0; }
/* Settings "How you use BetBot": the fieldset legend is a visible question above each card row. */
.safe-modes .field-legend { grid-column: 1 / -1; padding: 0; float: left; width: 100%; margin: 0 0 var(--s2); font: 600 14px/1.3 var(--font-body); color: var(--ink); }
.adv { margin: var(--s2) 0 var(--s3); border-top: 1px solid var(--rule-soft); padding-top: var(--s3); }
.adv > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.adv[open] > summary { margin-bottom: var(--s3); color: var(--ink); }
.safe-mode { position: relative; display: block; cursor: pointer; }
.safe-mode input { position: absolute; opacity: 0; }
.safe-mode span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-control); background: rgb(var(--c-paper) / 45%); transition: border-color .2s ease, box-shadow .2s ease; }
.safe-mode strong { font: 600 18px/1 var(--font-body); letter-spacing: -.005em; color: var(--ink); }
.safe-mode small { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.safe-mode:hover span { border-color: var(--rule-strong); }
.safe-mode input:checked + span { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); }
.safe-mode input:checked + span strong::after { content: " \2713"; color: var(--emerald); }
.safe-mode input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.safe-note { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border: 1px solid rgb(var(--c-green) / 30%); border-radius: var(--r-control); background: rgb(var(--c-green) / 6%); color: var(--ink-2); font-size: 14px; }
.safe-note strong { color: var(--emerald); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s3); }
.health-card { padding: var(--s4); border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--glass); }
.health-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.health-top strong { font: 400 19px/1 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.health-score { font: 700 22px/1 var(--font-mono); }
.health-card.is-healthy .health-score { color: var(--emerald); }
.health-card.is-watch .health-score { color: var(--gold-2); }
.health-card.is-risk .health-score { color: var(--loss); }
.health-meter { height: 4px; margin: var(--s3) 0; border-radius: 4px; background: var(--rule-soft); overflow: hidden; }
.health-meter span { display: block; height: 100%; background: currentColor; }
.health-card.is-healthy .health-meter { color: var(--emerald); }
.health-card.is-watch .health-meter { color: var(--gold); }
.health-card.is-risk .health-meter { color: var(--loss); }
.health-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.health-card .fine { margin: 0 0 var(--s2); }

/* Settings tabs */
.acct-tabs a[aria-current="page"] { color: var(--ink); border-left-color: var(--emerald); background: rgb(var(--c-green) / 7%); }
.acct-tabs .acct-out { margin-top: var(--s3); color: var(--ink-3); font-weight: 500; }
@media (max-width: 900px) { .acct-tabs a[aria-current="page"] { border-bottom-color: var(--emerald); background: none; } .acct-tabs .acct-out { margin-top: 0; } }
.acct-more { margin-top: var(--s4); border-top: 1px solid var(--rule-soft); }
.acct-more > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; color: var(--ink-2); font: 600 15px/1 var(--font-body); cursor: pointer; list-style: none; }
.acct-more > summary::-webkit-details-marker { display: none; }
.acct-more > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); color: var(--emerald); font-family: var(--font-mono); }
.acct-more[open] > summary::before { content: "\2212"; }
.acct-more > summary:hover { color: var(--ink); }
.stakes-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--s3) var(--s4); align-items: end; }
.stakes-form .btn { justify-self: start; }
.stakes-form select { width: 100%; min-height: 44px; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-pill); background: rgb(var(--c-paper) / 55%); color: var(--ink); font: 600 13px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: border-color .2s ease; }
.status-chip:hover, .status-chip:focus-visible { border-color: var(--emerald); }
.status-chip.is-on { color: var(--emerald); border-color: rgb(var(--c-green) / 45%); }
.status-chip.is-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.status-chip.is-off { color: var(--gold-2); border-color: rgb(var(--c-gold) / 45%); }
.safe-note.is-nudge { border-color: rgb(var(--c-gold) / 35%); background: rgb(var(--c-gold) / 6%); }
.safe-note.is-nudge strong { color: var(--gold-2); }
.safe-note .row-actions { margin: 0; }
.welcome-safe { grid-template-columns: 1fr; }
.ftr-guides { display: flex; flex-wrap: wrap; gap: 0 18px; width: 100%; padding-top: var(--s2); border-top: 1px solid var(--rule-soft); }
.ftr-guides a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-3); font-size: 14px; text-decoration: none; }
.ftr-guides a:hover { color: var(--emerald); }
.health-card.is-limited { border-color: rgb(var(--c-loss) / 35%); }
.health-card.is-limited .health-score { color: var(--loss); }
.health-limit { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--s3); }
.health-limit input, .health-limit select { flex: 1; min-width: 140px; min-height: 36px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: rgb(var(--c-paper) / 60%); color: var(--ink); font: 400 14px/1 var(--font-body); }
.health-act { margin-top: var(--s2); padding-left: 0; }
.health-add { border-style: dashed; }
.health-add strong { font: 600 17px/1.1 var(--font-body); letter-spacing: -.005em; color: var(--ink); }
.import-sheet { max-width: 760px; margin: auto; border-radius: var(--r-card); border: 1px solid var(--rule-strong); }
@media (max-width: 760px) { .import-sheet { margin: auto 0 0; border-radius: 4px 4px 0 0; } }
.import-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.import-grid .field span { display: block; margin-bottom: 4px; font: 600 13px/1.2 var(--font-body); color: var(--ink-2); }
.import-grid select { width: 100%; min-height: 40px; }
.import-preview { font-size: 13px; }

/* Plans: Free, Premium, Pro */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--s4); margin-bottom: var(--s7); align-items: stretch; }
.tier-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 4px); }
.tier-card.is-featured { --edge: var(--emerald); border-color: rgb(var(--c-green) / 40%); }
.tier-card.is-pro { --edge: var(--gold); border-color: rgb(var(--c-gold) / 35%); }
.tier-name { margin: 0; font: 400 28px/1 var(--font-display); letter-spacing: -.005em; color: var(--ink); }
.tier-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.tier-price strong { font: 700 40px/1 var(--font-mono); color: var(--ink); }
.tier-card.is-pro .tier-price strong { color: var(--gold-2); }
.tier-price span { color: var(--ink-3); font-size: 14px; }
.tier-line { margin: 0; color: var(--ink-2); }
.tier-card ul { flex: 1; margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.tier-card ul li::marker { color: var(--emerald); }
.tier-card.is-pro ul li::marker { color: var(--gold); }
.tier-note { margin: 0; color: var(--ink-3); font-size: 13px; }
.plan-flag.is-gold { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.plans-head { margin-top: 0; }

/* Sharp moves (Pro) */
.pro-gate { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); padding: var(--s3) var(--s4); border: 1px solid rgb(var(--c-gold) / 35%); border-radius: var(--r-control); background: rgb(var(--c-gold) / 6%); color: var(--ink-2); font-size: 15px; }
.pro-gate strong { color: var(--gold-2); }
.moves-settings .moves-form { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; }
.moves-form .field span { display: block; margin-bottom: 4px; font: 600 13px/1.2 var(--font-body); color: var(--ink-2); }
.moves-form select { min-height: 40px; }
.moves-sports { flex-basis: 100%; margin: 0; padding: 0; border: 0; }
.moves-sports legend { margin-bottom: 6px; font: 600 13px/1.2 var(--font-body); color: var(--ink-2); }
.moves-sports > div { display: flex; flex-wrap: wrap; gap: 6px; }
.moves-tabs { margin: var(--s2) 0 var(--s3); }
.moves-explain { max-width: 70ch; margin: 0 0 var(--s4); font-size: 15px; }
.moves-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--s3); }
.move-card .move-line { margin: 0; padding: 0 16px 8px 20px; color: var(--ink-2); font-size: 14px; }
.move-card .move-line strong { color: var(--ink); }
.move-pill { grid-row: 1 / span 2; grid-column: 2; align-self: start; padding: 6px 10px; border-radius: var(--r-pill); background: rgb(var(--c-green) / 10%); color: var(--emerald); font: 700 14px/1 var(--font-mono); box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 45%); white-space: nowrap; }
.move-pill.is-down { background: rgb(var(--c-loss) / 8%); color: var(--loss); box-shadow: inset 0 0 0 1px rgb(var(--c-loss) / 40%); }
.moves-fine { margin-top: var(--s5); }
.hedge-list { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s2); }
.hedge-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--glass); }
.hedge-row strong { display: block; color: var(--ink); }
.hedge-row .muted { font-size: 14px; }
.hedge-row .row-actions { margin: 0; }

/* ---------- Sharp Sheet layer ----------
 * Last in the file so it settles the older glow/glass rules above: flat paper, hairlines, no sheen, no aura. */
html { background: var(--night-0); }
body { letter-spacing: -.003em; }
.display, h1.display { font-weight: 400; line-height: 1; letter-spacing: -.015em; }
.display em, .display i, .ng-h1 span { font-style: italic; color: var(--emerald); }
.glow { color: var(--emerald); }

.hdr { background: rgb(var(--c-paper) / 88%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr::after, .ftr::before { content: none; }
.brand-mark { filter: none; }
.brand-word b { font-style: italic; }
.nav a:hover { background: none; color: var(--ink); }
.ftr { background: var(--night-0); }

/* Buttons: solid fill, 2px corners, sentence case. Primary links carry an arrow. */
.btn {
  overflow: visible;
  font: 600 15px/1 var(--font-body); letter-spacing: -.005em; text-transform: none; box-shadow: none;
}
.btn::after { content: none; }
a.btn:not([class*="btn-"]):not(.is-static)::after, a.btn-gold::after {
  content: "\2192"; position: static; display: inline-block; background: none; opacity: 1; z-index: auto;
  transition: transform var(--dur-1) var(--ease-out);
}
a.btn:not([class*="btn-"]):hover::after, a.btn-gold:hover::after { transform: translateX(3px); }
.btn:hover { transform: none; filter: brightness(1.08); box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn-gold, .tkt-lock .btn, .plan-bar .btn, .plan.is-featured .btn, .price-teaser > .btn, .price-teaser .row-actions .btn:first-child { --btn-bg: var(--gold); --btn-fg: var(--gold-ink); }
.btn-gold:hover { box-shadow: none; }
.btn-outline { --btn-bg: transparent; --btn-bd: rgb(var(--c-bone) / 30%); background: transparent; }
.btn-outline:hover { --btn-bd: var(--ink); box-shadow: none; filter: none; }
.btn-ghost { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn-bet:hover { box-shadow: none; }

/* Tags: outlined, tracked caps. */
.pill, .tkt-sport, .res, .ng-tag, .ng-ribbon, .plan-flag { border-radius: 2px; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pill-live, .pill-premium { background: transparent; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.chip-edge, .chip-edge.dfs { border-radius: 2px; background: var(--emerald); box-shadow: none; }
.chip-edge.dfs { background: var(--gold); }
.plan-flag, .plan-flag.is-gold { background: var(--gold); }

/* Panels: flat paper with one hairline, no blur, no top sheen. */
.tkt, .panel, .tbl-wrap, .plan, .calc, .gate, .auth-slip, .ng-jumbo, .ng-ticket.is-star, .price-teaser, .trial, .empty {
  background: var(--night-1); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.panel::after, .tbl-wrap::after, .snap::after, .bonus-slot::after, .calc::after, .welcome-card::after, .tkt::after,
.ng-jumbo::before, .ng-jumbo::after, .ng-tile::before, .ng-tool::before, .ng-tool::after, .ng-standings-wrap::before,
.ng-bull::after, .side::before, .msheet-panel::before { content: none; }
.ng-aura, .ng-horizon { display: none; }
.ng-h1 { font-weight: 400; line-height: .95; letter-spacing: -.02em; }
.ng-h1 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none; }
.ng-head::after, .ng-steps::before { background: var(--rule-strong); }
.ng-node { box-shadow: inset 0 0 0 1px var(--gold); }
.tkt.is-link:hover, .edge-card.is-row:hover { transform: none; border-color: var(--rule-strong); box-shadow: none; }
.tkt.is-result .tkt-head { background: none; }
.tkt-book.best { box-shadow: none; }
.tkt-lock { border-radius: 2px; background: transparent; border-style: dashed; }
.page-head h1.display::after, .board-head h1.display::after { width: 48px; height: 2px; border-radius: 0; background: var(--emerald); box-shadow: none; }

/* Pick slip: perforated tear line with punched notches above the footer. */
.tkt-foot { position: relative; border-top: 1px dashed var(--rule-strong); background: transparent; }
.tkt-foot::before, .tkt-foot::after {
  content: ""; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--night-0); border: 1px solid var(--rule);
}
.tkt-foot::before { left: -7px; }
.tkt-foot::after { right: -7px; }

/* Controls */
.seg button[aria-selected="true"], .seg button[aria-pressed="true"], .seg-thumb { background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.side { background: var(--night-0); }
.side-link[aria-current="page"], .msheet-nav a[aria-current="page"] { background: var(--night-2); box-shadow: inset 2px 0 0 var(--emerald); border-left-color: transparent; }
.field input, .field select, .input, textarea, select { background-color: var(--night-0); }
.trial-meter i, .keep-meter i, .start-meter span { background: var(--gold); box-shadow: none; }
.start-meter span { background: var(--emerald); }
.gate::backdrop { background: rgb(var(--c-paper) / 92%); backdrop-filter: none; }
.gate-stamp { box-shadow: none; }
.menu-list { box-shadow: none; }
.avatar { background: var(--emerald); }
.skeleton { background: linear-gradient(90deg, var(--night-1), var(--night-2), var(--night-1)); background-size: 200% 100%; }
/* Martian Mono runs wide at 100%; every mono use sits at 87.5% width so odds columns keep their old footprint. */
body * { font-stretch: 87.5%; }
.display, h1.display { text-transform: none; }
.ng-field { display: none; }

/* ---------- Atmosphere ----------
 * Quiet life behind the sheet: one green light pool up top, a gold one low right, paper grain, and a ledger grid
 * that fades out below the fold. Fixed, behind everything, no motion. */
html { background: var(--night-0); }
body { background: transparent; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(900px 520px at 50% -120px, rgb(var(--c-green) / 13%), transparent 70%),
    radial-gradient(700px 500px at 105% 105%, rgb(var(--c-gold) / 6%), transparent 70%),
    radial-gradient(600px 480px at -10% 55%, rgb(var(--c-green) / 5%), transparent 70%);
}
body::after {
  opacity: .5;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(rgb(var(--c-bone) / 4%) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgb(var(--c-bone) / 4%) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgb(0 0 0 / 35%) 70%, rgb(0 0 0 / 15%));
  mask-image: linear-gradient(180deg, #000, rgb(0 0 0 / 35%) 70%, rgb(0 0 0 / 15%));
}

/* Hero price tape: a rising line chart along the hero floor, drawn once on load, then a slow live dot. */
.ng-tape { position: absolute; left: 50%; bottom: 0; width: 100vw; max-width: none; height: 200px; transform: translateX(-50%); z-index: -1; overflow: visible; }
/* The tape stretches to fit; at 200px tall on a phone its right end climbed through the season stats. */
@media (max-width: 700px) { .ng-tape { height: 110px; } }
.ng-tape-rules path { fill: none; stroke: rgb(var(--c-bone) / 8%); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.ng-tape-line { fill: none; stroke: var(--emerald); stroke-width: 1.5; stroke-opacity: .7; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tape-draw 2.6s var(--ease-out) .3s forwards; }
.ng-tape-area { opacity: 0; animation: tape-fade 1.2s ease 1.6s forwards; }
.ng-hero::after { content: ""; position: absolute; right: calc(50% - 50vw + 2px); bottom: 168px; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); opacity: 0; z-index: -1; }
@keyframes tape-draw { to { stroke-dashoffset: 0; } }
@keyframes tape-fade { to { opacity: 1; } }
@keyframes tape-blink { 50% { opacity: .3; } }

/* Section heads get a ruler: hairline with tick marks every 8px and a longer tick every 64px. */
.ng-head::after, .page-head::after { content: none; }
.page-head { position: relative; padding-bottom: 22px; margin-bottom: var(--s6); }
.page-head h1.display::after { display: none; }

/* Panels pick up print crop marks in their corners. */
.ng-jumbo, .plan, .price-teaser, .tbl-wrap, .calc {
  background-image:
    linear-gradient(var(--emerald), var(--emerald)), linear-gradient(var(--emerald), var(--emerald)),
    linear-gradient(var(--emerald), var(--emerald)), linear-gradient(var(--emerald), var(--emerald));
  background-size: 10px 1px, 1px 10px, 10px 1px, 1px 10px;
  background-position: 0 0, 0 0, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .ng-tape-line { animation: none; stroke-dashoffset: 0; }
  .ng-tape-area, .ng-hero::after { animation: none; opacity: 1; }
}
.ng-actions .btn-outline { background: var(--night-0); }

/* ---------- Light mode (opt-in, header toggle; theme.js applies it before paint) ----------
 * Same sheet in daylight: warm paper, ink type, a deeper green and gold so text keeps AA contrast.
 * Anything marked .theme-dark keeps the night palette (the home hero, where the bull lives). */
:root[data-theme="light"] {
  color-scheme: light;
  --c-paper: 243 240 231; --c-sheet: 251 249 243; --c-sheet2: 234 230 218; --c-bone: 22 25 23;
  --c-green: 12 122 77; --c-gold: 138 95 0; --c-loss: 178 64 40; --c-info: 40 104 140;
  --night-0: #f3f0e7; --night-1: #fbf9f3; --night-2: #eae6da;
  --glass: rgb(251 249 243 / 94%); --glass-2: rgb(234 230 218 / 96%);
  --rule: rgb(22 25 23 / 13%); --rule-strong: rgb(22 25 23 / 26%); --rule-soft: rgb(22 25 23 / 8%);
  --ink: #16191a; --ink-2: #45473f; --ink-3: #66655c;
  --emerald: #0c7a4d; --emerald-2: #0a6a42; --emerald-deep: #0a5a38; --emerald-ink: #ffffff;
  --gold: #8a5f00; --gold-2: #7a5400; --gold-deep: #5e4100; --gold-ink: #ffffff;
  --loss: #b24028; --info: #28688c; --focus: #8a5f00; --push: #66655c;
}
:root[data-theme="light"] .theme-dark { color: var(--ink); }
:root[data-theme="light"] .ng-hero.theme-dark { background: var(--night-0); box-shadow: 0 0 0 100vmax var(--night-0); clip-path: inset(0 -100vmax); }
:root[data-theme="light"] .auth-side::after { display: none; }
:root[data-theme="light"] body::before { opacity: .6; }
:root[data-theme="light"] .brand-mark { filter: drop-shadow(0 1px 1px rgb(0 0 0 / 25%)); }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none;
  border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle.side-theme { display: flex; justify-content: flex-start; gap: 10px; width: 100%; height: 40px; padding: 0 12px; font: 600 14px/1 var(--font-body); }
.rg-line a, .msheet-rg a, .side-rg a, .ftr-rg a { text-decoration: underline; text-underline-offset: 3px; }
.msheet-theme { margin: 8px 0 0; }
@media (max-width: 440px) { .hdr-right > .theme-toggle { display: none; } }

/* New trials closed (server sets data-trial="closed" on <html>): hide every trial mention.
   The Week pass banner reuses .trial-days for the "7 days" mark, so leave that stub visible. */
[data-trial="closed"] [data-trial-copy], [data-trial="closed"] .trial-days, [data-trial="closed"] .trial-note { display: none !important; }
[data-trial="closed"] .week-pass-stub .trial-days { display: grid !important; }
[data-google="off"] .btn-google { display: none !important; }

/* International books guide: notes wrap, red flags stand out. */
.intl-guide td:last-child { min-width: 260px; }
/* The guide has 6 columns; on wide screens it spans the page instead of the 72ch text column, so Notes (red flags) never hide off to the right. */
@media (min-width: 1000px) { .prose .tbl-wrap:has(.intl-guide) { width: min(calc(100vw - 120px), 1160px); } }
.intl-flag { color: var(--loss); font-weight: 600; }
/* Glossary terms (ui.js termHtml): tap or click a dotted word to see what it means. */
.term { display: inline; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--ink-2); text-underline-offset: 3px; }
.term:hover, .term[aria-expanded="true"] { text-decoration-color: var(--emerald); }
.term:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--r-control); }
.term-i { display: inline-block; margin-left: 3px; width: 1.1em; height: 1.1em; border: 1px solid currentColor; border-radius: 50%; font: 700 .7em/1em var(--font-mono); text-align: center; vertical-align: .15em; opacity: .7; }
.term-row { margin: var(--s2) 0 0; }
.term-row .term { margin-right: var(--s2); }
.term-bubble { position: absolute; z-index: 95; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: var(--s3) var(--s4); background: var(--night-1); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: 0 16px 40px rgb(0 0 0 / 55%); font: 400 14px/1.5 var(--font-body); animation: pop-in var(--dur-2) var(--ease-out); }
.term-bubble strong { display: block; margin-bottom: var(--s1); color: var(--emerald); }
.term-bubble p { margin: 0 0 var(--s2); color: var(--ink-2); }
.term-bubble a { color: var(--gold); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .term-bubble { animation: none; } }

/* Settings > Alerts embeds the dashboard alert form: no second card frame, heading or push note. */
.alerts-embedded > .panel { border: 0; padding: 0; background: none; box-shadow: none; }
.alerts-embedded > .panel::after { display: none; }
.alerts-embedded .panel-head, .alerts-embedded .discord-link-panel > .eyebrow, .alerts-embedded .push-note { display: none; }
/* Phones: the sticky filter bar stays one row; the same terms are tappable on every pick card. */
@media (max-width: 760px) { #termRow { display: none; } }
/* Board "New here?" panel: open on desktop; on phones it starts as one line so the first picks are on screen. */
.board-welcome-body > summary { display: none; }
@media (max-width: 760px) { .board-welcome-body > summary { display: list-item; cursor: pointer; font-weight: 600; color: var(--emerald); margin-top: var(--s2); } .board-welcome-body[open] > summary { margin-bottom: var(--s3); } }


/* Team flair (2026-10-14). A matchup ribbon across the top of a card in the teams' own colors: split away | home when
   the pick covers both sides or the total, solid when it backs one team or a player. Colors come from
   public/teams-data.js via data attributes (reveal() sets --team-a / --team-b; the CSP blocks inline styles).
   Dark theme lifts the colors toward bone so navy and black teams still read on the night sheet. */
.tkt.has-team {
  --tm-a: color-mix(in oklab, var(--team-a, transparent) 72%, #ede7d7);
  --tm-b: color-mix(in oklab, var(--team-b, var(--team-a, transparent)) 72%, #ede7d7);
}
:root[data-theme="light"] .tkt.has-team { --tm-a: var(--team-a, transparent); --tm-b: var(--team-b, var(--team-a, transparent)); }
/* Pick page: the ribbon becomes the matchup band, with a faint wash of each team's color behind the header. */
.pick-page .tkt.has-team .tkt-head {
  padding-top: 20px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--tm-a) 14%, transparent), transparent 42% 58%, color-mix(in oklab, var(--tm-b) 14%, transparent));
}
/* Player props: initials ringed and tinted in the player's team color, team logo tucked on the corner. */
.tkt-avatar { position: relative; }
.tkt-avatar.is-team { border-color: var(--tm-a); background: color-mix(in oklab, var(--tm-a) 20%, rgb(var(--c-sheet2))); color: var(--ink); }
.tkt-avatar-team { position: absolute; right: -6px; bottom: -5px; width: 14px; height: 14px; padding: 1px; object-fit: contain; border-radius: 50%; background: var(--night-1, #0b0d0c); }
.pick-page .tkt-avatar-team { width: 20px; height: 20px; right: -8px; bottom: -6px; }
/* Sport marks: one-color line icons for sports with no team logos. */
.tkt-mark { display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pick-page .tkt-mark { width: 32px; height: 32px; vertical-align: -4px; stroke-width: 1.25; }

/* Settings > Alerts: Discord pick DMs (dashboard-alerts.js). */
.alerts-form .dm-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.alerts-form .dm-switch .alert-status { margin: 0; }
.alerts-form .chip-group legend .hint { font-weight: 400; margin-left: 6px; }
.alerts-form .check-row { display: flex; align-items: center; gap: 10px; margin: var(--s3) 0; font-size: 14px; }
.alerts-form .check-row input { width: 18px; height: 18px; accent-color: var(--emerald); }
.alerts-form .check-row input:disabled + span { color: var(--ink-3); }
.alerts-form .field select { width: 100%; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--emerald) 50%), linear-gradient(135deg, var(--emerald) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.alerts-form .field select option { background: var(--night-1); color: var(--ink); }
.board-welcome.is-slim { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); }
.board-welcome.is-slim p { margin: 0; flex: 1 1 260px; }
.bonus-more { margin-top: var(--s3); }

/* Condense and clipping pass 2026-10-18. */
@media (max-width: 760px) { .tabs-bar .seg { flex-wrap: wrap; } }
.odds-row.is-locked .odds-lockline { position: sticky; left: 0; display: block; max-width: min(100%, calc(100vw - 64px)); white-space: normal; }
.tracks { margin-bottom: var(--s5); }
.for-you { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); flex-wrap: wrap; padding: var(--s3) 0; border-bottom: 1px solid var(--rule-soft); margin-bottom: var(--s3); font-size: 14px; color: var(--ink-2); }
.for-you p { margin: 0; }
.for-you strong.pos { color: var(--emerald); } .for-you strong.neg { color: var(--loss); }
.for-you-links { display: flex; gap: var(--s4); }

/* ===== Soft surfaces (2026-10-18, owner ask: no text close to a line, app-like, modeled on sportsbook apps).
   Filled panels in bone tints instead of outlined boxes, rounder corners, hairlines only as faint inset dividers or
   selected rings, and at least 16px from text to a card edge. Research: DraftKings, BetMGM, PrizePicks, OddsJam,
   Pikkit, Action Network app screenshots (cards #121212 to #1b1b1b, no borders, radius 14 to 20, selected = fill). */
:root, :root[data-theme="light"] .theme-dark {
  --r-card: 14px; --r-control: 8px; --r-pill: 999px;
  --rule: rgb(var(--c-bone) / 7%); --rule-soft: rgb(var(--c-bone) / 4.5%); --rule-strong: rgb(var(--c-bone) / 14%);
  --surface-1: rgb(var(--c-bone) / 3.5%); --surface-2: rgb(var(--c-bone) / 6%); --surface-3: rgb(var(--c-bone) / 10%); --surface-4: rgb(var(--c-bone) / 14%);
  --panel-bg: linear-gradient(var(--surface-2), var(--surface-2));
}
:root[data-theme="light"] {
  --r-card: 14px; --r-control: 8px; --r-pill: 999px;
  --rule: rgb(22 25 23 / 8%); --rule-soft: rgb(22 25 23 / 5%); --rule-strong: rgb(22 25 23 / 16%);
  --surface-1: rgb(22 25 23 / 3%); --surface-2: rgb(22 25 23 / 5%); --surface-3: rgb(22 25 23 / 8%); --surface-4: rgb(22 25 23 / 12%);
  --panel-bg: linear-gradient(var(--night-1), var(--night-1));
}
/* Resting cards and panels: a filled tier, no outline. Selected or featured states keep their coloured ring. */
.tkt, .panel, .track-strip, .notice, .price-teaser, .board-welcome, .ng-ticket, .tier-card, .plan, .empty, .explainer > div, .alert-preset, .safe-mode span, .faq details {
  border-color: transparent;
}
.tkt, .panel, .track-strip, .board-welcome, .ng-ticket, .tier-card, .plan, .explainer > div, .alert-preset, .safe-mode span, .faq details { background: var(--panel-bg); }
:root[data-theme="light"] .tkt, :root[data-theme="light"] .panel { box-shadow: 0 1px 2px rgb(22 25 23 / 6%), 0 4px 16px -8px rgb(22 25 23 / 12%); }
.tier-card.is-featured, .plan.is-featured, .ng-ticket.is-star { border-color: rgb(var(--c-green) / 45%); }
.tier-card.is-pro { border-color: rgb(var(--c-gold) / 40%); }
.safe-mode input:checked + span, .alert-preset[aria-pressed="true"] { border-color: var(--emerald); }

/* Pick cards: spacing instead of inner divider lines. */
.tkt-head { border-bottom: 0; padding: 16px 18px 6px 20px; }
.tkt-body { padding: 10px 18px 12px 20px; }
.tkt-books { padding: 2px 18px 16px 20px; gap: 8px; }
.tkt-foot { border-top: 0; padding: 12px 18px 16px 20px; background: var(--surface-1); }
.tkt-foot::before, .tkt-foot::after { display: none; }
.tkt .howto.is-card { margin: 0 18px 14px 20px; border-color: transparent; background: var(--surface-1); border-radius: var(--r-control); }
.tkt.is-compact .tkt-head { padding: 12px 16px 4px 18px; }
.tkt.is-compact .tkt-foot { padding: 10px 16px 12px 18px; }

/* Chips and badges: tinted fills, not boxed text. */
.tkt-sport { border: 0; background: rgb(var(--c-green) / 12%); padding: 5px 10px; border-radius: var(--r-pill); }
.tkt-book { border-color: transparent; background: var(--surface-3); border-radius: var(--r-control); }
.tkt-book.best { border-color: rgb(var(--c-green) / 45%); }
.badge-21 { width: 50px; height: 50px; font-size: 16px; border-width: 1.5px; }
.term-i { border: 0; background: rgb(var(--c-bone) / 14%); line-height: 1.1em; }
.chip-toggle span { border-color: transparent; background: var(--surface-2); border-radius: var(--r-pill); }
.seg { border-color: transparent; background: var(--surface-2); border-radius: calc(var(--r-control) + 3px); }

/* Forms: room between a label and its box. */
.field { gap: 8px; }
.field input, .field select, .field textarea, .input { border-color: var(--rule-strong); border-radius: var(--r-control); }
/* Buttons and chips on cards: filled tints like sportsbook odds buttons; outline only for the active state. */
.chip-edge.ev { box-shadow: none; background: rgb(var(--c-green) / 14%); }
.chip-edge.middle { box-shadow: none; background: rgb(var(--c-info) / 14%); }
.btn-bet { border-color: transparent; background: rgb(var(--c-gold) / 13%); }
.btn-bet:hover { border-color: transparent; background: rgb(var(--c-gold) / 22%); }
.btn-track { border-color: transparent; background: var(--surface-3); }
.btn-track:hover { border-color: transparent; background: var(--surface-4); }
.chip-select { border-color: transparent; background: var(--surface-2); border-radius: var(--r-pill); }
.chip-select:hover { border-color: transparent; background: var(--surface-3); }
.chip-select.is-on { border-color: rgb(var(--c-green) / 55%); }
.btn-outline { --btn-bd: transparent; --btn-bg: var(--surface-3); }
.btn-outline:hover { --btn-bd: transparent; --btn-bg: var(--surface-4); }
/* Sticky board toolbar: solid enough that cards never show through it. */
.filters { background: rgb(var(--c-paper)); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; box-shadow: 0 8px 16px -12px rgb(0 0 0 / 60%); }
/* A card stretched to its row (subgrid) keeps its rows together and pins the footer to the bottom. */
.tkt { display: flex; flex-direction: column; }
.tkt > * { min-width: 0; }
.tkt > .tkt-foot { margin-top: auto; }
/* Round two of the spacing pass: tags and badges as tinted fills, tables as soft panels with inset rows. */
.badge-21 { border: 0; background: rgb(var(--c-gold) / 14%); }
.pill { border-color: transparent; background: var(--surface-3); padding: 0 12px; }
.pill-premium { background: rgb(var(--c-gold) / 14%); }
.pill-live { background: rgb(var(--c-green) / 12%); }
.state-pill, .state-pill.is-ok, .state-pill.is-warn, .state-pill.is-off { border-color: transparent; padding: 5px 12px; }
.state-pill.is-muted { background: var(--surface-3); }
.tkt-avatar { border: 0; background: var(--surface-4); }
.tbl-wrap { border-color: transparent; background: var(--surface-1); }
.tbl th, .tbl td { padding: 14px 18px; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { border-bottom-color: var(--rule-soft); }
h2 + .tbl-wrap, h3 + .tbl-wrap, h3 + div > .tbl-wrap, .section-head + .tbl-wrap { margin-top: var(--s3); }
.explainer h3, .explainer h2.explainer-h { margin-bottom: var(--s3); }
.alert-preset-state { border: 0; background: var(--surface-3); padding: 6px 12px; }
.alert-preset[aria-pressed="true"] .alert-preset-state { background: rgb(var(--c-green) / 16%); }
.notice + .field, .field + .notice { margin-top: var(--s3); }
footer.ftr { margin-top: var(--s7); }
/* Segmented tabs: the selected tab is a fill, not an inset line; wrapped phone rows drop the sliding thumb. */
.seg-thumb, .seg button[aria-selected="true"], .seg button[aria-pressed="true"] { box-shadow: none; background: var(--surface-4); }
@media (max-width: 760px) { .tabs-bar .seg .seg-thumb { display: none; } }
.explainer > div { padding: 20px; border-radius: var(--r-card); }
@media (max-width: 760px) {
  .explainer > div { padding: 16px; }
  .explainer > div .tbl-wrap { margin: 0 -16px -16px; border-radius: 0 0 var(--r-card) var(--r-card); }
  .tbl th, .tbl td { padding: 12px 10px; font-size: 13px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
}
/* No side-stripe or top-ribbon accents (2026-10-18: a coloured stripe on one side of a rounded card is the best known
   tell of AI-made UIs, impeccable.style/slop). Team colour comes through as a faint wash behind the card header, and
   the bet type stays in the label and the edge chip. */
.tkt.has-team .tkt-head { background: none; }
.tkt.has-team { background: radial-gradient(70% 90px at 0 0, color-mix(in oklab, var(--tm-a) 13%, transparent), transparent), radial-gradient(70% 90px at 100% 0, color-mix(in oklab, var(--tm-b) 13%, transparent), transparent), var(--panel-bg); }
.pick-page .tkt.has-team .tkt-head { padding-top: 18px; background: linear-gradient(90deg, color-mix(in oklab, var(--tm-a) 14%, transparent), transparent 42% 58%, color-mix(in oklab, var(--tm-b) 14%, transparent)); }
/* Anti-slop pass (impeccable detect, 2026-10-18): the live-edges strip is swiped, not an endless marquee; status dots
   are static; no decorative stripes; no card inside a card on pick cards. */
.tape-track { animation: none; will-change: auto; }
.tape-view { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
.tape-view::-webkit-scrollbar { display: none; }
.tkt .howto.is-card { background: none; margin: 0 18px 8px 20px; padding: 0; border-radius: 0; }
.ng-head .ng-eyebrow { display: none; }
::placeholder { color: var(--ink-2); opacity: .8; }

/* Results sit in their card, not in a second card (impeccable nested-cards). Long small print capped near 75 characters. */
.calc-out { border: 0; background: none; padding: var(--s4) 0 0; border-radius: 0; }
.calc-out.is-error { border: 0; }
.fine, .muted, .lede, .strip-note, .disclosure { max-width: 75ch; }

/* ===== Glow with purpose (2026-10-19, owner: "needs to glow more", buttons should feel responsive). Light where it
   means something, like sportsbook apps (PrizePicks neon selected picks, BetMGM gold selected price, Pikkit green wash):
   an ambient green light behind the page, a halo on the best price and the main actions, and lift/press feedback on
   everything you can tap. Resting cards stay flat. Dark mode only for the glows; light mode keeps clean shadows. */
:root, :root[data-theme="light"] .theme-dark { --emerald-glow: rgb(var(--c-green) / 42%); --gold-glow: rgb(var(--c-gold) / 38%); }
:root[data-theme="light"] { --emerald-glow: transparent; --gold-glow: transparent; }
body::before {
  background:
    radial-gradient(1000px 560px at 50% -140px, rgb(var(--c-green) / 18%), transparent 70%),
    radial-gradient(760px 520px at 105% 100%, rgb(var(--c-gold) / 8%), transparent 70%),
    radial-gradient(640px 520px at -10% 50%, rgb(var(--c-green) / 8%), transparent 70%);
}
/* Buttons: glow on the main actions, lift on hover, press on tap. */
.btn { transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), filter var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.btn:not(.btn-outline):not(.btn-ghost) { box-shadow: 0 1px 0 rgb(255 255 255 / 30%) inset, 0 8px 22px -10px var(--btn-glow); }
.btn:not(.btn-outline):not(.btn-ghost):hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 1px 0 rgb(255 255 255 / 30%) inset, 0 12px 30px -8px var(--btn-glow); }
.btn:active, .btn:not(.btn-outline):not(.btn-ghost):active { transform: translateY(0) scale(.97); filter: brightness(.96); transition-duration: 60ms; }
.btn-outline:hover, .btn-ghost:hover { transform: translateY(-1px); }
.btn-bet { transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.btn-bet:hover { transform: translateY(-1px); background: rgb(var(--c-gold) / 24%); box-shadow: 0 10px 24px -12px var(--gold-glow); }
.btn-bet:active, .btn-track:active, .tkt-book:active { transform: scale(.97); transition-duration: 60ms; }
.btn-track { transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
/* The best price glows: the one number on a card worth looking at first. */
.tkt-book.best { box-shadow: 0 0 0 1px rgb(var(--c-green) / 55%), 0 8px 22px -10px var(--emerald-glow); }
.chip-edge.ev { text-shadow: 0 0 18px rgb(var(--c-green) / 45%); }
.chip-edge:not(.ev):not(.middle):not(.dfs) { box-shadow: 0 8px 22px -10px var(--emerald-glow); }
.chip-edge.dfs { box-shadow: 0 8px 22px -10px var(--gold-glow); }
/* Chips, tabs and filters answer the pointer. */
.chip-select, .chip-toggle span, .seg button, .alert-preset { transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.seg button:hover { background: var(--surface-3); }
.chip-select:active, .chip-toggle:active span, .seg button:active, .alert-preset:active { transform: scale(.96); transition-duration: 60ms; }
.chip-select.is-on, .chip-toggle input:checked + span, .alert-preset[aria-pressed="true"] { box-shadow: 0 6px 18px -10px var(--emerald-glow); }
/* Cards lift with a soft green rim when you point at them; at rest they stay flat. */
.tkt { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
@media (hover: hover) { .tkt:hover { box-shadow: 0 0 0 1px rgb(var(--c-green) / 22%), 0 18px 40px -24px var(--emerald-glow); } }
/* Live means live: the status dot keeps a steady glow (no pulse). */
.tape-label i, .pill-live::before { box-shadow: 0 0 10px rgb(var(--c-green) / 70%); }
@media (prefers-reduced-motion: reduce) { .btn, .btn-bet, .btn-track, .tkt, .chip-select, .seg button { transition: none; } .btn:hover, .btn-bet:hover, .btn:active { transform: none; } }
/* Help page (2026-10-19). */
.help-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s4); margin-bottom: var(--s6); }
@media (max-width: 760px) { .help-ways { grid-template-columns: minmax(0, 1fr); } }
.help-way { padding: 20px; border-radius: var(--r-card); }
.help-way h2 { margin: 0 0 var(--s2); font: 400 26px/1.1 var(--font-display); }
.help-way textarea { width: 100%; padding: 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-control); background: var(--surface-1); color: var(--ink); font: inherit; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Injury tags and prop hit rates on pick cards (2026-10-19) */
.tkt-insights { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; grid-column: 1 / -1; font-size: 12px; line-height: 1.3; }
.tkt-insights > span { padding: 3px 8px; border-radius: var(--r-pill, 999px); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tkt-insights b { font-weight: 700; }
.tkt-inj b { color: var(--gold); }

/* Phones: the New here line is one compact row with Hide on the right, so the first pick shows sooner (2026-10-20) */
@media (max-width: 760px) {
  .board-welcome.is-slim { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; padding: 12px 14px; }
  .board-welcome.is-slim p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; }
  .board-welcome.is-slim [data-welcome-close] { flex: none; margin: -2px -4px 0 0; padding: 6px 10px; min-height: 32px; }
}

/* Parlay builder (2026-10-20): pick legs on the left, a printed-ticket slip on the right. */
.pb-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: var(--s5); align-items: start; }
.pb-add { display: grid; gap: var(--s4); }
.pb-add .panel { padding: 20px; border-radius: var(--r-card); }
.pb-add h2, .pb-ticket h2 { margin: 0; font: 400 24px/1.1 var(--font-display); }
.pb-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pb-badge { padding: 3px 10px; border-radius: var(--r-pill); background: rgb(var(--c-gold) / 14%); color: var(--gold); font: 600 12px var(--font-body); letter-spacing: .02em; }
.pb-lock p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; }
.pb-tools { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin-bottom: 14px; }
.pb-tools .field { margin: 0; min-width: 150px; }
.pb-find { flex: 1; }
.pb-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }
.pb-game { padding: 12px 14px; border-radius: var(--r-control); background: var(--surface-1); }
.pb-game-name { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.pb-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pb-side { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: var(--r-control); background: var(--surface-3); color: var(--ink); font: 500 14px var(--font-body); text-align: left; cursor: pointer; transition: background var(--dur-2, .2s) ease, transform .12s ease; }
.pb-side b { color: var(--emerald); font-weight: 600; }
.pb-side:hover { background: var(--surface-4); }
.pb-side:active { transform: scale(.97); }
.pb-side:focus-visible, .pb-x:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 14px; }
.pb-form .field { margin: 0; }
.pb-form .field:first-child { grid-column: 1 / -1; }
.pb-form .btn { justify-self: start; }
.pb-msg { grid-column: 1 / -1; margin: 0; min-height: 1em; color: var(--gold); font-size: 14px; }
.pb-empty { padding: 14px; color: var(--ink-3); list-style: none; }

.pb-slip { position: sticky; top: 84px; display: grid; gap: 12px; }
.pb-ticket { position: relative; padding: 20px 20px 22px; border-radius: var(--r-card); background: var(--surface-2); }
.pb-ticket-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pb-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: pbleg; }
.pb-leg { counter-increment: pbleg; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 28px; align-items: center; gap: 8px; padding: 9px 4px 9px 10px; border-radius: var(--r-control); background: var(--surface-1); }
.pb-leg::before { content: counter(pbleg); font: 600 12px var(--font-mono); color: var(--ink-3); }
.pb-leg strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.pb-leg span { display: block; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.pb-leg-odds { font-size: 14px; color: var(--ink); white-space: nowrap; }
.pb-leg-odds small, .pb-v small { color: var(--ink-3); font-size: 11px; }
.pb-x { width: 28px; height: 28px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.pb-x:hover { background: var(--surface-3); color: var(--ink); }
.pb-warn { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-control); background: rgb(var(--c-gold) / 10%); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pb-warn strong { color: var(--gold); }
.pb-warn ul { margin: 6px 0; padding-left: 18px; }
.pb-warn p { margin: 0; }
/* The tear line: dashed rule with two notches cut into the ticket edges. */
.pb-tear { position: relative; height: 0; margin: 18px -20px; border-top: 1px dashed var(--rule-strong); }
.pb-tear::before, .pb-tear::after { content: ''; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--night-0); }
.pb-tear::before { left: -9px; }
.pb-tear::after { right: -9px; }
.pb-hint { margin: 0; color: var(--ink-3); font-size: 14px; }
.pb-big { display: grid; gap: 2px; margin-bottom: 14px; }
.pb-k, .pb-stats dt { font-size: 12px; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; }
.pb-v { font-size: 40px; line-height: 1.05; color: var(--emerald); font-stretch: 87.5%; }
.pb-at { font-size: 14px; color: var(--ink-2); }
.pb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.pb-stats div { padding: 10px; border-radius: var(--r-control); background: var(--surface-1); }
.pb-stats dd { margin: 4px 0 0; font-size: 16px; }
.pb-stats dd .muted { font: 400 12px var(--font-body); }
.pb-stats .is-pos { color: var(--emerald); }
.pb-stats .is-neg { color: var(--loss); }
.pb-stake { display: grid; grid-template-columns: auto minmax(0, 90px) 1fr; align-items: center; gap: 10px; margin: 0 0 14px; }
.pb-stake label { margin: 0; }
.pb-pay { justify-self: end; font-size: 15px; }
.pb-books { width: 100%; margin: 0 0 14px; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.pb-books caption { text-align: left; font-size: 12px; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; padding-bottom: 4px; }
.pb-books th, .pb-books td { padding: 7px 10px; background: var(--surface-1); font-weight: 500; text-align: left; }
.pb-books td { text-align: right; }
.pb-books th { border-radius: var(--r-control) 0 0 var(--r-control); }
.pb-books td:last-child { border-radius: 0 var(--r-control) var(--r-control) 0; }
.pb-books .is-best th, .pb-books .is-best td { background: rgb(var(--c-green) / 12%); color: var(--emerald); }
.pb-result .fine { margin: 8px 0 0; }
@media (max-width: 900px) {
  .pb-grid { grid-template-columns: minmax(0, 1fr); }
  .pb-slip { position: static; }
}
@media (max-width: 560px) {
  .pb-form { grid-template-columns: minmax(0, 1fr); }
  .pb-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pb-stats div:last-child { grid-column: 1 / -1; }
  .pb-v { font-size: 34px; }
  .pb-add .panel, .pb-ticket { padding: 16px; }
  .pb-tear { margin: 16px -16px; }
}
@media (prefers-reduced-motion: reduce) { .pb-side { transition: none; } .pb-side:active { transform: none; } }

/* Exchange depth on pick cards: dollars on offer at the Kalshi or Polymarket price (2026-10-22) */
.tkt-depth { display: block; font-size: 11px; line-height: 1.2; color: var(--ink-3); font-weight: 500; letter-spacing: .01em; }
.tkt-book .nm-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

/* Plan badge on the board (2026-10-22): soft gold pill with a crown, normal case, replaces the boxy caps label */
.pill.pill-premium { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border: 1px solid rgb(var(--c-gold) / 26%); border-radius: var(--r-pill); background: linear-gradient(135deg, rgb(var(--c-gold) / 22%), rgb(var(--c-gold) / 7%)); color: var(--gold); font: 600 13px/1 var(--font-body); letter-spacing: .01em; text-transform: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 0 18px -8px var(--gold-glow); }
.pill.pill-premium .plan-crown { width: 14px; height: 14px; flex: none; }
.pill.pill-premium[hidden] { display: none; }

/* Old-style leftovers (2026-10-22): the Sharp Sheet layer's square, spaced-out ALL CAPS labels, brought in line with the
   soft surfaces look (rounded, normal case). Flags keep their solid gold so "Most popular" still stands out. */
.plan-flag, .ng-ribbon { border-radius: var(--r-pill); padding: 5px 11px; font: 600 12px/1 var(--font-body); letter-spacing: .01em; text-transform: none; box-shadow: 0 6px 18px -8px var(--gold-glow); }
.ng-tag, .pill.pill-live { border-radius: var(--r-pill); padding: 5px 11px; font: 600 12px/1 var(--font-body); letter-spacing: .01em; text-transform: none; }
.ng-tile .lock { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: var(--r-pill); background: rgb(var(--c-gold) / 14%); font: 600 12px/1 var(--font-body); letter-spacing: .01em; text-transform: none; }
.ng-t-name { font: 400 22px/1.1 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink); }
.chip-edge, .chip-edge.dfs { border-radius: var(--r-control); }

/* ===== App look (2026-10-31, owner: match the iPhone app, mobile/src/ui/theme.ts). Apple dark system colors with the
   BetBot green as the one tint, the system font (SF Pro on Apple devices) with tabular digits instead of a code font,
   Instrument Serif titles with one green italic word, pills for buttons and chips, 20px cards, 12px controls, one green
   light at the top of the page (Apple Sports). Gold only for Premium, Pro and the crown. Overrides the layers above. */
:root, :root[data-theme="light"] .theme-dark {
  --c-paper: 0 0 0; --c-sheet: 28 28 30; --c-sheet2: 44 44 46; --c-bone: 255 255 255;
  --c-loss: 255 105 97; --c-info: 100 210 255;
  --night-0: #000; --night-1: #1c1c1e; --night-2: #2c2c2e;
  --ink: #fff; --ink-2: #ababb2; --ink-3: #8e8e93;
  --loss: #ff6961; --push: #8e8e93; --info: #64d2ff; --focus: #3ddc97;
  --rule: rgba(84, 84, 88, .45); --rule-soft: rgba(84, 84, 88, .3); --rule-strong: rgba(84, 84, 88, .75);
  --surface-1: rgb(255 255 255 / 4%); --surface-2: rgb(255 255 255 / 7%); --surface-3: rgb(255 255 255 / 12%); --surface-4: rgb(255 255 255 / 17%);
  --panel-bg: linear-gradient(#1c1c1e, #1c1c1e);
  --glass: rgb(28 28 30 / 88%); --glass-2: rgb(44 44 46 / 92%);
  --emerald-glow: rgb(var(--c-green) / 38%);
}
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-body);
  --r-card: 20px; --r-control: 12px; --r-pill: 999px; --r-ticket: 20px;
}
body { font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.01em; }
html { background: #000; }
:root[data-theme="light"] { background: var(--night-0); }
/* One light: green from the top, nothing else. No grain, grid, crop marks or star canvas. */
body::before { background: radial-gradient(1100px 620px at 50% -200px, rgb(var(--c-green) / 20%), transparent 70%); }
body::after, .bg-sky { display: none; }
.ng-jumbo, .plan, .price-teaser, .tbl-wrap, .calc { background-image: none; }
:root[data-theme="light"] body::before { background: radial-gradient(1100px 620px at 50% -200px, rgb(var(--c-green) / 14%), transparent 70%); }

/* Titles: Instrument Serif, the italic word green (as in the app's "Today's picks"). */
h1 em, h2 em, .display em, .ng-title em { font-style: italic; color: var(--emerald); }
.eyebrow, .ng-eyebrow { font: 600 13px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--emerald); }

/* Former mono and caps labels read like the app: small gray text in normal case. */
.ng-season dt, .ng-j-top, .ng-edge span, .ng-tile .sp, .ng-tile .lock, .ng-standings thead th, .ng-t-name, .side-title,
.guide-nav small, .pb-k, .pb-stats dt, .pb-books caption, .pill, .tkt-sport, .res, .ng-tag {
  letter-spacing: 0; text-transform: none; font-family: var(--font-body);
}
.side-title { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.evt-start, .evt-count { font: 500 13px/1 var(--font-body); }
.evt-head h2 { font: 600 18px/1.2 var(--font-body); letter-spacing: -.01em; }

/* Surfaces: Apple grouped panels. */
.tkt, .panel, .track-strip, .board-welcome, .ng-ticket, .tier-card, .plan, .explainer > div, .alert-preset, .safe-mode span, .faq details,
.notice, .price-teaser, .empty, .calc, .tbl-wrap, .pb-ticket, .help-way { border-radius: var(--r-card); }
.tkt-foot { background: transparent; }
.tkt-book { border-radius: var(--r-control); background: var(--surface-2); border-color: transparent; }

/* Buttons: pills. Green for actions; gold stays only on Premium/Pro buttons. */
.btn, .btn-sm, .btn-lg { border-radius: var(--r-pill); }
.btn { font-weight: 600; letter-spacing: -.01em; }
.btn:not(.btn-outline):not(.btn-ghost) { box-shadow: 0 8px 24px -12px var(--btn-glow); }
.btn:not(.btn-outline):not(.btn-ghost):hover { box-shadow: 0 12px 30px -10px var(--btn-glow); }
.btn-outline { --btn-bg: var(--surface-2); --btn-bd: transparent; }
.btn-outline:hover { --btn-bg: var(--surface-3); --btn-bd: transparent; }
.btn-bet, .tkt a.btn-bet, .book-list li a.btn-bet { border: 0; border-radius: var(--r-pill); background: var(--emerald); color: var(--emerald-ink); padding: 0 16px; font-weight: 650; }
.btn-bet:hover { background: var(--emerald-2); box-shadow: 0 10px 24px -12px var(--emerald-glow); }
.btn-bet.is-join { border: 0; background: var(--surface-3); color: var(--ink); }
.btn-track { border-radius: var(--r-pill); }

/* Chips, tabs, filters: pills; selected = white fill like iOS segmented pills. */
.seg, .tabs, .chip-select, .chip-toggle span, .filters .chip, .alert-preset { border-radius: var(--r-pill); }
.seg { background: var(--surface-2); border: 0; padding: 3px; }
.seg button { border-radius: var(--r-pill); }
.seg-thumb, .seg button[aria-selected="true"], .seg button.is-on, .seg button[aria-pressed="true"] { background: #fff; color: #000; box-shadow: 0 2px 8px rgb(0 0 0 / 30%); }
.seg.has-thumb button[aria-selected="true"] { color: #000; }
.seg button[aria-selected="true"] .muted, .seg button[aria-selected="true"] small, .seg button[aria-selected="true"] span { color: #3a3a3c; }
.chip-select, .chip-toggle span { background: var(--surface-2); border-color: transparent; }
.chip-select.is-on, .chip-toggle input:checked + span { background: rgb(var(--c-green) / 16%); color: var(--emerald); border-color: transparent; }
.tkt-sport { background: var(--surface-3); color: var(--ink); }
.chip-edge, .chip-edge.dfs { border-radius: var(--r-pill); }
.chip-edge.dfs { color: var(--emerald); background: rgb(var(--c-green) / 12%); box-shadow: none; }

/* Inputs: 12px filled fields. */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], input[type="url"], select, textarea, .input {
  border-radius: var(--r-control); background: var(--surface-3); border-color: transparent;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--emerald); }

/* Chrome: header, tape, sidebar and phone tab bar float on blurred black. */
.site-head, .topbar, .app-top { background: rgb(0 0 0 / 72%); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--rule-soft); }
.tape { background: rgb(0 0 0 / 80%); border-bottom-color: var(--rule-soft); }
.side { background: #0b0b0c; border-right-color: var(--rule-soft); }
.tabbar, .bottom-tabs, .mtabs { background: rgb(28 28 30 / 82%); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }

/* Tables: grouped list rows. */
.tbl thead th { background: rgb(0 0 0 / 85%); color: var(--ink-3); font: 600 12px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; }

/* Page titles: no underline bar or full-width rule under them. Pick titles in the UI font, like the app's cards. */
.page-head h1.display::after, .board-head h1.display::after { display: none; }
.page-head, .board-head, .board-top { border-bottom: 0; box-shadow: none; }
.tkt-event, .prose .learn-tkt h4.tkt-event { font: 600 19px/1.2 var(--font-body); letter-spacing: -.015em; }
.chip-edge small { letter-spacing: 0; text-transform: none; font-weight: 600; }
/* Section and card headings in the UI font, bold, like the app ("On the board", "ROI by sport"); the serif stays on page
   titles and the home page's section titles. */
:is(.panel, .tkt, .calc, .explainer, .track-strip, .tbl-wrap, .board-welcome, .notice, .empty, .tier-card, .alert-preset, .faq) :is(h2, h3):not(.display), .plan h3, .tier-card h3, .help-way h2, .pb-add h2, .pb-ticket h2, .spark-wrap h2, .pick-side h2, .pick-similar h2 {
  font-family: var(--font-body); font-weight: 650; letter-spacing: -.02em;
}
/* Phones: wrapped tab rows have no sliding thumb, so the selected tab carries the white fill itself. */
@media (max-width: 760px) {
  .seg.has-thumb button[aria-selected="true"] { background: #fff; color: #000; }
  .tabs-bar .seg, .seg.is-wrapped { border-radius: var(--r-card); }
}
/* Jump links (calculators, odds by sport) and other link pills: filled, no outline. */
.calc-nav a { border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); }
.calc-nav a:hover, .calc-nav a[aria-current="page"] { background: rgb(var(--c-green) / 16%); color: var(--emerald); }
.brand-word b { font-family: var(--font-display); font-style: italic; font-weight: 400; }
/* Home: gold leaves the step numbers and live edges (green means an edge, as in the app); table and tile names, step
   titles and the hero side cards in the UI font. The serif stays on the hero and section titles. */
.ng-node { box-shadow: inset 0 0 0 2px var(--emerald); color: var(--emerald); }
.ng-edge { background: rgb(var(--c-green) / 12%); box-shadow: none; }
.ng-edge b, .ng-tile .e { color: var(--emerald); }
.ng-standings tbody th, .ng-standings tfoot th { font: 650 18px/1.2 var(--font-body); letter-spacing: -.02em; }
.ng-tile b { font: 650 17px/1.25 var(--font-body); letter-spacing: -.02em; }
.ng-side b { font: 650 clamp(20px, 2.2vw, 28px)/1.2 var(--font-body); letter-spacing: -.02em; }
.ng .gold, .ng-season .gold { color: var(--emerald); }
.ng-dot { background: var(--emerald); box-shadow: 0 0 0 4px rgb(var(--c-green) / 18%); }
.ng-steps h3, .ng-tool h3 { font: 650 22px/1.2 var(--font-body); letter-spacing: -.02em; }
.ng-more { font: 600 17px/1 var(--font-body); }
.spark-wrap h2 { font: 650 20px/1.2 var(--font-body); letter-spacing: -.02em; }
.ng-ticket.is-star { background: #1c1c1e; box-shadow: inset 0 0 0 1px rgb(var(--c-green) / 45%); }
.ng-ticket.is-star .ng-t-name { color: var(--emerald); }

/* Picks board (2026-11-01): sportsbook-style density, modeled on DraftKings, OddsJam and Apple Sports odds boxes.
   The price box is the bet button, sides sit two across, the group header carries the sport, steps live on the pick page. */
.evt .tkt.is-board .tkt-head .tkt-sport { display: none; }
.tkt.is-board .tkt-head { padding: 10px 14px 0 16px; min-height: 0; }
.tkt.is-board .tkt-body { padding: 4px 14px 8px 16px; gap: 2px 12px; align-items: center; }
.tkt.is-board .tkt-event { font-size: 17px; }
.tkt.is-board .chip-edge { font-size: 14px; padding: 5px 9px; }
.tkt.is-board .tkt-books.is-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; padding: 0 14px 10px 16px; }
.tkt-book.is-bet { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 2px; align-items: center; min-height: 52px; padding: 8px 10px; color: var(--ink-2); }
.tkt-book.is-bet > img, .tkt-book.is-bet > .book-fallback { grid-row: 1 / span 2; }
.tkt-book.is-bet .who, .tkt-book.is-bet > .nm, .tkt-book.is-bet > .nm-col { grid-row: 1 / span 2; min-width: 0; }
.tkt-book.is-bet .od { grid-column: 3; grid-row: 1; justify-self: end; font-size: 15px; }
.tkt-book.is-bet .go { grid-column: 3; grid-row: 2; justify-self: end; display: inline-flex; align-items: center; gap: 3px; color: var(--emerald); font: 650 11px/1 var(--font-body); }
.tkt-book.is-bet .go svg { width: 11px; height: 11px; }
.tkt-book.is-bet.is-join .go { color: var(--ink-3); }
.tkt-book.is-bet:hover { background: var(--surface-4, var(--surface-3)); }
.tkt-book.is-bet:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tkt.is-board .tkt-foot { min-height: 0; padding: 4px 14px 8px 16px; gap: 14px; background: transparent; font-size: 12px; }
.tkt.is-board .btn-track, .tkt-howto { min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font: 600 13px/1 var(--font-body); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.tkt-howto { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.tkt.is-board .btn-track:hover, .tkt-howto:hover { color: var(--ink); }
@media (pointer: coarse) { .tkt.is-board .btn-track, .tkt-howto { min-height: 40px; } }

/* Board polish (unslop pass, 2026-11-01): green means the best price and nothing else. No team washes, glow lines or
   colored shadows on the card; chips are small rounded boxes, not pills; weights stay at 600 and under. */
.tkt.is-board.has-team, .tkt.is-board { background-image: none; background-color: var(--surface-2); }
.tkt.is-board::after { display: none; }
.tkt.is-board .tkt-type { font-weight: 600; color: var(--ink-3); }
.tkt.is-board .tkt-event { font-weight: 600; }
.tkt.is-board .chip-edge { border-radius: 8px; font-weight: 600; box-shadow: none; }
.tkt.is-board .chip-edge.edge-pulse::after { display: none; }
.evt-head .tkt-sport { border-radius: 6px; font-weight: 500; }
.tkt-book.is-bet, .tkt-book.is-bet.best { box-shadow: none; border: 1px solid transparent; background: var(--surface-3); }
.tkt-book.is-bet.best { border-color: rgb(var(--c-green) / 45%); background: rgb(var(--c-green) / 8%); }
.tkt-book.is-bet.best .od { color: var(--emerald); }
.tkt-book.is-bet .go { color: var(--ink-3); }
.tkt-book.is-bet:hover .go { color: var(--ink); }
.tkt-book.is-bet:hover { transform: none; background: var(--surface-4); }
.tkt-book.is-bet.best:hover { background: rgb(var(--c-green) / 12%); }
.tkt.is-board .tkt-insights { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.tkt.is-board .tkt-inj, .tkt.is-board .tkt-hits { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; color: inherit; }
.tkt.is-board .tkt-inj b { font-weight: 600; color: var(--ink-2); }
.tkt.is-board .tkt-insights > * + *::before { content: " · "; color: var(--ink-3); }
.evt-head .evt-count { color: var(--ink-3); }
.tkt.is-board .tkt-insights { grid-column: 1 / -1; white-space: normal; }
.tkt.is-board .tkt-inj, .tkt.is-board .tkt-hits { white-space: normal; }
.tkt.is-board.is-locked .tkt-foot { display: none; }
.tkt.is-board .tkt-lock.is-row { margin: 0 14px 12px 16px; padding: 8px 8px 8px 12px; border-radius: 12px; }
.tkt.is-board .tkt-lock .btn, .tkt.is-board .tkt-lock button { box-shadow: none; }

/* ===== Lift (2026-11-01, owner: "hard to see"). Text already passed contrast; the layers did not separate (card on
   page, price box on card). Page goes from pure black to a green-black, each layer steps up clearly, every card gets a
   hairline, and the faintest gray gets lighter. Same values as mobile/src/ui/theme.ts. Green stays the only accent. */
:root, :root[data-theme="light"] .theme-dark {
  --c-paper: 16 18 17; --c-sheet: 35 39 37; --c-sheet2: 54 60 56;
  --night-0: #101211; --night-1: #232725; --night-2: #363c38;
  --ink-2: #b9b9c0; --ink-3: #a1a1a6;
  --surface-1: #191c1a; --surface-2: #232725; --surface-3: #363c38; --surface-4: #424944;
  --panel-bg: linear-gradient(#232725, #232725);
  --glass: rgb(35 39 37 / 90%); --glass-2: rgb(54 60 56 / 94%);
  --rule: rgb(255 255 255 / 12%); --rule-soft: rgb(255 255 255 / 8%); --rule-strong: rgb(255 255 255 / 20%);
}
html { background: #101211; }
:root:not([data-theme="light"]) .tkt, :root:not([data-theme="light"]) .panel, :root:not([data-theme="light"]) .tier-card,
:root:not([data-theme="light"]) .plan, :root:not([data-theme="light"]) .tbl-wrap { border: 1px solid var(--rule-soft); }
.tkt.is-board, .tkt.is-board.has-team { background: var(--panel-bg); }
.tbl-wrap.odds-wrap { background: var(--panel-bg); }

/* Board tighten (2026-11-01): the edge sits under the bet so the title stays on one line, the price box is one row
   with the arrow beside the price, and the foot hugs the price boxes. */
.tkt.is-board .tkt-body { grid-template-columns: minmax(0, 1fr); }
.tkt.is-board .tkt-body .chip-edge { grid-row: auto; grid-column: 1; justify-self: start; }
.tkt-book.is-bet { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: auto; min-height: 46px; }
.tkt-book.is-bet > img, .tkt-book.is-bet > .book-fallback, .tkt-book.is-bet .who, .tkt-book.is-bet > .nm, .tkt-book.is-bet > .nm-col { grid-row: 1; }
.tkt-book.is-bet .od { grid-column: 3; grid-row: 1; }
.tkt-book.is-bet .go { grid-column: 4; grid-row: 1; }
.tkt.is-board .tkt-books.is-board { padding-bottom: 2px; }
.tkt.is-board .tkt-foot { padding-top: 0; padding-bottom: 4px; }
.tkt.is-board .tkt-books.is-board { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* An older rule set .btn-outline's background to transparent directly, so its --btn-bg fill never showed. */
.btn-outline { background: var(--surface-3); }
.btn-outline:hover { background: var(--surface-4); }


/* ===== Green nebula (2026-11-01, owner picked a blue wireframe-and-nebula reference, "like this except green").
   Our own art, made by a script (warped wireframe mesh, stars, smoke wisps), in two layers: the mesh and stars sit
   still, the wisps drift and breathe slowly over them. Phone-shaped art under 760px. Stopped by Reduce Motion.
   Dark theme only. */
:root:not([data-theme="light"]) body::before {
  background:
    radial-gradient(1100px 620px at 50% -200px, rgb(var(--c-green) / 16%), transparent 70%),
    radial-gradient(ellipse 46% 75% at 50% 50%, rgb(16 18 17 / 62%), rgb(16 18 17 / 22%) 100%),
    url("/img/bg-nebula-base.webp") center / cover no-repeat;
}
:root:not([data-theme="light"]) body::after {
  display: block; inset: -40px;
  background: url("/img/bg-nebula-wisps.webp") center / cover no-repeat;
  animation: nb-drift 40s ease-in-out infinite alternate, nb-breathe 10s ease-in-out infinite alternate;
}
@media (max-width: 759px) {
  :root:not([data-theme="light"]) body::before { background: radial-gradient(700px 480px at 50% -160px, rgb(var(--c-green) / 16%), transparent 70%), linear-gradient(rgb(16 18 17 / 52%), rgb(16 18 17 / 52%)), url("/img/bg-nebula-m-base.webp") center / cover no-repeat; }
  :root:not([data-theme="light"]) body::after { background-image: url("/img/bg-nebula-m-wisps.webp"); }
}
@keyframes nb-drift { to { transform: translate3d(26px, -18px, 0) scale(1.04); } }
@keyframes nb-breathe { from { opacity: .35; } to { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-theme="light"]) body::after { animation: none; opacity: .55; } }
/* Blend pass: the art is calmest in the middle where text sits, the wisps stay soft, and the footer and the board's
   sticky filter bar fade or frost over it instead of cutting it off with a solid band. */
:root:not([data-theme="light"]) .ftr { background: linear-gradient(180deg, rgb(16 18 17 / 0%), rgb(16 18 17 / 78%) 160px, rgb(16 18 17 / 92%)); }
:root:not([data-theme="light"]) .filters { background: rgb(16 18 17 / 66%); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); }

/* ===== Game card (2026-11-11, owner: "seems separated and not good"). The sport, start time and matchup floated above
   the pick cards, and the row subgrid stretched a one-pick game to match a three-pick neighbor, leaving dead space
   between the books and "I placed this". Now each game is one card: the header sits inside it, its picks stack under a
   hairline, Compare odds closes it, and every card is its own height so the footer always sits right under the books. */
.board { align-items: start; }
.evt { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--surface-2); }
.evt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px 10px 16px; margin: 0; border-bottom: 1px solid var(--rule-soft); }
.evt-head h2 { margin: 0; }
.evt-tickets { display: flex; flex-direction: column; gap: 0; }
.evt .tkt.is-board, .evt .tkt.is-board.has-team { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.evt .tkt.is-board + .tkt.is-board { border-top: 1px solid var(--rule-soft); }
.evt .tkt.is-board .tkt-head { padding-top: 10px; }
.evt .tkt.is-board .tkt-foot { padding-bottom: 10px; }
.evt .tkt.is-board:hover, .evt .tkt.is-board:focus-within { transform: none; box-shadow: none; background: var(--surface-1); }
.evt > .grid-disclosure { padding: 4px 10px 6px; border-top: 1px solid var(--rule-soft); }
.evt > .grid-disclosure .grid-odds { margin: 4px 0 6px; }
@media (max-width: 760px) { .evt-head { padding: 10px 12px 8px 14px; } }
