/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B3A6B;
  --red:    #C8102E;
  --cream:  #FAFAF7;
  --white:  #FFFFFF;
  --dark:   #111111;
  --gray:   #555555;
  --lgray:  #AAAAAA;
  --panel:  #F0F2F5;

  --col-nba: #E63946;
  --col-bil: #2196F3;
  --col-col: #4CAF50;
  --col-wl:  #FF9800;
  --col-321: #9C27B0;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'Courier New', monospace;

  --max-w: 1100px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  font-size: 1.05rem;
  overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.display-headline {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
}

.section-headline {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

.prose {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2a2a2a;
}

.prose p { margin-bottom: 1.1rem; }

.callout {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--serif);
  color: var(--navy);
  border-left: 4px solid var(--red);
  padding: 0.6rem 0 0.6rem 1.2rem;
  margin: 1.5rem 0;
  line-height: 1.35;
}

/* ── Intro Section (dark, continuation of hook) ──────────────── */
#intro {
  background: var(--navy);
  padding-bottom: 0;
}

#intro .section-headline { color: white; }
#intro .prose { color: rgba(255,255,255,0.85); }

.intro-pull-quote {
  font-size: 2rem;
  font-family: var(--serif);
  font-weight: 700;
  color: white;
  text-align: center;
  max-width: 780px;
  margin: 60px auto;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 600ms ease;
}

.intro-pull-quote.is-visible { opacity: 1; }

.intro-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 40px 0;
}

.intro-what-follows {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 0.75rem;
}

.intro-step-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  gap: 1.5rem;
  transition: opacity 150ms ease;
}

.intro-step-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.intro-step-row:hover { opacity: 0.75; }

.intro-step-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-shrink: 0;
}

.intro-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  min-width: 1em;
}

.intro-step-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.intro-step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  text-align: right;
}

.intro-gradient-out {
  height: 80px;
  background: linear-gradient(to bottom, var(--navy), var(--white));
  margin-top: 2.5rem;
}

.stat-big {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  font-family: var(--sans);
  line-height: 1;
  color: var(--red);
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(3rem, 8vw, 6rem) 0; }

section:nth-child(odd)  { background: var(--cream); }
section:nth-child(even) { background: var(--white); }

/* ── Section 1: Hook ─────────────────────────────────────────── */
#hook {
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

#hook::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,16,46,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hook-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.hook-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  max-width: 850px;
  margin-bottom: 1.8rem;
}

.hook-headline em {
  font-style: italic;
  color: var(--red);
  text-shadow: 0 0 40px rgba(200,16,46,0.5);
}

.hook-sub {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hook-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hook-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hook-stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.hook-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.scroll-cue {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
  z-index: 100;
  pointer-events: none;
  transition: opacity 80ms linear;
}

.scroll-cue svg { opacity: 0.5; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Section 2: Draft Explainer ─────────────────────────────── */
#draft-explainer { background: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

#lottery-canvas {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.lottery-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.legend-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: #e8edf5;
  color: var(--navy);
  font-weight: 600;
}

/* ── Section 3: The Prize ────────────────────────────────────── */
#the-prize { background: var(--navy); color: var(--white); }
#the-prize .section-headline { color: var(--white); }
#the-prize .prose { color: rgba(255,255,255,0.8); }

.player-reveal {
  position: relative;
  margin: 2rem 0;
}

.silhouette-wrap {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.player-card.visible {
  opacity: 1;
  transform: none;
}

.player-silhouette {
  width: 90px;
  height: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
}

.player-silhouette svg {
  width: 100%;
  height: 100%;
}

.player-silhouette.revealed {
  background: rgba(200,16,46,0.2);
  border: 2px solid var(--red);
}

.player-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.player-card.revealed .player-label { color: var(--red); }

.pick-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--sans);
}

#pick-value-chart {
  width: 100%;
  height: 260px;
  margin: 2rem 0;
}

/* ── Section 4: Balance Scale ────────────────────────────────── */
#balance {
  background: var(--cream);
}

.balance-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) { .balance-wrap { grid-template-columns: 1fr; } }

