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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: radial-gradient(ellipse at 50% 15%, #131c2e 0%, #0a0e17 55%, #06080e 100%);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #eaf6ff;
  user-select: none;
  -webkit-user-select: none;
}

#game-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  background: rgba(255, 255, 255, 0.015);
  box-shadow: inset 1px 0 0 rgba(234, 246, 255, 0.09), inset -1px 0 0 rgba(234, 246, 255, 0.09);
}

#game {
  position: absolute;
  inset: 0;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

#hud {
  position: absolute;
  top: 22px;
  left: 28px;
  display: flex;
  gap: 40px;
  pointer-events: none;
  z-index: 10;
}

.hud-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(234, 246, 255, 0.4);
}

.hud-value {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

#lives-value {
  color: #ff5e7d;
  letter-spacing: 4px;
  font-size: 20px;
  line-height: 1.4;
}

#combo {
  position: absolute;
  top: 22px;
  right: 32px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffd75e;
  text-shadow: 0 0 20px rgba(255, 215, 94, 0.45);
  pointer-events: none;
  z-index: 10;
}

#combo.hidden {
  display: none;
}

#combo.pulse {
  animation: combo-pulse 0.28s ease-out;
}

@keyframes combo-pulse {
  0% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
  text-align: center;
  z-index: 20;
  padding: 24px;
}

#overlay.hidden {
  display: none;
}

#overlay-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 10px;
}

#overlay-text {
  color: rgba(234, 246, 255, 0.55);
  line-height: 1.7;
  font-size: 15px;
}

#overlay-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(234, 246, 255, 0.4);
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
}

#overlay-btn {
  margin-top: 14px;
  padding: 14px 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  font-family: inherit;
  color: #06080e;
  background: #eaf6ff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#overlay-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(234, 246, 255, 0.35);
}

#version {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(234, 246, 255, 0.35);
  pointer-events: none;
  z-index: 10;
}
