/* tastemaker · macrostructure: Product Demo / Workbench · mood: playful-technical (the game's own Soft Neon) · page: landing
 * arc: hook(H2 live demo) -> problem(difficulty chart) -> solution(F2 layout mosaic + F5 brick guide) -> how(F6 capsule spec + F4 daily steps)
 *      -> range(wipe comparison) -> comfort(F1 band) -> proof(P4 stat strip) -> close(C2 statement)
 * nav: N3 floating pill · hero: H2 split demo · footer: Ft2 inline · knobs: hero=split/right-visual/playable canvas; features=F2 mosaic, F5 guide, F6 spec
 * palette: preserved from scripts/palette.gd (NEON), not generated · contrast: pass (matrix, 2026-09-30)
 * chart series: #8270f2 / #2aa7ad, validated dark vs #121529 (dataviz validator: all pass)
 * critique: ShowTell 5 · Phil 4 · Hier 4 · Spec 5 · Restr 4 · Var 5 (first build) */

@font-face {
  font-family: "Exo 2";
  src: url("assets/fonts/Exo2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-Medium.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Soft Neon, from scripts/palette.gd */
  --bg: #0e1020;
  --field: #121529;
  --field-line: #22274a;
  --surface: #1a1e36;
  --line: #2e3460;
  --text: #e6e8f2;
  --muted: #8e93b3;
  --primary: #5ce1e6;
  --primary-hover: #86eaee;
  --ink: #0e1020;
  --ball: #ffffff;
  --glow: #1d2247;
  --hazard: #ff4f70;
  --hazard-fill: #2a1426;
  --retro-gold: #ffd030;
  --grid-line: rgb(142 147 179 / 0.12);
  --scrim: rgb(14 16 32 / 0.82);
  --nav-bg: rgb(26 30 54 / 0.78);
  --accent-wash: rgb(92 225 230 / 0.07);
  --accent-ring: rgb(92 225 230 / 0.14);
  --shade: rgb(0 0 0 / 0.2);
  --shine: rgb(255 255 255 / 0.45);
  --hover-wash: rgb(255 255 255 / 0.05);

  /* Chart series (validated for this surface) */
  --chart-hits: #8270f2;
  --chart-speed: #2aa7ad;

  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px;
  --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 120ms;
  --dur-hover: 160ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  overflow-x: clip;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.0625rem/1.6 var(--font-body);
  letter-spacing: 0.005em;
  overflow-x: clip;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; font-style: normal; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
b, strong { font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

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

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  background: var(--primary); color: var(--ink); font: 800 1rem var(--font-display); text-decoration: none;
}
.skip:focus { top: var(--s-4); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* --- Buttons & links ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6);
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font: 800 1rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out),
    border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-lg { min-height: 56px; padding: 0 var(--s-8); border-radius: var(--r-md); font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); font-size: 0.875rem; }
.btn-ghost[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }

.text-link {
  color: var(--text); font: 700 1rem var(--font-display); letter-spacing: 0.02em;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color var(--dur-hover) var(--ease-out);
  display: inline-block; padding-block: 12px; line-height: 20px; white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--primary-hover); }
  .btn-ghost:hover { border-color: var(--muted); }
  .text-link:hover { text-decoration-color: var(--primary); }
  .nav-links a:hover { color: var(--text); background: var(--hover-wash); }
}

