:root {
  --neon-cyan: #00ffff;
  --neon-magenta: #ff00ff;
  --neon-green: #00ff99;
  --bg: #050510;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #151530 0, #020208 60%, #000 100%);
  color: white;
  overflow: hidden;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  background: black;
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 1600px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* UI overlay */
#ui-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  padding: 10px;
}

.button-row {
  display: flex;
  gap: 6px;
}

.neon-button {
  pointer-events: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--neon-magenta);
  background: rgba(10, 10, 30, 0.8);
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

.neon-button:active {
  transform: scale(0.96);
  box-shadow: 0 0 4px rgba(255, 0, 255, 0.6);
}

#title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Options panel */
#options-panel {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 260px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--neon-green);
  background: rgba(5, 5, 20, 0.95);
  box-shadow: 0 0 25px rgba(0, 255, 153, 0.7);
  display: none;
}

#options-panel h2 {
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-green);
}

.option-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  gap: 10px;
}

.option-row input[type="range"],
.option-row select {
  flex: 1;
}

/* Touch controls */
#touch-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px;
}

.touch-area {
  pointer-events: auto;
  width: 40vw;
  max-width: 260px;
  height: 40vw;
  max-height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 255, 0.4);
  background: radial-gradient(circle, rgba(0, 255, 255, 0.08), transparent 70%);
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}