/* ── CSS balance scale ── */
.scale-scene {
  position: relative;
  height: 230px;
  width: 100%;
  margin: 0 auto 1rem;
}
.scale-post {
  position: absolute;
  top: 32px;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  background: var(--navy);
  opacity: 0.75;
  border-radius: 3px;
}
.scale-post::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 10px;
  background: var(--navy);
  border-radius: 5px;
  opacity: 0.9;
}
.scale-beam-wrap {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 300px;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: center 6px;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.scale-beam {
  height: 12px;
  background: var(--navy);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scale-arm {
  position: absolute;
  top: 0;
  z-index: 3;
}
.scale-arm.left  { left:   0; transform: translateX(-50%); }
.scale-arm.right { left: 100%; transform: translateX(-50%); }
.scale-hanging {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center top;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scale-cord {
  width: 2px;
  height: 38px;
  background: #bbb;
  flex-shrink: 0;
}
.scale-pan {
  width: 84px;
  padding: 10px 6px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  text-align: center;
}
.pan-pts {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  transition: opacity 0.35s ease;
}
.compete-pts { color: var(--navy); }
.tank-pts    { color: var(--red); }
.pan-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.compete-lbl { color: var(--navy); }
.tank-lbl    { color: var(--red); }

.slider-wrap {
  margin: 1.5rem 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

#prob-slider,
#pick-value-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

#prob-slider::-webkit-slider-thumb,
#pick-value-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}

.eu-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.eu-box {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--panel);
  text-align: center;
  transition: all 0.4s ease;
}

.eu-box.winning {
  background: var(--navy);
  color: white;
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(27,58,107,0.3);
}

.eu-box-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.eu-box.winning .eu-box-label { color: rgba(255,255,255,0.6); }

.eu-box-value {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--sans);
  color: var(--navy);
  line-height: 1;
}

.eu-box.winning .eu-box-value { color: var(--red); }

.tipping-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.4rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: #e8f5e9;
  color: #2e7d32;
  transition: background 0.4s ease, color 0.4s ease;
}

.tipping-banner.tanking {
  background: #fde8ea;
  color: var(--red);
}

.tipping-banner.competing {
  background: #e8f5e9;
  color: #2e7d32;
}

.balance-verdict {
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
  color: var(--gray);
  min-height: 3rem;
  transition: opacity 0.25s ease;
}
.balance-verdict strong {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.15rem;
}
.balance-verdict.fading { opacity: 0; }
.balance-verdict.competing strong { color: var(--navy); }
.balance-verdict.tanking strong { color: var(--red); }

/* ── Section 5: Season Trajectory ───────────────────────────── */
#trajectory { background: var(--white); }


#trajectory-chart {
  width: 100%;
  height: 360px;
  margin: 2rem 0;
}

.trajectory-tooltip {
  position: fixed;
  background: var(--navy);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1000;
  line-height: 1.45;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.trajectory-tooltip.visible { opacity: 1; }

.tt-effort {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.tt-tanking { color: var(--red); }
.tt-competing { color: #4ade80; }

/* ── Section 6: Reform Explorer ─────────────────────────────── */
#reforms {
  background: #0f1523;
  color: white;
}

#reforms .section-headline { color: white; }
#reforms .prose { color: rgba(255,255,255,0.75); max-width: 700px; }

.reform-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}

.reform-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}

.reform-tab:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

.reform-tab.active {
  border-color: var(--tab-color, white);
  background: var(--tab-color, white);
  color: white;
}

.reform-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  min-height: 340px;
}

@media (max-width: 700px) { .reform-panel { grid-template-columns: 1fr; } }

.reform-description {
  display: none;
}

.reform-description.active { display: block; }

.reform-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: white;
}

.reform-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.2rem;
}

.reform-key {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  border-left: 3px solid var(--tab-color, var(--red));
}

.reform-diagram { display: none; }
.reform-diagram.active { display: block; }
.reform-diagram .reform-321-subtitle,
.reform-diagram .reform-321-reveal { display: none; }
.reform-diagram.active .reform-321-subtitle,
.reform-diagram.active .reform-321-reveal { display: block; }

.reform-diagram svg, .reform-diagram canvas {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ── COLA Pudding walkthrough ────────────────────────────────── */
.reform-panel.cola-active {
  grid-template-columns: 1fr;
}
.reform-panel.cola-active .reform-diagram[data-reform="cola"] {
  display: none !important;
}

.cola-p-lead {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin: 0 0 1rem;
  max-width: 560px;
}

.cola-p-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 1rem;
}
.cola-p-dot {
  height: 8px;
  width: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}
