:root { --bg: #0b111c; --line: rgba(120,150,210,.08); --text: #e8edf6; --muted: #8d9ab0; --hi: #ff8a1f; --ok: #3ccf8e; --bad: #ff5d5d; --blue: #5b8cff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; }
[hidden] { display: none !important; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.glow { position: fixed; left: 50%; bottom: -20vh; width: 90vw; height: 60vh; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,138,31,.10), transparent); }

.top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; }
.hud { margin: 0 auto; display: flex; align-items: center; gap: 14px; font: 500 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; color: var(--muted); text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,17,28,.6); backdrop-filter: blur(6px); }
.hud .tag { color: var(--hi); }
.hud b { color: var(--text); }
.dots { display: flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(141,154,176,.3); }
.dots i.ok { background: var(--ok); } .dots i.bad { background: var(--bad); } .dots i.now { background: var(--hi); }
.chip { margin-left: auto; color: #1a1206; background: var(--hi); text-decoration: none; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.hud + .chip { margin-left: 0; }

.loading { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

.next { position: fixed; right: 22px; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 4;
  font: 500 11px ui-monospace, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.next .frame { width: 190px; height: 190px; border: 1px solid rgba(91,140,255,.35); border-radius: 6px; background: rgba(11,17,28,.35); }

.dock { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(760px, 100%); padding: 0 16px calc(18px + env(safe-area-inset-bottom)); z-index: 5; text-align: center; }
.q { margin: 0 0 12px; font: 500 12px ui-monospace, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opt { font: inherit; font-size: 14px; font-weight: 500; padding: 13px 10px; border-radius: 12px; cursor: pointer; color: var(--text);
  background: rgba(16,24,40,.72); border: 1px solid rgba(91,140,255,.28); backdrop-filter: blur(6px); transition: border-color .15s, background .15s, transform .15s; }
.opt:hover:not(:disabled) { border-color: var(--hi); transform: translateY(-1px); }
.opt:disabled { cursor: default; opacity: .55; }
.opt.ok { opacity: 1; border-color: var(--ok); background: rgba(60,207,142,.16); color: #b9f5d8; }
.opt.bad { opacity: 1; border-color: var(--bad); background: rgba(255,93,93,.14); color: #ffc2c2; }
.fb { min-height: 20px; margin: 12px auto 0; max-width: 620px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fb b.r { color: var(--ok); } .fb b.w { color: var(--bad); }
.hint { margin: 8px 0 0; font-size: 11px; color: rgba(141,154,176,.6); }

.go { display: inline-block; font: inherit; font-weight: 600; font-size: 15px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--hi); color: #1a1206; text-decoration: none; text-align: center; }
.go:hover { filter: brightness(1.08); }
.go:disabled { opacity: .4; cursor: default; }
.go.ghost { background: transparent; color: var(--text); border: 1px solid rgba(141,154,176,.35); }
.dock .go { margin-top: 10px; }

.card { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100% - 28px)); z-index: 6;
  padding: 24px; border-radius: 18px; background: rgba(12,19,32,.82); border: 1px solid rgba(91,140,255,.25); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 12px; text-align: center; }
.card h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.card h2 { margin: 0; font-size: 46px; color: var(--hi); letter-spacing: -.02em; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.eyebrow { font: 500 11px ui-monospace, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--hi); }
.lock { margin-top: 6px; padding: 16px; border-radius: 14px; border: 1px solid rgba(255,138,31,.3); background: rgba(255,138,31,.06); display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 760px) {
  .brand span, .hud .score { display: none; }
  .hud { gap: 10px; padding: 8px 12px; }
  .dots { display: none; }
  .next { top: 70px; right: 12px; }
  .next .frame { width: 96px; height: 96px; }
  .opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .opt { padding: 12px 8px; font-size: 13px; }
  .fb { font-size: 13px; }
  .hint { display: none; }
}
