* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #0b1016; }
body { color: #e8edf3; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

#scene { display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; outline: none; }

#status {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 24px; text-align: center; background: #0b1016;
}
#status[hidden] { display: none; }
#status h1 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: 0.01em; }
#status .message { margin: 0; color: #c7d0da; }
#status .detail { margin: 0; min-height: 1.4em; font-size: 13px; color: #7f8b98; font-variant-numeric: tabular-nums; }
#status .bar { width: min(360px, 70vw); height: 4px; border-radius: 2px; background: #1c2633; overflow: hidden; }
#status .fill { width: 0; height: 100%; background: #dfff00; transition: width 120ms linear; }
#status.error .bar { display: none; }
#status.error .message { color: #ff8a80; }
#status button {
  margin-top: 8px; padding: 8px 16px; border: 1px solid #334155; border-radius: 6px;
  background: #141c26; color: inherit; font: inherit; cursor: pointer;
}
#status button:hover { background: #1c2633; }

.noscript { position: fixed; inset: 0; display: grid; place-content: center; margin: 0; background: #0b1016; }
