* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #1b1f3b, #05060b);
  color: #f5f5f5;
  overflow: hidden;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: radial-gradient(circle at center, #151826, #05060b);
  cursor: crosshair;
}

/* UI overlay */
#ui {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

#ui h1 {
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: #00e0ff;
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.7);
}

.stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 0.9rem;
}

.stats span {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hint {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Game over overlay */
#gameOver {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
  color: #fff;
  z-index: 20;
}

#gameOver.hidden {
  display: none;
}

#gameOver h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 0.15em;
}

#gameOver p {
  margin-bottom: 20px;
}

#restartBtn {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #00e0ff, #00ff88);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

#restartBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.9);
}
