#nho-halloween-layer,
#nho-halloween-layer * {
  box-sizing: border-box;
}

#nho-halloween-layer {
  --nho-web-opacity: .42;
  --nho-pumpkin-opacity: .62;
  position: fixed;
  inset: 0;
  z-index: 9997;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none !important;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
}

#nho-halloween-layer .nho-web {
  position: absolute;
  width: calc(clamp(190px, 22vw, 380px) * var(--nho-web-size,1));
  aspect-ratio: 1;
  background: var(--nho-web-image) center / contain no-repeat;
  opacity: var(--nho-web-opacity);
  filter:
    drop-shadow(0 0 16px rgba(243, 118, 30, .10))
    drop-shadow(0 0 24px rgba(123, 66, 184, .09))
    drop-shadow(0 10px 18px rgba(34, 20, 42, .12));
  transform-origin: center;
}
#nho-halloween-layer .nho-web--tl { top: -1%; left: -1%; transform: rotate(-2deg); }
#nho-halloween-layer .nho-web--tr { top: -1%; right: -1%; transform: scaleX(-1) rotate(-2deg); }
#nho-halloween-layer .nho-web--bl { bottom: -1.8%; left: -1.2%; transform: scaleY(-1) rotate(-2deg); }
#nho-halloween-layer .nho-web--br { bottom: -1.8%; right: -1.2%; transform: scale(-1) rotate(-2deg); }
#nho-halloween-layer .nho-web--ml,
#nho-halloween-layer .nho-web--mr,
#nho-halloween-layer .nho-web--lt,
#nho-halloween-layer .nho-web--rb {
  width: calc(clamp(155px, 14vw, 260px) * var(--nho-web-size,1));
  opacity: calc(var(--nho-web-opacity) * .98);
}
#nho-halloween-layer .nho-web--ml { left: -3%; top: 28%; transform: rotate(-18deg); }
#nho-halloween-layer .nho-web--mr { right: -3%; top: 54%; transform: scaleX(-1) rotate(-18deg); }
#nho-halloween-layer .nho-web--lt { left: -2.5%; top: 68%; transform: rotate(-24deg); }
#nho-halloween-layer .nho-web--rb { right: -2.5%; top: 14%; transform: scaleX(-1) rotate(-24deg); }
#nho-halloween-layer .nho-web--tm,
#nho-halloween-layer .nho-web--bm {
  width: calc(clamp(130px, 12vw, 230px) * var(--nho-web-size,1));
  opacity: calc(var(--nho-web-opacity) * .90);
}
#nho-halloween-layer .nho-web--tm { top: -4%; left: 41%; transform: rotate(150deg); }
#nho-halloween-layer .nho-web--bm { bottom: -4%; right: 38%; transform: scaleY(-1) rotate(150deg); }

#nho-halloween-layer .nho-pumpkin {
  position: absolute;
  width: calc(clamp(50px, 6.1vw, 118px) * var(--nho-particle-size,1));
  aspect-ratio: 1;
  opacity: var(--nho-pumpkin-opacity);
  transform-origin: 50% 88%;
  will-change: transform;
}
#nho-halloween-layer .nho-pumpkin__shape {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--nho-pumpkin-image) center / contain no-repeat;
  filter:
    drop-shadow(0 10px 14px rgba(31, 20, 38, .20))
    drop-shadow(0 0 10px rgba(255, 139, 53, .13));
  
}