/* --- Nav: floating pill --------------------------------------------------------------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: var(--s-3) var(--gutter) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: fit-content; max-width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: var(--s-2) var(--s-6);
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 40px; }
.brand img { border-radius: 22%; }
.brand-word { font: 800 0.9375rem/1 var(--font-display); white-space: nowrap; }
.brand-breaker { color: var(--primary); font-weight: 700; letter-spacing: 0.2em; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill);
  color: var(--muted); font: 600 0.9375rem var(--font-display); text-decoration: none; white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out);
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { width: 100%; justify-content: space-between; }
}

/* --- Hero ------------------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(var(--s-8), 6vh, var(--s-16)) clamp(var(--s-16), 10vw, var(--s-32));
  background: radial-gradient(ellipse 60% 70% at 72% 30%, var(--glow), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--s-12) clamp(var(--s-8), 5vw, 80px);
}
.eyebrow {
  font: 700 0.8125rem/1.4 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  margin: var(--s-4) 0 var(--s-6);
  font-size: clamp(2.5rem, 1.45rem + 3.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hl { color: var(--primary); }
.lede { max-width: 32em; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-8); }

.hero-copy > * { animation: rise 640ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 220ms; }
.demo { animation: rise 760ms var(--ease-out) 280ms both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.demo {
  position: relative;
  justify-self: center;
  width: clamp(280px, calc((100svh - 210px) * 0.643), 420px);
  max-width: 100%;
  margin: 0;
}
.demo::before {
  content: ""; position: absolute; inset: 8% -30% 0; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-wash), transparent);
  pointer-events: none;
}
.hud {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: 0 var(--s-2) var(--s-3);
  font-family: var(--font-display);
}
.hud-score, .hud-round { display: flex; flex-direction: column; gap: 2px; }
.hud-round { align-items: center; }
.hud-label { font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hud-value { font-weight: 800; font-size: 1.625rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hud-round-title { font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.12em; color: var(--primary); }
.hud-best { font: 500 0.8125rem var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.hud-lives { justify-self: end; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.125rem; }
.ball-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 4px var(--accent-ring); }
.demo-canvas {
  width: 100%; height: auto; aspect-ratio: 450 / 700;
  border-radius: var(--r-lg);
  touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.demo-mode { margin-top: var(--s-3); text-align: center; font-size: 0.875rem; color: var(--muted); min-height: 1.6em; }

/* --- Sections ------------------------------------------------------------------------- */
.section { padding-block: clamp(var(--s-16), 11vw, var(--s-24)); }
.section--pivotal { padding-block: clamp(var(--s-16), 13vw, var(--s-32)); }
.section--connective { padding-block: clamp(var(--s-12), 8vw, var(--s-16)); }
.section-head { max-width: 46rem; margin-bottom: var(--s-12); }
.section-head h2 {
  margin: 0 0 var(--s-4);
  font-size: clamp(1.875rem, 1.35rem + 1.7vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.section-lede { max-width: 40em; color: var(--muted); font-size: 1.125rem; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); }
.section-head--row > div { max-width: 46rem; }
.fine { margin-top: var(--s-6); font-size: 0.875rem; color: var(--muted); }

/* --- Difficulty chart ------------------------------------------------------------------ */
.curve-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-8); align-items: start; }
.chart-card {
  margin: 0; padding: var(--s-8);
  background: var(--field); border: 1px solid var(--field-line); border-radius: var(--r-lg);
}
.chart-title { font: 700 1rem/1.4 var(--font-display); margin-bottom: var(--s-4); }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart svg:focus-visible { outline-offset: 6px; border-radius: var(--r-sm); }
.chart .grid { stroke: var(--field-line); stroke-width: 1; }
.chart .ceiling { stroke: var(--muted); stroke-width: 1; opacity: 0.55; }
.chart .axis-text { fill: var(--muted); font: 500 12px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .panel-text { fill: var(--text); font: 700 12.5px var(--font-display); letter-spacing: 0.02em; }
.chart .value-text { fill: var(--text); font: 700 12px var(--font-display); font-variant-numeric: tabular-nums; }
.chart .note-text { fill: var(--muted); font: 600 11px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; }
.chart .bar-hits { fill: var(--chart-hits); }
.chart .bar-speed { fill: var(--chart-speed); }
.chart .is-active .bar { filter: brightness(1.3); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .focus-line { stroke: var(--text); stroke-width: 1; opacity: 0.3; }
.tooltip {
  position: absolute; z-index: 2; pointer-events: none;
  min-width: 168px; padding: var(--s-3) var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
  font-size: 0.875rem; line-height: 1.45;
  opacity: 0; transition: opacity 120ms var(--ease-out);
}
.tooltip.is-on { opacity: 1; }
.tooltip-title { font: 800 0.8125rem var(--font-display); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.tooltip-row { display: flex; align-items: center; gap: 8px; }
.tooltip-row strong { font-variant-numeric: tabular-nums; }
.tooltip-row span { color: var(--muted); }
.key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.key-hits { background: var(--chart-hits); }
.key-speed { background: var(--chart-speed); }
.tooltip-extra { margin-top: 6px; color: var(--muted); font-size: 0.8125rem; }
.chart-note { margin-top: var(--s-4); font-size: 0.875rem; color: var(--muted); }

.numbers { margin-top: var(--s-4); border-top: 1px solid var(--field-line); }
.numbers summary {
  display: flex; align-items: center; gap: var(--s-2); min-height: 48px; cursor: pointer; list-style: none;
  font: 700 0.9375rem var(--font-display); color: var(--primary);
}
.numbers summary::-webkit-details-marker { display: none; }
.numbers summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--dur-hover) var(--ease-out);
}
.numbers[open] summary::before { transform: rotate(45deg); }
.table-scroll { overflow-x: auto; border-radius: var(--r-sm); }
.data { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--field-line); }
.data th:first-child, .data td:first-child { text-align: left; }
.data thead th { font: 600 0.6875rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.data td { color: var(--muted); }
.data td:first-child, .data td.em { color: var(--text); font-family: var(--font-display); font-weight: 700; }

.unlocks h3 { margin: 0 0 var(--s-2); font-size: 1.125rem; }
.unlock-list { list-style: none; margin: 0; padding: 0; }
.unlock-list li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--field-line);
}
.unlock-list .glyph { width: 64px; height: auto; aspect-ratio: 120 / 44; }
.unlock-list b { display: block; font-size: 0.9375rem; }
.unlock-list span { display: block; font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.unlock-note { margin-top: var(--s-4); font-size: 0.875rem; color: var(--muted); }

/* --- Generated layouts ------------------------------------------------------------------ */
.layouts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-6);
}
.layouts canvas { width: 100%; height: auto; aspect-ratio: 450 / 300; }
.layout-caption { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); font-size: 0.9375rem; }
.layout-caption b { font-size: 1rem; }
.layout-caption span { color: var(--muted); font-variant-numeric: tabular-nums; }

