html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: linear-gradient(#0b0418 0%, #2a0b4a 45%, #ff3e9a33 62%, #0b0418 63%); touch-action: none; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.crt { position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 120px rgba(0,0,0,.75); }
.hud { position: fixed; left: 0; right: 0; z-index: 10; text-align: center; pointer-events: none; padding: 0 16px; }
.hud.top { top: calc(18px + env(safe-area-inset-top)); }
.hud.bottom { bottom: calc(26px + env(safe-area-inset-bottom)); }
.title { font-family: var(--pixel); font-size: clamp(16px, 5vw, 28px); letter-spacing: 3px; margin: 0;
  background: linear-gradient(#fff6, #fff 40%, var(--pink) 60%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px #ff3e9a88); }
.who { font-family: var(--mono); font-size: 20px; color: var(--cyan); margin-top: 8px; pointer-events: auto; }
.who button { background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 20px; text-decoration: underline; cursor: pointer; }
.planet-name { font-family: var(--pixel); font-size: clamp(16px, 5.4vw, 26px); margin: 0 0 10px; text-shadow: 0 0 14px currentColor; }
.planet-tag { font-family: var(--mono); font-size: 22px; color: var(--muted); margin: 0 0 18px; min-height: 1.2em; }
.controls { display: flex; justify-content: center; align-items: center; gap: 14px; pointer-events: auto; }
.arrow { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line); background: #0b041899; color: var(--text);
  font-family: var(--pixel); font-size: 14px; cursor: pointer; }
.enter { font-family: var(--pixel); font-size: 13px; padding: 18px 26px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--yellow); color: #251a00; box-shadow: 0 0 24px #ffd31966; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { box-shadow: 0 0 6px #ffd31922; } }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.dots i { width: 8px; height: 8px; background: var(--line); display: block; }
.dots i.on { background: var(--yellow); }
.panel { position: fixed; z-index: 20; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px));
  background: #140a2bee; border: 2px solid var(--pink); border-radius: 16px; padding: 24px 20px; box-shadow: 0 0 40px #ff3e9a55; touch-action: auto; }
.panel h2 { font-family: var(--pixel); font-size: 14px; text-align: center; margin: 0 0 6px; line-height: 1.6; }
.panel .sub { text-align: center; font-family: var(--mono); font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.panel .switch { text-align: center; margin-top: 14px; font-size: 14px; }
.panel .switch button { background: none; border: 0; color: var(--cyan); cursor: pointer; text-decoration: underline; }
.panel .err { color: var(--danger); font-size: 14px; min-height: 1.2em; text-align: center; }
.demo-badge { position: fixed; z-index: 15; top: calc(8px + env(safe-area-inset-top)); right: 8px; font-family: var(--pixel); font-size: 8px;
  color: #251a00; background: var(--yellow); padding: 6px 8px; border-radius: 6px; }
.hidden { display: none !important; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; font-family: var(--pixel); font-size: 12px; z-index: 30; background: var(--bg); }
.instbtn { pointer-events: auto; margin-top: 10px; font-family: var(--pixel); font-size: 9px; padding: 8px 12px; cursor: pointer; color: var(--yellow);
  background: rgba(11, 4, 24, .7); border: 2px solid var(--yellow); box-shadow: 0 0 12px rgba(255, 214, 0, .35); }
#instp ol { text-align: left; font-family: var(--mono); font-size: 20px; line-height: 1.3; padding-left: 22px; }
#instp { z-index: 60; background: #0b0418; }