#nho-halloween-layer .nho-pumpkin--1 { left: .5%; bottom: 1%; --nho-tilt: -4deg; animation: nho-bob 5.6s ease-in-out infinite; }
#nho-halloween-layer .nho-pumpkin--2 { right: .5%; bottom: 1%; --nho-tilt: 4deg; animation: nho-bob 5.8s ease-in-out -1.8s infinite; }
#nho-halloween-layer .nho-pumpkin--3 { left: -1%; top: 42%; width: calc(clamp(48px, 5vw, 92px) * var(--nho-particle-size,1)); --nho-tilt: -8deg; animation: nho-sway 6.6s ease-in-out -1.2s infinite; }
#nho-halloween-layer .nho-pumpkin--4 { right: -1%; top: 24%; width: calc(clamp(50px, 5.2vw, 96px) * var(--nho-particle-size,1)); --nho-tilt: 8deg; animation: nho-sway 7s ease-in-out -.4s infinite; }
#nho-halloween-layer .nho-pumpkin--5 { left: 10%; bottom: -1.5%; width: calc(clamp(44px, 4.2vw, 76px) * var(--nho-particle-size,1)); --nho-tilt: 5deg; animation: nho-bob 5.2s ease-in-out -2.6s infinite; }
#nho-halloween-layer .nho-pumpkin--6 { right: 10%; bottom: -1.5%; width: calc(clamp(44px, 4.2vw, 76px) * var(--nho-particle-size,1)); --nho-tilt: -5deg; animation: nho-bob 5.2s ease-in-out -1.3s infinite; }
#nho-halloween-layer .nho-pumpkin--7 { left: 5%; top: 14%; width: calc(clamp(38px, 3.8vw, 68px) * var(--nho-particle-size,1)); --nho-tilt: -6deg; animation: nho-float 8s ease-in-out -2.2s infinite; }
#nho-halloween-layer .nho-pumpkin--8 { right: 6%; top: 68%; width: calc(clamp(42px, 4vw, 74px) * var(--nho-particle-size,1)); --nho-tilt: 6deg; animation: nho-float 7.6s ease-in-out -.8s infinite; }
#nho-halloween-layer .nho-pumpkin--9 { left: 22%; top: 5%; width: calc(clamp(34px, 3.2vw, 58px) * var(--nho-particle-size,1)); --nho-tilt: -4deg; animation: nho-sway 6.6s ease-in-out -1.7s infinite; }
#nho-halloween-layer .nho-pumpkin--10 { right: 22%; bottom: 10%; width: calc(clamp(36px, 3.4vw, 60px) * var(--nho-particle-size,1)); --nho-tilt: 3deg; animation: nho-sway 6.4s ease-in-out -2.7s infinite; }
#nho-halloween-layer .nho-pumpkin--11 { left: 28%; bottom: -1%; width: calc(clamp(42px, 4vw, 70px) * var(--nho-particle-size,1)); --nho-tilt: -2deg; animation: nho-bob 5.9s ease-in-out -1.1s infinite; }
#nho-halloween-layer .nho-pumpkin--12 { right: 30%; top: 8%; width: calc(clamp(40px, 3.9vw, 66px) * var(--nho-particle-size,1)); --nho-tilt: 4deg; animation: nho-float 8.4s ease-in-out -3.2s infinite; }
#nho-halloween-layer .nho-pumpkin--13 { left: 1%; top: 78%; width: calc(clamp(38px, 3.6vw, 62px) * var(--nho-particle-size,1)); --nho-tilt: -7deg; animation: nho-sway 7.2s ease-in-out -2.2s infinite; }
#nho-halloween-layer .nho-pumpkin--14 { right: 1%; top: 82%; width: calc(clamp(38px, 3.6vw, 62px) * var(--nho-particle-size,1)); --nho-tilt: 7deg; animation: nho-sway 7.2s ease-in-out -4.1s infinite; }

@keyframes nho-bob {
  0%,100% { transform: translate3d(0,0,0) rotate(var(--nho-tilt,0deg)) scale(1); }
  50% { transform: translate3d(0,-8px,0) rotate(calc(var(--nho-tilt,0deg) + 1deg)) scale(1.04); }
}
@keyframes nho-sway {
  0%,100% { transform: translate3d(0,0,0) rotate(var(--nho-tilt,0deg)) scale(1); }
  50% { transform: translate3d(2px,-4px,0) rotate(calc(var(--nho-tilt,0deg) * -1)) scale(1.03); }
}
@keyframes nho-float {
  0%,100% { transform: translate3d(0,0,0) rotate(var(--nho-tilt,0deg)) scale(1); }
  25% { transform: translate3d(1px,-4px,0) rotate(calc(var(--nho-tilt,0deg) + 1deg)) scale(1.02); }
  50% { transform: translate3d(-1px,-9px,0) rotate(var(--nho-tilt,0deg)) scale(1.05); }
  75% { transform: translate3d(1px,-3px,0) rotate(calc(var(--nho-tilt,0deg) - 1deg)) scale(1.02); }
}

