
  #au-halloween-fx {
    position: fixed;
    inset: 0;
    z-index: 999;
    overflow: hidden;
    pointer-events: none !important;
    contain: strict;
  }

  #au-halloween-fx *,
  #au-halloween-fx *::before,
  #au-halloween-fx *::after {
    box-sizing: border-box;
  }

  #au-halloween-fx .au-hx-item {
    position: absolute;
    display: block;
    left: var(--x);
    top: var(--y);
    font-size: var(--size);
    line-height: 1;
    opacity: 0;
    user-select: none;
    pointer-events: none !important;
    transform-origin: center;
    animation: au-hx-drift var(--duration) ease-in-out var(--delay) infinite;
    will-change: transform, opacity;
  }

  /* Individual float paths */
  #au-halloween-fx .au-hx-path-1 {
    animation-name: au-hx-path-1;
  }

  #au-halloween-fx .au-hx-path-2 {
    animation-name: au-hx-path-2;
  }

  #au-halloween-fx .au-hx-path-3 {
    animation-name: au-hx-path-3;
  }

  #au-halloween-fx .au-hx-path-4 {
    animation-name: au-hx-path-4;
  }

  @keyframes au-hx-path-1 {
    0% {
      opacity: 0;
      transform: translate3d(0, 28px, 0) rotate(-18deg) scale(.65);
    }
    18% {
      opacity: var(--opacity);
    }
    50% {
      opacity: var(--opacity);
      transform: translate3d(20px, -28px, 0) rotate(14deg) scale(1.08);
    }
    82% {
      opacity: var(--opacity);
    }
    100% {
      opacity: 0;
      transform: translate3d(-10px, -65px, 0) rotate(35deg) scale(.8);
    }
  }

  @keyframes au-hx-path-2 {
    0% {
      opacity: 0;
      transform: translate3d(0, -20px, 0) rotate(12deg) scale(.8);
    }
    20% {
      opacity: var(--opacity);
    }
    50% {
      transform: translate3d(-24px, 24px, 0) rotate(-20deg) scale(1.1);
      opacity: var(--opacity);
    }
    80% {
      opacity: var(--opacity);
    }
    100% {
      opacity: 0;
      transform: translate3d(18px, 58px, 0) rotate(25deg) scale(.7);
    }
  }

  @keyframes au-hx-path-3 {
    0% {
      opacity: 0;
      transform: translate3d(-12px, 18px, 0) rotate(0) scale(.7);
    }
    25% {
      opacity: var(--opacity);
    }
    50% {
      transform: translate3d(10px, -20px, 0) rotate(180deg) scale(1.1);
      opacity: var(--opacity);
    }
    75% {
      opacity: var(--opacity);
    }
    100% {
      opacity: 0;
      transform: translate3d(-8px, -45px, 0) rotate(360deg) scale(.75);
    }
  }

  @keyframes au-hx-path-4 {
    0% {
      opacity: 0;
      transform: translate3d(0, 16px, 0) rotate(-10deg) scale(.7);
    }
    20% {
      opacity: var(--opacity);
    }
    50% {
      transform: translate3d(12px, -15px, 0) rotate(12deg) scale(1.05);
      opacity: var(--opacity);
    }
    80% {
      opacity: var(--opacity);
    }
    100% {
      opacity: 0;
      transform: translate3d(-16px, -38px, 0) rotate(-25deg) scale(.7);
    }
  }

  /* Pumpkins: stronger orange glow */
  #au-halloween-fx .au-hx-glow {
    filter:
      drop-shadow(0 0 6px rgba(255, 135, 58, .75))
      drop-shadow(0 0 16px rgba(180, 91, 198, .35));
  }

  /* Ghosts: brighter and more visible */
  #au-halloween-fx .au-hx-ghost {
    filter:
      drop-shadow(0 0 9px rgba(224, 212, 255, .8))
      drop-shadow(0 0 15px rgba(224, 212, 255, .3));
  }

  /* Tiny magic runes */
  #au-halloween-fx .au-hx-rune {
    position: absolute;
    left: var(--x);
    top: var(--y);
    color: #f4a261;
    font-size: var(--size);
    opacity: 0;
    text-shadow:
      0 0 7px rgba(244, 162, 97, .8),
      0 0 13px rgba(244, 162, 97, .35);
    animation: au-hx-rune var(--duration) ease-in-out var(--delay) infinite;
    will-change: transform, opacity;
  }

  @keyframes au-hx-rune {
    0%, 100% {
      opacity: 0;
      transform: scale(.4) rotate(0);
    }
    35%, 65% {
      opacity: .9;
      transform: scale(1) rotate(45deg);
    }
  }

  /* Flying bats */
  #au-halloween-fx .au-hx-bat-flight {
    position: absolute;
    left: -10%;
    top: var(--y);
    font-size: var(--size);
    white-space: nowrap;
    opacity: 0;
    animation: au-hx-bat-swoop var(--duration) linear var(--delay) infinite;
    will-change: transform, opacity;
  }

  @keyframes au-hx-bat-swoop {
    0% {
      opacity: 0;
      transform: translate3d(0, 0, 0) rotate(-8deg) scale(.8);
    }
    8% {
      opacity: .9;
    }
    45% {
      opacity: 1;
      transform: translate3d(55vw, -24px, 0) rotate(8deg) scale(1);
    }
    85% {
      opacity: .9;
    }
    100% {
      opacity: 0;
      transform: translate3d(120vw, 16px, 0) rotate(-6deg) scale(.85);
    }
  }

  /* Mobile */
  @media (max-width: 768px) {
    #au-halloween-fx .au-hx-item {
      font-size: calc(var(--size) * .82);
      filter: none;
    }

    #au-halloween-fx .au-hx-rune {
      font-size: 12px;
    }
  }

  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    #au-halloween-fx .au-hx-item,
    #au-halloween-fx .au-hx-rune,
    #au-halloween-fx .au-hx-bat-flight {
      animation: none !important;
      opacity: .6;
      will-change: auto;
    }
  }