.is-mono { filter: grayscale(1); }

/* --- Brick guide ------------------------------------------------------------------------ */
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-6); }
.guide-card {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.guide-art { width: 100%; height: auto; aspect-ratio: 300 / 120; border-radius: var(--r-sm); background: var(--field); margin-bottom: var(--s-4); }
.guide-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.guide-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }
.guide-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-4); }
.meta span {
  padding: 6px 10px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line);
  font: 700 0.75rem/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); white-space: nowrap;
}
@media (min-width: 900px) {
  .guide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-card--boss { grid-column: span 2; }
  .guide-card--boss .guide-art { aspect-ratio: 600 / 120; }
}

/* --- Capsules ------------------------------------------------------------------------------ */
.powers-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.hud-panel {
  position: sticky; top: 96px;
  padding: var(--s-8) var(--s-6);
  background: var(--field); border: 1px solid var(--field-line); border-radius: var(--r-lg);
}
.panel-label { margin-bottom: var(--s-4); font: 700 0.75rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.panel-note { margin-top: var(--s-4); font-size: 0.875rem; color: var(--muted); }
.rings { display: flex; justify-content: space-between; gap: var(--s-2); }
.ring { position: relative; width: 58px; display: grid; justify-items: center; }
.ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring-track { fill: var(--ink); stroke: var(--line); stroke-width: 5; }
.ring-fill { fill: none; stroke: var(--ring); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 163.36; stroke-dashoffset: 0; }
.ring-num {
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  display: grid; place-items: center; font: 800 1.125rem/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.ring-name { margin-top: 6px; font: 800 0.6875rem var(--font-display); letter-spacing: 0.08em; color: var(--ring); }
.combo { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--field-line); }
.combo-pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-4);
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font: 800 0.9375rem var(--font-display); letter-spacing: 0.12em;
}
.combo p { margin-top: var(--s-3); font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

.spec { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec thead th {
  padding: 0 var(--s-3) var(--s-3); text-align: left; border-bottom: 1px solid var(--line);
  font: 600 0.75rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.spec td { padding: 14px var(--s-3); border-bottom: 1px solid var(--field-line); vertical-align: middle; color: var(--muted); }
.spec td:first-child { width: 120px; }
.spec td b { display: block; color: var(--text); font-size: 1rem; }
.spec td:last-child { white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.cap {
  display: inline-grid; place-items: center; min-width: 88px; height: 34px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--cap); color: var(--ink);
  font: 800 0.8125rem/1 var(--font-display); letter-spacing: 0.02em;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--cap) 20%, transparent);
}
.cap--hazard { position: relative; min-width: 96px; height: 42px; padding: 0; background: none; box-shadow: none; color: var(--hazard); }
.cap--hazard svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cap--hazard path { fill: var(--hazard-fill); stroke: var(--hazard); stroke-width: 3; stroke-linejoin: round; }
.cap--hazard span { position: relative; }
.dur { white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.dur .bar {
  display: inline-block; vertical-align: middle; margin-right: 10px;
  width: calc(var(--d) / 15 * 56px); height: 6px; border-radius: 3px; background: var(--muted);
  transform-origin: 0 50%;
}
.dur--instant { color: var(--muted); }
.hazards .group th {
  padding: var(--s-6) var(--s-3) var(--s-3); text-align: left; border-bottom: 1px solid var(--field-line);
  font: 800 0.8125rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hazard);
}

/* --- Daily ---------------------------------------------------------------------------------- */
.daily-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: var(--s-12) var(--s-16); align-items: center; }
.daily-track { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.daily-track li {
  display: flex; flex-direction: column; gap: 2px; padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.daily-track .step { font: 800 1.75rem/1 var(--font-display); color: var(--primary); margin-bottom: var(--s-2); }
.daily-track b { font-size: 0.9375rem; }
.daily-track li > span:last-child { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
.daily-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 10px 0; border-bottom: 1px solid var(--field-line); color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.rules li:first-child { padding-top: 0; }
.rules b { color: var(--text); }
.share { margin: 0; padding: var(--s-6); background: var(--field); border: 1px solid var(--line); border-radius: var(--r-md); }
.share figcaption { margin-bottom: var(--s-3); font: 700 0.75rem/1.4 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.share-line { margin: 0; white-space: pre-wrap; font: 500 0.9375rem/1.65 var(--font-body); color: var(--text); font-variant-numeric: tabular-nums; }

.shot { margin: 0; justify-self: center; width: min(100%, 360px); }
.shot img {
  width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg);
  object-fit: cover; object-position: 50% 50%;
}
.shot--card img { aspect-ratio: 720 / 860; }
.shot--settings img { aspect-ratio: 720 / 900; }
.shot figcaption { margin-top: var(--s-3); font-size: 0.875rem; color: var(--muted); text-align: center; }

/* --- Themes wipe --------------------------------------------------------------------------------- */
.themes-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-12) var(--s-16); align-items: center; }
.compare {
  position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 720 / 1400;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.compare:focus-within { outline: 3px solid var(--primary); outline-offset: 3px; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--wipe)); }
