/* Before You Blink - v2
   Concept: an eye whose iris is a camera aperture, racing a timing strip.
   Palette: graphite neutrals, Solana = signal lime, you = ember. */

:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #121215;
  --surface-2: #17171b;
  --iris: #17171b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --fg: #f3f2ee;
  --fg-rgb: 243, 242, 238;
  --muted: #9a9893;
  --dim: #5f5e5a;
  --sol: #d6ff3d;
  --sol-rgb: 214, 255, 61;
  --you: #ff7a4d;
  --you-rgb: 255, 122, 77;
  --bad: #ff4a3d;
  --ink: #0a0a0b;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Martian Mono", "Geist Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --gutter: 16px;
  --max: 1120px;
  --r: 14px;
  --shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 2px rgba(0,0,0,0.5), 0 28px 56px -28px rgba(0,0,0,0.95);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(255,255,255,0.055), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}
html.running, html.running body { overflow: hidden; height: 100%; overscroll-behavior: none; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg); }
code { font-family: var(--mono); font-size: 0.9em; color: var(--fg); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--sol); outline-offset: 3px; }
[hidden] { display: none !important; }
.sep { color: var(--dim); margin: 0 4px; }

/* depth layers */
.field {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  /* visible toward the edges, faded behind the reading column */
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, transparent 40%, #000 92%);
          mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, transparent 40%, #000 92%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}
.bar, main, .foot { position: relative; z-index: 2; }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.label--muted { color: var(--dim); }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)), rgba(16,16,19,0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(10,10,11,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-eye { width: 34px; color: var(--fg); display: block; flex: none; }
.brand-eye .eye, .foot-eye .eye { display: block; width: 100%; height: auto; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tk { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 420px) { .brand-tk { display: none; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px;
  text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pill-slot { color: var(--fg); }
.pill-slot:empty { display: none; }
@media (max-width: 400px) { .pill-slot { display: none; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
[data-status="live"] .dot { background: var(--sol); box-shadow: 0 0 0 3px rgba(var(--sol-rgb),0.14); }
[data-status="noisy"] .dot { background: #e0b03a; }
[data-status="offline"] .dot { background: var(--bad); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* hero */
.hero {
  display: grid; gap: 22px;
  grid-template-areas: "lens" "copy" "play" "race";
  padding: 22px 0 56px;
}
.hero-lens { grid-area: lens; }
.hero-copy { grid-area: copy; }
.hero-play { grid-area: play; }
.hero-race { grid-area: race; }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas: "copy lens" "play lens" "race lens";
    column-gap: 56px; row-gap: 26px;
    padding: 72px 0 96px; align-items: start;
  }
  .hero-lens { align-self: center; }
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 16px; padding: 5px 10px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sol); }
h1 {
  font-size: clamp(42px, 10.6vw, 80px);
  line-height: 0.98; letter-spacing: -0.048em; font-weight: 600;
  margin: 0 0 18px; text-wrap: balance;
}
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.1em; line-height: 0.8; }
.lede { text-wrap: pretty; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 38ch; margin: 0; }

/* lens: the eye in a camera-lens housing, ring graduated in ms */
.lens {
  position: relative; width: min(232px, 62vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #121215 0 57%, #0d0d10 57.4% 71%, #0a0a0c 71.4% 100%);
  box-shadow:
    0 0 0 1px var(--line-2),
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 0 40px 60px -40px rgba(255,255,255,0.07),
    inset 0 -50px 70px -40px rgba(0,0,0,0.9),
    0 50px 90px -40px rgba(0,0,0,1);
}
@media (min-width: 900px) { .lens { width: min(460px, 100%); } }
.lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens-ring .tick { stroke: rgba(255,255,255,0.16); stroke-width: 1.2; }
.lens-ring .tick--major { stroke: rgba(255,255,255,0.38); stroke-width: 1.6; }
.lens-ring .tick--sol { stroke: var(--sol); stroke-width: 3; }
.lens-ring .tick--you { stroke: var(--you); stroke-width: 3; }
.lens-ring text { font-family: var(--mono); font-size: 13px; fill: var(--dim); }
.lens-ring .t-sol { fill: var(--sol); }
.lens-ring .t-you { fill: var(--you); }
.lens-ring .inner { fill: none; stroke: var(--line); }
.lens-eye { position: absolute; left: 50%; top: 50%; width: 56%; transform: translate(-50%, -50%); color: var(--fg); }
.lens-eye .eye { display: block; width: 100%; height: auto; overflow: visible; }

.start {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 84px; padding: 0 22px;
  background: linear-gradient(180deg, #f7f6f2, #dedcd5);
  color: var(--ink);
  border: 0; border-radius: var(--r); cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,0.14), 0 1px 0 rgba(0,0,0,0.7), 0 22px 40px -18px rgba(0,0,0,0.9);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.start:hover { transform: translateY(-1px); }
.start:active { transform: translateY(1px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,0.14), 0 0 0 rgba(0,0,0,0), 0 10px 20px -12px rgba(0,0,0,0.9); }
.start-label { white-space: nowrap; font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: clamp(20px, 5.4vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.start-meta { font-family: var(--mono); font-size: 11px; color: rgba(10,10,11,0.55); text-transform: uppercase; letter-spacing: 0.08em; text-align: right; }
.start-meta .sep { color: rgba(10,10,11,0.3); }
@media (hover: none), (pointer: coarse) { .start-meta .kb { display: none; } }

.hero-race { padding: 16px 16px 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.race-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.race-note b { color: var(--fg); }

/* photo-finish strip */
.fin { position: relative; padding: 34px 6px 0; }
.fin-track {
  position: relative; height: 46px; border-radius: 8px;
  background: linear-gradient(180deg, #0b0b0d, #101013);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}
.fin-ticks {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.13) 0 1px, transparent 1px 25%) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 2.5%) 0 100% / 100% 9px no-repeat;
}
.fin-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; opacity: 0; transform: scaleY(0.3); transform-origin: 50% 50%; }
.fin-mark--sol { background: var(--sol); }
.fin-mark--you { background: var(--you); }
.fin:not(.has-you) .fin-mark--you, .fin:not(.has-you) .fin-gap { display: none; }
.fin-flag {
  position: absolute; left: 0; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums;
  padding: 2px 6px; border-radius: 5px;
}
.fin-flag b { font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.fin-mark--sol .fin-flag { bottom: calc(100% + 4px); color: var(--ink); background: var(--sol); }
.fin-mark--you .fin-flag { top: calc(100% + 4px); color: var(--ink); background: var(--you); }
.fin-mark.flag-end .fin-flag { transform: translateX(calc(-100% + 2px)); }
.fin-mark.flag-start .fin-flag { transform: translateX(-2px); }
.fin-gap {
  position: absolute; top: 0; bottom: 0; opacity: 0;
  background: repeating-linear-gradient(-45deg, rgba(var(--you-rgb),0.22) 0 4px, transparent 4px 8px);
  border-left: 0; display: flex; align-items: center; justify-content: center;
}
.fin.you-wins .fin-gap { background: repeating-linear-gradient(-45deg, rgba(var(--sol-rgb),0.22) 0 4px, transparent 4px 8px); }
.fin-gap-label { font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: 13px; font-weight: 600; color: var(--you); white-space: nowrap; background: rgba(10,10,11,0.85); padding: 1px 6px; border-radius: 4px; }
.fin.you-wins .fin-gap-label { color: var(--sol); }
.fin-sweep { position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; margin-left: -1px; background: var(--fg); opacity: 0; box-shadow: 0 0 0 1px rgba(10,10,11,0.6); }
.fin-axis { position: relative; height: 14px; margin-top: 32px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.fin-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.fin-axis span:first-child { transform: none; }
.fin-axis span:last-child { transform: translateX(-100%); }
.fin:not(.has-you) .fin-axis { margin-top: 10px; }

.fin.is-run .fin-sweep { left: var(--sweep-to); opacity: 1; transition: left var(--sweep-ms) linear; }
.fin.is-done .fin-sweep { opacity: 0; transition: left var(--sweep-ms) linear, opacity 0.3s ease; }
.fin.is-run .fin-mark--sol { opacity: 1; transform: none; transition: opacity 0.1s linear var(--sol-delay), transform 0.35s cubic-bezier(.2,.9,.2,1.2) var(--sol-delay); }
.fin.is-run .fin-mark--you { opacity: 1; transform: none; transition: opacity 0.1s linear var(--you-delay), transform 0.35s cubic-bezier(.2,.9,.2,1.2) var(--you-delay); }
.fin.is-done .fin-gap { opacity: 1; transition: opacity 0.3s ease; }

/* blocks */
.block { padding: 40px 0 52px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0; }
h2 .idx { color: var(--dim); margin-right: 12px; }
.h2-ticker { color: var(--fg); }
.block-lede { color: var(--muted); max-width: 52ch; margin: 0; }
.status { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); margin-right: 7px; vertical-align: 1px; }
.status[data-status="live"]::before { background: var(--sol); }
.status[data-status="noisy"]::before { background: #e0b03a; }
.status[data-status="offline"]::before { background: var(--bad); }
.status--plain::before { display: none; }

.glass-hero { padding: 22px 20px 18px; border-bottom: 1px solid var(--line); }
.lag { margin: 8px 0 4px; font-family: var(--display); font-variation-settings: "wdth" 87.5; font-weight: 500; font-size: clamp(34px, 9vw, 56px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lag small { font-size: 0.42em; color: var(--muted); letter-spacing: -0.01em; margin-left: 8px; }
.lag-note { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.kv { margin: 0; display: grid; grid-template-columns: 1fr; font-family: var(--mono); font-size: 13px; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 20px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dt small { color: var(--dim); font-size: 10.5px; margin-left: 4px; }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .kv { grid-template-columns: 1fr 1fr; }
  .kv > div:nth-child(2) { border-top: 0; }
  .kv > div:nth-child(odd) { border-right: 1px solid var(--line); }
}
.explain { display: grid; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 72ch; }
.explain p { margin: 0; }
.explain b { color: var(--fg); }
@media (min-width: 900px) { .explain { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 28px; } }

.changes { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .changes { grid-template-columns: repeat(3, 1fr); } }
.changes li { padding: 18px 18px 20px; }
.chg-v { margin: 14px 0 10px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chg-v s { font-family: var(--mono); font-size: 14px; color: var(--dim); text-decoration-thickness: 1px; }
.chg-v b { font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.changes li:first-child .chg-v b { color: var(--sol); }
.chg-d { color: var(--muted); font-size: 14.5px; margin: 0; }
.verified { font-family: var(--mono); font-size: 12px; color: var(--muted); border-left: 2px solid var(--sol); padding: 2px 0 2px 12px; margin: 0 0 14px; max-width: 76ch; }
.sources { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sources a { color: var(--muted); }

.blink-grid { display: grid; gap: 14px; align-items: end; margin-bottom: 22px; }
@media (min-width: 900px) { .blink-grid { grid-template-columns: auto 1fr; gap: 48px; } }
.big-stat { font-family: var(--display); font-variation-settings: "wdth" 80; font-size: clamp(64px, 17vw, 156px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; margin: 0; font-variant-numeric: tabular-nums; }
.big-stat .dash { color: var(--dim); font-size: 0.5em; vertical-align: 0.3em; margin: 0 0.06em; }
.big-stat small { font-size: 0.24em; letter-spacing: 0; color: var(--muted); margin-left: 10px; font-weight: 400; }
.scale { padding: 20px 18px 16px; margin: 0 0 16px; }
.scale-axis { position: relative; height: 18px; margin: 0 0 8px 104px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.scale-axis span { position: absolute; bottom: 4px; transform: translateX(-50%); white-space: nowrap; }
.scale-axis span:first-child { transform: none; }
.scale-axis span:last-child { transform: translateX(-100%); }
.scale-row { position: relative; height: 28px; margin-left: 104px; }
.scale-label { position: absolute; left: -104px; width: 98px; top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.scale-bar { position: absolute; top: 9px; height: 10px; background: #2a2a2f; border-radius: 3px; }
.scale-bar--sol { background: var(--sol); }
.scale-tick { position: absolute; top: 4px; width: 2px; height: 20px; background: var(--fg); border-radius: 1px; }
.scale-tick--you { background: var(--you); }

.board { list-style: none; margin: 0 0 12px; padding: 0; font-family: var(--mono); font-size: 13.5px; overflow: hidden; }
.board li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board li:first-child { border-top: 0; }
.board .b-rank { color: var(--dim); }
.board .b-best { color: var(--fg); white-space: nowrap; }
.board .b-best b { font-family: var(--display); font-variation-settings: "wdth" 87.5; font-weight: 600; }
.board .b-delta { color: var(--you); margin-left: 8px; font-size: 12px; }
.board .b-meta { color: var(--muted); text-align: right; font-size: 11.5px; }
.board li.is-new { background: rgba(var(--you-rgb),0.06); }
.board li.is-new .b-rank { color: var(--you); }
.board .board-empty { display: block; color: var(--muted); }

.coin-panel { padding: 16px; }
.ca { display: flex; gap: 8px; align-items: stretch; margin: 0 0 12px; }
.ca code { flex: 1; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 13px; background: var(--bg-2); }
.coin-links { display: flex; gap: 8px; margin-bottom: 14px; }
.fine { font-size: 13px; color: var(--dim); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 18px; border-radius: 12px;
  background: linear-gradient(180deg, #f7f6f2, #dedcd5); color: var(--ink); border: 0;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,0.12), 0 12px 24px -14px rgba(0,0,0,0.9);
  font-family: var(--mono); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  text-transform: lowercase; touch-action: manipulation;
}
.btn--ghost { background: rgba(255,255,255,0.03); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255,255,255,0.04); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--sol { background: linear-gradient(180deg, #e2ff6e, var(--sol)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -2px 0 rgba(0,0,0,0.15), 0 14px 28px -14px rgba(0,0,0,0.9); }
.link-btn { background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.foot-eye { width: 26px; color: var(--muted); }

/* ---------------- the stage ---------------- */
.stage {
  position: fixed; inset: 0; z-index: 50;
  height: 100vh; height: 100dvh;
  background: radial-gradient(ellipse 80% 60% at 50% 42%, #141417, #08080a 72%);
  color: var(--fg);
  display: flex; flex-direction: column;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  cursor: pointer;
  --eye-accent: #2a2a30;
  --iris: #141418;
}
.stage[data-state="go"] { background: var(--sol); color: var(--ink); --iris: var(--ink); --eye-accent: var(--sol); }
.stage[data-state="false"] { background: radial-gradient(ellipse 80% 60% at 50% 42%, #22100d, #0b0606 72%); color: var(--bad); }
.stage[data-state="summary"] { touch-action: auto; user-select: text; -webkit-user-select: text; cursor: default; overflow-y: auto; }

.hud {
  display: flex; align-items: center; gap: 14px;
  padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top));
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: 0.08em;
}
.hud-pips { display: inline-flex; gap: 5px; }
.hud-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.5; }
.hud-pips i.ok { background: var(--you); border-color: var(--you); opacity: 1; }
.hud-pips i.fs { background: var(--bad); border-color: var(--bad); opacity: 1; }
.hud-pips i.now { opacity: 1; }
.stage[data-state="go"] .hud { color: rgba(10,10,11,0.6); }
.stage[data-state="go"] .hud-pips i.ok { background: var(--ink); border-color: var(--ink); }
.stage[data-state="summary"] .hud { border-bottom: 1px solid var(--line); background: rgba(10,10,11,0.8); position: sticky; top: 0; z-index: 2; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hud-quit {
  margin-left: auto; background: none; border: 1px solid currentColor; color: inherit; opacity: 0.7;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 999px; padding: 6px 12px; cursor: pointer;
}

.stage-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom)); text-align: center; }
.stage-eye { width: min(74vw, 440px); color: inherit; }
.stage-eye .eye { display: block; width: 100%; height: auto; overflow: visible; }
.stage[data-state="result"] .stage-eye, .stage[data-state="summary"] .stage-eye { display: none; }
.view { display: none; width: 100%; max-width: 760px; }
.stage[data-state="wait"] .view--wait,
.stage[data-state="go"] .view--go,
.stage[data-state="result"] .view--result,
.stage[data-state="false"] .view--false,
.stage[data-state="summary"] .view--summary { display: block; }
.stage[data-state="summary"] .stage-body { justify-content: flex-start; padding-top: 24px; }

.v-cue { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 11vw, 76px); line-height: 1; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--fg); }
.v-small { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.09em; }
.v-small--bad { color: rgba(255,74,61,0.8); margin-bottom: 18px; }
.v-go { font-family: var(--display); font-variation-settings: "wdth" 112.5; font-size: clamp(64px, 18vw, 150px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.v-false { font-family: var(--display); font-variation-settings: "wdth" 80; font-size: clamp(52px, 15vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; margin: 0 0 12px; text-transform: uppercase; color: var(--bad); }
.stage[data-state="false"] .stage-body { animation: shake 0.32s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 15%, 85% { transform: translateX(-3px); } 30%, 70% { transform: translateX(6px); } 45%, 55% { transform: translateX(-8px); } }

.v-ms { font-family: var(--display); font-variation-settings: "wdth" 80; font-size: clamp(96px, 30vw, 220px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.88; margin: 0 0 8px; font-variant-numeric: tabular-nums; color: var(--fg); }
.v-ms small { font-family: var(--mono); font-size: 0.16em; letter-spacing: 0.04em; color: var(--muted); margin-left: 8px; font-weight: 500; vertical-align: 0.2em; }
.v-finish { max-width: 560px; margin: 0 auto 26px; text-align: left; }
.v-taunt { text-wrap: balance; font-size: clamp(19px, 5vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0 auto 12px; max-width: 24ch; color: var(--fg); }
.v-old { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin: 0 0 26px; }
.v-next { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.1em; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.view--summary { text-align: left; padding-bottom: 32px; }
@media (min-width: 720px) { .view--summary { max-width: 660px; } }
.s-head { font-size: clamp(30px, 8vw, 50px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; margin: 10px 0 10px; }
.s-taunt { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.tries { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-variant-numeric: tabular-nums; }
.tries li { border-radius: 10px; padding: 9px 4px 10px; text-align: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display); font-variation-settings: "wdth" 87.5; font-size: 15px; font-weight: 600; }
.tries li small { display: block; color: var(--dim); font-family: var(--mono); font-size: 10px; font-weight: 400; margin-bottom: 2px; }
.tries li.is-best { box-shadow: inset 0 0 0 1px var(--you); color: var(--you); }
.tries li.is-false { color: var(--bad); font-size: 12px; }
.card-preview { display: block; width: 100%; aspect-ratio: 1200 / 675; border-radius: 12px; background: var(--surface); margin: 0 0 14px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0,0,0,1); }
.s-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.s-actions .btn--sol { grid-column: 1 / -1; }
.s-actions:has(#s-share[hidden]) #s-download { grid-column: 1 / -1; }
.s-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-foot .btn { flex: 1; max-width: 50%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
