/* cursor glow */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  will-change: transform;
}

/* shooting stars */
.shooting-star {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, #fff, transparent);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: shoot 1.6s linear forwards;
}
@keyframes shoot {
  0% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) rotate(35deg) scaleX(0.3);
  }
  8% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--sx) + 420px), calc(var(--sy) + 300px)) rotate(35deg) scaleX(1);
  }
}

/* sparkle on click */
.click-spark {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  font-size: 15px;
  color: var(--champagne);
  animation: sparkPop 0.9s ease forwards;
}
@keyframes sparkPop {
  0% {
    transform: scale(0) translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) translateY(-18px) rotate(45deg);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.6) translateY(-46px) rotate(90deg);
    opacity: 0;
  }
}
.confetti {
  position: fixed;
  width: 5px;
  height: 12px;
  z-index: 99999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(600deg);
    opacity: 0;
  }
}
