/* Let's Parlay: mobile-first. Dark "night slate" by default, light when the OS asks. */
:root {
  --bg: #0b0f14;
  --bg-2: #111821;
  --card: #151d27;
  --card-2: #1b2531;
  --line: #263241;
  --text: #eef2f6;
  --muted: #93a1b2;
  --accent: #ff7a1a;        /* court orange */
  --accent-ink: #1a0d02;
  --final: #34c27a;
  --prelim: #f2b33d;
  --warn-bg: #3a2a0c;
  --warn-text: #ffd58a;
  --danger-bg: #3b1616;
  --danger-text: #ffb4b4;
  --owner: #8b7cff;
  --radius: 14px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {--bg: #f4f1ec; --bg-2: #ebe6de; --card: #ffffff; --card-2: #f7f4ef; --line: #e2dbd0;
    --text: #15191e; --muted: #5d6673; --accent: #e8600a; --accent-ink: #fff;
    --final: #14864f; --prelim: #a86b00; --warn-bg: #fff2d6; --warn-text: #6b4500;
    --danger-bg: #fde5e5; --danger-text: #8a1f1f; --owner: #5a48e0;
    color-scheme: light;
  }
}
:root[data-theme="light"] {--bg: #f4f1ec; --bg-2: #ebe6de; --card: #ffffff; --card-2: #f7f4ef; --line: #e2dbd0;
    --text: #15191e; --muted: #5d6673; --accent: #e8600a; --accent-ink: #fff;
    --final: #14864f; --prelim: #a86b00; --warn-bg: #fff2d6; --warn-text: #6b4500;
    --danger-bg: #fde5e5; --danger-text: #8a1f1f; --owner: #5a48e0;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body);
  padding-bottom: 56px; /* room for the sticky disclaimer */
}
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: .01em; line-height: 1.1; margin: 0; }
h1 { font-size: 2.1rem; text-transform: uppercase; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.25rem; }
code { font-size: .85em; }

/* top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { white-space: nowrap; font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--text);
  text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.nav a.on { color: var(--text); background: var(--card); }
.viewas { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--owner); }
.viewas select { background: var(--card); color: var(--text); border: 1px solid var(--owner);
  border-radius: 8px; padding: 4px 6px; font: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }
.block, .game { scroll-margin-top: 70px; }
@media (max-width: 480px) {
  .topbar { gap: 6px 10px; padding: 10px 12px; flex-wrap: wrap; }
  .nav { flex-wrap: wrap; }
  .nav a { padding: 6px 8px; }
  .brand { font-size: 1.25rem; }
  .viewas label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  h1 { font-size: 1.8rem; }
}

/* slate header */
.slate-head { padding: 12px 0 8px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; margin: 0 0 4px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: .88rem; }
.badge { display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .85rem; padding: 2px 10px; border-radius: 999px; }
.badge-final { background: color-mix(in srgb, var(--final) 20%, transparent); color: var(--final); border: 1px solid var(--final); }
.badge-prelim { background: color-mix(in srgb, var(--prelim) 18%, transparent); color: var(--prelim); border: 1px solid var(--prelim); }
.badge-started { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }

.banner { border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.banner-prelim { background: var(--warn-bg); color: var(--warn-text); }
.banner-stale { background: var(--card); border: 1px solid var(--line); }
.banner-stale h1, .banner-stale h2 { margin-bottom: 6px; }

.block { margin-top: 26px; }
.section-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); } }
.empty, .hint { color: var(--muted); font-size: .9rem; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-head h3 { text-transform: uppercase; font-size: 1.3rem; }
.chance { text-align: right; line-height: 1; }
.chance-num { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.chance-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.payout { margin: 6px 0 0; font-weight: 600; }
.sgp-note { margin: 8px 0 0; font-size: .82rem; color: var(--warn-text); background: var(--warn-bg); padding: 6px 10px; border-radius: 8px; }
.asof { margin: 12px 0 0; font-size: .78rem; color: var(--muted); }

.legs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.leg { background: var(--card-2); border-radius: 10px; padding: 10px 12px; }
.leg-main { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pname { font-weight: 600; }
.pteam { display: block; font-size: .75rem; color: var(--muted); }
.leg-chance { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.leg-bet { margin: 2px 0 0; }
.leg-bet .bet { font-weight: 600; text-transform: capitalize; }
.leg-bet .book { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.why { margin-top: 6px; font-size: .86rem; }
.why summary { cursor: pointer; color: var(--muted); list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why-tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 0 5px; margin-right: 4px; }
.why[open] summary { color: var(--text); }
.reasons { margin: 6px 0 0; padding-left: 18px; color: var(--text); }
.reasons.big { font-size: 1rem; display: grid; gap: 6px; }
.more { display: inline-block; margin-top: 6px; font-weight: 600; }
.warn { margin: 0 0 6px; font-size: .82rem; font-weight: 600; padding: 5px 9px; border-radius: 7px; }
.warn-q { background: var(--danger-bg); color: var(--danger-text); }
.warn-p { background: var(--warn-bg); color: var(--warn-text); }
.riskadj { margin: -2px 0 6px; font-size: .8rem; color: var(--danger-text); }

/* swipeable best parlays */
.section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.swipe-hint { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.carousel { position: relative; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 400px); gap: 14px;
  align-items: start; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 2px 2px 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
@media (min-width: 760px) { .track { grid-auto-columns: calc((100% - 28px) / 2.25); } }
.slide { scroll-snap-align: start; min-width: 0; }
.carousel.fits .track { overflow-y: hidden; transition: height .25s ease; }
@media (prefers-reduced-motion: reduce) { .carousel.fits .track { transition: none; } }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line); transition: width .2s ease, background .2s ease; }
.dot.on { width: 24px; background: var(--accent); }
.nav-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.nav-btn:disabled { opacity: .35; cursor: default; }
.dot:focus-visible, .nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .dot { transition: none; } }

/* games */
.game { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.game.is-started { opacity: .7; }
.game-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.game-head h3 { font-size: 1.6rem; }
.tip { color: var(--muted); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label { flex: 1 1 0; min-width: 72px; text-align: center; cursor: pointer; padding: 8px 6px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; }
.tabs label small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.tabs input:checked + label { border-color: var(--accent); color: var(--accent); }
.tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel { display: none; width: 100%; margin-top: 6px; }
.tabs input:nth-of-type(1):checked ~ .tab-panel:nth-of-type(1),
.tabs input:nth-of-type(2):checked ~ .tab-panel:nth-of-type(2),
.tabs input:nth-of-type(3):checked ~ .tab-panel:nth-of-type(3),
.tabs input:nth-of-type(4):checked ~ .tab-panel:nth-of-type(4),
.tabs input:nth-of-type(5):checked ~ .tab-panel:nth-of-type(5),
.tabs input:nth-of-type(6):checked ~ .tab-panel:nth-of-type(6) { display: block; }
.addons { margin-top: 14px; }
.addons h4 { font-size: 1.05rem; text-transform: uppercase; }
.addons .hint { margin: 2px 0 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.chip { flex: 0 0 auto; scroll-snap-align: start; display: grid; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 150px; }
.chip-name { font-weight: 600; font-size: .85rem; }
.chip-bet { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.chip-pct { font-family: var(--display); font-weight: 700; color: var(--accent); }
.started-row { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--card); border-radius: 10px; margin-bottom: 6px; }

/* detail */
.back { margin: 0 0 10px; }
.back a { color: var(--muted); text-decoration: none; }
.detail { max-width: 640px; }
.detail h1 { font-size: 2.4rem; margin: 2px 0 4px; }
.detail-bet { font-size: 1.3rem; font-weight: 600; margin: 0; text-transform: capitalize; }
.detail-book { color: var(--muted); margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 6px; }
.stat { background: var(--card-2); border-radius: 10px; padding: 12px; }
.stat-num { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.stat:first-child .stat-num { color: var(--accent); }
.stat-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.detail .section-title { margin-top: 20px; }
.facts { margin: 16px 0 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; }
.otherbooks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.otherbooks a { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 9px 12px; border-radius: 9px;
  background: var(--card-2); color: var(--text); text-decoration: none; }
.otherbooks .pct { font-family: var(--display); font-weight: 700; color: var(--accent); }

/* owner */
.owner-tag { display: inline-block; font-family: var(--body); font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #fff; background: var(--owner); border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.owner-box, .owner-inline { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted);
  border-left: 3px solid var(--owner); padding: 4px 0 4px 10px; }
.audit { margin-top: 16px; max-width: 100%; overflow-x: auto; }
.audit h2 { margin-bottom: 10px; }
.audit h2 small { font-family: var(--body); font-size: .75rem; color: var(--muted); font-weight: 400; }
.audit-reasoning { background: var(--card-2); padding: 10px 12px; border-radius: 8px; font-size: .88rem; }
.kv { border-collapse: collapse; width: 100%; font-size: .85rem; }
.kv th, .kv td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 500; }
.audit pre { white-space: pre-wrap; word-break: break-word; font-size: .75rem; background: var(--card-2); padding: 10px; border-radius: 8px; }
.audit summary { cursor: pointer; margin-top: 8px; font-weight: 600; }

/* footer + persistent disclaimer */
.footer { max-width: 1080px; margin: 30px auto 0; padding: 16px; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); }
.footer .estimates { font-weight: 600; color: var(--text); }
.sticky-disclaimer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 9px 16px; text-align: center;
  font-size: .74rem; color: var(--muted); background: var(--bg-2); border-top: 1px solid var(--line);
  padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
.sticky-disclaimer a { color: var(--text); font-weight: 600; }

/* strength labels, prices, tags */
.pill { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; vertical-align: middle; }
.pill-strong { color: var(--final); background: color-mix(in srgb, var(--final) 14%, transparent); }
.pill-solid { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pill-lean { color: var(--muted); }
.pill-weak { color: #c0392b; background: color-mix(in srgb, #c0392b 10%, transparent); }
.pill-long { color: var(--prelim); background: color-mix(in srgb, var(--prelim) 12%, transparent); white-space: nowrap; }
.tag { display: inline-block; font-size: .68rem; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  color: var(--warn-text); background: var(--warn-bg); vertical-align: middle; }
.card-title { display: grid; gap: 6px; min-width: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.price-box { text-align: right; line-height: 1; }
.price-num { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; }
.price-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.payout-note { font-weight: 400; color: var(--muted); font-size: .85rem; }
.leg-side { display: flex; align-items: center; gap: 8px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
.card-foot .asof { margin: 0; flex: 1 1 200px; }
.chip-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.chip-price { font-size: .78rem; color: var(--muted); }
.otherbooks a.current { outline: 1px solid var(--accent); }

/* by game: shortcuts and collapsible games */
.section-link { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.game-jump { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.game-jump::-webkit-scrollbar { display: none; }
.jump { flex: 0 0 auto; display: grid; text-align: center; text-decoration: none; color: var(--text); font-weight: 600;
  font-size: .9rem; padding: 7px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.jump small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.jump.is-started { opacity: .55; }
details.game > summary { list-style: none; cursor: pointer; }
details.game > summary::-webkit-details-marker { display: none; }
details.game:not([open]) > summary { margin-bottom: 0; }
.game-head { gap: 10px; }
.game-head h3 { margin-right: auto; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin: 0 4px 4px 2px; transition: transform .2s ease; }
details.game[open] .chev { transform: rotate(-135deg); margin-bottom: -2px; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }

/* build tab */
.builder { display: grid; gap: 18px; max-width: 720px; }
.field { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.field legend, .legend { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 0; margin-bottom: 2px; }
.field-hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg input, .chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.seg label, .chips-select label { cursor: pointer; text-align: center; padding: 9px 8px; border-radius: 10px; font-weight: 600;
  font-size: .9rem; background: var(--card-2); border: 1px solid var(--line); }
.seg input:checked + label, .chips-select input:checked + label { border-color: var(--accent); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card-2)); }
.seg input:focus-visible + label, .chips-select input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select label { display: grid; }
.chips-select label small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.builder select, .money input { width: 100%; font: inherit; font-size: 1rem; padding: 9px 10px; border-radius: 10px;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.money { display: flex; align-items: center; gap: 6px; }
.money span { font-weight: 700; color: var(--muted); }
.build-btn { font: inherit; font-family: var(--display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 12px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); }
.build-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#result { scroll-margin-top: 70px; }
.singles .single-payout { list-style: none; margin: -4px 0 6px; padding: 0 12px; font-weight: 600; font-size: .9rem; }
@media (max-width: 420px) { .seg label { font-size: .82rem; padding: 9px 4px; } }

/* results */
.disclosure { margin: 10px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); font-size: .88rem; color: var(--muted); max-width: 70ch; }
.disclosure strong { color: var(--text); }
.record { display: grid; gap: 12px; }
.record-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.record-main > div { background: var(--card-2); border-radius: 10px; padding: 12px; }
.record-num { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; }
.record-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.record-table td, .record-table th { font-variant-numeric: tabular-nums; }
.result-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px;
  border-radius: 10px; background: var(--card); border-left: 3px solid var(--line); }
.result-who { grid-column: 1; min-width: 0; }
.result-bet { grid-column: 1; font-size: .88rem; }
.result-bet .bet { font-weight: 600; text-transform: capitalize; }
.result-bet .book { color: var(--muted); }
.result-out { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; align-content: center; gap: 4px; }
.result-row .owner-inline { grid-column: 1 / -1; }
.actual { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.chip-result { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.chip-hit, .chip-hit-reduced { color: var(--final); }
.chip-miss { color: var(--danger-text); background: var(--danger-bg); border-color: transparent; }
.chip-void, .chip-push, .chip-pending { color: var(--muted); }
.result-hit, .result-hit-reduced { border-left-color: var(--final); }
.result-miss { border-left-color: var(--danger-text); }
.day h3 { margin-right: auto; }
.sub { margin: 14px 0 0; font-size: 1rem; text-transform: uppercase; color: var(--muted); }

.mt { margin-top: 14px; }

/* accounts, forms, visitor */
.acct-links { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.acct-links a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.acct-links a.on { color: var(--text); background: var(--card); }
.acct-links a.join { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.viewas { margin-left: 0; }
.narrow { max-width: 620px; }
.form { display: grid; gap: 10px; }
.form input[type=email], .form input[type=password], .form input[type=text], .form input[type=date], .form select {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 10px;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.form input:focus-visible, .form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.legend small { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .8rem; }
.checks { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.banner-error { background: var(--danger-bg); color: var(--danger-text); }
.banner-ok { background: color-mix(in srgb, var(--final) 14%, transparent); color: var(--text); }
.btn, .btn-ghost { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; }
.btn { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.cta-row form { margin: 0; }
.steps { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; font-size: .78rem; color: var(--muted); }
.steps li { display: grid; gap: 4px; justify-items: center; text-align: center; }
.steps li span { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-weight: 700;
  border: 1px solid var(--line); background: var(--card); }
.steps li.now { color: var(--text); font-weight: 600; }
.steps li.now span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps li.done span { background: color-mix(in srgb, var(--final) 25%, transparent); border-color: var(--final); }
.hero { padding: 18px 0 6px; max-width: 760px; }
.hero h1 { font-size: 2.4rem; text-wrap: balance; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.locked-preview { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
  margin-top: 18px; }
.ghost-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: grid; gap: 10px; filter: blur(2px); opacity: .6; }
.ghost-line { height: 12px; border-radius: 6px; background: var(--card-2); }
.ghost-line.w60 { width: 60%; height: 18px; } .ghost-line.w40 { width: 40%; } .ghost-line.w80 { width: 80%; }
.locked-label { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; }
.locked-label span { font-family: var(--display); font-size: 1.2rem; font-weight: 700; text-transform: uppercase;
  text-align: center; padding: 10px 18px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgb(0 0 0 / .25); max-width: 90%; }
.how-list { display: grid; gap: 10px; padding-left: 20px; max-width: 70ch; }
.plan-name { font-family: var(--display); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; margin: 0; }
.plan-price { margin: 4px 0 8px; color: var(--muted); } .plan-price span { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--text); }
.doc-list { padding-left: 18px; display: grid; gap: 6px; font-size: .9rem; }
.legal h2 { font-size: 1.2rem; margin-top: 18px; }
.legal p { max-width: 70ch; }
@media (max-width: 480px) { .acct-links a { padding: 6px 8px; } .hero h1 { font-size: 1.9rem; } }

/* Sportsbook app picker (picks and Build pages) */
.book-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .75rem 0 0; }
.book-pick label { font-weight: 600; }
.book-pick select { padding: .35rem .5rem; border-radius: 8px; font: inherit; }
.book-pick .field-hint { flex-basis: 100%; margin: 0; }

/* Analyze your parlay */
.own-grade { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Owner accuracy report */
.kv.acc { display: block; overflow-x: auto; white-space: nowrap; }
.kv.acc tr.acc-early td { color: var(--muted); }

/* Pregame alerts: late scratches and line moves */
.warn-alert { border-left: 3px solid var(--danger-text); }
.parlay-alert { margin: 0 0 10px; font-size: .85rem; padding: 8px 10px; }
.tag-alert { background: var(--danger-bg); color: var(--danger-text); }
.beta-tag { font-family: var(--body); font-size: .6rem; font-weight: 700; letter-spacing: .06em; vertical-align: middle; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: #fff; }

/* ---- Oct 27: line tabs, leg counter, Why?, track form, My Tracked Parlays, plans ---- */
.leg-why { margin: 6px 0 0; font-size: .9rem; }
.why .analyzers { margin: 8px 0; padding-left: 18px; }
.why .analyzers li { margin: 3px 0; font-size: .9rem; }
.track { margin-top: 10px; }
.track summary { cursor: pointer; font-weight: 600; }
.track-form { display: grid; gap: 8px; margin-top: 8px; max-width: 360px; }
.track-form label { display: grid; gap: 4px; font-size: .85rem; }
.track-form input { padding: 8px; border: 1px solid var(--line, #d0d5dd); border-radius: 8px; font: inherit; }
.long-shot { margin: 8px 0; }
.option + .option { margin-top: 18px; }
.regen { margin-top: 16px; }
.bets-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.bets-metrics div { display: grid; }
.bets-metrics .num { font-size: 1.6rem; font-weight: 700; }
.bets-metrics .num.up { color: var(--final); }
.bets-metrics .num.down { color: var(--danger-text); }
.bets-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bets-table th, .bets-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line, #e5e7eb); vertical-align: top; }
.bets-table form { display: inline; }
.bets-table button { font-size: .8rem; padding: 3px 8px; }
.bet-status { font-weight: 700; }
.bet-status.won { color: var(--final); }
.bet-status.lost { color: var(--danger-text); }
@media (max-width: 640px) { .bets-table thead { display: none; } .bets-table tr { display: block; border-bottom: 1px solid var(--line, #e5e7eb); padding: 8px 0; }
  .bets-table td { display: block; border: 0; padding: 2px 0; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan.pro { border-color: var(--accent); }
.holding h1 { margin-bottom: 6px; }

/* leg board (Analyze and the Generator): games -> players -> stats -> lines */
.board { display: grid; gap: 14px; }
.your-legs { display: grid; gap: 8px; }
.your-legs-head { margin: 0; }
.picked { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picked:empty { display: none; }
.picked-leg { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card-2)); border: 1px solid var(--line); font-size: .88rem; }
.chip-x { font: inherit; font-size: 1.05rem; line-height: 1; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); }
.chip-x:hover { color: var(--text); background: var(--card); }
.board-msg:empty { display: none; }
.board-game { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.board-game-head { margin: 0; padding: 10px 14px; font-family: var(--display); font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: .04em; background: var(--card-2); border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.board-game-head small { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; color: var(--muted); }
.board-player { border-top: 1px solid var(--line); }
.board-game-head + .board-player { border-top: 0; }
.board-player > summary, .board-stat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.board-player > summary::-webkit-details-marker, .board-stat > summary::-webkit-details-marker { display: none; }
.board-player > summary { padding: 12px 14px; font-weight: 600; }
.board-player > summary::after, .board-stat > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.board-player[open] > summary::after, .board-stat[open] > summary::after { transform: rotate(-135deg); }
.bp-team { color: var(--muted); font-weight: 400; }
.bp-count { color: var(--accent); font-size: .78rem; font-weight: 700; }
.board-player[open] { background: color-mix(in srgb, var(--card-2) 50%, transparent); }
.board-stat { margin: 0 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.board-stat > summary { padding: 10px 12px; font-weight: 600; font-size: .95rem; }
.board-stat > summary small { color: var(--muted); font-weight: 400; }
.board-lines { list-style: none; margin: 0; padding: 0 12px 8px; display: grid; }
.board-lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 6px 0;
  border-top: 1px solid var(--line); }
.board-lines li.bl-group { display: block; padding-top: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); }
.bl-odds { font-weight: 700; font-variant-numeric: tabular-nums; }
.add-line { font: inherit; font-weight: 700; font-size: .88rem; min-width: 76px; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); }
.add-line[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.add-line:disabled { opacity: .4; cursor: not-allowed; }
.add-line:focus-visible, .chip-x:focus-visible, .board summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.own-legs > summary { cursor: pointer; }
.legend-note { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 400; }

/* the live leg counter: pinned above the disclaimer bar, always in view */
.sticky-stack { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.sticky-stack .sticky-disclaimer { position: static; }
.leg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, calc((100vw - 1080px) / 2 + 16px));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
.leg-counter { margin: 0; font-weight: 600; }
.leg-counter strong { font-family: var(--display); font-size: 1.35rem; }
.leg-counter.full strong { color: var(--accent); }
.leg-fill { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .leg-fill { display: block; font-size: .78rem; line-height: 1.2; } }
.leg-bar .build-btn { font-size: 1.05rem; padding: 9px 18px; white-space: nowrap; }
body:has(.leg-bar) { padding-bottom: 130px; }

/* Our Picks tiers: Safest, Balanced, Bigger payout (standard lines, then milestones) */
.tier-set { margin-bottom: 22px; }
.tier-set-head { margin: 0 0 8px; font-size: .95rem; font-weight: 700; }
.tier-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 10px; }
.tier-tab { font: inherit; display: grid; gap: 2px; text-align: center; padding: 8px 6px; border-radius: 10px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text); }
.tier-tab small { color: var(--muted); font-size: .74rem; }
.tier-tab.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card-2)); }
.tier-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-label { margin: 0 0 2px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tier-safest { color: var(--final); }
.tier-balanced { color: var(--accent); }
.tier-bigger-payout { color: var(--prelim); }
.tier-note { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }

/* Generator: Build by Legs / Build by Target Payout */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.by-tabs label { font-size: .95rem; padding: 11px 8px; }
[data-by-show][hidden], .seg label[hidden] { display: none; }

/* My Tracked Parlays: Model Comparison */
.compare { margin-bottom: 18px; display: grid; gap: 12px; }
.compare-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.compare-head .section-title { margin: 0; }
.compare-range { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.compare-range a { padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.compare-range a.on { background: var(--accent); color: var(--accent-ink); }
.compare-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.compare-score > div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--card-2); }
.compare-score .num { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.compare-score .vs { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .8rem; }
.compare-summary { margin: 0; font-weight: 600; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; padding: 7px 6px; border-top: 1px solid var(--line); }
.compare-table td:nth-child(2), .compare-table td:nth-child(3) { white-space: nowrap; }
.compare-table th { color: var(--muted); font-weight: 600; font-size: .8rem; border-top: 0; }
.tag-you { color: var(--final); border-color: var(--final); }
.owner-notes { margin: 6px 0 0; padding-left: 18px; font-size: .78rem; color: var(--muted); }
.owner-notes li { margin: 2px 0; }