.cola-p-dot.active {
  width: 26px;
  background: white;
}

.cola-p-step {
  margin-bottom: 1.1rem;
  transition: opacity 0.2s ease;
}
.cola-p-step.fading { opacity: 0; }

.cola-p-headline {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: white;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cola-p-prose {
  font-size: 0.855rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.cola-p-chart {
  margin-bottom: 0.75rem;
}

.cola-p-bar-row { margin-bottom: 3px; }

.cola-p-bar-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 5px;
}

.cola-p-bar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cola-p-bar-record {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-variant-numeric: tabular-nums;
}

.cola-p-track {
  position: relative;
  height: 46px;
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  overflow: hidden;
}

.cola-p-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.cola-p-count {
  color: white;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  padding-right: 11px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.cola-p-zero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 13px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.28;
  pointer-events: none;
}

.cola-p-mid {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 3px 0;
}

.cola-p-mid-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
  border-radius: 1px;
}
.cola-p-mid-line-tank   { background: #c05c5c; }
.cola-p-mid-line-honest { background: #4a7fa5; }

.cola-p-mid-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

.cola-p-mid-convergence {
  background: #4d9e8b;
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 99px;
  white-space: nowrap;
  animation: cola-pop-in 0.4s 0.85s both cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cola-pop-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.cola-p-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.25rem;
}

.cola-p-nav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  font-family: var(--sans);
  transition: color 0.2s;
}
.cola-p-nav-btn:hover:not(:disabled) { color: white; }
.cola-p-nav-btn:disabled { opacity: 0.2; cursor: default; }
.cola-p-nav-next { color: white !important; font-weight: 700; }

.cola-p-counter {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* Reference card */
.cola-p-ref {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  transition: opacity 0.5s ease;
}

.cola-p-ref-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 4px;
}

.cola-p-ref-sub {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
  margin: 0 0 0.9rem;
  max-width: 400px;
}

.cola-p-ref-rows {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cola-p-ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 0.75rem;
}
.cola-p-ref-row span:first-child {
  font-family: 'SF Mono','Fira Code','Fira Mono',monospace;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  min-width: 44px;
}
.cola-p-ref-row span:nth-child(2) {
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex: 1;
}
.cola-p-ref-row span:last-child {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  min-width: 110px;
  text-align: right;
}
.cola-p-ref-accent span:first-child { color: #ff7070; }
.cola-p-ref-accent span:nth-child(2) { color: #ff7070; }
.cola-p-ref-dim { opacity: 0.35; }

.cola-p-ref-note {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.3);
  margin: 0.75rem 0 0;
  max-width: 480px;
}

/* Two-column layout: bars left, table right */
.cola-p-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.cola-p-left {
  flex: 1;
  min-width: 0;
}
.cola-p-right {
  flex: 1;
  min-width: 0;
}
.cola-p-right .cola-p-ref {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Dormant chart state on step 0 */
.cola-p-chart-dormant .cola-p-track {
  background: rgba(255,255,255,0.05) !important;
}
.cola-p-chart-dormant .cola-p-fill,
.cola-p-chart-dormant .cola-p-zero {
  opacity: 0 !important;
}
.cola-p-chart-dormant .cola-p-bar-label,
.cola-p-chart-dormant .cola-p-bar-record {
  opacity: 0.12 !important;
}

/* Bracket ] annotation between tracks */
.cola-p-mid-bracket {
  width: 12px;
  align-self: stretch;
  border-right: 1.5px solid rgba(255,255,255,0.22);
  border-top: 1.5px solid rgba(255,255,255,0.22);
  border-bottom: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 0 5px 5px 0;
  flex-shrink: 0;
}

/* Pulsing CTA on step 0 */
@keyframes cola-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(77,158,139,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(77,158,139,0); }
  100% { box-shadow: 0 0 0 0   rgba(77,158,139,0); }
}
.cola-p-nav-cta {
  background: #4d9e8b !important;
  color: white !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  animation: cola-pulse 1.6s infinite ease-out !important;
}

/* Done state */
.cola-p-nav-done {
  color: #4d9e8b !important;
  font-weight: 700 !important;
  cursor: default;
  opacity: 1 !important;
}

/* COLA cumulative losses row */
.cola-p-cumul {
  align-items: center;
  gap: 0.6rem;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cola-p-cumul strong { font-weight: 700; }
.cola-p-cumul-sep { color: rgba(255,255,255,0.22); }

/* COLA final-step popup annotation */
.cola-p-popup {
  margin-top: 10px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  opacity: 0;
  transition: opacity 0.9s ease 0.4s;
}
.cola-p-popup-num {
  font-weight: 700;
  font-size: 20px;
  color: #c05c5c;
}
.cola-p-popup-result {
  display: block;
  font-weight: 600;
  color: rgba(255,255,255,0.32);
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* ── Section 7: Scrollytelling ──────────────────────────────── */
#results {
  background: var(--cream);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.sticky-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

@media (max-width: 700px) {
  .sticky-container { grid-template-columns: 1fr; }
  .sticky-graphic { position: relative; top: 0; height: auto; margin-bottom: 2rem; }
}

.sticky-graphic {
  position: sticky;
  top: 8vh;
  height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem 1rem 1rem;
}

.sticky-graphic svg { width: 100%; height: 100%; overflow: visible; }

.scroll-steps {
  padding: 0 var(--gutter);
}

.step {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  opacity: 0.35;
  transition: opacity 0.4s;
}

.step.is-active { opacity: 1; }

.step-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lgray);
  margin-bottom: 0.4rem;
}

.step-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.7rem;
  font-family: var(--serif);
}

.step-body {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 400px;
}

.step-rate {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: 0.5rem 0;
}

/* ── Section 8: Draft Fairness ──────────────────────────────── */
#fairness { background: var(--white); }

.fairness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 700px) { .fairness-grid { grid-template-columns: 1fr; } }

