:root { color-scheme: dark; }

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

html, body {
  height: 100%;
  background: radial-gradient(circle at 50% 0%, #0a2c47 0%, #02101f 55%, #01060d 100%);
  color: #eaf6ff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

#stage {
  height: 100dvh;
  display: grid;
  place-items: center;
  /* Keep the canvas clear of notches / rounded corners / home indicators. */
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
}

#game {
  display: block;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(120, 200, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(30, 120, 180, 0.25);
  touch-action: none;
  cursor: crosshair;
}

#hint {
  position: fixed;
  bottom: 8px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #6f9fc0;
  pointer-events: none;
}

@media (max-height: 520px) { #hint { display: none; } }
