.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: hsl(var(--hue), 90%, 60%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  animation: fall 1s forwards;
}

@keyframes fall {
  to {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.4);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(10);
    opacity: 0;
  }
}

.star {
  position: absolute;
  width: 6px;   /* tamaño base (móvil por defecto) */
  height: 6px;
  background-color: hsl(var(--hue), 90%, 60%);
  pointer-events: none;
  opacity: 0.9;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 
    68% 57%, 79% 91%, 50% 70%, 
    21% 91%, 32% 57%, 2% 35%, 
    39% 35%
  );

  box-shadow: 
    0 0 6px hsl(var(--hue), 90%, 70%),
    0 0 12px hsl(var(--hue), 90%, 50%);

  animation: trail 0.8s forwards;
}

/* 🌐 En pantallas grandes (PC/laptops) */
@media (min-width: 1024px) {
  .star {
    width: 18px;
    height: 18px;
  }
}

/* 📱 En móviles (por si quieres un poquito más grande de base) */
@media (max-width: 768px) {
  .star {
    width: 12px;
    height: 12px;
  }
}

@keyframes trail {
  0% {
    transform: scale(1) translateX(0) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(0.3) translateX(20px) translateY(20px);
    opacity: 0;
  }
}
