/* Self-hosted (SIL OFL) so visitors' browsers never contact Google. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #14171f;
  --card: #1b1f29;
  --card-border: #333949;
  --text: #e7e4da;
  --text-muted: #8b8a82;
  --accent: #c89b3c;
  --accent-glow: rgba(200, 155, 60, 0.16);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --yellow: #eab308;
  --yellow-bg: rgba(234, 179, 8, 0.1);
  --orange: #f97316;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark span { color: var(--accent); }

.lede {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 46ch;
}

/* Homepage hero */
.hero {
  position: relative;
  padding: 2.5rem 0 2.75rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.hero-court {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 55%;
  opacity: 0.5;
  pointer-events: none;
}

.hero-eyebrow {
  position: relative;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  position: relative;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero-accent { color: var(--accent); }

.hero-sub {
  position: relative;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  position: relative;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.hero-btn--primary { background: var(--accent); color: #1b1305; }
.hero-btn--primary:hover { background: color-mix(in srgb, var(--accent) 100%, white 15%); }

.hero-btn--secondary { background: transparent; color: var(--text); border: 1px solid var(--card-border); }
.hero-btn--secondary:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 640px) {
  .hero-title { font-size: 1.8rem; max-width: none; }
  .hero-court { display: none; }
  .hero-btn { flex: 1; justify-content: center; text-align: center; }
}

.dossier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.dossier-main { min-width: 0; }

.dossier-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

/* Account bar */
.account-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.account-info {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tier-badge.tier-free { background: var(--card-border); color: var(--text-muted); }
.tier-badge.tier-paid { background: var(--accent-glow); color: var(--accent); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.link-btn:hover { text-decoration: underline; }

.signup-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.signup-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.signup-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: none;
}

.signup-msg:not(:empty) { display: block; }
.signup-msg.success { color: var(--green); }
.signup-msg.error { color: var(--red); }

.signup-toggle {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.signup-toggle .link-btn { font-size: 0.82rem; }

/* Form */
.form-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background: var(--accent);
  color: #1b1305;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: color-mix(in srgb, var(--accent) 100%, white 15%); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Loading */
.loading {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.loading.active { display: block; }

.spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.75rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
#results { display: none; }
#results.active { display: block; }

.result-header {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.headshot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--bg);
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.result-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}

.result-header .matchup {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Probability bars */
.prob-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.prob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.prob-label {
  font-weight: 600;
  font-size: 0.9rem;
  width: 100px;
}

.prob-bar-wrap {
  flex: 1;
  height: 32px;
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 1rem;
  position: relative;
}

.prob-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.prob-bar.over { background: linear-gradient(90deg, #22c55e, #16a34a); }
.prob-bar.under { background: linear-gradient(90deg, #ef4444, #dc2626); }

.prob-pct {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.3rem;
  width: 65px;
  text-align: right;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.stat-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-box .value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.lean-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.lean-badge.over { background: var(--green-bg); color: var(--green); }
.lean-badge.under { background: var(--red-bg); color: var(--red); }
.lean-badge.neutral { background: var(--yellow-bg); color: var(--yellow); }

.confidence-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.confidence-badge.high { background: var(--green-bg); color: var(--green); }
.confidence-badge.medium { background: var(--yellow-bg); color: var(--yellow); }
.confidence-badge.low { background: var(--red-bg); color: var(--orange); }

/* Factors & Breakdown */
.section-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.section-card h3,
.side-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.factor-item {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--card-border);
}

.factor-item:last-child { border-bottom: none; }

.factor-item.positive { color: var(--green); }
.factor-item.negative { color: var(--red); }
.factor-item.neutral { color: var(--text-muted); }

/* Shot zone exploitation court */
.court-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.court-left {
  flex: 0 1 340px;
  min-width: 0;
}

.court-svg {
  display: block;
  width: 100%;
}

.zone-shape {
  fill: transparent;
  stroke: rgba(20, 23, 31, 0.35);
  stroke-width: 1.5;
  transition: fill 0.3s, fill-opacity 0.3s;
}

.court-lines rect,
.court-lines circle,
.court-lines line,
.court-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.zone-ball-marker {
  color: transparent;
  transition: color 0.3s;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

#teamBadgeCircle {
  fill: transparent;
  stroke: transparent;
  transition: fill 0.3s, stroke 0.3s;
}

#teamBadgeLogo {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

.court-team-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  min-height: 1.2em;
  transition: color 0.3s;
}

.zone-ball-sign {
  font-size: 18px;
  font-weight: 800;
  fill: #0f1117;
  stroke: #fff;
  stroke-width: 2px;
  paint-order: stroke;
  pointer-events: none;
}

/* Sized for the SVG's own 490-unit coordinate space, not screen pixels --
   the court typically renders at ~55-65% of that, so a "normal" 11-13px
   caption needs to be specified around 20px here to still read clearly
   once scaled down (verified against the actual rendered size, not
   assumed). */
.zone-ball-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: currentColor;
  stroke: rgba(15, 17, 23, 0.85);
  stroke-width: 3.5px;
  paint-order: stroke;
  pointer-events: none;
}

.court-legend {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.court-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
}

.court-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.court-legend-text {
  flex: 1;
  min-width: 0;
}

.court-legend-text strong {
  color: var(--text);
}

.court-legend-head {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.court-legend-row {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  column-gap: 0.65rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.court-legend-row:last-child { margin-bottom: 0; }

.court-legend-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.court-rank-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  background: var(--card-border);
  color: var(--text-muted);
  vertical-align: middle;
}

.court-rank-badge.best { background: var(--green-bg); color: var(--green); }
.court-rank-badge.worst { background: var(--red-bg); color: var(--red); }

.court-hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.empty-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Sidebar */
.side-block {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
}

.dossier-side .side-block:last-child { border-bottom: none; padding-bottom: 0; }

.side-block > .empty-hint { margin-bottom: 0.6rem; }

/* Tonight's Games */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.game-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--card-border);
}

.game-row:last-child { border-bottom: none; padding-bottom: 0; }

.game-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.game-matchup {
  font-size: 0.9rem;
  font-weight: 500;
}

.game-arena {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Popular Bets: full-width showcase */
.showcase {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.showcase h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.showcase > .empty-hint { margin-bottom: 1rem; }

/* About page */
.about-hero {
  max-width: 720px;
  margin: 2rem 0 3rem;
}

.about-hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-hero-sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

.about-page {
  max-width: 720px;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.about-section-lede {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 1.25rem;
}

.origin-story p {
  color: var(--text);
  line-height: 1.65;
  max-width: 62ch;
}

.origin-story p + p {
  margin-top: 1rem;
}

.origin-story .pull-line {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
  max-width: 52ch;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  margin: 1.5rem 0;
}

.about-section-note {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 62ch;
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.example-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.example-card .factor-chain {
  overflow-x: auto;
}

.example-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.line-compare {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.line-compare-item {
  flex: 1;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
}

.line-compare-label {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.line-compare-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.line-compare-item.lean { border-color: rgba(34, 197, 94, 0.4); background: var(--green-bg); }
.line-compare-value.over { color: var(--green); }
.line-compare-value.under { color: var(--red); }

/* Contrast grid: "this is / this isn't" */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contrast-col {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.contrast-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--card-border);
}

.contrast-col-title.is { color: var(--green); }
.contrast-col-title.isnt { color: var(--red); }

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contrast-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
  color: var(--text);
  font-size: 0.92rem;
}

.tick {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  width: 1.1rem;
  text-align: center;
}

.tick.plus { color: var(--green); }
.tick.minus { color: var(--red); }

.about-closing {
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.92rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 640px) {
  .about-hero-title { font-size: 1.5rem; }
  .contrast-grid { grid-template-columns: 1fr; }
  .headline-driver { flex-direction: column; align-items: flex-start; }
  .headline-impact { border-left: none; padding-left: 0; border-top: 1px solid var(--card-border); padding-top: 0.75rem; width: 100%; }
}

/* Blog list */
a.blog-list-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

a.blog-list-item:hover {
  border-color: var(--accent);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0.6rem;
}

a.blog-list-item p:last-child {
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 62ch;
}

/* Blog post */
.blog-post-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.blog-post .blog-date {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.blog-body {
  color: var(--text);
  line-height: 1.7;
  max-width: 62ch;
}

.blog-body p { margin-bottom: 1rem; }
.blog-body h2 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.blog-body h3 { font-size: 1.02rem; font-weight: 600; margin: 1.25rem 0 0.6rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1rem 1.25rem; }
.blog-body li { margin-bottom: 0.35rem; }
.blog-body a { color: var(--accent); }
.blog-body code { font-family: var(--font-mono); background: var(--bg); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85em; }
.blog-body blockquote { border-left: 2px solid var(--accent); padding-left: 1rem; color: var(--text-muted); margin: 1rem 0; }

.popular-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.popular-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  color: inherit;
  flex: 0 0 calc((100% - 2.25rem) / 4);
  min-width: 108px;
  scroll-snap-align: start;
  transition: border-color 0.15s, transform 0.15s;
}

.popular-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.popular-card:hover .popular-player { color: var(--accent); }

.popular-headshot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.popular-headshot-empty { display: block; }

.popular-player {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
  line-height: 1.2;
}

.popular-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Biggest Edges Tonight */
/* Biggest Edges table */
.edge-table-wrap {
  overflow-x: auto;
  margin: 0 -1.25rem;
  padding: 0 1.25rem 0.25rem;
}

.edge-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 640px; }

.edge-table th {
  text-align: left;
  padding: 0 0.85rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

.edge-table th.num, .edge-table td.num { text-align: right; font-family: var(--font-mono); }

.edge-table td {
  padding: 1.1rem 0.85rem;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}

.edge-table tr:last-child td { border-bottom: none; }
.edge-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.edge-row { cursor: pointer; }
.edge-row:hover .player-name { color: var(--accent); }

.edge-td-player { min-width: 240px; max-width: 320px; }

.player-cell { display: flex; align-items: flex-start; gap: 0.6rem; }

.player-headshot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--card);
  border: 1px solid var(--card-border);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.player-headshot-empty { display: inline-block; }
.player-main { min-width: 0; }

.player-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.player-name { font-weight: 600; color: var(--text); transition: color 0.15s; }

.injury-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--red);
  background: var(--red-bg);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
}

.hit-value { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.hit-value.hit-strong { color: var(--green); }
.hit-value.hit-mid { color: var(--text); }
.hit-value.hit-weak { color: var(--red); }
.hit-value .hit-pct { font-weight: 700; font-size: 1rem; }
.hit-value .hit-frac { color: var(--text-muted); font-size: 0.72rem; }

.matchup-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.matchup-prop {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.matchup-opp { font-size: 0.9rem; color: var(--text); white-space: nowrap; }

.edge-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.edge-value {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

.edge-value.up { color: var(--green); }
.edge-value.down { color: var(--red); }

/* Schedule fatigue tags in the Tonight sidebar */
.fatigue-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  vertical-align: middle;
}

.season-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--yellow);
  background: var(--yellow-bg);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* Fatigue Watch */
.fatigue-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fatigue-row {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.fatigue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.fatigue-team {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.fatigue-vs { font-size: 0.8rem; color: var(--text-muted); }

.fatigue-meter {
  height: 5px;
  border-radius: 3px;
  background: var(--card-border);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.fatigue-meter-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
}

.fatigue-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* What Powers The Model */
.model-input-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.model-input-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.model-input-factor {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
}

.model-input-body { min-width: 0; }

.model-input-team {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.model-input-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Track Record */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.track-date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 5.5rem;
}

.track-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.track-player { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.track-detail { font-size: 0.78rem; color: var(--text-muted); }

.track-hit {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

.track-hit-correct { color: var(--green); background: var(--green-bg); }
.track-hit-incorrect { color: var(--red); background: var(--red-bg); }
.track-hit-push { color: var(--text-muted); background: var(--card-border); }

/* News Feed */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  color: inherit;
}

.news-item:last-child { border-bottom: none; }

.news-source {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.news-title {
  font-size: 0.88rem;
  color: var(--text);
}

.news-item:hover .news-title { text-decoration: underline; }

/* Component Breakdown: headline driver + condensed factor chain + conviction */
.headline-driver {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(139, 138, 130, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.headline-driver.up { background: rgba(34, 197, 94, 0.07); border-color: rgba(34, 197, 94, 0.35); }
.headline-driver.down { background: rgba(239, 68, 68, 0.07); border-color: rgba(239, 68, 68, 0.35); }

.headline-body { flex-grow: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.headline-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.headline-driver.up .headline-label { color: var(--green); }
.headline-driver.down .headline-label { color: var(--red); }

.headline-text { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.4; }

.headline-annotation { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; font-weight: 400; }

.headline-impact {
  flex-shrink: 0;
  text-align: center;
  padding-left: 1.5rem;
  border-left: 1px solid var(--card-border);
}

.headline-impact-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--text); }
.headline-impact-value.up { color: var(--green); }
.headline-impact-value.down { color: var(--red); }

.headline-impact-unit { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); margin-top: 0.25rem; letter-spacing: 0.04em; }

.factor-chain-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.factor-chain {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  overflow-x: auto;
}

.chain-step { flex: 1 0 60px; text-align: center; border-radius: 6px; padding: 0.1rem 0; }
.chain-step-label { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.03em; margin-bottom: 0.25rem; }
.chain-step-value { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--text); }

.chain-step.up .chain-step-value { color: var(--green); }
.chain-step.down .chain-step-value { color: var(--red); }
.chain-step.neutral .chain-step-value { color: var(--text-muted); }
.chain-step.final { flex: 1.1; }
.chain-step.final .chain-step-label,
.chain-step.final .chain-step-value { color: var(--accent); font-weight: 700; }

.chain-step.headline:not(.final) {
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.chain-step.headline:not(.final) .chain-step-label { color: var(--green); font-weight: 600; }

.chain-arrow { flex-shrink: 0; }

.conviction-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(139, 138, 130, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.conviction-banner.positive { background: rgba(34, 197, 94, 0.07); border-color: rgba(34, 197, 94, 0.3); color: var(--green); }
.conviction-banner.negative { background: rgba(239, 68, 68, 0.07); border-color: rgba(239, 68, 68, 0.3); color: var(--red); }
.conviction-banner.mixed { color: var(--yellow); }

.conviction-icon { flex-shrink: 0; color: inherit; }
.conviction-headline { font-size: 0.95rem; font-weight: 600; color: inherit; }
.conviction-detail { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

/* Recent Form chart */
.chart-wrap { width: 100%; }

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.gl-bar { transition: opacity 0.15s; }
.gl-bar-group:hover .gl-bar { opacity: 0.8; }

.gl-bar-over { fill: var(--green); }
.gl-bar-under { fill: var(--red); }
.gl-bar-push { fill: var(--text-muted); }

.gl-value-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-muted);
}

.gl-axis-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-muted);
}

.gl-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.gl-line-label-bg { fill: var(--card); }

.gl-line-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--accent);
}

.game-log-summary {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.game-log-summary strong { color: var(--text); }

/* Error */
.error-msg {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}

.error-msg.active { display: block; }

/* Responsive */
@media (max-width: 860px) {
  .dossier { grid-template-columns: 1fr; }
  .dossier-side { position: static; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .popular-card { flex-basis: calc((100% - 0.75rem) / 2); }
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 0.9rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-row input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--accent); }
.consent-row a { color: var(--accent); }

.site-footer {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--card-border);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.site-footer p { margin: 0 0 0.6rem; max-width: 90ch; }
.site-footer strong { color: var(--text); }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-bottom: 0.9rem; }
.site-footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer-links a:hover { color: var(--accent); }
.site-footer-copy { margin-top: 0.4rem; }

.legal-page { max-width: 720px; margin: 2rem auto 0; }
.legal-page h1 { font-size: 1.9rem; margin: 0 0 0.3rem; }
.legal-page h2 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.65; font-size: 0.95rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin-bottom: 0.35rem; }
.legal-page a { color: var(--accent); }
.legal-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.legal-summary {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 0.5rem;
}
.legal-summary p { margin: 0; color: var(--text); }
