/* Articulated acting: lift, anticipation, a short bank, then a soft recovery. */
.halloween-theme{--witch-width:266px}
.halloween-theme .topbar{padding-top:186px;min-height:230px}
.halloween-sky{height:180px;overflow:hidden}
.halloween-witch{left:calc(50% - var(--witch-width)/2);top:16px;width:var(--witch-width);aspect-ratio:360/210;animation:witch-hover 6s cubic-bezier(.45,0,.55,1) infinite;animation-delay:-1.4s}
.witch-rig{display:block;position:absolute;inset:0;transform-origin:56% 65%;translate:calc(var(--halloween-depth-x,0px) * 1.2) calc(var(--halloween-depth-y,0px) * .8);animation:witch-bank 9.6s cubic-bezier(.4,0,.3,1) infinite;animation-delay:-1.5s}
.witch-part,.witch-layer{display:block;position:absolute;background:center/contain no-repeat;pointer-events:none;user-select:none}
.witch-layer{inset:0}
.witch-broom{left:0;top:53.3%;width:97.2%;height:46.7%;--rig-image:url('./halloween-rig-broom-v1.webp');transform-origin:62% 35%;animation:broom-balance 5.6s ease-in-out infinite}
.witch-broom .witch-layer{background-image:var(--rig-image)}
.witch-broom-shaft{clip-path:inset(0 0 0 29%)}
.witch-broom-straw{clip-path:inset(0 67% 0 0);transform-origin:33% 50%;animation:straw-flex 2.4s ease-in-out infinite alternate}
.witch-hair{left:21.1%;top:28.6%;width:36.7%;height:41.4%;background-image:url('./halloween-rig-hair-v1.webp');transform-origin:94% 6%;animation:hair-follow 3.1s cubic-bezier(.4,0,.6,1) infinite alternate}
.witch-cape{left:22.8%;top:39%;width:38.9%;height:46.4%;--rig-image:url('./halloween-rig-cape-v1.webp')}
.witch-cape .witch-layer{background-image:var(--rig-image)}
.witch-cape-neck{clip-path:inset(0 0 0 61%)}
.witch-cape-mid{clip-path:inset(0 29% 0 27%);transform-origin:75% 22%;animation:cape-middle 2.8s cubic-bezier(.45,0,.55,1) infinite alternate}
.witch-cape-tail{clip-path:inset(0 67% 0 0);transform-origin:35% 23%;animation:cape-tip 2.8s cubic-bezier(.45,0,.55,1) infinite alternate;animation-delay:-.3s}
.witch-torso{left:41.7%;top:40.5%;width:31.1%;height:48.6%;--rig-image:url('./halloween-rig-body-v1.webp');transform-origin:48% 67%;animation:torso-breathe 5.6s ease-in-out infinite}
.witch-torso .witch-layer{background-image:var(--rig-image)}
.witch-body-core{clip-path:polygon(0 0,100% 0,100% 100%,49% 100%,49% 58%,0 58%)}
.witch-boot{clip-path:inset(57% 49% 0 0);transform-origin:45% 59%;animation:boot-dangle 4.4s cubic-bezier(.45,0,.55,1) infinite alternate;animation-delay:-.7s}
.witch-head{left:30.5%;top:0;width:37.2%;height:51.9%;--rig-image:url('./halloween-rig-head-v1.webp');transform-origin:69% 82%;animation:head-balance 9.6s cubic-bezier(.4,0,.3,1) infinite;animation-delay:-1.5s}
.witch-head .witch-layer{background-image:var(--rig-image)}
.witch-face{clip-path:polygon(80% 0,100% 0,100% 100%,0 100%,0 57%,20% 59%,51% 40%,72% 25%)}
.witch-hat-tip{clip-path:polygon(0 0,80% 0,72% 25%,51% 40%,20% 59%,0 57%);transform-origin:60% 35%;animation:hat-follow 3.5s ease-in-out infinite alternate;animation-delay:-.4s}
.witch-head .witch-head-blink{background-image:url('./halloween-rig-blink-v1.webp');clip-path:inset(46% 5% 14% 45%);opacity:0;animation:witch-blink 5.7s linear infinite;animation-delay:-1.3s}
.witch-cat{left:76.7%;top:43.8%;width:17.2%;height:25.2%;--rig-image:url('./halloween-rig-cat-v1.webp');transform-origin:60% 90%;animation:cat-breathe 5.3s ease-in-out infinite}
.witch-cat .witch-layer{background-image:var(--rig-image)}
.witch-cat-core{clip-path:inset(0 0 0 27%)}
.witch-cat-tail{clip-path:inset(0 67% 0 0);transform-origin:32% 76%;animation:cat-tail-curl 4.1s ease-in-out infinite alternate}
.witch-cat .witch-cat-blink{background-image:url('./halloween-rig-catblink-v1.webp');clip-path:inset(5% 0 37% 32%);opacity:0;animation:witch-blink 6.9s linear infinite;animation-delay:-4.5s}
@keyframes witch-hover{0%,100%{translate:-7px -7px}28%{translate:4px -3px}55%{translate:9px 3px}80%{translate:-3px -1px}}
@keyframes witch-bank{0%,100%{rotate:-1deg;scale:1}12%{rotate:-2deg;scale:1}23%{rotate:5deg;scale:1.025}31%{rotate:-3deg;scale:1}41%,56%{rotate:0deg;scale:1}66%{rotate:-4deg;scale:.985}76%{rotate:2deg;scale:1.015}86%{rotate:-1deg;scale:1}}
@keyframes broom-balance{0%,100%{rotate:1.1deg}50%{rotate:-1.6deg}}
@keyframes straw-flex{from{transform:skewY(-2deg) rotate(-2deg)}to{transform:skewY(4deg) rotate(3deg)}}
@keyframes hair-follow{from{transform:rotate(-3deg) skewY(-1.5deg)}to{transform:rotate(5deg) skewY(3deg)}}
@keyframes cape-middle{from{transform:rotate(-1.8deg) skewY(-2deg)}to{transform:rotate(3.6deg) skewY(3deg)}}
@keyframes cape-tip{from{transform:rotate(-4deg) skewY(-3deg)}to{transform:rotate(6deg) skewY(4deg)}}
@keyframes torso-breathe{0%,100%{translate:0 0;rotate:-.8deg}50%{translate:0 -1.4px;rotate:1.1deg}}
@keyframes boot-dangle{0%,100%{rotate:-7deg}26%{rotate:10deg}57%{rotate:-4deg}78%{rotate:5deg}}
@keyframes head-balance{0%,100%{rotate:1deg;translate:0 0}13%{rotate:2deg;translate:0 0}23%{rotate:-5deg;translate:0 .7px}34%{rotate:3deg;translate:0 0}47%,56%{rotate:0deg;translate:0 0}67%{rotate:6deg;translate:-.5px .5px}78%{rotate:-2deg;translate:0 0}87%{rotate:1deg;translate:0 0}}
@keyframes hat-follow{from{transform:rotate(-2deg) skewX(-1.5deg)}to{transform:rotate(3.5deg) skewX(2deg)}}
@keyframes witch-blink{0%,42%,47%,89%,95%,100%{opacity:0}43.5%,45.5%,90.5%,92.5%{opacity:1}}
@keyframes cat-breathe{0%,100%{scale:1;rotate:0deg}38%{scale:1 1.035;rotate:-2deg}55%{scale:1;rotate:2.5deg}70%{scale:1;rotate:0deg}}
@keyframes cat-tail-curl{0%,100%{rotate:-7deg}30%{rotate:10deg}48%,62%{rotate:2deg}82%{rotate:-4deg}}
/* Bat body stays in place; each wing has its own shoulder and depth stroke. */
.halloween-bat{left:16%;top:54px;perspective:100px;animation:bat-idle 3.7s ease-in-out infinite alternate}
.halloween-bat--two{left:78%;top:28px;animation-duration:4.2s;animation-delay:-1.2s}
.halloween-bat--three{left:84%;top:78px;animation-duration:3.2s;animation-delay:-2.4s}
.halloween-bat i{position:absolute;inset:0;animation:none;background:url('./halloween-bat-v1.webp') center/contain no-repeat}
.halloween-bat .bat-body{clip-path:inset(8% 39% 0 39%)}
.halloween-bat .bat-wing-left{clip-path:inset(0 51% 0 0);transform-origin:49% 58%;animation:bat-left-stroke .58s cubic-bezier(.4,.05,.6,.95) infinite}
.halloween-bat .bat-wing-right{clip-path:inset(0 0 0 51%);transform-origin:51% 58%;animation:bat-right-stroke .58s cubic-bezier(.4,.05,.6,.95) infinite}
.halloween-bat--two .bat-wing-left,.halloween-bat--two .bat-wing-right{animation-duration:.47s;animation-delay:-.2s}
@keyframes bat-left-stroke{0%,100%{transform:rotateY(9deg) rotate(-4deg)}48%{transform:rotateY(73deg) rotate(12deg)}}
@keyframes bat-right-stroke{0%,100%{transform:rotateY(-9deg) rotate(4deg)}48%{transform:rotateY(-73deg) rotate(-12deg)}}
@keyframes bat-idle{0%{translate:-7px -7px;rotate:-13deg}30%{translate:9px 1px;rotate:8deg}64%{translate:3px 10px;rotate:13deg}100%{translate:-9px -2px;rotate:-6deg}}
/* The ghost's hem and the lantern's suspended mass move independently. */
.halloween-banner-ghost{background:none;opacity:.9;animation:ghost-breathe 6.8s cubic-bezier(.45,0,.35,1) infinite}
.ghost-piece{display:block;position:absolute;inset:0;background:url('./halloween-ghost-v1.webp') center/contain no-repeat}
.ghost-face{clip-path:inset(0 0 36% 0)}
.ghost-hem-left{clip-path:inset(61% 45% 0 0);transform-origin:45% 62%;animation:ghost-left-hem 2.4s ease-in-out infinite alternate}
.ghost-hem-right{clip-path:inset(61% 0 0 50%);transform-origin:54% 62%;animation:ghost-right-hem 2.7s ease-in-out infinite alternate;animation-delay:-1s}
@keyframes ghost-breathe{0%,100%{translate:0 5px;rotate:6deg;scale:.96}24%{translate:-9px -10px;rotate:-9deg;scale:1.035}43%{translate:-12px -3px;rotate:3deg;scale:1}60%{translate:-4px 8px;rotate:8deg;scale:.98}77%{translate:4px -6px;rotate:-4deg;scale:1.02}}
@keyframes ghost-left-hem{from{transform:skewX(-3deg) rotate(-2deg)}to{transform:skewX(4deg) rotate(2deg)}}
@keyframes ghost-right-hem{from{transform:skewX(3deg) rotate(2deg)}to{transform:skewX(-4deg) rotate(-2deg)}}
.halloween-lantern{background:none}
.halloween-lantern::after{display:none}
.lantern-cord,.lantern-mass{position:absolute;inset:0;background:url('./halloween-lantern-v2.webp') center/contain no-repeat;display:block}
.lantern-cord{clip-path:inset(0 0 37% 0)}
.lantern-mass{clip-path:inset(59% 0 0 0);transform-origin:50% 61%;animation:lantern-mass-lag 7.4s cubic-bezier(.42,0,.58,1) infinite;animation-delay:-2.5s}
.halloween-lantern--far .lantern-mass{animation-duration:9.3s;animation-delay:-5.6s}
@keyframes lantern-mass-lag{0%,100%{rotate:2.5deg}50%{rotate:-2.5deg}}
.lantern-mass::after{content:"";position:absolute;inset:64% 20% 7%;border-radius:50%;background:radial-gradient(ellipse,#ffc05c60,transparent 69%);animation:lantern-light 3.1s ease-in-out infinite;mix-blend-mode:screen}
@keyframes lantern-light{0%,100%{opacity:.35;scale:.94}37%{opacity:.9;scale:1.08}58%{opacity:.5;scale:.98}76%{opacity:.8;scale:1.04}}
/* A little ember follows the broom; the page and card grid remain still. */
.witch-rig::after{content:"";position:absolute;left:7%;top:73%;width:5px;height:5px;border-radius:50%;background:#f6c87e;box-shadow:-14px 5px 0 -1px #dc964e,-24px 1px 0 -1px #e9b968;animation:broom-embers 2.3s ease-out infinite;pointer-events:none}
@keyframes broom-embers{0%{opacity:0;transform:translate(4px,-2px) scale(.5)}26%{opacity:.85}100%{opacity:0;transform:translate(-20px,10px) scale(.2)}}
.halloween-story-art{animation:story-breathe 7.8s cubic-bezier(.45,0,.55,1) infinite;transform-origin:55% 86%}
@keyframes story-breathe{0%,100%{transform:rotate(-.45deg) scale(1)}42%{transform:rotate(.5deg) scale(1.012)}70%{transform:rotate(-.2deg) scale(1.003)}}
.halloween-story-art::after{content:"";position:absolute;left:68%;top:66%;width:25%;height:23%;background:radial-gradient(ellipse,#ffc15845,transparent 70%);mix-blend-mode:screen;animation:lantern-light 4.7s ease-in-out infinite;pointer-events:none}
/* Rope and cardstock are separate. JS only updates live physical state. */
.cover-age-badge{inset:2px 12px auto auto!important;background-image:none!important;animation:none!important;transform:none!important;rotate:none!important;translate:none!important;transition:none!important;contain:layout style!important;overflow:visible!important;perspective:220px}
.cover-age-badge::after{display:none!important}
.cover-age-badge[data-age="15"]{--age-tag-body:url('./vankho-age-15-body-v2.webp')}
.cover-age-badge[data-age="19"]{--age-tag-body:url('./vankho-age-19-body-v2.webp')}
.age-tag-cord{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#ead6b2;stroke-width:2.7;stroke-linecap:round;pointer-events:none}
.age-tag-cord__tail{stroke:#d8bb91;stroke-width:2.1}
.age-tag-body{position:absolute;left:10%;top:20%;width:80%;height:80%;display:block;background:var(--age-tag-body) center/contain no-repeat;transform-origin:50% 11.5%;transform:translate3d(var(--tag-dx,0px),var(--tag-dy,0px),0) rotateZ(var(--tag-angle,0deg)) rotateY(var(--tag-yaw,0deg)) rotateX(var(--tag-pitch,0deg));filter:drop-shadow(1px 2px 1px #0004);backface-visibility:hidden}
.age-tag-body::after{content:"";position:absolute;inset:0;background:linear-gradient(108deg,transparent 20%,#fff8 42%,transparent 72%);mask:var(--age-tag-body) center/contain no-repeat;opacity:var(--tag-light,.02);pointer-events:none}
.detail-cover .cover-age-badge{inset:1px 9px auto auto!important}.row-cover .cover-age-badge,.update-row .cover-age-badge{inset:0 7px auto auto!important}
.halloween-paused :is(.witch-rig,.witch-part,.witch-layer,.bat-wing-left,.bat-wing-right,.ghost-piece,.lantern-mass){animation-play-state:paused}
.halloween-still :is(.witch-rig,.witch-part,.witch-layer,.bat-wing-left,.bat-wing-right,.ghost-piece,.lantern-mass){animation:none!important}
.halloween-paused .halloween-story-art,.halloween-paused .halloween-story-art::after,.halloween-paused .lantern-mass::after,.halloween-paused .witch-rig::after{animation-play-state:paused}
.halloween-still .halloween-story-art,.halloween-still .halloween-story-art::after,.halloween-still .lantern-mass::after,.halloween-still .witch-rig::after{animation:none!important}
.halloween-still .witch-rig::after{display:none}
.halloween-sky.holiday-out-of-view,.halloween-sky.holiday-out-of-view *,.halloween-sky.holiday-out-of-view .witch-rig::after,.halloween-season.holiday-out-of-view *,.halloween-season.holiday-out-of-view *::before,.halloween-season.holiday-out-of-view *::after{animation-play-state:paused!important}
@media(max-width:1100px){.halloween-theme .topbar{padding-top:186px}.halloween-theme{--witch-width:244px}}
@media(max-width:767px){.halloween-theme{--witch-width:168px}.halloween-theme .topbar{padding-top:132px}.halloween-sky{height:128px}.halloween-witch{top:15px;animation-name:witch-hover}.halloween-bat{left:16%;top:42px;width:28px}.halloween-bat--two{left:81%;top:26px;width:23px}.halloween-bat--three{display:none}}
@media(prefers-reduced-motion:reduce){.witch-rig,.witch-part,.witch-layer,.ghost-piece,.lantern-mass,.bat-wing-left,.bat-wing-right,.halloween-story-art,.halloween-story-art::after,.lantern-mass::after,.witch-rig::after{animation:none!important}.witch-rig::after{display:none}.age-tag-body{transform:none!important}.age-tag-body::after{display:none}}
@media print{.age-tag-body{transform:none!important;filter:none}.age-tag-body::after{display:none}}
