body {
  margin: 0;

  /* Soft charcoal background instead of black */
  background: linear-gradient(
    to bottom,
    #1a1a1d 0%,
    #161618 40%,
    #131315 100%
  );

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: system-ui, sans-serif;
  color: #f5f2ff;
  user-select: none;
}

/* Game container with clean, subtle gradient */
.game {
  position: relative;
  width: 300px;
  height: 420px;

  background: linear-gradient(
    to bottom,
    #1c1a22 0%,
    #18171f 35%,
    #14131b 70%,
    #121119 100%
  );

  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

/* Soft vignette */
.game::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 0;
}

.track {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(255,255,255,0.06);
  z-index: 2;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 32px;
  background: rgba(255,255,255,0.18);
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(255,255,255,0.22);
  z-index: 2;
}

/* Flash on correct hit */
.center.flash {
  background: rgba(255,255,255,0.28);
  box-shadow: 0 0 26px rgba(255,255,255,0.32);
  transition: background 0.12s, box-shadow 0.12s;
}

.pulse {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 12px;
  height: 12px;
  background: #fefefe;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(255,255,255,0.45);
  transition: background 0.12s, box-shadow 0.12s, transform 0.08s, left 0.04s linear;
  z-index: 3;
}

.pulse.good {
  background: #7bffb0;
  box-shadow: 0 0 22px #7bffb0;
  transform: translateY(-50%) scale(1.15);
}

.pulse.bad {
  background: #ff5b5b;
  box-shadow: 0 0 16px #ff5b5b;
  transform: translateY(-50%) scale(0.9);
}

.hud {
  position: absolute;
  top: 12px;
  width: 100%;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

#streak-label {
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.7;
}

.best {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  z-index: 3;
}

.start-screen {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: opacity 0.25s;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 4;
}

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