/* ============================================================
   Shared Confetti Styles
   ============================================================ */

.confetti-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 400;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  opacity: 1;
  animation: confetti-explode ease-out forwards;
}

@keyframes confetti-explode {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  40% {
    transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--spin, 360deg) * 0.5)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0px), calc(var(--dy, 0px) + var(--fall, 200px))) rotate(var(--spin, 360deg)) scale(0.2);
    opacity: 0;
  }
}

/* Banner */
.confetti-banner {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 401;
  animation: confetti-banner-pop 2s ease-out forwards;
}

.confetti-banner-text {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(229, 184, 74, .5), 0 2px 8px rgba(0,0,0,.6);
  letter-spacing: 0.06em;
}

.confetti-banner-sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3ab870;
  text-shadow: 0 0 12px rgba(45,159,95,.5), 0 2px 6px rgba(0,0,0,.6);
  margin-top: -2px;
}

@keyframes confetti-banner-pop {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  25% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(0.8); opacity: 0; }
}

/* Blackjack-specific banner */
.confetti-banner.blackjack-banner .confetti-banner-text {
  font-size: 3.2rem;
  color: #f0cc5e;
  text-shadow: 0 0 30px rgba(229, 184, 74, .6), 0 2px 12px rgba(0,0,0,.7);
  letter-spacing: 0.08em;
}
