html, body { margin: 0; height: 100%; overflow: hidden; background: #1b1a17; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
#tooltip {
  position: fixed; pointer-events: none; padding: 3px 6px; font: 11px monospace; white-space: nowrap;
  color: #eee; background: #1f1f1f; border: 1px solid #424242;
}
#loading {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #1b1a17; color: #aaa; font: 12px monospace;
}
#loading .bar { width: 240px; height: 4px; background: #333; }
#loading .bar > div { height: 100%; width: 0; background: #d0a868; }
.lil-gui.root { max-height: calc(100vh - 16px); overflow-y: auto; }
