@font-face { font-family: "Bebas Neue"; src: url("/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
:root { --bg: #0b0b0f; --ink: #ececf2; --dim: #9a9aa8; --faint: #3a3a46; --hot: #ff3d4c; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden;
  font: 600 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; touch-action: none; }
#canvas { display: block; width: 100%; height: 100%; outline: none; }
#boot { position: fixed; inset: 0; background: var(--bg); z-index: 5; transition: opacity .45s ease; }
/* Faint scanlines over the whole loader: texture, not noise. */
#boot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
#boot.hide { opacity: 0; pointer-events: none; }
#boot-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot-top { position: absolute; left: clamp(20px, 6vw, 96px); top: clamp(24px, 9vh, 96px); }
.logo { font: 400 clamp(64px, 12vw, 176px)/.82 "Bebas Neue", Impact, sans-serif; letter-spacing: -.005em; }
.logo em { color: var(--hot); font-style: normal; }
.tag { margin: 12px 0 0 .2em; color: var(--dim); font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .02em; }
.boot-ui { position: absolute; left: clamp(20px, 6vw, 96px); right: clamp(20px, 6vw, 96px); bottom: clamp(20px, 7vh, 72px); }
.note { margin: 0 0 10px; display: flex; justify-content: space-between; gap: 16px; min-height: 1.5em;
  font: 400 clamp(18px, 2vw, 24px)/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .06em; color: var(--ink); }
.bytes { color: var(--dim); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 2px; background: var(--faint); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width .2s linear; }
/* Compiling (no measurable progress): a short light that sweeps the full line. */
.bar b { position: absolute; top: 0; bottom: 0; width: 18%; left: -18%; display: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); }
.bar.scan b { display: block; animation: scan 1.1s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes scan { to { left: 100%; } }
.hint { margin: 12px 0 0; color: var(--dim); font-size: 13px; max-width: 60ch; }
.play { margin-top: 22px; font: 400 44px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .06em; padding: 14px 56px 10px;
  color: var(--bg); background: var(--ink); border: 0; cursor: pointer; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.play:hover { background: #fff; }
.play:focus-visible, .card a:focus-visible, .card button:focus-visible { outline: 3px solid #ffd21f; outline-offset: 3px; }
.card { position: absolute; left: 8vw; right: 8vw; top: 50%; transform: translateY(-50%); max-width: 620px; }
.card h1 { margin: 0 0 10px; font: 400 clamp(44px, 7vw, 84px)/.9 "Bebas Neue", Impact, sans-serif; }
.card p { color: #cfcfd8; max-width: 52ch; }
.card a { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions a, .actions button { font: 400 24px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; padding: 10px 18px 7px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.actions .primary { background: var(--ink); color: var(--bg); }
details { margin-top: 18px; color: var(--dim); font-size: 13px; }
pre { white-space: pre-wrap; }
#adslot { position: fixed; right: 16px; bottom: 16px; width: 300px; height: 250px; display: none; z-index: 4; }
#adslot.on { display: block; }
@media (max-height: 460px) { .tag { display: none; } }
@media (prefers-reduced-motion: reduce) { #boot { transition: none; } .bar.scan b { animation: none; left: 41%; } }
