:root {
  --text: #e8edf2;
  --muted: #8b95a4;
  --accent: #33ccff;
  --pro: #ffcf5c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font: 15px/1.4 'Space Grotesk', system-ui, sans-serif;
}

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

.hud { transition: opacity 0.4s; }
body.idle .hud, body.hidden-ui .hud { opacity: 0; pointer-events: none; }
body.idle, body.hidden-ui { cursor: none; }

header.hud {
  position: fixed; top: 16px; left: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hud-title { display: flex; align-items: center; gap: 10px; text-align: center; }
.hud-title b { display: block; font-weight: 600; font-size: 16px; }
.hud-title span { display: block; font: 12px 'JetBrains Mono', monospace; color: var(--muted); }
.hud-actions { display: flex; gap: 8px; }

.hud-btn, .hud-icon {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 13, 19, 0.8);
  color: var(--text); font: 500 14px 'Space Grotesk', system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
}
.hud-icon { width: 36px; padding: 0; font-size: 20px; line-height: 1; }
.hud-btn:hover, .hud-icon:hover { border-color: var(--accent); color: var(--accent); }
.hud-icon[hidden] { display: none; }

.hint {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  margin: 0; padding: 8px 14px; border-radius: 10px;
  background: rgba(10, 13, 19, 0.8); color: var(--muted); font-size: 12px; white-space: nowrap;
}
kbd {
  display: inline-block; min-width: 18px; padding: 0 5px; margin: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px;
  font: 11px/16px 'JetBrains Mono', monospace; color: var(--text); text-align: center;
}

@media (max-width: 640px) {
  header.hud { flex-wrap: wrap; justify-content: center; }
  .hud-title { order: -1; flex-basis: 100%; justify-content: center; }
  .hint { display: none; }
}