#tau-chart, #efficiency-chart {
  width: 100%;
  height: 300px;
}

.chart-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.8rem;
}

.metric-explainer {
  background: var(--panel);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.8rem;
  line-height: 1.55;
}

.metric-explainer strong { color: var(--navy); }

/* ── Section 9: LLM ─────────────────────────────────────────── */
#llm { background: var(--cream); }

.llm-sticky-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

@media (max-width: 700px) { .llm-sticky-container { grid-template-columns: 1fr; } }

.llm-sticky-graphic {
  position: sticky;
  top: 8vh;
  height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem 1rem 1rem;
}

.llm-sticky-graphic svg { width: 100%; height: 100%; overflow: visible; }

#llm-chart { width: 100%; height: 100%; overflow: visible; }

/* ── Section 10: Conclusion ─────────────────────────────────── */
#conclusion { background: var(--navy); color: white; }
#conclusion .section-headline { color: white; }

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 700px) { .rec-grid { grid-template-columns: 1fr; } }

.rec-card {
  border-radius: 12px;
  overflow: hidden;
}

.rec-header {
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.rec-body {
  background: rgba(255,255,255,0.07);
  padding: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}

.rec-body ul {
  list-style: none;
  padding: 0;
}

.rec-body li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.rec-body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.4);
}

.rec-stat {
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
}

.rec-stat span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
}

.final-takeaway {
  margin: 60px auto;
  max-width: 640px;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  color: white;
  line-height: 1.6;
}

.final-takeaway-mark {
  display: block;
  font-size: 60px;
  line-height: 0.85;
  color: rgba(200,16,46,0.28);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  margin-bottom: 0.1rem;
  user-select: none;
}

.final-takeaway-attribution {
  display: block;
  margin-top: 1.25rem;
  font-size: 12px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.42);
  font-style: normal;
  font-weight: 400;
  font-family: var(--sans);
}

.attribution {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* ── Utility ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.visually-hidden { visibility: hidden; }

svg text { font-family: var(--sans); }

/* Axis styling shared */
.axis-label {
  font-size: 11px;
  fill: var(--gray);
}

.tick line { stroke: #ddd; }
.domain { stroke: #ddd; }

/* ── Trading Card (Section 3: The Prize) ─────────────────────── */
/* ── Player card: wrap (handles tilt + hover scaling) ──────────── */
#card-area {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  padding-top: 18px;
}

#card-area.two-cards {
  gap: 1rem;
}

.pc-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}