@media (max-width: 1024px) {
  #nho-halloween-layer .nho-web { width: calc(clamp(160px, 25vw, 270px) * var(--nho-web-size,1)); }
  #nho-halloween-layer .nho-web--ml,
  #nho-halloween-layer .nho-web--mr,
  #nho-halloween-layer .nho-web--lt,
  #nho-halloween-layer .nho-web--rb { width: calc(clamp(120px, 17vw, 190px) * var(--nho-web-size,1)); }
  #nho-halloween-layer .nho-web--tm,
  #nho-halloween-layer .nho-web--bm { width: calc(clamp(110px, 14vw, 160px) * var(--nho-web-size,1)); }
  #nho-halloween-layer .nho-pumpkin { width: calc(clamp(48px, 8.4vw, 92px) * var(--nho-particle-size,1)); }
}

@media (max-width: 782px) {

  #nho-halloween-layer .nho-web { width: calc(clamp(124px, 34vw, 176px) * var(--nho-web-size,1)); }
  #nho-halloween-layer .nho-web--ml,
  #nho-halloween-layer .nho-web--mr,
  #nho-halloween-layer .nho-web--lt,
  #nho-halloween-layer .nho-web--rb,
  #nho-halloween-layer .nho-web--bm,
  #nho-halloween-layer .nho-pumpkin--9,
  #nho-halloween-layer .nho-pumpkin--10,
  #nho-halloween-layer .nho-pumpkin--11,
  #nho-halloween-layer .nho-pumpkin--12,
  #nho-halloween-layer .nho-pumpkin--13,
  #nho-halloween-layer .nho-pumpkin--14 { display: none; }
  #nho-halloween-layer .nho-pumpkin { width: calc(clamp(46px, 16vw, 76px) * var(--nho-particle-size,1)); }
}

@media (max-width: 420px) {
  #nho-halloween-layer .nho-web--bl,
  #nho-halloween-layer .nho-web--br { opacity: calc(var(--nho-web-opacity) * .96); }
  #nho-halloween-layer .nho-pumpkin--1 { left: -2%; bottom: 1%; }
  #nho-halloween-layer .nho-pumpkin--2 { right: -2%; bottom: 1%; }
}

@media (prefers-reduced-motion: reduce) {
  #nho-halloween-layer .nho-pumpkin,
  #nho-halloween-layer .nho-pumpkin__shape { animation: none !important; }

}


/* Seasonal variants retain the original fixed, non-interactive layer. */
#nho-halloween-layer * { pointer-events: none !important; }
#nho-halloween-layer.nho-theme-christmas .nho-web { filter: drop-shadow(0 3px 8px #143c3020); }
#nho-halloween-layer.nho-theme-christmas .nho-pumpkin__shape { filter: drop-shadow(0 1px 4px #376f9240); }
#nho-halloween-layer.nho-theme-newyear .nho-web { filter: drop-shadow(0 0 8px #e8bb6240); }
#nho-halloween-layer.nho-theme-newyear .nho-pumpkin__shape { filter: drop-shadow(0 0 5px #e8bb6240); }
body.nho-popup-open #nho-halloween-layer, body.nho-popup-open #nho-spider-pointer { visibility: hidden !important; }
#nho-spider-pointer { display:none; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  body.nho-custom-cursor-active:not(.nho-popup-open), body.nho-custom-cursor-active:not(.nho-popup-open) * { cursor:none !important; }
  #nho-spider-pointer { display:block; position:fixed; top:0; left:0; width:var(--nho-cursor-size,40px); aspect-ratio:1; z-index:2147483000; pointer-events:none!important; background:var(--nho-spider-image) center/contain no-repeat; translate:-50% -42%; filter:drop-shadow(0 3px 5px #0003); }
  #nho-spider-pointer.nho-spider-pointer--hidden { visibility:hidden; }
  #nho-spider-pointer.nho-cursor-halloween::after { content:"";position:absolute;left:50%;top:-12px;width:1px;height:15px;background:linear-gradient(transparent,#bd9bdb); }
}
html.nho-scrollbar { scrollbar-color:var(--nho-scroll-thumb) var(--nho-scroll-track); }
html.nho-scrollbar::-webkit-scrollbar { width:12px; height:12px; }
html.nho-scrollbar::-webkit-scrollbar-thumb { background:var(--nho-scroll-thumb); border:2px solid var(--nho-scroll-track); border-radius:10px; }
html.nho-scrollbar::-webkit-scrollbar-track { background:var(--nho-scroll-track); }
@media (prefers-reduced-motion:no-preference) {
  #nho-halloween-layer.nho-theme-christmas .nho-pumpkin { animation-name:nho-snow-drift; }
  #nho-halloween-layer.nho-theme-newyear .nho-pumpkin { animation-name:nho-confetti-float; }
}
@keyframes nho-snow-drift { 0%,100% {transform:translate3d(0,-4px,0) rotate(-8deg)} 50% {transform:translate3d(5px,12px,0) rotate(10deg)} }
@keyframes nho-confetti-float { 0%,100% {transform:translate3d(0,0,0) rotate(-7deg) scale(.96)} 50% {transform:translate3d(4px,-12px,0) rotate(9deg) scale(1.06)} }

