:root {
  --bg: #05060a;
  --fg: #e9ecf4;
  --dim: #7d8498;
  --ride: #ff6a2b;
  --tech: #2bd4ff;
  --luna: #c46bff;
  --hot: #ff4a2b;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--sans); overflow: hidden; }
body.plain, body.plain html { overflow: auto; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#scene.drag { cursor: grabbing; }

#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lb { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; transition: opacity .15s linear; }
.lb.note {
  font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #aab3c9;
  padding: 4px 8px; border: 1px solid rgba(170,179,201,.22); border-radius: 99px; background: rgba(8,10,18,.55);
  backdrop-filter: blur(4px);
}
.lb.hub {
  pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--fg);
}
.lb.hub .name { font: 700 15px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.lb.hub .sub { font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--c); text-transform: uppercase; }
.lb.hub .go { font: 500 10px/1 var(--mono); color: var(--dim); opacity: 0; transition: opacity .2s; }
.lb.hub:hover .go, .lb.hub:focus-visible .go { opacity: 1; }
.lb.hub .name { text-shadow: 0 0 18px var(--c); }
.lb.hub:focus-visible { outline: 1px solid var(--c); outline-offset: 6px; border-radius: 6px; }
.lb.core { font: 800 13px/1 var(--sans); letter-spacing: .3em; color: #fff; text-shadow: 0 0 22px var(--hot); }

.top { position: fixed; left: max(20px, env(safe-area-inset-left)); top: max(18px, env(safe-area-inset-top)); z-index: 2; pointer-events: none; }
.brand { font: 800 14px/1 var(--sans); letter-spacing: .32em; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 14px 2px var(--hot); animation: pulse 2.4s ease-in-out infinite; }
.tag { margin: 8px 0 0 19px; font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 18px max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  pointer-events: none; background: linear-gradient(transparent, rgba(5,6,10,.7));
}
.hint { margin: 0; font: 500 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.mail { pointer-events: auto; color: var(--fg); text-decoration: none; font: 600 14px/1 var(--mono); letter-spacing: .04em; padding: 10px 14px; border: 1px solid rgba(255,74,43,.55); border-radius: 8px; background: rgba(255,74,43,.08); transition: background .2s, box-shadow .2s; }
.mail:hover, .mail:focus-visible { background: rgba(255,74,43,.2); box-shadow: 0 0 22px rgba(255,74,43,.35); outline: none; }

#fallback { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; }
#fallback a, .nojs a { color: var(--fg); }
#fallback[hidden] { display: none; }
#fallback ul, .nojs ul { list-style: none; padding: 0; line-height: 2; }
.nojs { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; }

.nf { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 8px; }
.nf h1 { font-size: 72px; margin: 0; letter-spacing: .1em; color: var(--hot); }
.nf a { color: var(--fg); }

@media (max-width: 560px) {
  .bottom { flex-direction: column; align-items: flex-start; }
  .lb.hub .name { font-size: 13px; }
  .lb.note { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

[hidden] { display: none !important; }
