:root {
  --bg: #040405;
  --chrome: #d4d8dc;
  --chrome-dim: rgba(212, 216, 220, 0.5);
  --standby: #c83228;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: Helvetica, Arial, sans-serif;
  color: var(--chrome);
}

.stage {
  position: fixed;
  inset: 0;
  isolation: isolate;
  background: var(--bg);
}

.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.stage.idle-standby canvas {
  cursor: none;
}

.stage.idle-signoff canvas {
  cursor: pointer;
}

.chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hud-top {
  position: absolute;
  top: 22px;
  left: 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
}

.hud-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  transition: color 420ms ease, letter-spacing 420ms ease;
}

.idle-standby .hud-label,
.idle-signoff .hud-label {
  color: rgba(200, 50, 40, 0.72);
  letter-spacing: 0.28em;
}

.hud-work {
  font-size: 11px;
  letter-spacing: 0.06em;
  max-width: min(48vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-hint {
  position: absolute;
  bottom: 24px;
  left: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--chrome-dim);
  max-width: min(72vw, 560px);
  line-height: 1.5;
}

.standby-badge {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(200, 50, 40, 0.78);
  text-transform: uppercase;
}

.standby-badge[hidden] {
  display: none;
}

.telemetry {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(212, 216, 220, 0.35);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .hud-top, .hud-hint { left: 16px; }
  .standby-badge, .telemetry { right: 16px; }
}
