:root{
  --bg:#070a12;
  --fg:#eaf0ff;
  --muted:rgba(234,240,255,.65);
  --stroke:rgba(255,255,255,.12);
  --card:rgba(255,255,255,.06);
}
*{box-sizing:border-box; -webkit-tap-highlight-color: transparent;}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:'Press Start 2P', system-ui;}

.hud{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:12px 14px;border-bottom:1px solid var(--stroke);background:rgba(0,0,0,.25);position:sticky;top:0;z-index:2}
.title{font-size:14px;letter-spacing:0.5px}
.sub{font-family:system-ui, -apple-system, Segoe UI, Arial, sans-serif;font-size:12px;color:var(--muted);margin-top:6px}
.pill{font-family:system-ui, -apple-system, Segoe UI, Arial, sans-serif;font-size:12px;border:1px solid var(--stroke);background:var(--card);padding:8px 10px;border-radius:12px;margin-left:8px;display:inline-block}

.stage{position:relative;height:calc(100vh - 64px);}
#c{width:100%;height:100%;display:block;image-rendering: pixelated;image-rendering: crisp-edges;touch-action: manipulation;}

.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.55);backdrop-filter: blur(6px);}
.overlay.hidden{display:none}
.card{max-width:560px;width:100%;border:1px solid var(--stroke);background:rgba(0,0,0,.45);border-radius:18px;padding:18px}
.card__h1{font-size:14px;line-height:1.5;margin-bottom:10px}
.card__p{font-family:system-ui, -apple-system, Segoe UI, Arial, sans-serif;color:var(--muted);font-size:13px;line-height:1.45;margin-bottom:14px}
.row{display:flex;gap:10px;flex-wrap:wrap}
.btn{font-family:'Press Start 2P', system-ui;font-size:12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:rgba(126,243,255,.15);color:var(--fg)}
.btn--ghost{background:rgba(255,255,255,.06)}
.hint{margin-top:14px;font-family:system-ui, -apple-system, Segoe UI, Arial, sans-serif;color:rgba(234,240,255,.55);font-size:12px}
