:root {
  --neon-purple: #a78bfa;
  --neon-cyan: #67e8f9;
  --neon-pink: #f472b6;
  --neon-green: #4ade80;
  --neon-orange: #fb923c;
  --bg-dark: #0a0a1a;
  --bg-card: rgba(15, 15, 35, 0.95);
}

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

body {
  background: var(--bg-dark);
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
  -webkit-user-select: none;
  user-select: none;
}

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

#game-canvas {
  display: block;
  background: radial-gradient(ellipse at center, #0d0d2b 0%, #000010 100%);
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.15);
}

#hud {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  font-size: 11px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  z-index: 10;
  pointer-events: none;
}

#lives-display { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 16, 0.92);
  z-index: 20;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.game-title {
  font-size: clamp(28px, 6vw, 56px);
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.5));
}

.subtitle {
  font-size: clamp(8px, 1.5vw, 12px);
  color: rgba(167, 139, 250, 0.7);
  margin-bottom: 32px;
}

.game-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(12px, 2vw, 16px);
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--neon-purple), #7c3aed);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
  margin-bottom: 24px;
}

.game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(167, 139, 250, 0.6);
}

.controls-hint {
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
}

.final-score {
  font-size: clamp(14px, 3vw, 24px);
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.final-wave {
  font-size: clamp(10px, 2vw, 14px);
  color: var(--neon-purple);
  margin-bottom: 32px;
}

#badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 8px;
  color: rgba(167, 139, 250, 0.5);
  z-index: 5;
}

#badge a { color: var(--neon-cyan); text-decoration: none; }
#badge a:hover { text-decoration: underline; }