.pc-wrap:hover {
  transform: rotate(0deg) scale(1.04) !important;
}

#card-area.two-cards .pc-wrap:hover {
  transform: rotate(0deg) scale(0.89) !important;
}

.pc-wrap:hover .pc-shell {
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 28px 8px var(--glow-color, rgba(255,255,255,0.08));
}

/* ── Pick badge ──────────────────────────────────────────────────── */
.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f5c842 0%, #c9952a 100%);
  color: #2a1a04;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 99px;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,235,120,0.40);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── Player card: shell ──────────────────────────────────────────── */
.pc-shell {
  width: 260px;
  height: 360px;
  border-radius: 12px;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 600ms ease, box-shadow 200ms ease;
}

.pc-shell.flipped { transform: rotateY(180deg); }

/* ── Card faces (front + back) ───────────────────────────────────── */
.pc-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pc-front {
  display: flex;
  flex-direction: column;
  background-color: var(--tc, #1a1a2e);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1,1 l2,-2 M0,6 l6,-6 M5,7 l2,-2' stroke='white' stroke-width='1' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
  background-size: 6px 6px;
}

.pc-back {
  transform: rotateY(180deg);
  background-color: var(--tc, #1a1a2e);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1,1 l2,-2 M0,6 l6,-6 M5,7 l2,-2' stroke='white' stroke-width='1' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
  background-size: 6px 6px;
  padding: clamp(8px, 1.5vh, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Top accent bar ──────────────────────────────────────────────── */
.pc-accent-bar {
  height: 8px;
  flex-shrink: 0;
  background-color: var(--ta, #3a3f50);
}

/* ── Photo zone (middle) ─────────────────────────────────────────── */
.pc-photo-zone {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  isolation: isolate;
}

.pc-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.pc-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 15%;
  display: block;
  position: relative;
  z-index: 1;
}

.pc-photo-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--tc, #1a1a2e));
  pointer-events: none;
  z-index: 2;
}

/* ── Info zone (bottom) ──────────────────────────────────────────── */
.pc-info-zone {
  height: 87px;
  flex-shrink: 0;
  position: relative;
  background-color: var(--tc, #1a1a2e);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1,1 l2,-2 M0,6 l6,-6 M5,7 l2,-2' stroke='white' stroke-width='1' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E"), linear-gradient(to top, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.08) 100%);
  background-size: 6px 6px, auto;
  border-top: 1px solid var(--ta-40, rgba(255,255,255,0.15));
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
}

/* ── Team logo: top-left corner of card ──────────────────────────── */
.pc-logo {
  position: absolute;
  top: 8px;
  left: 10px;
  height: 66px;
  width: auto;
  opacity: 0.22;
  pointer-events: none;
  object-fit: contain;
  z-index: 10;
}

.pc-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  line-height: 1.2;
}

.pc-rule {
  height: 1px;
  background: rgba(255,255,255,0.20);
  flex-shrink: 0;
}

.pc-meta {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.05em;
  font-family: var(--sans);
}

/* ── Grain overlay ───────────────────────────────────────────────── */
.pc-grain {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: 8;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* ── Inner border frame ──────────────────────────────────────────── */
.pc-inner-border {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  pointer-events: none;
  z-index: 9;
}

/* ── Front-face flip hint ────────────────────────────────────────── */
.pc-flip-hint {
  margin-top: 6px;
  text-align: center;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.42);
  pointer-events: none;
  transition: opacity 0.25s;
}

.pc-shell.flipped ~ .pc-flip-hint { opacity: 0; }

/* ── Card back face content ──────────────────────────────────────── */
.pc-back-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

.pc-back-player-name {
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.08em;
  font-family: var(--sans);
  line-height: 1.2;
}

.pc-back-context {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  margin-top: 3px;
}

.pc-back-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: clamp(5px, 0.8vh, 9px) 0;
  flex-shrink: 0;
}

.pc-back-section-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ta, rgba(255,255,255,0.5));
  margin-bottom: clamp(3px, 0.5vh, 6px);
}

.pc-back-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(5px, 0.8vh, 10px);
}

.pc-back-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.pc-back-stat-val {
  font-size: clamp(14px, 2.2vh, 22px);
  font-weight: 700;
  color: white;
  line-height: 1;
  font-family: var(--sans);
}

