:root {
  --bg: #0b0d10;
  --panel: rgba(18, 21, 26, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e7eaee;
  --muted: #8a93a0;
  --accent: #5ec8ff;
  --on: #1d2a35;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 13px/1.4 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.stage { position: relative; min-height: 0; padding: 16px 16px 0; }
#view { width: 100%; height: 100%; object-fit: contain; display: block; }
.status { position: absolute; inset: auto 0 50% 0; text-align: center; color: var(--muted); pointer-events: none; }
.status:empty { display: none; }
.hud { position: absolute; top: 28px; left: 28px; padding: 10px 12px; border-radius: 10px;
  background: var(--panel); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px var(--line);
  display: grid; gap: 2px; min-width: 170px; font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.hud div { display: flex; justify-content: space-between; gap: 14px; }
.hud span { color: var(--muted); }
.hud b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 16px 18px; }
.bar button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.bar button[aria-pressed="true"] { background: var(--on); color: var(--text); border-color: rgba(94, 200, 255, 0.35); }
.bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar kbd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); color: var(--text); font: 11px ui-monospace, Menlo, monospace; }
.bar button[aria-pressed="true"] kbd { background: var(--accent); color: #04121b; }
@media (max-width: 520px) { .hud { top: 22px; left: 22px; min-width: 0; font-size: 11px; } }
