/* ==================== */
/* SHARED UI COMPONENTS */
/* ==================== */

/* ==================== */
/* STAR BURST ANIMATION */
/* ==================== */
.star-animation-overlay {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.star-animation-overlay.active {
  opacity: 1;
}

.star-burst {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-burst::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.7) 0%, rgba(255, 193, 7, 0.4) 30%, rgba(255, 235, 59, 0) 70%);
  border-radius: 50%;
  animation: none;
}

.star-animation-overlay.active .star-burst::before {
  animation: glowExpand 1s ease-out forwards;
}

.star {
  position: absolute;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
  opacity: 0;
}

.star-animation-overlay.active .star {
  opacity: 1;
}

.star-center {
  z-index: 10;
}

.star-animation-overlay.active .star-center {
  animation: centerStarPop 1s ease-out forwards;
}

.star-animation-overlay.active .star-1 { animation: starFly1 0.8s ease-out forwards; }
.star-animation-overlay.active .star-2 { animation: starFly2 0.9s ease-out forwards; }
.star-animation-overlay.active .star-3 { animation: starFly3 0.7s ease-out forwards; }
.star-animation-overlay.active .star-4 { animation: starFly4 0.85s ease-out forwards; }
.star-animation-overlay.active .star-5 { animation: starFly5 0.75s ease-out forwards; }
.star-animation-overlay.active .star-6 { animation: starFly6 0.95s ease-out forwards; }

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #FFD700;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.8);
}

.star-animation-overlay.active .sparkle-1 { animation: sparkleFly 0.6s ease-out 0.1s forwards; }
.star-animation-overlay.active .sparkle-2 { animation: sparkleFly2 0.7s ease-out 0.05s forwards; }
.star-animation-overlay.active .sparkle-3 { animation: sparkleFly3 0.5s ease-out 0.15s forwards; }
.star-animation-overlay.active .sparkle-4 { animation: sparkleFly4 0.65s ease-out 0.08s forwards; }
.star-animation-overlay.active .sparkle-5 { animation: sparkleFly5 0.55s ease-out 0.12s forwards; }
.star-animation-overlay.active .sparkle-6 { animation: sparkleFly6 0.6s ease-out 0.02s forwards; }
.star-animation-overlay.active .sparkle-7 { animation: sparkleFly7 0.7s ease-out 0.1s forwards; }
.star-animation-overlay.active .sparkle-8 { animation: sparkleFly8 0.5s ease-out 0.18s forwards; }

@keyframes centerStarPop {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  30% { transform: scale(1.4) rotate(20deg); opacity: 1; }
  50% { transform: scale(1.1) rotate(-10deg); opacity: 1; }
  70% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(0) rotate(0deg); opacity: 0; }
}

@keyframes glowExpand {
  0% { transform: scale(0); opacity: 0; }
  30% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes starFly1 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-80px, -60px) scale(1) rotate(360deg); opacity: 0; }
}
@keyframes starFly2 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(70px, -70px) scale(1) rotate(-300deg); opacity: 0; }
}
@keyframes starFly3 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(90px, 40px) scale(1) rotate(270deg); opacity: 0; }
}
@keyframes starFly4 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-60px, 80px) scale(1) rotate(-360deg); opacity: 0; }
}
@keyframes starFly5 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(40px, 90px) scale(1) rotate(300deg); opacity: 0; }
}
@keyframes starFly6 {
  0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-90px, 20px) scale(1) rotate(-270deg); opacity: 0; }
}

@keyframes sparkleFly { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-50px, -80px); opacity: 0; } }
@keyframes sparkleFly2 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(60px, -70px); opacity: 0; } }
@keyframes sparkleFly3 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(80px, 30px); opacity: 0; } }
@keyframes sparkleFly4 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(50px, 70px); opacity: 0; } }
@keyframes sparkleFly5 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-30px, 90px); opacity: 0; } }
@keyframes sparkleFly6 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-70px, 50px); opacity: 0; } }
@keyframes sparkleFly7 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-85px, -20px); opacity: 0; } }
@keyframes sparkleFly8 { 0% { transform: translate(0,0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(20px, -90px); opacity: 0; } }

