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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

#scoreboard {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

#scoreboard span {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

#gameOver {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  padding: 40px 60px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

#gameOver p {
  font-size: 1.6rem;
  color: #ccc;
  margin-bottom: 8px;
}

#gameOver strong {
  color: #facc15;
  font-size: 2rem;
}

#gameOver button {
  margin-top: 18px;
  padding: 12px 36px;
  font-size: 1.1rem;
  background: #4ade80;
  color: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

#gameOver button:hover {
  background: #22c55e;
  transform: scale(1.05);
}

.hidden {
  display: none;
}
