/* Position the hit center with left/top inside the playfield. Remove after 520 ms. */
.pop-splash,
.star-splash {
  position: absolute;
  width: clamp(3rem, 15vw, 5rem);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.pop-splash::before,
.star-splash::before,
.star-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: minigame-hit 500ms ease-out both;
}

.pop-splash::before {
  background:
    radial-gradient(circle at 50% 10%, #d4a6cf 0 4%, transparent 5.5%),
    radial-gradient(circle at 86% 27%, #a1d6db 0 5%, transparent 6.5%),
    radial-gradient(circle at 90% 64%, #ffe1ae 0 3.8%, transparent 5.3%),
    radial-gradient(circle at 56% 87%, #edbad0 0 5%, transparent 6.5%),
    radial-gradient(circle at 15% 78%, #b4cbeb 0 4.6%, transparent 6%),
    radial-gradient(circle at 11% 35%, #ade0c8 0 5%, transparent 6.5%);
}

.star-splash::before,
.star-splash::after {
  background: #ffdb89;
  clip-path: polygon(50% 0, 59% 37%, 95% 50%, 59% 59%, 50% 100%, 41% 59%, 5% 50%, 41% 37%);
}

.star-splash::before { inset: 6% 55% 53% 4%; }
.star-splash::after { inset: 46% 7% 23% 64%; background: #ffefba; }

@keyframes minigame-hit {
  0% { transform: scale(.35); opacity: .95; }
  55% { opacity: 1; }
  100% { transform: scale(1.28); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pop-splash::before,
  .star-splash::before,
  .star-splash::after { animation: none; }
}