.compare-line { position: absolute; inset: 0; transform: translateX(var(--wipe)); pointer-events: none; }
.compare-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--text); }
.compare-line::after {
  content: ""; position: absolute; top: 50%; left: -18px; width: 36px; height: 36px; margin-top: -18px;
  border-radius: 50%; background: var(--text);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.4), inset 7px 0 0 -5px var(--ink), inset -7px 0 0 -5px var(--ink);
}
.compare-tag {
  position: absolute; bottom: var(--s-3); z-index: 1;
  padding: 7px 10px; border-radius: var(--r-pill); background: var(--scrim);
  font: 800 0.6875rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.compare-tag--a { left: var(--s-3); }
.compare-tag--b { right: var(--s-3); font-family: var(--font-pixel); font-weight: 400; font-size: 0.5625rem; letter-spacing: 0.02em; color: var(--retro-gold); }
.compare-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.versus { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.versus th, .versus td { padding: 12px var(--s-3); text-align: left; border-bottom: 1px solid var(--field-line); }
.versus thead th { font: 800 0.9375rem var(--font-display); color: var(--primary); border-bottom-color: var(--line); }
.retro-head { font: 400 0.6875rem var(--font-pixel); color: var(--retro-gold); }
.versus tbody th { font: 700 0.75rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.versus td { color: var(--text); }

/* --- Comfort ---------------------------------------------------------------------------------- */
.comfort-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s-12) var(--s-16); align-items: center; }
.comfort-list { list-style: none; margin: 0; padding: 0; }
.comfort-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: 18px 0; border-top: 1px solid var(--field-line); }
.comfort-list b { display: block; font-size: 1rem; }
.comfort-list span { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.icon {
  width: 48px; height: 48px; padding: 12px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* --- Proof ----------------------------------------------------------------------------------- */
.proof-title { margin: 0 0 var(--s-6); font: 700 0.875rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stats {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--field-line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: var(--s-8) var(--s-6); background: var(--field); }
.stats dd { margin: 0 0 var(--s-3); font: 800 clamp(2.25rem, 1.7rem + 1.6vw, 3.25rem)/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dt { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* --- Close: the title screen at page scale ------------------------------------------------------ */
.close {
  --k: 2.2;
  position: relative; isolation: isolate; overflow: clip;
  padding-block: calc(210px * var(--k) + var(--s-8)) clamp(var(--s-24), 14vw, 200px);
  text-align: center;
}
.close-art { position: absolute; left: 50%; top: clamp(var(--s-8), 5vw, var(--s-16)); width: 0; height: 0; }
.tbrick {
  position: absolute;
  left: calc((var(--x) * 1px - 40px) * var(--k)); top: calc(var(--y) * 1px * var(--k));
  width: calc(80px * var(--k)); height: calc(33px * var(--k));
  border-radius: calc(9px * var(--k));
  background: var(--c);
  box-shadow: inset 0 calc(-4px * var(--k)) 0 var(--shade), inset 0 calc(2px * var(--k)) 0 var(--shine);
  rotate: var(--r);
}
.tball {
  position: absolute; left: calc((132px - 11px) * var(--k)); top: calc((168px - 11px) * var(--k));
  width: calc(22px * var(--k)); height: calc(22px * var(--k)); border-radius: 50%;
  background: var(--ball);
  box-shadow: 0 0 0 calc(5px * var(--k)) var(--accent-ring), 0 0 0 calc(11px * var(--k)) var(--accent-wash);
}
.close-title {
  max-width: 17em; margin: 0 auto var(--s-8);
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.01em;
}
.close-title span { display: inline-block; }
.cta-row--center { flex-direction: column; justify-content: center; margin-top: 0; }
.status { color: var(--muted); font-size: 0.9375rem; }
.floor {
  position: absolute; left: -25%; right: -25%; bottom: 0; height: 55%; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 44px;
  transform: perspective(420px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 95%);
  mask-image: linear-gradient(to top, #000 15%, transparent 95%);
}

/* --- Footer: one line ----------------------------------------------------------------------- */
.footer { padding: var(--s-8) 0 calc(var(--s-8) + env(safe-area-inset-bottom)); border-top: 1px solid var(--field-line); }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-8); color: var(--muted); font-size: 0.875rem; }
.footer-line .text-link { margin-left: auto; font-size: 0.875rem; }

/* --- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .curve-grid, .powers-grid { grid-template-columns: minmax(0, 1fr); }
  .hud-panel { position: static; }
  .unlock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); }
  .close { --k: 1.7; }
}
@media (max-width: 900px) {
  .hero-grid, .daily-grid, .themes-grid, .comfort-grid { grid-template-columns: minmax(0, 1fr); }
  .demo { width: min(100%, 400px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes-copy { order: -1; }
  .close { --k: 1.3; }
}
@media (max-width: 640px) {
  .chart-card { padding: var(--s-6) var(--s-4); }
  .unlock-list { grid-template-columns: minmax(0, 1fr); }
  .daily-track { grid-template-columns: minmax(0, 1fr); }
  .daily-track li { flex-direction: row; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
  .daily-track .step { margin-bottom: 0; min-width: 1.2em; }
  .daily-details { grid-template-columns: minmax(0, 1fr); }
  .stats > div { padding: var(--s-6) var(--s-4); }
  .spec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec tbody tr:not(.group) {
    display: grid; grid-template-columns: 100px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 4px;
    padding: 14px 0; border-bottom: 1px solid var(--field-line);
  }
  .spec td { padding: 0; border: 0; }
  .spec td:first-child { width: auto; grid-row: span 3; align-self: start; padding-top: 2px; }
  .spec td:last-child::before { content: "Drops from "; color: var(--muted); }
  .hazards .group th { display: block; padding-inline: 0; }
  .close { --k: 0.95; }
  .footer-line .text-link { margin-left: 0; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .hero .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .demo { animation: none; }
  .btn, .text-link, .nav-links a, .numbers summary::before, .tooltip { transition: none; }
}