.pc-back-stat-lbl {
  font-size: 8px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.pc-back-accolades {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.pc-back-accolades::-webkit-scrollbar {
  width: 3px;
}
.pc-back-accolades::-webkit-scrollbar-track {
  background: transparent;
}
.pc-back-accolades::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
}
.pc-back-accolades::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.38);
}

.pc-back-accolades li {
  font-size: 9.5px;
  color: rgba(255,255,255,0.75);
  padding: clamp(1px, 0.35vh, 3px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.3;
}

.pc-back-accolades li:last-child { border-bottom: none; }

.pc-back-hint {
  font-size: 8px;
  color: rgba(255,255,255,0.28);
  text-align: center;
  margin-top: auto;
  padding-top: clamp(2px, 0.5vh, 6px);
  letter-spacing: 0.05em;
}

/* ── Responsive: shrink cards on narrow viewports ────────────────── */
@media (max-width: 900px) {
  .pc-shell { width: 210px; height: 291px; }
  .pc-info-zone { height: 70px; }
  .pc-name { font-size: 12px; }
  .pc-meta { font-size: 10px; }
  #card-area.two-cards .pc-wrap:hover { transform: rotate(0deg) scale(0.89) !important; }
  .pc-logo { height: 54px; }
}

@media (max-width: 700px) {
  .pc-shell { width: 180px; height: 250px; }
  .pc-info-zone { height: 62px; gap: 3px; }
  .pc-name { font-size: 11px; }
  .pc-meta { font-size: 9px; }
  .pc-badge { font-size: 10px; padding: 3px 11px; }
  .pc-logo { height: 48px; }
}

/* Prize: balanced columns, content pushed toward the text */
#the-prize .sticky-container {
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

#the-prize .sticky-graphic > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Responsive sizing so card + chart fit within 84vh sticky graphic */
#the-prize .pc-shell {
  height: clamp(200px, 34vh, 360px);
  width: auto;
  aspect-ratio: 260 / 360;
}
#the-prize .pc-info-zone {
  height: clamp(54px, 9.5vh, 87px);
}
#the-prize #pick-value-chart {
  height: auto;
  margin: clamp(0.5rem, 1.5vh, 2rem) 0;
}

/* ── Prize section sticky step text ────────────────────────── */
#the-prize .step-headline { color: rgba(255,255,255,0.95); }
#the-prize .step-number   { color: rgba(255,255,255,0.35); }
#the-prize .step-body     { color: rgba(255,255,255,0.65); }
#the-prize .step          { opacity: 0.4; }
#the-prize .step.is-active{ opacity: 1; }

/* ── Lottery steps (Section 2 dark panel) ───────────────────── */
#draft-explainer .step-headline { color: var(--navy); }
#draft-explainer .step-body     { color: var(--gray); }

/* ── Second Slider (Pick Value) ──────────────────────────────── */
#pick-value-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--navy), #e0e0e0);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin-top: 0.2rem;
}

#pick-value-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}

#pick-value-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}

.slider-callout {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  background: #fff8e1;
  border-radius: 8px;
  border-left: 3px solid #F9A825;
  font-size: 0.83rem;
  color: #5D4037;
  line-height: 1.5;
}

/* ── COLA Year-by-Year Timeline ───────────────────────────────── */
.cola-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}
.cola-year-row {
  display: grid;
  grid-template-columns: 2rem 8rem 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}
