:root { --bg:#120c22; --panel:#1f1638; --ink:#f4f1de; --dim:#9a8fbf; --orange:#ff8c1a; --yellow:#ffd166; --red:#ef476f; --green:#06d6a0; --blue:#118ab2; --line:#3a2d63; }
* { box-sizing: border-box; }
html, body { margin:0; height:100%; background:var(--bg); color:var(--ink); font-family:'Press Start 2P', ui-monospace, monospace; font-size:12px; line-height:1.8; image-rendering:pixelated; }
body::after { content:''; pointer-events:none; position:fixed; inset:0; background:repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); z-index:999; }
a { color:var(--yellow); }
.view { display:none; min-height:100vh; padding:32px 16px; }
.view.on { display:flex; flex-direction:column; align-items:center; }
.wrap { width:100%; max-width:720px; }
.panel { background:var(--panel); padding:24px; margin:16px 0; box-shadow: 0 0 0 4px var(--line), 0 0 0 8px #000, 8px 8px 0 8px #000; }
h1 { font-size:40px; margin:8px 0; color:var(--orange); text-shadow: 4px 4px 0 #000, -2px -2px 0 var(--red); letter-spacing:4px; }
h2 { font-size:18px; color:var(--yellow); text-shadow:3px 3px 0 #000; margin:0 0 16px; }
.tag { color:var(--dim); font-size:10px; }
.logo { display:flex; align-items:center; gap:16px; }
.logo img { width:96px; height:96px; animation: hop 1.2s steps(6) infinite; }
.btn { font:inherit; font-size:13px; cursor:pointer; border:0; color:#000; background:var(--orange); padding:14px 20px; margin:6px 6px 6px 0;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), inset 4px 4px 0 rgba(255,255,255,.35), 0 0 0 4px #000; text-transform:uppercase; }
.btn:hover { filter:brightness(1.1); transform:translateY(-2px); }
.btn:active { transform:translateY(2px); }
.btn.alt { background:var(--yellow); } .btn.ghost { background:var(--line); color:var(--ink); } .btn.green { background:var(--green); }
.btn + .small { margin-top:12px; }
.btn.google::before { content:'G '; color:#4285f4; }
.btn[disabled] { opacity:.5; cursor:not-allowed; }
input[type=text], input[type=email], input[type=tel] { font:inherit; font-size:14px; padding:12px; background:#000; color:var(--yellow); border:0; box-shadow:0 0 0 4px var(--line); width:100%; max-width:360px; margin:8px 0; }
.err { color:var(--red); min-height:1.8em; font-size:10px; }
ol.rules li, ul.rules li { margin:10px 0; }
.small { font-size:10px; color:var(--dim); }
table { width:100%; border-collapse:collapse; font-size:10px; }
th, td { text-align:left; padding:8px 6px; border-bottom:2px dashed var(--line); }
th { color:var(--yellow); }
tr.me td { color:var(--orange); }
.live { color:var(--green); animation: blink 1s steps(2) infinite; }
.dead { color:var(--dim); }
@keyframes blink { 50% { opacity:.2; } }
@keyframes hop { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-14px); } }
.tiers { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap:8px; font-size:9px; }
.tiers div { background:#0005; padding:8px; }
.tiers b { color:var(--yellow); }
/* --- game --- */
#play.on { position:fixed; inset:0; z-index:50; }
#play { padding:0; position:relative; overflow:hidden; background: radial-gradient(circle at 50% 120%, #1c1236 0%, var(--bg) 60%); }
#warn { position:absolute; top:0; left:0; right:0; line-height:1.6; box-shadow:0 4px 0 #000; background:var(--red); color:#000; text-align:center; padding:8px; font-size:10px; z-index:5; }
#warn span { animation: warnblink 1.2s steps(2) infinite; font-weight:bold; }
@keyframes warnblink { 50% { color:#fff; } }
#hud { position:absolute; top:48px; left:16px; z-index:4; }
#score { font-size:36px; color:var(--yellow); text-shadow:4px 4px 0 #000; }
#hudTier { font-size:11px; color:var(--orange); }
#nextTier { font-size:9px; color:var(--dim); }
#nextCheck { position:absolute; top:48px; right:16px; font-size:9px; color:var(--dim); text-align:right; z-index:4; }
#fish { position:absolute; width:120px; height:120px; left:40%; bottom:22%; transition:left 1.4s steps(10), bottom 1.4s steps(10); z-index:3; }
#fish img { width:100%; height:100%; animation: hop .7s steps(4) infinite; }
#fish.flip img { transform: scaleX(-1); animation-name: hopflip; }
@keyframes hopflip { 0%,100% { transform:scaleX(-1) translateY(0); } 50% { transform:scaleX(-1) translateY(-18px); } }
#bubble { position:absolute; width:10px; height:10px; background:#9bd; box-shadow: 0 0 0 2px #000; opacity:.4; }
#startOverlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:6; background:#000a; }
#check { position:absolute; inset:0; display:none; align-items:center; justify-content:center; background:#000c; z-index:10; }
#check.on { display:flex; }
#check .panel { max-width:420px; text-align:center; }
.robot { display:flex; align-items:center; gap:12px; justify-content:center; cursor:pointer; user-select:none; background:#000; padding:12px; margin:8px 0; }
.robot .box { width:28px; height:28px; background:#fff; box-shadow: inset -3px -3px 0 #bbb, 0 0 0 3px #000; position:relative; }
.robot.on .box::after { content:'✔'; position:absolute; inset:0; color:var(--green); font-size:20px; display:flex; align-items:center; justify-content:center; }
#checkTimer { color:var(--red); font-size:20px; }
.bigscore { font-size:44px; color:var(--yellow); text-shadow:4px 4px 0 #000; margin:12px 0; }
.badge { display:inline-block; padding:10px 14px; background:var(--orange); color:#000; box-shadow:0 0 0 4px #000; font-size:14px; margin:8px 0; }
.foot { margin-top:24px; font-size:9px; color:var(--dim); text-align:center; }

.sprite { width:48px; height:48px; image-rendering:pixelated; vertical-align:middle; }
.sprite.sm { width:28px; height:28px; }
.sprite.big { width:128px; height:128px; display:block; margin:0 auto 8px; animation: hop 1.2s steps(4) infinite; }
.tiers div { display:flex; gap:8px; align-items:center; }
#hudTier img { width:32px; height:32px; vertical-align:middle; }
#puzzle { margin:12px 0; }
#puzzle .q { font-size:22px; color:var(--yellow); margin:12px 0; letter-spacing:6px; text-shadow:3px 3px 0 #000; user-select:none; }
#puzzle .opts { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:12px 0; }
#puzzle .opt { background:#000; border:0; padding:8px; cursor:pointer; box-shadow:0 0 0 3px var(--line); }
#puzzle .opt:hover { box-shadow:0 0 0 3px var(--yellow); }
#puzzle .opt svg, #puzzle .target svg { width:44px; height:44px; display:block; }
#puzzle .target { display:inline-block; background:#000; padding:10px; box-shadow:0 0 0 3px var(--yellow); }
#puzzle input[type=range] { width:100%; accent-color: var(--orange); height:28px; }
#puzzle .sval { font-size:28px; color:var(--orange); }
#check .panel { max-width:520px; }
#checkLevel { color:var(--green); }
#checkLevel.strict { color:var(--red); }
#startOverlay .robot { margin:12px auto; max-width:300px; }

#quote { position:absolute; left:50%; bottom:28px; transform:translateX(-50%); width:min(760px, 90vw); text-align:center;
  font-size:10px; line-height:2; color:var(--dim); opacity:0; transition:opacity 1.2s steps(6); z-index:2; pointer-events:none; }
#quote.on { opacity:.85; }
#quote::before { content:'> '; color:var(--orange); }
#quote.fact::before { content:'FACT > '; color:var(--green); }
#quote.myth::before { content:'MYTH BUSTED > '; color:var(--blue); }
#quote.fun::before { content:'FUN FACT > '; color:var(--yellow); }
#quote.nag::before { content:'> '; color:var(--red); }
#play.checking #quote { opacity:0 !important; transition:none; visibility:hidden; }

/* --- static pages (privacy / terms) --- */
.page { padding:32px 16px; display:flex; flex-direction:column; align-items:center; }
.page h1 { font-size:28px; }
.page h3 { font-size:12px; color:var(--orange); margin:20px 0 8px; }
.page p, .page li { font-size:11px; }
.links { margin:24px 0 8px; font-size:9px; text-align:center; color:var(--dim); }
