/* ============================================================
   THE YARD — yard-style.css  v9  "THE BACK PAGE"
   ESPN Magazine × Bloomberg Terminal × luxury watch ad.
   Brutalist condensed type (Bebas Neue display / Oswald sub),
   warm soot base, ONE hot coral accent, flat color blocks,
   visible film grain. NO gradients on cards.
   Data logic untouched — this file is pure presentation.
   ============================================================ */

:root {
  --bg: #2A2520;
  --bg-2: #322D27;
  --bg-3: #3A3530;
  --hairline: rgba(242, 235, 226, 0.13);
  --hairline-strong: rgba(242, 235, 226, 0.3);

  --coral: #FF6B35;
  --coral-dim: rgba(255, 107, 53, 0.13);
  --coral-line: rgba(255, 107, 53, 0.5);

  --cream: #F2EBE2;
  --cream-2: #CBBFAF;
  --muted: #A89D8E;
  --faint: #6E6558;

  --slate: #8FA5BC;
  --slate-bg: #253545;
  --slate-line: rgba(143, 165, 188, 0.32);

  --gold: #D4AF37;
  --silver: #C0C7CE;
  --bronze: #B08D57;

  --win: #7FB069;
  --loss: #C25B4E;
  --amber: #E0A458;

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-sub: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* legacy var aliases used by inline JS styles */
  --text-1: #CBBFAF;
  --text-2: #A89D8E;
  --green: #FF6B35;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  counter-reset: folio;
}

/* ---------- FILM GRAIN + HALFTONE — visible, analog ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(242, 235, 226, 0.05) 1px, transparent 1.4px);
  background-size: 5px 5px;
}
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
::selection { background: var(--coral); color: var(--bg); }
a { color: var(--coral); }

/* ============================================================
   HEADER — the masthead
   ============================================================ */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 3px solid var(--cream);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; align-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}
.brand-name::after { content: "."; color: var(--coral); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-top: 3px;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.meta-date {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.63rem;
}
.meta-chip {
  border: 1px solid var(--hairline-strong);
  color: var(--cream-2);
  padding: 5px 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.meta-generated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: var(--coral-line);
  color: var(--coral);
  font-weight: 700;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--coral);
  border-radius: 50%;
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: heartbeat 1.6s ease-out infinite; }
  @keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    12% { transform: scale(1.5); }
    24% { transform: scale(1); }
    36% { transform: scale(1.3); }
    48% { transform: scale(1); }
    70% { opacity: 0.65; }
  }
}

/* ---------- amber banner ---------- */
.banner-amber {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(224, 164, 88, 0.5);
  border-left: 5px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: rgba(224, 164, 88, 0.06);
}
.banner-icon { flex-shrink: 0; }

/* ============================================================
   SECTION HEADERS — editorial folios: "01 — THE BOARD"
   ============================================================ */
main.wrap { padding-bottom: 64px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 58px 0 18px;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 10px;
  counter-increment: folio;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--cream);
}
.section-title::before {
  content: counter(folio, decimal-leading-zero);
  color: var(--coral);
  margin-right: 12px;
}
.section-sub {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   HERO — the trading card
   ============================================================ */
.hero-section { margin-top: 36px; }

.hero-card {
  position: relative;
  background: var(--bg-2);
  border: 3px solid var(--cream);
  box-shadow: 12px 12px 0 var(--coral);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 88px; height: 88px;
  background: var(--coral);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 30px 34px 24px; }

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-badge {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bg);
  background: var(--coral);
  padding: 6px 14px;
}
.hero-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-right: 70px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.hero-player {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 9.5vw, 8.2rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 16px -3px;
  overflow-wrap: anywhere;
}

.hero-matchline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--cream-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 9px 0;
  margin-bottom: 16px;
}
.hero-matchline .sep { color: var(--faint); }

.team-pill {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--cream);
  padding: 2px 8px;
}

.hero-reasons { list-style: none; }
.hero-reasons li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--cream-2);
}
.hero-reasons li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 13px; height: 3px;
  background: var(--coral);
}

