:root {
  --bg: #050510;
  --panel: #0a0a1a;
  --accent: #ff3b6b;
  --accent2: #38e8ff;
  --accent3: #ffe14a;
  --accent4: #6bffb0;
  --text: #eaf2ff;
  --dim: #7a86a8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Press Start 2P", "VT323", "Courier New", monospace;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  color: var(--text);
}
#game-wrap {
  position: relative;
  width: 100vmin; height: 100vmin;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #0a0a22 0%, #000 100%);
}
canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  background: #000;
}
#touch-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 18%;
  min-height: 110px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  pointer-events: none;
}
.touch-btn {
  pointer-events: auto;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent2);
  background: rgba(10,20,40,0.85);
  color: var(--text);
  font-size: 28px;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(56,232,255,0.35) inset;
  user-select: none;
  -webkit-user-select: none;
}
.touch-btn:active {
  background: rgba(56,232,255,0.3);
}
.touch-group {
  display: flex;
  gap: 12px;
  pointer-events: none;
}
.touch-btn.fire {
  width: 88px; height: 88px;
  border-color: var(--accent);
  font-size: 32px;
  box-shadow: 0 0 12px rgba(255,59,107,0.35) inset;
}
.touch-btn.fire:active {
  background: rgba(255,59,107,0.3);
}
