/* Hangar — a full-window three.js scene with two HTML panels over it. */
:root { --ink: #dfe4f2; --muted: #8f98b3; --accent: #ffcf6b; --link: #8db6ff; --glass: #0b0e19d9; --line: #2e3656; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: #07090f; color: var(--ink); font: 14px/1.45 system-ui, sans-serif; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }

.view { position: fixed; inset: 0; }
.view canvas { display: block; touch-action: none; cursor: grab; }
.view canvas:active { cursor: grabbing; }

.panel, .info {
  position: fixed; top: 10px; padding: 8px 12px; border-radius: 8px;
  background: var(--glass); border: 1px solid var(--line);
}
.panel { left: 12px; width: min(330px, calc(100vw - 24px)); }
.panel h1 { margin: 0 0 6px; font-size: 18px; }
.crumbs { margin: 0; font-size: 12px; }
.picker { display: flex; gap: 6px; margin-bottom: 6px; }
.picker select { flex: 1; min-width: 0; }
select, button {
  font: inherit; color: inherit; background: #141a2e; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
button { cursor: pointer; }
.controls { display: grid; gap: 2px; }
.controls label { display: grid; grid-template-columns: 74px 1fr 52px; align-items: center; gap: 6px; }
.controls output { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.readout { margin: 6px 0 0; font: 12px ui-monospace, Menlo, monospace; color: var(--accent); }

.info { right: 12px; top: auto; bottom: 36px; width: 300px; max-height: calc(100vh - 220px); overflow: auto; }
.info h2 { margin: 0; font-size: 20px; color: var(--accent); }
.info p { margin: 2px 0 8px; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; }
.desc { font-size: 13px; }

.credit {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 4px 12px; font-size: 12px; color: var(--muted);
  background: linear-gradient(transparent, #07090fcc 40%);
}

@media (max-width: 720px) {
  .info { left: 12px; right: 12px; top: auto; bottom: 64px; width: auto; max-height: 30vh; }
  .stats { grid-template-columns: repeat(2, auto 1fr); }
}