/* stat block — the card back */
.hero-numbers { display: flex; flex-direction: column; border: 1px solid var(--hairline-strong); background: var(--bg); }
.hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
}
.hero-stat .big {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--coral);
  order: 2;
}
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  order: 1;
}
.hero-substat {
  padding: 12px 18px 14px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hero-substat .yscore { color: var(--cream); }

.hero-best-price { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 9px; background: var(--coral-dim); }
.hero-best-price-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-best-price-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--cream);
  line-height: 1;
}
.hero-best-book { font-size: 0.7rem; font-weight: 500; color: var(--muted); }

.hero-bet-btn, .bet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--coral);
  border: none;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
  box-shadow: 4px 4px 0 var(--cream);
}
.hero-bet-btn:hover, .bet-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--cream); }
.hero-bet-btn:active, .bet-btn:active { transform: scale(0.97); box-shadow: 2px 2px 0 var(--cream); }
.bet-btn { margin-top: 14px; }

.hero-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.hero-brandline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--faint);
}
.hero-brandline b { color: var(--coral); font-weight: 700; }

/* ============================================================
   PILLS, BADGES, CHIPS
   ============================================================ */
.verdict {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  margin-right: 6px;
  vertical-align: middle;
  cursor: help;
  position: relative;
  overflow: hidden;
}
/* conviction tiers (replaced the bet-quality verdicts — see yard-app.js) */
.verdict.v-prime  { background: var(--coral); color: var(--bg); }
.verdict.v-strong { background: transparent; color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral-line); }
.verdict.v-live   { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.verdict.v-fringe { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--hairline); }
/* legacy verdict classes kept so an older cached board cannot render unstyled */
.verdict.v-play { background: var(--coral); color: var(--bg); }
.verdict.v-lean { background: transparent; color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral-line); }
.verdict.v-fair { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.verdict.v-pass { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--hairline); }
.verdict.v-none { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--hairline); }

/* top-tier shimmer — the only badge that moves */
@media (prefers-reduced-motion: no-preference) {
  .verdict.v-prime::after, .verdict.v-play::after, .play-badge::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 55%; height: 100%;
    background: rgba(255, 255, 255, 0.35);
    transform: skewX(-22deg);
    animation: shimmer 6s var(--ease) infinite;
  }
  @keyframes shimmer {
    0%, 82% { left: -80%; }
    97%, 100% { left: 160%; }
  }
}

.play-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  background: var(--coral);
  color: var(--bg);
  padding: 3px 8px;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
}

.proj-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(224, 164, 88, 0.45);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
}
.capped-chip {
  display: inline-flex;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(224, 164, 88, 0.45);
  padding: 3px 8px;
  cursor: help;
}
.grade-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  cursor: help;
}
.grade-A { color: var(--bg); background: var(--cream); }
.grade-B { color: var(--cream-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.grade-C { color: var(--faint); box-shadow: inset 0 0 0 1px var(--hairline); }

/* signals */
.signals { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.sig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  font-size: 0.72rem;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: help;
}
.sig-wind, .sig-hard { box-shadow: inset 0 0 0 1px var(--coral-line); background: var(--coral-dim); }

/* ============================================================
   THE BOARD — sportsbook leaderboard
   ============================================================ */
.board-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.lg-item {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: 4px 8px;
  cursor: help;
}

.board { display: flex; flex-direction: column; border-top: 2px solid var(--cream); }

.col-labels {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1.15fr) 70px 70px 90px 108px 56px 22px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px 8px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--faint);
  border-bottom: 1px solid var(--hairline);
}
.col-labels .tr { text-align: right; }
.col-labels .tc { text-align: center; }

.brow { border-bottom: 1px solid var(--hairline); background: transparent; transition: background 0.16s var(--ease); }
.brow:hover { background: var(--bg-2); }
.brow.open { background: var(--bg-2); }

.brow-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1.15fr) 70px 70px 90px 108px 56px 22px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* oversized editorial rank digits */
.rank {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.9;
  color: var(--coral);
  text-align: center;
}
/* metal hairlines for the podium */
.brow.top3 { border-left: 4px solid var(--gold); }
.brow.top3 .brow-head { padding-left: 10px; }
.brow:nth-child(3).top3 .rank { color: var(--gold); }
.brow:nth-child(4).top3 { border-left-color: var(--silver); }
.brow:nth-child(4).top3 .rank { color: var(--silver); }
.brow:nth-child(5).top3 { border-left-color: var(--bronze); }
.brow:nth-child(5).top3 .rank { color: var(--bronze); }

