@font-face { font-family: 'Pixel'; src: url('/pixel.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF; }
:root {
  --bg: #07060f; --ink: #e2e8f0; --muted: #94a3b8; --dim: #64748b;
  --cyan: #67e8f9; --cyan-2: #22d3ee; --pink: #f0abfc; --pink-2: #e879f9; --red: #fb7185;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --pixel: 'Pixel', var(--mono);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.grid { position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 8% -10%, rgba(217,70,239,.20), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px) 0 0 / 32px 32px; }
.scan { position: fixed; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
main { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) 16px 40px;
  min-height: 100vh; display: flex; flex-direction: column; }

header { text-align: center; margin-bottom: clamp(24px, 5vw, 48px); }
.brand { font-size: 12px; letter-spacing: .5em; color: rgba(103,232,249,.75); }
.title { font-family: var(--pixel); font-weight: 400; margin: 18px 0 16px; font-size: clamp(34px, 8vw, 72px); line-height: 1;
  background: linear-gradient(90deg, #67e8f9, #a78bfa 45%, #f0abfc 75%, #67e8f9); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(167,139,250,.55)); animation: shine 6s linear infinite, flicker 7s infinite; }
.kicker { font-size: 12px; letter-spacing: .32em; color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 28px); margin: auto 0; }
.tile { position: relative; border-radius: 14px; padding: clamp(18px, 3vw, 30px); background: rgba(0,0,0,.55);
  border: 1px solid; min-width: 0; }
.tile.q { border-color: rgba(34,211,238,.45); box-shadow: 0 0 40px -10px rgba(34,211,238,.6), inset 0 0 40px -30px rgba(34,211,238,.8); }
.tile.r { border-color: rgba(232,121,249,.45); box-shadow: 0 0 40px -10px rgba(232,121,249,.6), inset 0 0 40px -30px rgba(232,121,249,.8); }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .3em; color: var(--ink); }
.label svg { width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linejoin: round; }
.q .label svg { stroke: var(--cyan); } .r .label svg { stroke: var(--pink); }
.live { font-family: var(--pixel); font-size: 10px; color: var(--red); text-shadow: 0 0 8px rgba(251,113,133,.8); animation: blink 1.1s steps(2, start) infinite; }
.live.off { animation: none; color: var(--dim); text-shadow: none; }
.num { font-family: var(--pixel); margin: clamp(16px, 3vw, 26px) 0 clamp(14px, 2.5vw, 22px); line-height: 1.15;
  /* 17 glyphs (trillions with commas) must fit the tile at any width; the pixel font is ~1em per glyph */
  font-size: min(64px, calc((min(100vw, 1080px) - 32px - 2 * clamp(18px, 3vw, 30px) - 4px) / 17.5)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.q .num { color: var(--cyan); text-shadow: 0 0 18px rgba(34,211,238,.55); }
.r .num { color: var(--pink); text-shadow: 0 0 18px rgba(232,121,249,.55); }
.sub { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); }
.q .sub b { color: var(--cyan); } .r .sub b { color: var(--pink); }
.sub b { font-weight: 600; }

footer { padding-top: clamp(28px, 6vw, 56px); text-align: center; color: var(--dim); font-size: 12px; line-height: 1.7; }
footer p { max-width: 720px; margin: 0 auto 6px; }
.stamp { color: #475569; }

@keyframes shine { to { background-position: 200% center; } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1 } 93% { opacity: .55 } 94% { opacity: 1 } 96% { opacity: .7 } 97% { opacity: 1 } }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .title, .live { animation: none; } }
