:root {
  --bg: #10121c;
  --bg2: #1a1d2e;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, var(--bg2), var(--bg));
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e8ecff;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  /* Scaled up by JS to fit the viewport while preserving 16:9 and crisp edges. */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(120, 140, 220, 0.15);
  border-radius: 6px;
  touch-action: none;
}

#loading {
  position: absolute;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #8ea0d8;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.4; } }