.bcell-player { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pname {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.06rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmeta { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.03em; }

.bcell-match { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bcell-match .vs { font-size: 0.78rem; color: var(--cream-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcell-match .pk { font-family: var(--font-mono); font-size: 0.6rem; color: var(--faint); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bcell-prob {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--cream);
  text-align: right;
  line-height: 1;
}
.bcell-fair { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; color: var(--cream-2); text-align: right; }
.bcell-market { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.best-odds-val { font-family: var(--font-mono); font-weight: 800; font-size: 0.88rem; color: var(--coral); }
.best-book-val { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.no-line { color: var(--faint); font-family: var(--font-mono); }
.bcell-sig { display: flex; }
.bcell-grade { display: flex; justify-content: center; }

.chev { color: var(--faint); transition: transform 0.25s var(--ease); width: 18px; height: 18px; }
.brow.open .chev { transform: rotate(180deg); color: var(--coral); }

/* expand/collapse */
.brow-detail { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.brow.open .brow-detail { max-height: 1400px; }

/* ============================================================
   DETAIL DRAWER — box-score energy
   ============================================================ */
.detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: 8px 18px 26px 18px;
  border-top: 1px dashed var(--hairline-strong);
  margin-top: 4px;
}
.detail-h {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--coral);
  margin-bottom: 9px;
  padding-top: 14px;
}
.mt-16, .mt-18 { margin-top: 4px; }

/* model chain */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 8px 10px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  background: var(--bg);
}
.chain-node.boost { box-shadow: inset 0 0 0 1px var(--coral-line); }
.chain-node.boost .cv { color: var(--coral); }
.chain-node.drag { box-shadow: inset 0 0 0 1px var(--slate-line); }
.chain-node.drag .cv { color: var(--slate); }
.chain-node.result { background: var(--cream); }
.chain-node.result .cv, .chain-node.result .cl { color: var(--bg); }
.chain-node .cv { font-family: var(--font-mono); font-weight: 800; font-size: 0.86rem; color: var(--cream); }
.chain-node .cl { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chain-x { font-family: var(--font-mono); color: var(--faint); font-size: 0.8rem; }

/* key-value ruled table */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hairline); }
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--hairline);
}
.kv .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kv .v { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; color: var(--cream); }
.kv .v.hot { color: var(--coral); }
.kv .v.windy { color: var(--coral); }
.kv .v.gold { color: var(--coral); }

.conf-why { list-style: none; }
.conf-why li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 0.82rem;
  color: var(--cream-2);
}
.conf-why li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 2px; background: var(--amber); }

.plat-tag {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
}
.plat-tag.up { color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral-line); }
.plat-tag.down { color: var(--slate); box-shadow: inset 0 0 0 1px var(--slate-line); }
.plat-tag.flat { color: var(--faint); box-shadow: inset 0 0 0 1px var(--hairline); }

