/* ——— Base Layout ——— */
body {
  margin: 0;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: system-ui, sans-serif;
  color: white;
}

/* ——— Game Container ——— */
.game {
  position: relative;
  width: 300px;
  height: 500px;
  border: 2px solid #555;
  background: #111;
  overflow: hidden;
}

/* ——— Target Zone ——— */
.target-zone {
  position: absolute;
  width: calc(100% - 4px);
  height: 80px;
  left: 1px; /* adjust this value */
  top: 200px;
  background: rgba(0, 255, 160, 0.12);
  border: 2px solid rgba(0, 255, 160, 0.35);
  border-radius: 6px;
  transition: background 0.12s ease;
}
/* ——— Perfect Hit Glow ——— */
.target-zone.glow {
  box-shadow: inset 0 0 18px rgba(0, 255, 160, 0.45);
}

/* ——— Moving Dot ——— */
.moving-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  background: #3da9fc;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(61, 169, 252, 0.45);
  transition: transform 0.12s ease;
}
/* ——— Dot Motion Trail ——— */
.moving-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 14px;
  height: 22px;
  background: rgba(61, 169, 252, 0.25);
  filter: blur(6px);
  border-radius: 50%;
  pointer-events: none;
}

/* ——— HUD ——— */
.hud {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 18px;
  opacity: 0.85;
}
/* ——— Premium HUD Polish ——— */
.hud {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud span {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
/* ——— Start Screen Overlay ——— */
.start-screen {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: white;
  font-family: system-ui, sans-serif;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: all;
}

.start-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-screen .title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.start-screen .subtitle {
  font-size: 16px;
  opacity: 0.8;
}
/* ——— Streak Glow ——— */
.game.streak-glow {
  box-shadow: 0 0 22px rgba(0, 255, 160, 0.35);
  transition: box-shadow 0.35s ease;
}
