body.space { background: #050816; }
canvas#space { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: crosshair; image-rendering: auto; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.lbl3d { position: absolute; transform: translate(-50%, -100%); font-family: var(--pix); font-size: 11px; letter-spacing: 1px; color: #0b1b3a; background: var(--sun); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 3px 8px; white-space: nowrap; display: flex; gap: 6px; align-items: center; transition: opacity .2s; }
.lbl3d .sw { width: 8px; height: 8px; border: 1px solid var(--ink); }
.lbl3d.hot { background: #fff; }
.lbl3d .sub { font-family: var(--mono); font-size: 10px; opacity: .75; letter-spacing: 0; }
.space .brand-sub { background: var(--accent); }
.space .hint { background: rgba(5,8,22,.78); }
.space .dialog { background: #0b1b3a; color: #fffaf0; border-color: #fffaf0; box-shadow: 6px 6px 0 var(--accent); }
.space .pbtn { text-decoration: none; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: #050816; z-index: 20; transition: opacity .5s; }
.loading.gone { opacity: 0; pointer-events: none; }
.loading-box { font-family: var(--pix); color: #fffaf0; font-size: 14px; letter-spacing: 2px; border: 3px solid #fffaf0; padding: 14px 20px; box-shadow: 6px 6px 0 var(--accent); }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.space .plain { background: #050816; color: #fffaf0; }
.space .plain h1 { color: #fffaf0; text-shadow: 4px 4px 0 var(--accent); }
.space .plain section { border-top-color: #2a3350; }
.space .plain h3 { color: #fffaf0; }
.space .plain .sub { color: var(--sun); }
.space .plain a { color: #7ff7ff; }
.space.plain-mode .brand-name { color: #fffaf0; text-shadow: 3px 3px 0 var(--accent); }
.space.plain-mode .brand-sub { color: #fff; }
.space.plain-mode .hud { background: #050816; border-bottom-color: #2a3350; }
.space.plain-mode { background: #050816; }
.touchpad { position: fixed; left: 16px; bottom: 16px; width: 120px; height: 120px; border-radius: 50%; border: 3px solid rgba(255,250,240,.5); background: rgba(5,8,22,.5); z-index: 4; touch-action: none; display: none; }
.touchpad .knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
@media (pointer: coarse) { .touchpad { display: block; z-index: 7; } .space .dialog { bottom: 150px; } }
