:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #edf2f7;
  background: #0c1119;
  --muted: #aebdce;
  --line: #303d4e;
  --accent: #93e0c3;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 94rem; margin: auto; padding: clamp(1rem, 3vw, 3rem); }
header { margin-bottom: 1.5rem; }
.project { margin: 0 0 .5rem; color: var(--accent); font-size: .9rem; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.25rem); letter-spacing: -.04em; }
h1 span { color: var(--muted); font-weight: 450; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 1rem; }
.stage, aside { border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.stage { position: relative; min-height: clamp(28rem, 72vh, 54rem); background: #111a27; }
#viewport { position: absolute; inset: 0; }
canvas { display: block; width: 100%; height: 100%; cursor: grab; }
canvas:active { cursor: grabbing; }
#notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 2rem;
  color: #e7f5f0;
  text-align: center;
  background: rgb(12 17 25 / 38%);
  pointer-events: none;
}
#notice[hidden] { display: none; }
.hint {
  pointer-events: none;
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  max-width: calc(100% - 1.5rem);
  margin: 0;
  padding: .55rem .7rem;
  border-radius: .4rem;
  background: #0c1119;
  color: var(--muted);
  font-size: .875rem;
}
aside { background: #151e2a; padding: 1.15rem; }
h2 { margin: 0 0 1rem; font-size: 1.125rem; }
.asset { padding: 1rem 0; border-top: 1px solid var(--line); }
.asset h3 { margin: 0 0 .35rem; font-size: 1rem; }
code { color: var(--muted); font-size: .875rem; }
.status { margin: .55rem 0 .7rem; font-size: .9rem; line-height: 1.45; }
.status[data-state="ready"] { color: var(--accent); }
.status[data-state="missing"], .status[data-state="error"] { color: #ffca9f; }
button {
  width: 100%;
  border: 1px solid #47596e;
  border-radius: .4rem;
  padding: .6rem .75rem;
  color: inherit;
  background: #202e3f;
  font: inherit;
  font-size: .9rem;
}
button:enabled { cursor: pointer; }
button:enabled:hover { background: #30445a; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .52; }
#reset-view { margin-top: .5rem; }
.vr-controls { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.vr-controls p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 48rem) {
  .layout { grid-template-columns: 1fr; }
  .stage { min-height: clamp(18rem, 57vh, 34rem); }
}
