/* Composited forest layers: gentle tree motion and a few distant bats. */
html[data-theme="orange"][data-halloween] body > .ambient-bg {
 background:#060c14 url('/halloween-forest-static-oct18-v45.svg?v=2') center top/cover no-repeat;
}
html[data-theme="orange"][data-halloween] body > .ambient-bg .ambient-light {display:none}
.hw-forest-motion {position:fixed;inset:0;z-index:-1;display:none;overflow:hidden;pointer-events:none;contain:strict;background:#060c14 url('/halloween-forest-sky-oct18-v45.svg?v=2') center top/cover no-repeat}
html[data-halloween]:not([data-hw-paused]):not([data-reduced-motion]) .hw-forest-motion {display:block}
/* Keep the flying silhouettes independent of the dim forest, behind all page content. */
.hw-forest-flight {position:fixed;inset:0;z-index:-1;display:none;overflow:hidden;pointer-events:none;contain:strict;opacity:.65}
html[data-halloween]:not([data-hw-paused]):not([data-reduced-motion]) .hw-forest-flight {display:block}
.hw-forest-tree {position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top;pointer-events:none}
.hw-forest-tree-left {transform-origin:11% 84%;animation:hw-tree-sway-left 12s ease-in-out -3s infinite}
.hw-forest-tree-right {transform-origin:89% 86%;animation:hw-tree-sway-right 15s ease-in-out -8s infinite}
.hw-forest-motion::after {content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 42%,#05090e10 67%,#05090ec9 100%);pointer-events:none}
.hw-forest-bat {position:absolute;left:0;top:0;width:64px;height:32px;opacity:0;pointer-events:none}
.hw-forest-bat svg {display:block;width:100%;height:100%;overflow:visible;fill:#352c33;stroke:#b4967d;stroke-width:1;stroke-opacity:.65}
.hw-forest-wing {transform-box:fill-box;transform-origin:right center;animation:hw-bat-wingbeat .34s ease-in-out infinite alternate}
.hw-forest-bat-a {animation:hw-bat-cross-left 30s linear -7s infinite}
.hw-forest-bat-b {width:44px;height:22px;animation:hw-bat-cross-right 37s linear -12s infinite}
.hw-forest-bat-b .hw-forest-wing {animation-duration:.27s;animation-delay:-.12s}
.hw-forest-bat-c {width:32px;height:16px;animation:hw-bat-cross-far 43s linear -30s infinite}
.hw-forest-bat-c .hw-forest-wing {animation-duration:.24s;animation-delay:-.2s}
.hw-forest-bat-d {top:24vh;width:52px;height:26px;animation:hw-bat-cross-left 39s linear -21s infinite}
.hw-forest-bat-d .hw-forest-wing {animation-duration:.29s;animation-delay:-.18s}
.hw-forest-bat-e {top:-16vh;width:36px;height:18px;animation:hw-bat-cross-right 32s linear -3s infinite}
.hw-forest-bat-e .hw-forest-wing {animation-duration:.25s;animation-delay:-.08s}
@keyframes hw-tree-sway-left {0%,100%{transform:rotate(-.5deg)}50%{transform:rotate(.65deg)}}
@keyframes hw-tree-sway-right {0%,100%{transform:rotate(.45deg)}50%{transform:rotate(-.55deg)}}
@keyframes hw-bat-wingbeat {from{transform:rotate(-5deg) scaleY(1)}to{transform:rotate(10deg) scaleY(.42)}}
@keyframes hw-bat-cross-left {
 0%{transform:translate3d(-10vw,60vh,0) rotate(-8deg);opacity:0}
 4%{opacity:.85}18%{transform:translate3d(22vw,57vh,0) rotate(5deg)}
 36%{transform:translate3d(53vw,63vh,0) rotate(10deg)}
 53%{transform:translate3d(85vw,58vh,0) rotate(-6deg);opacity:.85}
 65%{transform:translate3d(112vw,61vh,0) rotate(7deg);opacity:0}
 100%{transform:translate3d(112vw,61vh,0);opacity:0}
}
@keyframes hw-bat-cross-right {
 0%{transform:translate3d(110vw,58vh,0) rotate(9deg);opacity:0}
 5%{opacity:.72}23%{transform:translate3d(76vw,52vh,0) rotate(-5deg)}
 41%{transform:translate3d(43vw,61vh,0) rotate(6deg)}
 61%{transform:translate3d(8vw,55vh,0) rotate(-9deg);opacity:.72}
 70%{transform:translate3d(-12vw,59vh,0);opacity:0}
 100%{transform:translate3d(-12vw,59vh,0);opacity:0}
}
@keyframes hw-bat-cross-far {
 0%{transform:translate3d(-8vw,84vh,0) rotate(-8deg);opacity:0}
 7%{opacity:.6}31%{transform:translate3d(43vw,77vh,0) rotate(5deg)}
 53%{transform:translate3d(83vw,87vh,0) rotate(-9deg);opacity:.6}
 64%{transform:translate3d(112vw,80vh,0);opacity:0}
 100%{transform:translate3d(112vw,80vh,0);opacity:0}
}
html[data-page-hidden] :is(.hw-forest-motion,.hw-forest-flight) * {animation-play-state:paused !important}
@media(max-width:768px){
 html[data-theme="orange"][data-halloween] body > .ambient-bg,.hw-forest-motion {background-position:78% top;background-size:auto 100%}
 .hw-forest-tree {object-position:78% top}
 .hw-forest-bat-a {width:43px;height:22px}
 .hw-forest-bat-b {width:30px;height:15px}
 .hw-forest-bat-c,.hw-forest-bat-e {display:none}
 .hw-forest-bat-d {width:34px;height:17px}
}
@media(prefers-reduced-motion:reduce){.hw-forest-motion,.hw-forest-flight{display:none !important}}
