/* Data Lines. One accent, quiet surfaces, color only where it means something:
   market (spread / total / team total), result (won / lost), and qualified. */
:root {
  /* Money Badger: black, white and green. Red is kept only for losses. */
  color-scheme: dark;
  --bg: #070807;
  --bg-2: #0c0e0c;
  --surface: #111412;
  --surface-2: #171b18;
  --surface-3: #1f2420;
  --line: #262c27;
  --line-soft: #1b201c;
  --text: #f4f7f4;
  --text-2: #b7c0b9;
  --muted: #7e8880;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, .14);
  --accent-ink: #04140a;
  --good: #22c55e;
  --good-soft: rgba(34, 197, 94, .14);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, .13);
  --warn: #e5e7e5;
  --warn-soft: rgba(255, 255, 255, .08);
  --m-spread: #4ade80;
  --m-total: #f4f7f4;
  --m-team: #a3e635;
  --series-1: #22c55e;
  --series-2: #f4f7f4;
  --baseline: #5b655d;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px -16px rgba(0, 0, 0, .8);
  --radius: 14px;
  --radius-sm: 10px;
  --display: "Barlow Condensed", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 62px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f6;
  --bg-2: #eef0ee;
  --surface: #ffffff;
  --surface-2: #f3f5f3;
  --surface-3: #e7ebe7;
  --line: #dde2dd;
  --line-soft: #ebeeeb;
  --text: #0a0c0a;
  --text-2: #364038;
  --muted: #667068;
  --accent: #15803d;
  --accent-soft: rgba(21, 128, 61, .1);
  --accent-ink: #ffffff;
  --good: #15803d;
  --good-soft: rgba(21, 128, 61, .11);
  --bad: #c53030;
  --bad-soft: rgba(197, 48, 48, .1);
  --warn: #2a302b;
  --warn-soft: rgba(10, 12, 10, .07);
  --m-spread: #15803d;
  --m-total: #0a0c0a;
  --m-team: #4d7c0f;
  --series-1: #16a34a;
  --series-2: #0a0c0a;
  --baseline: #a3aca5;
  --shadow: 0 1px 2px rgba(10, 20, 12, .05), 0 6px 18px -12px rgba(10, 20, 12, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------ header + navigation */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.topbar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.mark { width: 36px; height: 36px; border-radius: 10px; display: block; }
.wordmark { font: 800 22px/1 var(--display); letter-spacing: .05em; white-space: nowrap; }
.wordmark span { color: var(--accent); margin-left: 5px; }
.wordmark em { font-style: normal; color: var(--text-2); margin-left: 5px; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted);
  font: 600 14px/1 var(--sans); padding: 9px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-3); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.league { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.league button { border: 0; background: transparent; color: var(--text-2); font: 700 13px/1 var(--sans); padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.league button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.theme-toggle { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.theme-toggle svg { width: 17px; height: 17px; fill: currentColor; }

/* ------------------------------------------------ summary strip (replaces the old hero) */
.summary { padding-top: 22px; padding-bottom: 6px; }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.eyebrow { font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.lede { color: var(--muted); font-size: 13px; max-width: 640px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.tile .label { font: 600 11.5px/1.2 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; display: flex; align-items: center; gap: 6px; }
.tile .value { font: 700 28px/1.1 var(--sans); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.tile .detail { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.tile .bar { height: 4px; border-radius: 999px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.tile .bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.tile:first-child { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.tile:first-child .bar i { background: var(--good); }

/* ------------------------------------------------ sections */
main { padding-top: 22px; padding-bottom: 56px; }
.block { margin-bottom: 36px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h2 { font: 700 24px/1.15 var(--sans); }
.block-head .muted { margin-top: 4px; font-size: 14px; max-width: 720px; }
.subtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; margin: 4px 0 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
/* White buttons so the sub-tabs stand out from everything else; the selected one gets a green ring and bar. */
.subtabs button { position: relative; display: flex; align-items: center; gap: 12px; border: 2px solid #d9dfda; background: #ffffff; color: #0a0c0a;
  padding: 14px 16px; border-radius: 11px; cursor: pointer; text-align: left; min-width: 0; overflow: hidden;
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .45); transition: border-color .15s, transform .15s, box-shadow .15s; }
.subtabs button svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #15803d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.subtabs .st-text { display: grid; gap: 3px; min-width: 0; }
.subtabs .st-label { font: 800 17px/1.1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0a0c0a; }
.subtabs .st-meta { font: 600 12.5px/1.2 var(--sans); color: #4b544d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtabs .st-meta:empty { display: none; }
.subtabs button:hover { transform: translateY(-2px); border-color: #22c55e; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55); }
.subtabs button[aria-selected="false"] .st-label { color: #2a302b; }
.subtabs button[aria-selected="true"] { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(34, 197, 94, .55), 0 6px 18px -6px rgba(0, 0, 0, .55); }
.subtabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #16a34a; }
.section-head.first { margin-top: 0; padding-top: 0; border-top: 0; }
tr.day-row td { background: var(--surface-2); padding-top: 9px; padding-bottom: 9px; }
tr.day-row:hover { background: none; }
.day-rec { font: 700 12px/1 var(--sans); }
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 65%); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.today-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.today-title { min-width: 0; }
.today-kicker { font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 8px; }
.today-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font: 800 40px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.today-count { font: 700 13px/1 var(--sans); text-transform: none; letter-spacing: 0; padding: 7px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.today-count:empty { display: none; }
.today-sub { margin-top: 8px; font-size: 14.5px; color: var(--text); max-width: 680px; }
.today-rule { margin-top: 4px; font-size: 13px; color: var(--muted); max-width: 680px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap;
  margin: 34px 0 14px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.block-head + .section-head { margin-top: 6px; padding-top: 0; border-top: 0; }
@media (max-width: 720px) {
  .subtabs { gap: 4px; padding: 4px; }
  .subtabs button { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 11px 4px; }
  .subtabs .st-text { justify-items: center; }
  .subtabs .st-label { font-size: 13.5px; }
  .subtabs .st-meta { font-size: 11px; }
  .plays-table .gapcol { display: none; }
  .plays-table td, .plays-table th { white-space: normal; }
  .plays-table td:nth-child(3) .mkt { display: none; }
  .today-head { padding: 18px 18px 18px 22px; }
  .today-head h2 { font-size: 30px; }
}
.section-head h3 { font: 700 19px/1.2 var(--sans); }
.section-head .muted { margin-top: 4px; font-size: 13.5px; max-width: 680px; }
.sub-head { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.sub-head h2 { font-size: 19px; }
.sub-title { font-size: 16px; font-weight: 700; margin: 22px 0 4px; }
.sub-title + .muted { margin: 0 0 12px; }
.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.filter-row .sep { margin-left: 6px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer;
  font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: 9px; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--surface-3); color: var(--text); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chip .count { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 6px; font-size: 11px; background: var(--surface-3); color: var(--text-2); }
.chip[aria-selected="true"] .count { background: rgba(0, 0, 0, .18); color: inherit; }
.chip.dir { min-width: 74px; }
.field { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; }
.field svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.field input { border: 0; background: transparent; color: var(--text); font: 500 14px var(--sans); padding: 8px 0; width: 150px; outline: none; }
.select select { appearance: none; -webkit-appearance: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 9px;
  font: 600 13px var(--sans); padding: 9px 30px 9px 12px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel + .panel, .panel + .two-col, .two-col + .panel, .record-grid + .panel { margin-top: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.two-col > *, .record-grid > *, .games > *, .picks > *, .rules > * { min-width: 0; }
.empty { color: var(--muted); padding: 36px 0; text-align: center; grid-column: 1 / -1; }

details.explain { margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.explain summary { cursor: pointer; list-style: none; padding: 12px 16px; font: 600 14px var(--sans); color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
details.explain summary::-webkit-details-marker { display: none; }
details.explain summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); transition: transform .2s; }
details.explain[open] summary::after { transform: rotate(45deg); }
.qual-explain { padding: 0 16px 14px; font-size: 13.5px; color: var(--text-2); display: grid; gap: 8px; }

/* ------------------------------------------------ badges and small marks */
.mkt { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.mkt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mkt.m-spread { color: var(--m-spread); background: color-mix(in srgb, var(--m-spread) 14%, transparent); }
.mkt.m-total { color: var(--m-total); background: color-mix(in srgb, var(--m-total) 14%, transparent); }
.mkt.m-team { color: var(--m-team); background: color-mix(in srgb, var(--m-team) 14%, transparent); }
.badge { font: 700 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.live { background: var(--bad-soft); color: var(--bad); }
.badge.qual { background: var(--good-soft); color: var(--good); }
.badge.new { background: var(--accent-soft); color: var(--accent); }
.pill { display: inline-block; font: 700 11px/1 var(--sans); padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
.pill.win { background: var(--good-soft); color: var(--good); }
.pill.loss { background: var(--bad-soft); color: var(--bad); }
.blind { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 7px;
  background: var(--warn-soft); color: var(--warn); cursor: help; white-space: nowrap; vertical-align: middle; }
.why { font: 700 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
.why.qualified { background: var(--good-soft); color: var(--good); }
.src { font: 700 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.src.live { background: var(--good-soft); color: var(--good); }
.clv { font: 700 11px/1 var(--sans); padding: 5px 7px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); }
.clv.pos { background: var(--good-soft); color: var(--good); }
.clv.neg { background: var(--bad-soft); color: var(--bad); }
.lock { font: 700 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.info { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  font: 700 10.5px/1 var(--sans); display: inline-grid; place-items: center; cursor: help; padding: 0; flex: none; vertical-align: middle; }
.info:hover, .info:focus-visible { color: var(--accent-ink); border-color: var(--accent); background: var(--accent); outline: none; }
.gap-badge { font: 700 11px/1 var(--sans); padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.gap-badge.t1, .gap-badge.t2, .gap-badge.t3 { background: var(--accent-soft); color: var(--accent); }
.gap-num { font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.gap-num.t1, .gap-num.t2, .gap-num.t3 { background: var(--accent-soft); color: var(--accent); }
.tier-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--accent); }
.tier-swatch.t1 { opacity: .45; } .tier-swatch.t2 { opacity: .7; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }

/* ------------------------------------------------ top picks */
.pick-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.pick { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, transform .15s; }
.pick:hover { border-color: var(--surface-3); transform: translateY(-1px); }
.pick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.pick.won { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.pick.lost { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.rank { font: 700 11px/1 var(--sans); padding: 5px 8px; border-radius: 7px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.rank.top1 { background: var(--accent); color: var(--accent-ink); }
.rank.top3 { background: var(--accent-soft); color: var(--accent); }
.pick.top1 { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.pick.top3 { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pick-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.pick-when { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.pick-call { font: 700 30px/1.05 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.pick-game { font-size: 13.5px; color: var(--text-2); margin-top: -4px; }
.pick-game b { color: var(--text); font-weight: 600; }
.pick-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--line-soft); border: 1px solid var(--line-soft); }
.pick-stats > div { background: var(--surface-2); padding: 8px 10px; min-width: 0; }
.pick-stats dt { font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pick-stats dd { margin: 5px 0 0; font: 700 15px/1.1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The model's number, the market's number and the gap each read differently. */
.pick-stats > div.model { background: color-mix(in srgb, var(--accent) 13%, var(--surface-2)); box-shadow: inset 3px 0 0 var(--accent); }
.pick-stats .model dt { color: var(--accent); display: flex; align-items: center; gap: 5px; }
.pick-stats .model dd { font: 700 21px/1 var(--display); letter-spacing: .02em; color: var(--accent); }
.dt-mark { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.pick-stats > div.vegas-line { background: var(--surface-3); }
.pick-stats .vegas-line dt { color: var(--muted); }
.pick-stats .vegas-line dd { font: 500 15px/1.15 var(--sans); color: var(--text); }
.pick-stats .gap dd { color: var(--text); font-weight: 800; }
.pick-foot { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pick-foot b { color: var(--text); font-weight: 600; }
.pick-foot .pill, .pick-foot .clv { margin-left: auto; }
.pick-foot .pill + .clv { margin-left: 0; }
.pick-score { font-size: 12.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 7px; padding: 4px 8px; font-variant-numeric: tabular-nums; }

details.why-box { margin: 2px -16px -16px; border-top: 1px solid var(--line-soft); }
details.why-box summary { cursor: pointer; list-style: none; padding: 11px 16px; font: 600 13px var(--sans); color: var(--accent); display: flex; align-items: center; justify-content: space-between; }
details.why-box summary::-webkit-details-marker { display: none; }
details.why-box summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); transition: transform .2s; }
details.why-box[open] summary::after { transform: rotate(45deg); }
.why-body { padding: 0 16px 16px; font-size: 13px; color: var(--text-2); display: grid; gap: 8px; }
.why-body b { color: var(--text); font-weight: 600; }
.why-body b.pos { color: var(--good); }
.why-body ul { margin: -2px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.why-body ul li::marker { color: var(--good); }
.why-body ul.con li::marker { color: var(--muted); }
.why-body ul.inj li.help::marker { color: var(--good); }
.why-body ul.inj li.hurt::marker { color: var(--bad); }
.inj-note { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); font-style: italic; }

/* ------------------------------------------------ qualified rules */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
#qualRules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 14px; }
#qualRules .rules { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
@media (max-width: 900px) { #qualRules { grid-template-columns: minmax(0, 1fr); } }
.rule-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.rule-group-title .mkt { font-size: 12.5px; padding: 6px 10px; }
.rule { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rule-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-text { font-size: 13.5px; color: var(--text-2); }
.rule-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.rule-stats > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.rule-stats span { display: block; font: 600 10.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rule-stats b { display: block; font: 700 16px/1.2 var(--sans); margin-top: 4px; font-variant-numeric: tabular-nums; }
.rule-stats em { font-style: normal; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rule-stats em.good { color: var(--good); }
.rule-note { font-size: 12.5px; color: var(--warn); }
.rule-empty { font-size: 13px; color: var(--muted); padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ------------------------------------------------ record cards */
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.rcard { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rcard h3 { font: 600 11.5px/1.25 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.rcard .big { font: 700 28px/1.1 var(--sans); margin-top: 8px; font-variant-numeric: tabular-nums; }
.rcard .big small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rcard p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.rcard.main { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rcard.small .big { font-size: 22px; }
.rcard.wide { grid-column: 1 / -1; }
.hists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.hists.n1 { grid-template-columns: minmax(0, 420px); }
.hists h4 { margin: 0 0 4px; font-size: 12.5px; color: var(--text-2); }
.streak { display: flex; flex-wrap: wrap; gap: 3px; max-width: 100%; }
.streak i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.streak i.W { background: var(--good); } .streak i.L { background: var(--bad); } .streak i.P { background: var(--muted); }

/* ------------------------------------------------ tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
table.data th { color: var(--muted); font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; user-select: none; background: var(--surface); position: sticky; top: 0; }
table.data th.l, table.data td.l { text-align: left; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.compact td, table.compact th { padding: 8px; font-size: 12.5px; }
th[aria-sort="descending"]::after { content: " ↓"; }
th[aria-sort="ascending"]::after { content: " ↑"; }
td.strong { font-weight: 700; color: var(--text); }
#vegasTable tr.group th { border-bottom: 0; padding-bottom: 0; }
#vegasTable th.grp { text-align: center; color: var(--text-2); border-bottom: 2px solid var(--line); }
#vegasTable .split { width: 14px; padding: 0; border-bottom-color: transparent; }
#vegasTable tr.tier1 td:first-child, #vegasTable tr.tier2 td:first-child, #vegasTable tr.tier3 td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* ------------------------------------------------ charts */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
#accQualSeasons svg, #qualSeasons svg { max-width: 620px; }
.chart text { fill: var(--muted); font: 500 11.5px var(--sans); }
.chart .lbl { fill: var(--text-2); font-weight: 600; }
.chart .val { fill: var(--text); font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.power-row:hover rect.hit { fill: color-mix(in srgb, var(--text) 4%, transparent); }
.tooltip { position: fixed; z-index: 60; pointer-events: none; opacity: 0; transform: translate(-50%, -110%); background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: opacity .12s; max-width: 280px; }
.tooltip.on { opacity: 1; }
.tooltip b { display: block; margin-bottom: 2px; }

/* ------------------------------------------------ slate game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.game { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s; }
.game:hover { border-color: var(--surface-3); }
.game::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--away) 0 50%, var(--home) 50% 100%); opacity: .85; }
.game.qualified { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.game-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; font-size: 12.5px; color: var(--muted); gap: 8px; }
.game-top .venue { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-mid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 16px 6px; }
.teams { display: grid; gap: 8px; min-width: 0; }
.team { display: grid; grid-template-columns: 5px auto 1fr auto; align-items: center; gap: 10px; min-width: 0; }
.team .stripe { width: 5px; height: 30px; border-radius: 3px; background: var(--c); }
.team .abbr { font: 700 24px/1 var(--display); letter-spacing: .02em; min-width: 52px; }
.team .name { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .pct { font: 600 13.5px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.team.fav .pct { color: var(--text); }
.line-box { text-align: right; padding-left: 14px; border-left: 1px solid var(--line-soft); }
.line-box .k { font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.line-box .v { font: 700 28px/1 var(--display); margin-top: 4px; white-space: nowrap; }
.line-box .v span { font-size: 17px; color: var(--text-2); margin-right: 4px; }
.line-box .lb + .lb { margin-top: 10px; }
.vegas { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 16px 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--surface-2); font-size: 12.5px; }
.vegas .vk { font: 700 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.vegas .vv { color: var(--text); font-weight: 600; }
.vegas .vs { color: var(--text-2); }
.vegas .vs b { color: var(--text); }
.vegas .gaps { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.score { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 16px 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; }
.score.in { box-shadow: inset 3px 0 0 var(--bad); }
.score .sc { color: var(--text-2); }
.score .sc b { color: var(--text); font-weight: 700; }
.score .sd, .score .miss { color: var(--muted); font-size: 12px; }
.wp { position: relative; padding: 4px 16px 14px; }
.wp-bar { display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.wp-bar i { display: block; height: 100%; }
.wp-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.game details { position: relative; border-top: 1px solid var(--line-soft); }
.game summary { cursor: pointer; list-style: none; padding: 10px 16px; font: 600 13px var(--sans); color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
.game summary:hover { color: var(--text); }
.game summary::-webkit-details-marker { display: none; }
.game summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); transition: transform .2s; }
.game details[open] summary::after { transform: rotate(45deg); }
.factors { padding: 0 16px 14px; display: grid; gap: 8px; }
.factor { display: grid; grid-template-columns: 104px 1fr 78px; align-items: center; gap: 10px; font-size: 12.5px; }
.factor .fl { color: var(--muted); }
.factor .fv { text-align: right; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.dbar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); }
.dbar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.dbar i { position: absolute; top: 1px; bottom: 1px; border-radius: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.fact { font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 5px 9px; border-radius: 7px; }
.fact b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------ footer */
.foot { color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.foot p { margin: 4px 0; }

/* ------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .tabs button span { display: none; }
  .tabs button { padding: 9px 10px; }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .hists { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Phones: sections move to a bottom tab bar */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* backdrop-filter on the header would trap the fixed tab bar inside it */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .lede, .tile .detail, .tile .bar, .tile .info, .tile:nth-child(4) { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile .label { font-size: 10px; letter-spacing: .05em; }
  .topbar { gap: 10px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 0; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabs button { flex: 1; flex-direction: column; gap: 4px; padding: 6px 2px; font-size: 10.5px; border-radius: 8px; min-width: 0; }
  .tabs button span { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabs button svg { width: 20px; height: 20px; }
  .tabs button[aria-selected="true"] { background: transparent; color: var(--accent); }
  .wordmark { font-size: 19px; display: grid; grid-template-columns: auto auto; justify-content: start; line-height: 1; }
  .wordmark em { grid-column: 1 / -1; margin: 3px 0 0; font-size: 10.5px; letter-spacing: .32em; color: var(--muted); }
  .block-head h2 { font-size: 21px; }
  .summary { padding-top: 16px; }
  .tile { padding: 10px 12px; }
  .tile .value { font-size: 22px; margin-top: 4px; }
  .tile .value small { font-size: 12px; }
  .picks, .games, .rules { grid-template-columns: minmax(0, 1fr); }
  .pick-call { font-size: 27px; }
  .factor { grid-template-columns: 86px 1fr 70px; }
  .field input { width: 110px; }
  .line-box .v { font-size: 25px; }
}
@media (max-width: 380px) {
  .league button { padding: 8px 10px; }
  .rule-stats b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
