/* === SKY SPONSORSHIP SYSTEM === */

.sponsor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.sponsor-ad {
  position: absolute;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  z-index: 50;
}

.sponsor-ad:hover {
  transform: scale(1.08);
}

.sponsor-ad img {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 12px;
}





/* Fade animations */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    filter: brightness(1) blur(0px);
    transform: scale(1);
  }
  40% {
    opacity: 1;
    filter: brightness(1.3) blur(2px);
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    filter: brightness(1.6) blur(8px);
    transform: scale(1.12);
  }
}






/* === ✨ Crisp star sparkles for fade-in === */
.star-sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 9999;

  /* star shape */
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%,
    68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%,
    39% 35%
  );

  background: white;
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,1))
    drop-shadow(0 0 12px rgba(255,255,255,0.9))
    brightness(1.8);

  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  animation: starPop 1.6s ease-out forwards;
}

@keyframes starPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.3) rotate(20deg);
  }
  60% {
    opacity: 0.9;
    transform: translate(
      calc(-50% + (8px * var(--sx))),
      calc(-55% - (20px * var(--sy)))
    ) rotate(40deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + (20px * var(--sx))),
      calc(-55% - (50px * var(--sy)))
    ) rotate(60deg) scale(0.7);
  }
}









