.sparkle-particle {
  position: absolute;
  width: 1.5cqw;
  height: 1.5cqw;
  background-color: var(--color-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 1cqw #ffffff;
}

.sparkle-particle.animate {
  animation: sparkle-fade 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkle-fade {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--translate-x), var(--translate-y)) scale(1.2);
    opacity: 0;
  }
}

#gameplay-scene.flash::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 255, 0, 0.45);
  pointer-events: none;
  z-index: 1;
  animation: green-flash 0.8s ease-out forwards;
}

@keyframes green-flash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.pulse-target {
  animation: target-pulse 2s infinite ease-in-out;
}

@keyframes target-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 1cqw var(--color-glow-soft));
  }
  50% {
    filter: drop-shadow(0 0 2.5cqw var(--color-glow));
  }
}
