/* SpacePi — DARHTA low-sun system: flat, hairlines, one Kapton accent. */
:root {
  --vacuum: #0C0D0F;
  --basalt: #1C1E22;
  --line-dark: #2A2D32;
  --aluminium: #B9BCC0;
  --dust: #EEECE7;
  --kapton: #D19A3C;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --pad: clamp(14px, 2.4vw, 24px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--vacuum); color: var(--dust); overflow: hidden; }
body {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
#sky:active { cursor: grabbing; }
.kiosk #sky { cursor: none; }

/* Corners: wordmark and the live clock. Nothing else sits on the scene. */
.brand {
  position: fixed; top: var(--pad); left: var(--pad);
  display: flex; align-items: center; gap: 10px;
  color: var(--dust); text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: 0.01em;
}
.brand svg { width: 20px; height: 16px; fill: var(--dust); }
.brand:focus-visible { outline: 2px solid var(--kapton); outline-offset: 4px; }

.clock {
  position: fixed; top: var(--pad); right: var(--pad);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--aluminium);
}
.clock #status { color: var(--dust); font-weight: 500; }
.clock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--kapton); }
.approx .clock .dot { background: var(--aluminium); }
.clock .mono { font-size: 12px; }

.hint {
  position: fixed; left: 50%; bottom: calc(var(--pad) + 6px); transform: translateX(-50%);
  margin: 0; font-size: 13px; color: var(--aluminium); white-space: nowrap;
  transition: opacity 1.2s ease;
}
.touched .hint, .kiosk .hint { opacity: 0; pointer-events: none; }

.credit {
  position: fixed; right: var(--pad); bottom: var(--pad); margin: 0;
  font-size: 10.5px; color: #64625D; max-width: 46ch; text-align: right;
}
.credit a { color: inherit; }

/* Labels: name beside the object on a hairline; the selection adds live numbers. */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.label {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 2px 8px; transform-origin: 0 100%;
  font-size: 12px; color: var(--aluminium); white-space: nowrap;
  translate: 0 -100%;
}
.label::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 6px; height: 1px; background: var(--line-dark);
  transform: rotate(-45deg); transform-origin: 0 0;
}
.label .i { display: none; }
.label.sel { color: var(--dust); padding: 6px 10px 7px 10px; background: rgba(28, 30, 34, 0.86); border: 1px solid var(--kapton); border-radius: 4px; }
.label.sel::before { display: none; }
.label.sel .n { font-size: 14px; font-weight: 500; }
.label.sel .i { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--aluminium); font-variant-numeric: tabular-nums; }

#ring {
  position: fixed; left: 0; top: 0; display: none; pointer-events: none;
  border: 1px solid var(--kapton); border-radius: 50%;
}

.nogl { display: none; position: fixed; inset: 0; margin: auto; height: 1.4em; text-align: center; color: var(--aluminium); }
.no-webgl .nogl { display: block; }

@media (max-width: 620px) {
  .clock .mono { display: none; }
  .credit { left: var(--pad); max-width: none; text-align: left; font-size: 9.5px; }
  .hint { font-size: 12px; bottom: calc(var(--pad) + 34px); white-space: normal; width: max-content; max-width: calc(100% - 2 * var(--pad)); text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .hint { transition: none; } }
