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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1a2a1a 0%, #0d1117 55%, #050608 100%);
  color: #e6edf3;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.hud {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h1 {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ee787;
}

.score-board {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid #30363d;
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.85);
}

.score-board .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
}

#score {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffa657;
  min-width: 1.5ch;
  text-align: right;
}

#game {
  border: 2px solid #30363d;
  border-radius: 8px;
  background: #0d1117;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.controls {
  font-size: 0.875rem;
  color: #8b949e;
}

.message {
  font-size: 1rem;
  color: #ff7b72;
  text-align: center;
}

.restart {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  background: #238636;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.restart:hover {
  background: #2ea043;
}

.restart:focus-visible {
  outline: 2px solid #7ee787;
  outline-offset: 2px;
}
