/* Isolated decoration, no content sizing, colours or hit targets changed. */
/* One shared cloud treatment for the active existing night landscape. */
html[data-halloween="on"][data-theme="dark"] .halloween-workspace:not([hidden])::after{content:"";position:absolute;inset:0 0 auto;height:134px;z-index:-1;pointer-events:none;background:url("assets/halloween-workqueue-dark.webp") center 40%/100% auto no-repeat;opacity:.55;filter:brightness(1.65);mix-blend-mode:screen;mask-image:linear-gradient(to bottom,transparent,#000 18%,#000 68%,transparent)}
html[data-pqm-halloween-target="production"][data-halloween="on"] #applicationShell{isolation:isolate}
html[data-pqm-halloween-target="production"][data-halloween="on"] .halloween-workspace:not([hidden]){isolation:auto}
html[data-pqm-halloween-target="production"][data-halloween="on"] .pqm-halloween-foreground{isolation:isolate}
.halloween-flight-lane{position:fixed;left:0;width:var(--flight-viewport-width,100vw);height:calc(86px + 2 * var(--maneuver-amplitude,0px));overflow:hidden;pointer-events:none;z-index:0;contain:paint}
.halloween-flight-sprite{position:absolute;left:100%;top:calc(3px + var(--maneuver-amplitude,0px));width:clamp(74px,7.5vw,112px);height:78px;animation:pqm-witch-cross var(--flight-duration,13s) linear both}
.halloween-flight-sprite svg{display:block;width:100%;height:100%;overflow:hidden;animation:pqm-witch-sway 3.8s ease-in-out infinite;filter:drop-shadow(0 1px 1px #29203544)}
html[data-theme="dark"] .halloween-flight-sprite svg{filter:brightness(1.12) drop-shadow(0 0 .55px #cbbce08c) drop-shadow(.4px -.5px .5px #bdc5df80)}
.halloween-broom-trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
@keyframes pqm-witch-cross{0%{opacity:0;transform:translateX(0)}8%,84%{opacity:1}100%{opacity:0;transform:translateX(var(--flight-distance))}}
@keyframes pqm-witch-sway{0%,100%{transform:translateY(1px) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}
.halloween-cat-eyes{aspect-ratio:720/389;filter:none}
.halloween-cat-eyes svg{display:block;width:100%;height:100%;overflow:hidden}
.pqm-cat-lids{opacity:0;transform-box:fill-box;transform-origin:center}
html[data-halloween="off"] .halloween-flight-lane{display:none}
@media(prefers-reduced-motion:reduce){.halloween-flight-lane,.halloween-cat-eyes{display:none}.halloween-cat-eyes *{animation:none!important}}

/* Independent vertical motion keeps the approved horizontal crossing speed. */
.halloween-witch-maneuver{display:block;width:100%;height:100%;animation:pqm-witch-wave-one var(--flight-duration,13s) ease-in-out both}
.halloween-flight-sprite[data-witch="2"] .halloween-witch-maneuver{animation-name:pqm-witch-wave-two}
@keyframes pqm-witch-wave-one{0%,100%{transform:translateY(0)}24%{transform:translateY(calc(-1 * var(--maneuver-amplitude,0px)))}56%{transform:translateY(var(--maneuver-amplitude,0px))}84%{transform:translateY(calc(-.8 * var(--maneuver-amplitude,0px)))}}
@keyframes pqm-witch-wave-two{0%,100%{transform:translateY(0)}22%{transform:translateY(calc(.8 * var(--maneuver-amplitude,0px)))}52%{transform:translateY(calc(-1 * var(--maneuver-amplitude,0px)))}80%{transform:translateY(calc(.6 * var(--maneuver-amplitude,0px)))}}
@media(prefers-reduced-motion:reduce){.halloween-witch-maneuver{animation:none}}
