/* The event theme is scoped to October/preview and leaves the normal themes intact. */
.haunt-card-decor,.haunt-mob,.haunt-hero,.haunt-eyes,.haunt-season-label,.haunt-sound-toggle{display:none}
html[data-season=halloween]{--cyan:#ffac55;--cyan-rgb:255,172,85;--purple:#be91ed;--purple-rgb:190,145,237;--theme-bg:#100c17;--panel:#1a1422;--line:#543448;--border:#ffab552b;--muted:#c5b7cc;--text:#fff1e3}
html[data-season=halloween] body{background:#100c17;color:#fff1e3}
html[data-season=halloween] .navbar{background:#130e1bf2!important;border-bottom:1px solid #ffae5540;box-shadow:0 7px 35px #10051b80}
html[data-season=halloween] .hero{background-image:radial-gradient(ellipse at 85% 20%,#793a562f,transparent 55%),linear-gradient(90deg,#100c17f5 5%,#21102bb8 65%,#100c1780),url('../assets/spawnpoint-a.webp')!important}
html[data-season=halloween] :is(.section,.hero){background-color:transparent}
html[data-season=halloween] :is(.haunted-card,.command-grid,.gallery-card,.map-panel,.studio){background:linear-gradient(135deg,#251a2b,#15121e)!important;border:1px solid #b379474d!important;box-shadow:inset 0 1px #ffe3b50a,0 15px 45px #09050c45!important;color:#fff1e3}
html[data-season=halloween] .haunted-card{position:relative;padding-bottom:65px!important;isolation:isolate}
html[data-season=halloween] .haunt-card-decor{display:block;position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit;z-index:2}
.haunt-art{display:block;overflow:visible;shape-rendering:crispEdges;pointer-events:none}.haunt-art.web{shape-rendering:geometricPrecision}
.corner-web{position:absolute;right:0;top:0;width:72px;height:72px;transform:scaleX(-1)}
.card-pumpkin{position:absolute;bottom:8px;right:14px;width:43px;height:40px;filter:drop-shadow(0 0 10px #f7a8403d)}
.hanging-spider{position:absolute;top:-8px;right:55px;width:30px;height:62px;transform-origin:top center}
html[data-season=halloween] .haunt-mob{display:block;position:absolute;bottom:0;left:16px;width:62px;height:66px;padding:0;border:0!important;background:none!important;overflow:hidden;z-index:3;cursor:pointer}
.haunt-mob .haunt-art{height:84px;width:48px;margin:0 auto;transform:translateY(20px)}
.haunt-mob:focus-visible{outline:2px solid #ffb45e;outline-offset:3px}.haunt-mob:hover .haunt-art,.haunt-mob:focus-visible .haunt-art{transform:translateY(0)!important}
html[data-season=halloween] .haunted-heading{position:relative;padding-right:42px;width:fit-content}
html[data-season=halloween] .haunt-eyes{display:block;position:absolute;right:0;top:50%;width:28px;height:10px;transform:translateY(-50%);background:radial-gradient(ellipse at 20% 50%,#f8c35d 0 3px,transparent 4px),radial-gradient(ellipse at 80% 50%,#f8c35d 0 3px,transparent 4px);filter:drop-shadow(0 0 6px #ffb94c)}
html[data-season=halloween] .haunt-season-label{display:inline-block;font:700 10px/1.4 system-ui;letter-spacing:.18em;padding:8px 12px;background:#2e1b29;border:1px solid #eb9b4c55;border-radius:6px;color:#ffc47c;margin:0 0 14px}
html[data-season=halloween] .haunt-hero{display:block;position:absolute;inset:0;pointer-events:none;z-index:3}
.hero-pumpkin{position:absolute;bottom:3%;left:7%;width:85px;filter:drop-shadow(0 0 24px #f9904d55);transform:rotate(-8deg)}.hero-web{position:absolute;right:0;top:0;width:130px;transform:scaleX(-1)}.hero-skeleton{position:absolute;bottom:0;right:2%;width:67px;transform:rotate(8deg)}.hero-zombie{position:absolute;bottom:4%;left:0;width:65px;transform:rotate(-12deg)}
html[data-season=halloween] .haunt-sound-toggle{display:block;position:fixed;left:18px;bottom:61px;z-index:139;background:#201628ee;color:#ffd4a1;border:1px solid #9b6a424f;border-radius:22px;padding:7px 12px;font:11px system-ui;cursor:pointer}
@keyframes haunt-peek{0%,18%,100%{transform:translateY(23px) rotate(-5deg)}40%,70%{transform:translateY(2px) rotate(4deg)}}
@keyframes haunt-spider{0%,100%{transform:translateY(-9px) rotate(-4deg)}50%{transform:translateY(12px) rotate(5deg)}}
@keyframes haunt-blink{0%,43%,49%,90%,100%{opacity:1;transform:translateY(-50%) scaleY(1)}46%,94%{opacity:.3;transform:translateY(-50%) scaleY(.12)}}
@keyframes haunt-glow{0%,100%{opacity:1}35%{opacity:.65}55%{opacity:.88}70%{opacity:.5}}
html[data-season=halloween] .haunt-in-view .haunt-mob .haunt-art{animation:haunt-peek 8s ease-in-out infinite}
html[data-season=halloween] .haunt-in-view .hanging-spider{animation:haunt-spider 6s ease-in-out infinite}
html[data-season=halloween] .haunt-eyes{animation:haunt-blink 7s infinite}
html[data-season=halloween] .pumpkin-light{animation:haunt-glow 4s ease-in-out infinite}
html[data-season=halloween] .haunt-mob.zombie .haunt-art{animation-delay:-3s}
body.page-backgrounded :is(.haunt-art,.haunt-eyes,.pumpkin-light){animation-play-state:paused!important}
@media(max-width:600px){.corner-web{width:52px;height:52px}.hero-pumpkin{width:60px}.hero-skeleton,.hero-zombie{width:45px}.haunt-sound-toggle{left:12px!important;bottom:48px!important;font-size:10px!important}.haunt-season-label{font-size:9px!important}.haunt-mob{width:50px!important}}
@media(prefers-reduced-motion:reduce){html[data-season=halloween] :is(.haunt-art,.haunt-eyes,.pumpkin-light){animation:none!important}}
html[data-season=halloween] .hero-content>h1 span{background-image:linear-gradient(100deg,#ffc56f 10%,#fb9b50 45%,#d299ed 90%)}
html[data-season=halloween] .btn-primary{background:#f6ae5a;border-color:#ffcb85;color:#251324;box-shadow:0 0 30px #f08d3925}
html[data-season=halloween] .btn-primary:hover{background:#ffd18a;box-shadow:0 5px 30px #f08d3940}
html[data-season=halloween] :is(.section-heading h2 span,.eyebrow,.feature-icon){color:#ffc27a}
html[data-season=halloween] .feature-card:hover{border-color:#f8af65!important;box-shadow:0 0 28px #d9733517!important}
html[data-season=halloween] .hero-content>.haunt-season-label{grid-column:1;grid-row:1;justify-self:start;align-self:end;margin-bottom:32px}
html[data-season=halloween] .hero-content>.eyebrow{margin-bottom:4px}
.haunt-lanterns,.haunt-moon,.haunt-graveyard,.haunt-nook{display:none}
html[data-season=halloween] .haunt-lanterns{display:flex;position:absolute;top:100%;left:5%;right:5%;justify-content:space-between;height:46px;pointer-events:none;z-index:2}
.haunt-lanterns>span{position:relative;width:25px;padding-top:15px;transform-origin:top center;animation:lantern-sway 5s ease-in-out infinite;animation-delay:var(--lantern-delay)}
.haunt-lanterns>span::before{content:'';position:absolute;top:0;left:50%;height:18px;width:1px;background:#a7999280}.haunt-lanterns .pumpkin{width:25px;filter:drop-shadow(0 0 8px #ffad4c66)}
html[data-season=halloween] .haunt-moon{display:block;position:absolute;right:-22px;top:-24px;width:115px;z-index:4;pointer-events:none;filter:drop-shadow(0 0 24px #ffce893d);shape-rendering:crispEdges}
.moon-bats{animation:moon-bats 8s ease-in-out infinite;transform-origin:center}
html[data-season=halloween] .haunted-footer{position:relative;padding-top:110px!important;background:linear-gradient(0deg,#21172c,transparent)!important}
html[data-season=halloween] .haunt-graveyard{display:block;position:absolute;top:0;left:0;width:100%;height:105px;pointer-events:none;shape-rendering:crispEdges}
html[data-season=halloween] .haunt-nook{display:grid;grid-template-columns:190px minmax(0,1fr);gap:34px;align-items:center;width:min(1180px,calc(100% - 64px));margin:35px auto 75px;padding:30px 36px;border:1px solid #e4a05a55;border-radius:18px;background:radial-gradient(ellipse at 0% 100%,#69364755,transparent 65%),#1b1424;color:#fff1e3;box-shadow:0 0 50px #ac5b2d0d}
.haunt-nook h2{font-size:clamp(1.5rem,3vw,2.25rem);letter-spacing:-.035em;margin:10px 0}.haunt-nook p{font-size:.9rem;line-height:1.8;color:#d1c0d2;max-width:650px}.haunt-nook .eyebrow{font-size:10px;letter-spacing:.15em;color:#ffc176}.haunt-nook-art{display:flex;align-items:end;justify-content:center;gap:5px}.haunt-nook-art .skeleton,.haunt-nook-art .zombie{width:48px;transform:rotate(-8deg)}.haunt-nook-art .zombie{transform:rotate(8deg)}.haunt-nook-art .pumpkin{width:66px;filter:drop-shadow(0 0 22px #ff9c5540)}
.haunt-treat-button{background:#ffb45e;color:#251324;font:700 13px system-ui;border:1px solid #ffd28e;border-radius:9px;padding:12px 17px;cursor:pointer;margin-top:14px}.haunt-treat-button:focus-visible{outline:2px solid #e4b8ff;outline-offset:4px}.haunt-nook .haunt-treat-result{font-size:12px;min-height:44px;margin:12px 0 0;color:#ffd5a5}
@keyframes lantern-sway{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}@keyframes moon-bats{0%,100%{transform:translate(0,0)}50%{transform:translate(-10px,6px)}}@keyframes treat-bounce{0%,100%{transform:translateY(0)}40%{transform:translateY(-9px)}}
.treat-pop .haunt-nook-art .pumpkin{animation:treat-bounce .5s ease-out}
@media(max-width:600px){html[data-season=halloween] .haunt-nook{grid-template-columns:1fr;width:calc(100% - 32px);padding:24px;gap:20px}.haunt-nook-art .skeleton,.haunt-nook-art .zombie{width:36px}.haunt-nook-art .pumpkin{width:45px}html[data-season=halloween] .haunt-moon{width:74px;right:0}.haunt-lanterns>span:nth-child(even){visibility:hidden}}
@media(prefers-reduced-motion:reduce){.haunt-lanterns>span,.moon-bats,.treat-pop .haunt-nook-art .pumpkin{animation:none!important}}
body.page-backgrounded :is(.haunt-lanterns>span,.moon-bats){animation-play-state:paused!important}
.haunt-music-toggle,.haunt-music-settings{display:none}
html[data-season=halloween] .haunt-music-toggle{display:block;position:fixed;left:18px;bottom:100px;z-index:139;background:#201628ee;color:#ffd4a1;border:1px solid #9b6a4260;border-radius:22px;padding:8px 12px;font:12px system-ui;cursor:pointer}
html[data-season=halloween] .haunt-music-settings{display:block;border-top:1px solid #ffffff25;margin-top:16px;padding-top:8px}.haunt-music-toggle:focus-visible{outline:2px solid #ffbd73;outline-offset:3px}
@media(max-width:600px){html[data-season=halloween] .haunt-music-toggle{left:12px;bottom:83px;font-size:11px}}
.haunt-music-volume{display:none}
html[data-season=halloween] .haunt-music-volume{display:block;position:fixed;bottom:107px;left:178px;width:92px!important;height:12px;z-index:139;accent-color:#ffbf75;cursor:pointer;padding:0!important;margin:0!important;border:0;background:#201628;border-radius:8px}
@media(max-width:600px){html[data-season=halloween] .haunt-music-volume{bottom:91px;left:163px;width:75px!important}}
.spider-patrol-lane,.walking-spider{display:none}
html[data-season=halloween] .spider-patrol-host{position:relative;padding-bottom:65px}
html[data-season=halloween] .spider-patrol-lane{display:block;position:absolute;bottom:6px;left:75px;right:65px;height:48px;pointer-events:none;z-index:5}
html[data-season=halloween] .haunted-footer>.spider-patrol-lane{bottom:auto;top:45px;left:10%;right:10%}
html[data-season=halloween] .walking-spider{display:block;position:absolute;left:0;bottom:0;width:76px;height:48px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:auto;touch-action:none;cursor:grab;user-select:none;z-index:5;animation:spider-patrol var(--patrol-time,17s) linear infinite;animation-play-state:paused}
.walking-spider svg{width:100%;height:100%;shape-rendering:crispEdges;overflow:visible;filter:drop-shadow(0 4px 3px #0008);pointer-events:none}
.crawler-legs-a,.crawler-legs-b{transform-origin:45px 32px;animation:spider-step .3s ease-in-out infinite alternate;animation-play-state:paused}.crawler-legs-b{animation-delay:-.3s}
html[data-season=halloween] .haunt-in-view .walking-spider,html[data-season=halloween] .haunt-in-view :is(.crawler-legs-a,.crawler-legs-b){animation-play-state:running}
html[data-season=halloween] .walking-spider.spider-repositioned{position:absolute;bottom:auto;z-index:145;animation:none!important;transform:none!important}
.spider-repositioned .crawler-legs-a,.spider-repositioned .crawler-legs-b{animation-play-state:running}
.walking-spider.spider-held{cursor:grabbing}.walking-spider.spider-held svg{filter:drop-shadow(0 8px 5px #0009) drop-shadow(0 0 4px #f34b4260)}.walking-spider:focus-visible{outline:2px dashed #ffbd73;outline-offset:3px;border-radius:8px}
@keyframes spider-patrol{0%,5%{transform:translateX(0) scaleX(1)}45%,49%{transform:translateX(var(--patrol-distance,0px)) scaleX(1)}50%,55%{transform:translateX(var(--patrol-distance,0px)) scaleX(-1)}95%,99%{transform:translateX(0) scaleX(-1)}100%{transform:translateX(0) scaleX(1)}}
@keyframes spider-step{from{transform:rotate(-7deg) translateY(-1px)}to{transform:rotate(7deg) translateY(1px)}}
body.page-backgrounded :is(.walking-spider,.crawler-legs-a,.crawler-legs-b){animation-play-state:paused!important}
@media(max-width:600px){html[data-season=halloween] .spider-patrol-lane{left:55px;right:55px}.walking-spider{max-width:65px}}
@media(prefers-reduced-motion:reduce){html[data-season=halloween] :is(.walking-spider,.crawler-legs-a,.crawler-legs-b){animation:none!important}}

/* Only visible decorations need an animation clock. Keep detached spiders interactive. */
html[data-season=halloween] :is(.pumpkin-light,.haunt-eyes,.moon-bats,.haunt-lanterns>span){animation-play-state:paused}
html[data-season=halloween] .haunt-in-view :is(.pumpkin-light,.moon-bats),html[data-season=halloween] .haunt-in-view.haunt-lanterns>span,html[data-season=halloween] .haunt-in-view>.haunt-eyes{animation-play-state:running}
html[data-season=halloween] .navbar{backdrop-filter:none}
/* Explicit tracks/thumbs avoid native range rendering differences between browsers. */
html[data-season=halloween] :is(.haunt-music-volume,.haunt-music-settings input[type=range]){appearance:none;-webkit-appearance:none;box-sizing:border-box;height:28px!important;border:0!important;border-radius:14px;padding:0 3px!important;background:transparent;cursor:pointer;touch-action:pan-y}
html[data-season=halloween] .haunt-music-volume{bottom:99px}
:is(.haunt-music-volume,.haunt-music-settings input[type=range])::-webkit-slider-runnable-track{height:5px;border-radius:99px;background:#655166;border:1px solid #9e775c}
:is(.haunt-music-volume,.haunt-music-settings input[type=range])::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:15px;height:15px;margin-top:-6px;border-radius:50%;border:2px solid #ffe0ad;background:#ffb45e;box-shadow:0 1px 4px #0008}
:is(.haunt-music-volume,.haunt-music-settings input[type=range])::-moz-range-track{height:4px;border-radius:99px;background:#655166;border:1px solid #9e775c}
:is(.haunt-music-volume,.haunt-music-settings input[type=range])::-moz-range-thumb{width:12px;height:12px;border-radius:50%;border:2px solid #ffe0ad;background:#ffb45e;box-shadow:0 1px 4px #0008}
:is(.haunt-music-volume,.haunt-music-settings input[type=range]):focus-visible{outline:2px solid #ffbd73;outline-offset:3px}
@media(max-width:600px){html[data-season=halloween] .haunt-music-volume{bottom:83px}}
/* Sound controls live inside Atmosphere, away from the skin camera sliders. */
html[data-season=halloween] .season-settings-body :is(.haunt-music-toggle,.haunt-sound-toggle){position:static!important;inset:auto!important;width:100%;margin:10px 0;box-sizing:border-box;text-align:left}

