:root {
  --bg: #0e0f0c; --fg: #a9a58f; --edge: #3d3b30;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e0f0c; --fg: #a9a58f; --edge: #3d3b30; }
}
:root[data-theme="dark"] { --bg: #0e0f0c; --fg: #a9a58f; --edge: #3d3b30; }
/* o jogo é sempre escuro, mesmo no tema claro */
:root[data-theme="light"] { --bg: #0e0f0c; --fg: #a9a58f; --edge: #3d3b30; }

html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow: hidden;
}
.wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; box-sizing: border-box; max-width: 100vw;
}
canvas {
  display: block; background: #1a1b17;
  border: 2px solid var(--edge); border-radius: 6px;
  cursor: crosshair; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  touch-action: none;
}
/* duas camadas: embaixo o WebGL (cidade com luz), em cima o HUD transparente */
.stage { position: relative; }
#gl { position: absolute; left: 0; top: 0; display: none; pointer-events: none; }
#game.overlay { position: relative; background: transparent; box-shadow: none; }
.help { margin: 10px 0 0; font-size: 13px; text-align: center; line-height: 1.5; max-width: 960px; }