/* spray box — infographic panel */
.spray-box {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  padding: 16px 14px 12px;
}
.spray-box svg { display: block; width: 100%; height: auto; }
.spray-cap {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.spray-cap b { color: var(--cream-2); }

/* spray sector heartbeat on expand — the only diagram motion */
@media (prefers-reduced-motion: no-preference) {
  .brow.open .spray-box path.sector { animation: sectorbeat 1.4s var(--ease) 1; transform-origin: center 85%; }
  @keyframes sectorbeat {
    0% { opacity: 0.3; }
    35% { opacity: 1; }
    55% { opacity: 0.75; }
    100% { opacity: 1; }
  }
}

.detail-right p { font-size: 0.88rem; color: var(--cream-2); line-height: 1.6; }

/* ============================================================
   MINING GEMS — treasure cards
   ============================================================ */
.gems-title::before { color: var(--coral); }
.gems-card { position: relative; }

/* ============================================================
   PARLAY RANDOMIZER
   ============================================================ */
.parlay-title::before { color: var(--coral); }
.parlay-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,107,53,0.05), transparent 60%);
}
.pl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pl-legs-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pl-legselect { display: flex; gap: 6px; }
.pl-legbtn {
  min-width: 38px;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.pl-legbtn:hover { border-color: var(--coral-line); }
.pl-legbtn.on {
  color: var(--bg);
  background: var(--coral);
  border-color: var(--coral);
}
.pl-gemtoggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.pl-gemtoggle:hover { color: var(--cream); }
.pl-gemcheck {
  width: 15px;
  height: 15px;
  accent-color: var(--coral);
  cursor: pointer;
}
.pl-gemcount { color: var(--gold); letter-spacing: 0.02em; }
.pl-gem-tag { margin-left: 5px; font-size: 0.82em; }
.pl-shuffle {
  margin-left: auto;
  padding: 8px 18px;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--coral);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: filter 0.15s var(--ease);
}
.pl-shuffle:hover { filter: brightness(1.08); }
.pl-shuffle:active { transform: translateY(1px); }
.pl-legs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
.pl-leg {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name odds" "meta odds";
  gap: 2px 12px;
  align-items: center;
  padding: 11px 14px;
  background: var(--bg);
}
.pl-leg-name {
  grid-area: name;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
}
.pl-leg-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pl-leg-odds {
  grid-area: odds;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--coral);
}
.pl-leg-book {
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.pl-payout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--coral-line);
  border-radius: 8px;
  background: var(--coral-dim);
}
.pl-combined { display: flex; align-items: baseline; gap: 12px; }
.pl-combined-lbl {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pl-combined-odds {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--coral);
}
.pl-return {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cream);
}
.pl-return b { color: var(--win); }
.pl-note {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--faint);
}
.gems-inner { padding: 0; }
.gems-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.gems-badge {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral);
  box-shadow: inset 0 0 0 2px var(--coral);
  padding: 6px 13px;
}
.gems-disclaimer { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--faint); }

.gems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.gem-card {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--coral);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
/* corner notch — the gem's signature */
.gem-card::before {
  content: "";
  position: absolute;
  top: -2px; right: -2px;
  width: 26px; height: 26px;
  background: var(--coral);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.gem-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 20px; }
.gem-name {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--cream);
}
.gem-meta { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.03em; }
.gem-price-row { display: flex; align-items: baseline; gap: 10px; }
.gem-odds {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.95;
  color: var(--coral);
}
.gem-book { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gem-mathline { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--hairline); padding-top: 8px; }
.gem-mathline b { color: var(--cream); font-weight: 700; }
.gem-mathline .gem-ratio { color: var(--coral); font-size: 0.78rem; }
.gem-why { font-size: 0.78rem; color: var(--cream-2); line-height: 1.5; }
.gem-card .bet-btn { margin-top: 6px; }

/* ============================================================
   FADE ALERT — the cold room
   ============================================================ */
.fade-section { position: relative; }
.fade-title::before { color: var(--slate); }
.fade-card {
  position: relative;
  background: var(--slate-bg);
  border: 1px solid var(--slate-line);
  border-left: 6px solid var(--slate);
  overflow: hidden;
}
/* the stark word behind the content */
.fade-card::before {
  content: "FADE";
  position: absolute;
  top: 50%; right: -8px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 13rem);
  line-height: 1;
  color: rgba(143, 165, 188, 0.07);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.fade-inner { position: relative; padding: 22px 24px 24px; }
.fade-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.fade-badge {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate-bg);
  background: var(--slate);
  padding: 6px 13px;
}
.fade-disclaimer { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: rgba(143, 165, 188, 0.65); }