.cy-year {
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
}
.cy-result {
  font-weight: 600;
  font-size: 0.78rem;
}
.cy-miss     { color: #f87171; }
.cy-playoff  { color: #4ade80; }
.cy-tickets  { color: rgba(255,255,255,0.9); font-size: 0.8rem; }
.cy-note     { color: rgba(255,255,255,0.45); font-size: 0.72rem; grid-column: 2 / -1; padding-top: 0; margin-top: -0.15rem; }
@media (max-width: 500px) {
  .cola-year-row { grid-template-columns: 2rem 1fr; }
  .cy-note       { grid-column: 2 / -1; }
}

/* ── COLA Walkthrough Step Note ───────────────────────────────── */
.cola-wstep-note {
  margin-top: 0.65rem;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: rgba(76, 175, 80, 0.12);
  border-left: 3px solid #4CAF50;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

/* ── Reform Why Block ─────────────────────────────────────────── */
.reform-why {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-left: 3px solid var(--tab-color, var(--red));
  line-height: 1.5;
}

.reform-diagram-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.3rem;
}

.reform-321-subtitle {
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.5rem;
}

.reform-321-reveal {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-bottom: 0.35rem;
  opacity: 0;
  transition: opacity 400ms ease;
}

/* ── Reasoning Quote (Trajectory Steps) ──────────────────────── */
.reasoning-quote {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--panel);
  border-radius: 8px;
  border-left: 3px solid var(--navy);
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.55;
  max-width: 400px;
  min-height: 2.5em;
}

/* ── Conclusion Section (Reframe) ────────────────────────────── */
.conclusion-banner {
  background: rgba(200,165,94,0.12);
  border: 1px solid rgba(200,165,94,0.35);
  border-radius: 12px;
  padding: 1.3rem 1.8rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-family: var(--serif);
  font-style: italic;
  color: white;
  line-height: 1.55;
}

.conclusion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) { .conclusion-grid { grid-template-columns: 1fr; } }

.conclusion-card {
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  background: rgba(255,255,255,0.06);
}

.conclusion-support { border-top: 3px solid #66BB6A; }
.conclusion-worry   { border-top: 3px solid var(--red); }

.conclusion-card-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  color: rgba(255,255,255,0.9);
}

.conclusion-support .conclusion-card-header { color: #A5D6A7; }
.conclusion-worry   .conclusion-card-header { color: #EF9A9A; }

.conclusion-card-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

.conclusion-card-body p { margin-bottom: 0.5rem; }

.conclusion-stat {
  font-size: 1.9rem;
  font-weight: 900;
  color: white;
  margin-top: 0.9rem;
  line-height: 1;
}

.conclusion-stat span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

.conclusion-future {
  padding: 1.4rem 1.8rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
}

/* ── Bibliography Section ────────────────────────────────────── */
#bibliography {
  background: #0d1117;
  color: rgba(255,255,255,0.75);
}

#bibliography .section-label  { color: rgba(200,16,46,0.8); }
#bibliography .section-headline{ color: white; }
#bibliography .prose           { color: rgba(255,255,255,0.55); }

.bib-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

a.bib-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bib-item {
  padding: 1rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border-left: 3px solid var(--red);
  transition: background 0.2s;
  cursor: pointer;
}

.bib-item:hover { background: rgba(255,255,255,0.08); }

.bib-title {
  font-weight: 700;
  font-size: 0.93rem;
  color: white;
  margin-bottom: 0.2rem;
}

.bib-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
}

.bib-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: rgba(200,16,46,0.85);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.bib-link:hover {
  color: var(--red);
}

/* ── Fairness section scrollytelling ─────────────────────────── */
#fairness .step-headline { color: var(--navy); }
#fairness .step-body     { color: var(--gray); }
#fairness .sticky-graphic { padding: 1rem 2rem 1rem 0; }

/* ── Trajectory section scrollytelling ───────────────────────── */
#trajectory .step-headline { color: var(--navy); }
#trajectory .step-body     { color: var(--gray); }

/* ── Lottery section: no panel background ──────────────────────── */
#draft-explainer .sticky-graphic {
  background: transparent;
}

/* ── Responsive: reduce step min-height on mobile ────────────── */
@media (max-width: 700px) {
  .step { min-height: 50vh; }
}

/* ── Reform section: ensure diagram label visible ────────────── */
.reform-diagram.active .reform-diagram-label { display: block; }

