:root {
  --ink: #071d26;
  --paper: #f3f0e7;
  --cream: #fffdf6;
  --navy: #092f40;
  --teal: #008c95;
  --mint: #74d2c8;
  --lime: #d8f26a;
  --orange: #ff6b35;
  --line: rgba(7, 29, 38, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; padding-bottom: env(safe-area-inset-bottom); }
button { min-height: 44px; font: inherit; touch-action: manipulation; }
.site-header { height: calc(76px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(5vw, env(safe-area-inset-right)) 0 max(5vw, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 27px; font-weight: 900; letter-spacing: -1.5px; text-decoration: none; }
.brand span { color: var(--teal); }
.lab-pill { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
main { max-width: 1400px; margin: auto; }
.hero { padding: 92px 6vw 74px; background: radial-gradient(circle at 82% 22%, rgba(116,210,200,.35), transparent 25%); }
.eyebrow, .label, .rail-title { margin: 0 0 12px; font-size: 11px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; color: var(--teal); }
h1 { max-width: 950px; margin: 0; font-family: Georgia, serif; font-size: clamp(58px, 8vw, 116px); line-height: .87; letter-spacing: -5px; font-weight: 500; }
h1 em { color: var(--teal); font-weight: 500; }
.intro { max-width: 620px; font-size: 19px; line-height: 1.6; margin: 34px 0 28px; }
.hero-actions { display: flex; gap: 12px; }
.primary, .secondary { cursor: pointer; border-radius: 4px; padding: 13px 18px; border: 1px solid var(--ink); font-weight: 800; }
.primary { color: white; background: var(--ink); }
.secondary { color: var(--ink); background: transparent; }
.primary:hover, .secondary:hover { transform: translateY(-1px); }
.game-strip { margin: 0 3vw; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; background: var(--navy); color: white; padding: 24px 3vw; border-radius: 5px 5px 0 0; }
.game-strip > div { border-right: 1px solid rgba(255,255,255,.18); padding-right: 24px; margin-right: 24px; }
.game-strip .label { color: var(--mint); display: block; margin-bottom: 6px; }
.fixture-note { color: var(--mint); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.workspace { margin: 0 3vw; min-height: 600px; display: grid; grid-template-columns: 225px 1fr; background: var(--cream); border: 1px solid var(--line); border-top: 0; }
.rail { padding: 38px 24px; border-right: 1px solid var(--line); }
.mode { width: 100%; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; padding: 17px 4px; cursor: pointer; font-weight: 800; }
.mode span { display: inline-block; width: 34px; color: var(--teal); font-size: 11px; }
.mode.active { color: var(--teal); }
.legend { margin-top: 58px; font-size: 12px; line-height: 2.3; }
.dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin-right: 8px; }
.dot.headline { background: var(--orange); }.dot.deep-cut { background: var(--teal); }.dot.ledger { background: #9a9a91; }
.report-area { padding: 48px 5vw; }
.report-header { display: flex; align-items: end; justify-content: space-between; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
h2 { font-family: Georgia, serif; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -2px; font-weight: 500; margin: 0; }
.date { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.milestone { display: grid; grid-template-columns: 78px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.rank { font-family: Georgia, serif; color: var(--teal); font-size: 42px; text-align: center; }
.milestone h3 { margin: 0 0 8px; font-size: 20px; }
.milestone p { margin: 0; max-width: 700px; color: #516168; line-height: 1.45; }
.milestone small { display: block; margin-top: 8px; color: #738188; line-height: 1.4; }
.report-note { margin: 22px 0 0; padding: 16px 18px; border-left: 3px solid var(--teal); background: rgba(116,210,200,.12); color: #516168; line-height: 1.5; }
.tag { align-self: start; border-radius: 999px; padding: 7px 10px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; font-weight: 900; white-space: nowrap; }
.tag.headline { background: #ffe0d4; color: #a52e05; }.tag.deep-cut { background: #d9f4f1; color: #006970; }.tag.ledger { background: #e4e2db; color: #585850; }
.empty { padding: 80px; text-align: center; color: #66747a; }
.outputs { margin: 100px 6vw; display: grid; grid-template-columns: .75fr 1.25fr; gap: 7vw; align-items: center; }
.output-copy p:not(.eyebrow):not(.copy-status) { max-width: 440px; font-size: 17px; line-height: 1.6; }
.copy-status { height: 18px; color: var(--teal); font-size: 12px; font-weight: 800; }
.share-card { min-height: 420px; background: var(--navy); color: white; padding: 42px; box-shadow: 18px 18px 0 var(--mint); display: flex; flex-direction: column; justify-content: space-between; }
.share-card .card-top { display: flex; justify-content: space-between; color: var(--mint); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 900; }
.share-card .card-rank { font-family: Georgia, serif; font-size: 96px; color: var(--lime); line-height: .8; }
.share-card h3 { max-width: 620px; margin: 18px 0 8px; font-family: Georgia, serif; font-size: 40px; line-height: 1.05; font-weight: 500; }
.share-card p { color: #b8d4da; line-height: 1.45; margin: 0; }
.card-footer { display: flex; justify-content: space-between; align-items: end; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-weight: 900; }
.proof { margin: 0 3vw 80px; border-top: 1px solid var(--line); padding: 50px 3vw; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-grid div { background: var(--paper); padding: 24px; }
.proof-grid strong, .proof-grid span { display: block; }.proof-grid strong { font-size: 22px; }.proof-grid span { margin-top: 8px; color: #657278; font-size: 12px; }
footer { background: var(--ink); color: #b9d0d7; padding: 34px 6vw; text-align: right; font-size: 12px; }
@media (max-width: 800px) {
  .site-header { height: calc(62px + env(safe-area-inset-top)); }
  .brand { font-size: 24px; }
  .lab-pill { padding: 7px 10px; font-size: 9px; letter-spacing: .8px; }
  .hero { padding: 52px 20px 42px; background-position: 110% 5%; }
  h1 { font-size: clamp(48px, 15vw, 72px); line-height: .92; letter-spacing: -3px; }
  .intro { margin: 24px 0; font-size: 17px; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .primary, .secondary { padding: 12px 10px; }
  .game-strip { margin: 0; padding: 22px 20px; grid-template-columns: 1fr 1fr; gap: 18px 12px; border-radius: 0; }
  .game-strip > div { border: 0; padding: 0; margin: 0; }
  .game-strip > div:first-child { grid-column: 1 / -1; }
  .fixture-note { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); }
  .workspace { margin: 0; min-height: 0; grid-template-columns: 1fr; border-left: 0; border-right: 0; }
  .rail { padding: 14px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .rail-title, .legend { display: none; }
  .rail .mode { width: auto; min-width: 104px; padding: 13px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
  .rail .mode.active { border-bottom-color: var(--teal); }
  .rail .mode span { display: none; }
  .report-area { padding: 30px 20px 36px; }
  .report-header { display: block; padding-bottom: 18px; }
  .report-header .date { display: block; margin-top: 14px; }
  h2 { font-size: clamp(34px, 11vw, 48px); letter-spacing: -1.5px; }
  .report-note { margin-top: 18px; padding: 14px; font-size: 14px; }
  .milestone { grid-template-columns: 52px 1fr; gap: 10px 14px; padding: 22px 0; align-items: start; }
  .rank { padding-top: 2px; font-size: 32px; text-align: left; }
  .milestone h3 { font-size: 18px; }
  .milestone p { font-size: 15px; }
  .tag { grid-column: 2; justify-self: start; }
  .outputs { margin: 64px 20px; grid-template-columns: 1fr; gap: 36px; }
  .share-card { min-height: 360px; padding: 28px 24px; box-shadow: 10px 10px 0 var(--mint); }
  .share-card .card-rank { font-size: 72px; }
  .share-card h3 { font-size: 34px; }
  .proof { margin: 0 20px 56px; padding: 36px 0; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid div { padding: 18px 14px; }
  .proof-grid strong { font-size: 18px; }
  footer { padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); text-align: left; }
}
@media (max-width: 390px) {
  .hero-actions { grid-template-columns: 1fr; }
  .lab-pill { max-width: 145px; text-align: center; }
  .proof-grid { grid-template-columns: 1fr; }
}