.fade-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.fade-player-card {
  background: rgba(9, 14, 20, 0.55);
  box-shadow: inset 0 0 0 1px var(--slate-line);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fade-player-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fade-player-name {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  color: #D7E2ED;
}
.fade-team-pill { background: var(--slate); color: var(--slate-bg); }
.fade-player-meta { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(143, 165, 188, 0.75); }
.fade-mults { display: flex; flex-wrap: wrap; gap: 8px; }
.fade-mult {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 82px;
  padding: 8px 10px;
  box-shadow: inset 0 0 0 1px var(--slate-line);
}
.fade-mult .fv { font-family: var(--font-mono); font-weight: 800; font-size: 1rem; color: var(--slate); }
.fade-mult .fl { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(143, 165, 188, 0.6); }
.fade-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(143, 165, 188, 0.8);
  border-top: 1px solid rgba(143, 165, 188, 0.18);
  padding-top: 8px;
}
.fade-price-item b { color: #D7E2ED; }
.fade-price-item b.worse { color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.fade-price-sep { color: rgba(143, 165, 188, 0.5); }
.fade-book { color: rgba(143, 165, 188, 0.6); }

/* ============================================================
   WEATHER WATCH
   ============================================================ */
.weather-strip {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: 16px 20px;
}
.weather-title {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.weather-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-2);
  padding: 6px 0;
  border-top: 1px solid var(--hairline);
  line-height: 1.6;
}

/* ============================================================
   LEDGER
   ============================================================ */
.ledger-card {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: 26px 24px 22px;
}
.ledger-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  text-align: center;
}
.ledger-col { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--hairline); }
.ledger-col:first-child { border-left: none; }
.ledger-num { font-family: var(--font-display); font-size: 2.7rem; line-height: 1; color: var(--cream); }
.ledger-num.win { color: var(--win); }
.ledger-num.loss { color: var(--loss); }
.ledger-num.gold { color: var(--coral); }
.ledger-lbl { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ledger-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 60px;
  border-top: 3px solid var(--cream);
  padding-top: 18px;
  text-align: left;
}
.site-footer p { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.site-footer strong { color: var(--coral); }
.footer-fine { font-family: var(--font-mono); font-size: 0.62rem !important; color: var(--faint) !important; margin-top: 8px; }

/* ============================================================
   TOOLTIP
   ============================================================ */
.tooltip {
  position: fixed;
  z-index: 50;
  max-width: 260px;
  background: var(--cream);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 9px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  box-shadow: 5px 5px 0 rgba(255, 107, 53, 0.9);
}
.tooltip.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   MOBILE — 390px is the primary canvas
   ============================================================ */
.bcell-nums-mobile { display: none; }

@media (max-width: 820px) {
  .wrap { padding: 0 14px; }
  .col-labels { display: none; }

  /* hero fills the first viewport */
  .hero-section { margin-top: 20px; }
  .hero-card { box-shadow: 7px 7px 0 var(--coral); }
  .hero-card::before { width: 60px; height: 60px; }
  .hero-inner { padding: 20px 18px 18px; }
  .hero-main { grid-template-columns: 1fr; gap: 20px; }
  .hero-player { font-size: clamp(3.2rem, 16.5vw, 4.6rem); }
  .hero-date { padding-right: 46px; }
  .hero-bet-btn, .bet-btn { width: 100%; padding: 14px 18px; }

  .section-head { margin: 44px 0 14px; }

  /* board rows → stacked cards */
  .brow-head {
    grid-template-columns: 44px minmax(0, 1fr) auto 20px;
    grid-template-areas:
      "rank player nums chev"
      "rank meta   sigs chev";
    row-gap: 8px;
    padding: 14px 10px;
  }
  .brow.top3 .brow-head { padding-left: 8px; }
  .rank { grid-area: rank; font-size: 2.1rem; }
  .bcell-player { grid-area: player; }
  .bcell-match { grid-area: meta; }
  .bcell-nums-mobile { grid-area: nums; }
  .bcell-sig { grid-area: sigs; justify-content: flex-end; }
  .chev { grid-area: chev; }
  .bcell-prob, .bcell-fair, .bcell-market, .bcell-grade { display: none; }
  .bcell-nums-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-family: var(--font-mono);
    white-space: nowrap;
  }
  .bcell-nums-mobile .mp { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); }
  .bcell-nums-mobile .mf { font-weight: 700; font-size: 0.78rem; color: var(--muted); }
  .bcell-nums-mobile .mb { font-weight: 800; font-size: 0.78rem; color: var(--coral); }
  .bcell-nums-mobile .grade-chip { width: 21px; height: 21px; font-size: 0.66rem; }
  .pname { white-space: normal; }

  .detail-inner { grid-template-columns: 1fr; gap: 14px; padding: 6px 12px 22px; }
  .kv-grid { grid-template-columns: 1fr; }

  .gems-grid, .fade-players-grid { grid-template-columns: 1fr; }
  .fade-inner { padding: 18px 16px 20px; }
  .fade-card::before { font-size: clamp(5rem, 26vw, 8rem); }
  .ledger-cols { grid-template-columns: repeat(2, 1fr); }
  .ledger-col:nth-child(3) { border-left: none; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.6rem; }
  .brand-tag { letter-spacing: 0.22em; }
  .header-inner { padding-top: 12px; padding-bottom: 10px; }
  .meta-date { display: none; }
  .meta-chip { font-size: 0.62rem; padding: 4px 8px; }
  .hero-stat .big { font-size: 2.6rem; }
  .chain-node { min-width: 62px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}