/* ── Chart toggle (Section 3 pick value) ─────────────────────── */
.chart-toggle {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.chart-toggle-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s;
}
.chart-toggle-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
}
.chart-toggle-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── Bibliography type chips ──────────────────────────────────── */
.bib-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.bib-type-paper      { background: rgba(200,16,46,0.12);  color: var(--red);   border: 1px solid rgba(200,16,46,0.3);  }
.bib-type-code       { background: rgba(27,58,107,0.12);  color: var(--navy);  border: 1px solid rgba(27,58,107,0.3);  }
.bib-type-proposal   { background: rgba(33,150,243,0.12); color: #2196F3;      border: 1px solid rgba(33,150,243,0.3); }
.bib-type-empirical  { background: rgba(76,175,80,0.12);  color: #388e3c;      border: 1px solid rgba(76,175,80,0.3);  }
.bib-type-assumption { background: rgba(245,158,11,0.1);  color: #92400e;      border: 1px solid rgba(245,158,11,0.28); }

/* ── Mobile stat display (replaces chart on steps 0-5 below 640px) ── */
#mobile-stat-display {
  display: none;
  text-align: center;
  padding: 1.25rem var(--gutter) 0.5rem;
}
.mobile-stat-number {
  font-size: 52px;
  font-weight: 900;
  color: var(--red);
  font-family: var(--sans);
  line-height: 1;
  transition: opacity 150ms ease;
}
.mobile-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
  font-family: var(--sans);
  text-transform: uppercase;
}
.mobile-stat-compare {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 0.35rem;
  font-family: var(--sans);
}

/* ── Mobile: 640px breakpoint (prize scrollytelling) ─────────── */
@media (max-width: 640px) {
  /* Unstack the sticky-container for the prize section so we can reorder */
  #the-prize .sticky-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  /* Dissolve sticky-graphic and its inner div so children become flex items */
  #the-prize .sticky-graphic {
    display: contents;
  }
  #the-prize .sticky-graphic > div {
    display: contents;
  }
  /* Re-order: card(1), prose(2), chart(3) */
  #card-area        { order: 1; justify-content: center; padding-top: 0; }
  #prize-steps      { order: 2; padding: 0 var(--gutter); }
  #prize-chart-area { order: 3; padding: 0 var(--gutter) 12px; }

  /* Each step: remove the large desktop min-height, keep compact */
  #prize-steps .step {
    min-height: 0;
    padding: 4px 0;
  }
  /* Hide the small eyebrow label to save vertical space */
  #prize-steps .step-number { display: none; }
  /* Headline: slightly smaller on mobile */
  #prize-steps .step-headline { font-size: 1.1rem; margin-bottom: 0.4rem; }
  /* Body: clamp to ~2 sentences */
  #prize-steps .step-body {
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Card sizing: 140x160px, all design details preserved */
  #card-area .pc-shell  { width: 140px !important; height: 160px !important; }
  #card-area .pc-info-zone { height: 40px; gap: 2px; }
  #card-area .pc-accent-bar { height: 4px; }
  #card-area .pc-badge  { font-size: 9px; padding: 3px 9px; top: -9px; }
  #card-area .pc-name   { font-size: 10px; }
  #card-area .pc-meta   { font-size: 8px; }
  #card-area .pc-inner-border { inset: 3px; }
  #card-area .pc-logo   { height: 42px; }

  /* Toggle buttons: compact so all three fit on one line */
  .chart-toggle-btn { padding: 6px 8px; font-size: 13px; }

  /* Stat display: reduce padding since gap handles spacing */
  #mobile-stat-display { padding: 0.5rem 0; }
}

/* ── Mobile: 480px breakpoint ─────────────────────────────────── */
@media (max-width: 480px) {
  .sticky-container { grid-template-columns: 1fr; }
  .sticky-graphic { position: relative; top: 0; height: auto; min-height: 50vw; }
  .hook-headline { font-size: 2rem; }
  .balance-wrap { grid-template-columns: 1fr; }
  .reform-panel { grid-template-columns: 1fr; }
  .conclusion-grid { grid-template-columns: 1fr; }
}
.reform-diagram          .reform-diagram-label { display: none; }

/* ── Lottery canvas: allow overflow for fall animation ─────────── */
#lottery-canvas {
  overflow: visible;
}

/* ── Trajectory: standard two-column layout (chart sticky-left, steps scroll-right) ── */

/* ── Focus-visible: keyboard accessibility ──────────────────────── */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* ── Raise low-contrast text: attribution + step labels ────────── */
.attribution { color: rgba(255,255,255,0.55); }
.hook-stat-label { color: rgba(255,255,255,0.6); }
.hook-eyebrow    { color: rgba(255,255,255,0.65); }

/* ── Slightly more restrained red ──────────────────────────────── */
:root { --red: #B91C35; }

/* (card-area styles are defined in the player card section above) */
