:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at top, #1c2746, #0b0f1c 60%);
  color: #f5f6ff;
}

canvas {
  display: block;
}

.hud {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
}

.hud__money,
.hud__hits,
.hud__powerups {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(10, 14, 30, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hud__powerups {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.03em;
}

.hud__health {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(10, 14, 30, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud__health-bar {
  width: 200px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hud__health-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4ff3a2, #2bd4ff);
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.status {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(35, 45, 80, 0.6);
  font-weight: 600;
  font-size: 16px;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 15, 0.88);
  z-index: 20;
  padding: 24px;
}

.overlay.hidden {
  display: none;
}

.overlay__panel {
  max-width: 520px;
  background: rgba(18, 24, 44, 0.95);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.overlay__panel h1 {
  margin-top: 0;
  font-size: 32px;
}

.overlay__panel ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.btn {
  background: linear-gradient(120deg, #41e7b5, #21a6f0);
  border: none;
  color: #041018;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.btn:hover {
  filter: brightness(1.1);
}
