/* ==========================================================================
   Falling Natural Effects Module: Autumn Leaves, Storm Hailstones & Confetti
   ========================================================================== */

#confetti-container,
#falling-effects-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  overflow: hidden !important;
}

/* ── 1. Realistic Autumn Leaves (from VX3 Promocode) ── */
.ffu-leaf,
.vx-falling-leaf {
  position: absolute;
  top: -10%;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
  will-change: top, transform, opacity;
  animation-name: ffu-fall, ffu-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: 1, infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.ffu-leaf.type1,
.ffu-leaf.type2,
.ffu-leaf.type3 {
  background-image: url('../../images_2024/common/star-shape.png');
}

.ffu-leaf-size-xs { width: 12px; height: 12px; }
.ffu-leaf-size-sm { width: 14px; height: 14px; }
.ffu-leaf-size    { width: 16px; height: 16px; }
.ffu-leaf-size-md { width: 18px; height: 18px; }
.ffu-leaf-size-lg { width: 20px; height: 20px; }

@keyframes ffu-fall {
  0% {
    top: -10%;
    opacity: 1;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

@keyframes ffu-sway {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(30px) rotate(180deg);
  }
  100% {
    transform: translateX(0) rotate(360deg);
  }
}

/* ── 2. Realistic Storm Hailstones (4x Reduced Size & Baseline Physics) ── */
.vx-falling-hail {
  position: absolute;
  top: -24px;
  left: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 1px 2px rgba(0, 20, 50, 0.45));
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  animation-fill-mode: both !important;
}

.vx-hail-shard {
  position: absolute;
  pointer-events: none;
  user-select: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c7e9fe 60%, #7dd3fc 100%);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
  will-change: transform, opacity;
}

.vx-hail-splatter {
  position: absolute;
  pointer-events: none;
  user-select: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(186, 230, 253, 0.7) 50%, rgba(125, 211, 252, 0) 100%);
  will-change: transform, opacity;
}

/* ── 3. Festive Celebration Confetti (Siding, Windows & Doors, Roofing) ── */
.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 1;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: vxConfettiDrop !important;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  animation-fill-mode: forwards !important;
}

@keyframes vxConfettiDrop {
  0% {
    transform: translateY(0) rotate(0deg) rotateX(0deg);
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg) rotateX(360deg);
    opacity: 0;
  }
}

