:root {
  --neon-purple: #7C3AED;
  --secondary-purple: #A78BFA;
  --bg-color: #0f0f13;
  --font-family: 'Press Start 2P', monospace;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-color);
  font-family: var(--font-family);
  color: white;
  overflow: hidden; /* Prevent scroll on mobile */
  touch-action: none; /* Prevent zoom/scroll gestures */
}

canvas {
  background-color: #000;
  border: 4px solid var(--neon-purple);
  box-shadow: 0 0 20px var(--neon-purple), inset 0 0 20px rgba(124, 58, 237, 0.2);
  image-rendering: pixelated;
  max-width: 100%;
  max-height: 100vh;
}

#ui-overlay {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  pointer-events: none; /* Let clicks pass through to canvas */
  z-index: 10;
}

.score {
  font-size: 16px;
  text-shadow: 2px 2px 0 #000, 0 0 5px var(--neon-purple);
  color: #fff;
}

#score-val, #lives-val, #highscore-val {
  color: var(--secondary-purple);
}

@media (max-width: 820px) {
  #ui-overlay {
    width: 100%;
    font-size: 12px;
  }
  .score {
    font-size: 12px;
  }
}
