/* No web fonts (CSP default-src 'none'); system stack only. No inline styles anywhere. */
:root {
  --bg: #0e1013;
  --hud-bg: rgba(18, 22, 28, 0.82);
  --hud-fg: #cdd6e0;
  --hud-key: #6f7d8c;
  --hud-accent: #7fd1ff;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--hud-fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

/* If this rule applies, the stylesheet loaded (served correctly) → hide the file:// warning. */
.needs-server { display: none; }

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: grab;
}
#game.dragging { cursor: grabbing; }

.hud {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  background: var(--hud-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  backdrop-filter: blur(3px);
}
.hud-row { display: flex; justify-content: space-between; gap: 16px; }
.hud .k { color: var(--hud-key); }
.hud .v { color: var(--hud-accent); font-variant-numeric: tabular-nums; }

.help {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--hud-bg);
  border-radius: 999px;
  font-size: 11px;
  color: var(--hud-key);
  pointer-events: none;
}
