/* Festival celebration shower (replays each load while festival day is active). */
.ish-festival-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  overflow: hidden;
}

.ish-festival-toast {
  position: fixed;
  left: 50%;
  top: max(18px, env(safe-area-inset-top, 0px));
  z-index: 2147483001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%) translateY(-12px);
  max-width: min(92vw, 460px);
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: clamp(14px, 2.4vw, 17px);
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: center;
  color: #fff8e7;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.94), rgba(146, 64, 14, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  animation: ish-festival-toast-in 0.55s ease forwards, ish-festival-toast-out 0.55s ease 4.4s forwards;
}

.ish-festival-toast__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.ish-festival-toast[data-theme="christmas"] {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.95), rgba(153, 27, 27, 0.92));
}

.ish-festival-toast[data-theme="holi"] {
  background: linear-gradient(135deg, #ec4899, #8b5cf6 40%, #22d3ee 75%, #f59e0b);
}

.ish-festival-toast[data-theme="tricolor"] {
  background: linear-gradient(90deg, #ff9933 0 33%, #ffffff 33% 66%, #138808 66% 100%);
  color: #111827;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ish-festival-toast[data-theme="eid"] {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(16, 185, 129, 0.9));
}

.ish-festival-toast[data-theme="sparkle"] {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(124, 58, 237, 0.9));
}

.ish-festival-toast[data-theme="dussehra"] {
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.95), rgba(220, 38, 38, 0.9));
}

@keyframes ish-festival-toast-in {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes ish-festival-toast-out {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

.ish-festival-sprite {
  position: absolute;
  top: -14vh;
  left: 0;
  width: var(--ish-petal-w, 28px);
  height: var(--ish-petal-h, 28px);
  will-change: transform, opacity;
  animation-name: ish-festival-fall-img;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: var(--ish-petal-dur, 4.6s);
  animation-delay: var(--ish-petal-delay, 0s);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.ish-festival-sprite img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes ish-festival-fall-img {
  0% {
    opacity: 0;
    transform: translate3d(var(--ish-petal-x, 50vw), -14vh, 0) rotate(0deg) scale(0.7);
  }
  6% {
    opacity: 1;
  }
  25% {
    transform: translate3d(
        calc(var(--ish-petal-x, 50vw) + var(--ish-petal-sway, 12px)),
        22vh,
        0
      )
      rotate(calc(var(--ish-petal-spin, 360deg) * 0.28)) scale(1);
  }
  55% {
    transform: translate3d(
        calc(var(--ish-petal-x, 50vw) - var(--ish-petal-sway, 12px)),
        58vh,
        0
      )
      rotate(calc(var(--ish-petal-spin, 360deg) * 0.62)) scale(1);
  }
  100% {
    opacity: 0.08;
    transform: translate3d(
        calc(var(--ish-petal-x, 50vw) + var(--ish-petal-drift, 40px)),
        112vh,
        0
      )
      rotate(var(--ish-petal-spin, 520deg)) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ish-festival-layer {
    display: none !important;
  }
  .ish-festival-toast {
    animation: ish-festival-toast-in 0.4s ease forwards, ish-festival-toast-out 0.4s ease 2.8s forwards;
  }
}
