* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.game {
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: 4px;
  color: #4caf50;
}

.score {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

canvas {
  background: #0f0f1a;
  border: 3px solid #4caf50;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
}

.overlay.hidden {
  display: none;
}

.gameover {
  font-size: 3rem;
  margin-bottom: 24px;
  color: #ff5252;
}

button {
  font-size: 1.1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  background: #4caf50;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #43a047;
}

.hint {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.6;
}