/* New seasonal artwork uses smaller upright illustrations rather than oversized webs. */
#nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-anniversary,.nho-theme-mothersday) .nho-web {
  width:calc(clamp(92px,14vw,210px) * var(--nho-web-size,1));
  filter:drop-shadow(0 4px 8px #25232c16);
}
#nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-anniversary,.nho-theme-mothersday) :is(.nho-web--ml,.nho-web--mr,.nho-web--lt,.nho-web--rb,.nho-web--tm,.nho-web--bm) {
  width:calc(clamp(65px,9vw,140px) * var(--nho-web-size,1));
}
#nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-mothersday) :is(.nho-web--tl,.nho-web--bl,.nho-web--ml,.nho-web--lt) {transform:rotate(-12deg)}
#nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-mothersday) :is(.nho-web--tr,.nho-web--br,.nho-web--mr,.nho-web--rb) {transform:rotate(12deg)}
#nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-mothersday) :is(.nho-web--tm,.nho-web--bm) {transform:rotate(5deg)}
#nho-halloween-layer.nho-theme-love .nho-pumpkin__shape {filter:drop-shadow(0 3px 5px #b52c5730)}
#nho-halloween-layer.nho-theme-blackfriday .nho-pumpkin__shape {filter:drop-shadow(0 3px 5px #29283130)}
#nho-halloween-layer.nho-theme-anniversary .nho-pumpkin__shape {filter:drop-shadow(0 3px 5px #8857b130)}
#nho-halloween-layer.nho-theme-mothersday .nho-pumpkin__shape {filter:drop-shadow(0 3px 5px #60806425)}
@media(max-width:782px){
  #nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-anniversary,.nho-theme-mothersday) .nho-web {width:calc(clamp(75px,23vw,130px) * var(--nho-web-size,1))}
  #nho-halloween-layer:is(.nho-theme-love,.nho-theme-blackfriday,.nho-theme-anniversary,.nho-theme-mothersday) .nho-web--tm {width:calc(clamp(55px,16vw,90px) * var(--nho-web-size,1))}
}
@media(prefers-reduced-motion:no-preference){
  #nho-halloween-layer.nho-theme-love .nho-pumpkin {animation-name:nho-heart-float}
  #nho-halloween-layer.nho-theme-blackfriday .nho-pumpkin {animation-name:nho-sale-sway}
  #nho-halloween-layer.nho-theme-anniversary .nho-pumpkin {animation-name:nho-balloon-drift}
  #nho-halloween-layer.nho-theme-mothersday .nho-pumpkin {animation-name:nho-flower-sway}
}
@keyframes nho-heart-float {0%,100%{transform:translate3d(0,0,0) rotate(-5deg) scale(.98)}50%{transform:translate3d(0,-10px,0) rotate(5deg) scale(1.07)}}
@keyframes nho-sale-sway {0%,100%{transform:translate3d(0,0,0) rotate(-6deg)}50%{transform:translate3d(2px,-6px,0) rotate(6deg)}}
@keyframes nho-balloon-drift {0%,100%{transform:translate3d(-3px,0,0) rotate(-5deg)}50%{transform:translate3d(5px,-16px,0) rotate(6deg)}}
@keyframes nho-flower-sway {0%,100%{transform:translate3d(0,0,0) rotate(-7deg)}50%{transform:translate3d(2px,-5px,0) rotate(7deg)}}