/* doubleheader tag (ported from v12) */
.dh-tag { color: var(--gold, #ffc94a); font-family: var(--font-mono, monospace);
          font-size: 0.68rem; font-weight: 800; cursor: help; }

/* ---- collapsible sections ---- */
.section-head.collapsible { cursor: pointer; user-select: none; }
.section-head.collapsible:hover .section-title { opacity: 0.85; }
.sec-chev { margin-left: 10px; color: var(--text-2, #77839f); font-size: 0.85em;
            display: inline-block; }
section.sec-collapsed > *:not(.section-head) { display: none !important; }
.synth-head { margin-bottom: 10px; }
@media (max-width: 640px) {
  .section-head.collapsible { padding: 6px 0; }   /* fatter tap target on phones */
}

/* ---- header tagline ---- */
.header-tagline {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-2, #9a8f85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 18px;
}
.header-tagline .tg-sep { color: #FF6B35; padding: 0 6px; }
@media (max-width: 1080px) { .header-tagline { letter-spacing: 0.12em; } }
@media (max-width: 860px)  { .header-tagline { display: none; } }

/* ============================================================
   BET SLIP — floating opener, per-pick add buttons, popup
   ============================================================ */
.slip-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,0.4);
  transition: border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.slip-fab:hover { border-color: var(--coral); }
.slip-fab:active { transform: scale(0.97); }
.slip-fab.has { border-color: var(--coral); color: #fff; }
.slip-fab-ico { font-size: 1rem; }
.slip-fab-count {
  min-width: 20px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--bg);
  background: var(--faint);
  border-radius: 999px;
}
.slip-fab.has .slip-fab-count { background: var(--coral); color: #fff; }
@media (max-width: 560px) { .slip-fab-txt { display: none; } }

/* per-pick add button (overlay, top-right of each card/row) */
.brow, .hero-card, .gem-card { position: relative; }
.slip-add {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s var(--ease);
}
.slip-add:hover { color: var(--coral); border-color: var(--coral); }
.slip-add.on { color: #fff; background: var(--coral); border-color: var(--coral); }
.brow .slip-add { top: 50%; right: 34px; transform: translateY(-50%); width: 24px; height: 24px; font-size: 0.9rem; }
.hero-card .slip-add { width: 30px; height: 30px; top: 12px; right: 12px; }

/* popup */
.slip-modal[hidden] { display: none; }
.slip-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.slip-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.slip-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  overflow: hidden;
}
.slip-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--hairline);
}
.slip-panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--cream);
}
.slip-panel-count {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--coral);
  margin-left: 6px;
}
.slip-close {
  width: 32px; height: 32px;
  font-size: 1.4rem; line-height: 1;
  color: var(--muted); background: transparent;
  border: none; border-radius: 8px; cursor: pointer;
}
.slip-close:hover { color: var(--cream); background: var(--hairline); }
.slip-list { overflow-y: auto; padding: 6px 0; }
.slip-empty { padding: 32px 22px; text-align: center; color: var(--faint); font-family: var(--font-body); font-size: 0.85rem; line-height: 1.5; }
.slip-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}
.slip-item-main { min-width: 0; }
.slip-item-name { display: block; font-family: var(--font-sub); font-weight: 600; font-size: 0.98rem; color: var(--cream); }
.slip-item-meta { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--muted); }
.slip-item-odds { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: var(--coral); }
.slip-item-book { font-weight: 400; font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.slip-remove {
  width: 26px; height: 26px; font-size: 1.1rem; line-height: 1;
  color: var(--muted); background: transparent;
  border: 1px solid var(--hairline); border-radius: 7px; cursor: pointer;
}
.slip-remove:hover { color: var(--loss); border-color: var(--loss); }
.slip-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--hairline);
}
.slip-clear {
  align-self: flex-start;
  padding: 7px 14px;
  font-family: var(--font-sub); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--hairline-strong); border-radius: 7px; cursor: pointer;
}
.slip-clear:hover { color: var(--loss); border-color: var(--loss); }
.slip-foot-note { font-family: var(--font-body); font-size: 0.7rem; color: var(--faint); }
