/* YUVL Halloween ambient layer — enabled ONLY by the canonical theme attribute. */
.yuvl-halloween-scene{display:none;position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;isolation:isolate}
:root[data-yuvl-theme="halloween"] .yuvl-halloween-scene{display:block}
:root[data-yuvl-theme="halloween"] main,:root[data-yuvl-theme="halloween"] footer{position:relative;z-index:1}
.yuvl-halloween-scene .h-web{position:absolute;width:240px;height:240px;opacity:.26;filter:drop-shadow(0 0 12px #b778b233)}
.yuvl-halloween-scene .h-web.left{top:-18px;left:-18px}
.yuvl-halloween-scene .h-web.right{top:-17px;right:-17px;transform:scaleX(-1)}
.yuvl-halloween-scene .h-pumpkin{position:absolute;display:block;width:var(--size);height:var(--size);opacity:var(--alpha);filter:drop-shadow(0 12px 24px #e86c2655);animation:h-pumpkin-float var(--duration) ease-in-out infinite alternate;animation-delay:var(--delay)}
.yuvl-halloween-scene .h-pumpkin svg{display:block;width:100%;height:100%}
.yuvl-halloween-scene .p1{--size:132px;--alpha:.45;--duration:8s;--delay:-2s;left:-48px;top:19%}
.yuvl-halloween-scene .p2{--size:85px;--alpha:.48;--duration:10s;--delay:-5s;right:3%;top:31%}
.yuvl-halloween-scene .p3{--size:112px;--alpha:.32;--duration:9s;--delay:-3s;right:-45px;bottom:8%}
.yuvl-halloween-scene .p4{--size:52px;--alpha:.32;--duration:7s;--delay:-1s;left:7%;bottom:17%}
.yuvl-halloween-scene .h-bats{position:absolute;top:18%;right:12%;width:185px;height:88px;fill:#b89bc8;opacity:.32;animation:h-bats-drift 17s ease-in-out infinite alternate}
.yuvl-halloween-scene .h-stars{position:absolute;inset:0;background-image:radial-gradient(circle,#ffd6a7 1px,transparent 2px),radial-gradient(circle,#d8b3ef 1px,transparent 2px);background-position:2% 20%,50% 63%;background-size:280px 250px,380px 330px;opacity:.17;animation:h-stars-twinkle 7s ease-in-out infinite alternate}
@keyframes h-pumpkin-float{from{transform:translate3d(0,0,0) rotate(-6deg)}to{transform:translate3d(12px,-28px,0) rotate(5deg)}}
@keyframes h-bats-drift{from{transform:translate(0,0)}to{transform:translate(-28px,18px)}}
@keyframes h-stars-twinkle{from{opacity:.1}to{opacity:.23}}
/* Replace the floating navigation droplet with a swinging Victorian lantern in Halloween. */
:root[data-yuvl-theme="halloween"] .drop-nav{
  width:64px;height:74px;border-radius:18px 18px 24px 24px!important;
  background:linear-gradient(180deg,#3a2547 0%,#22172f 22%,#2a1a33 100%)!important;
  border:1px solid #f0ab6a66!important;
  box-shadow:0 14px 38px #1007149c,inset 0 0 0 1px #ffd39c22,0 0 18px #f28f3a30!important;
  color:#ffe2b8!important;transform-origin:50% -16px;animation:h-lantern-swing 4.8s ease-in-out infinite;
}
:root[data-yuvl-theme="halloween"] .drop-nav>svg{display:none!important}
:root[data-yuvl-theme="halloween"] .drop-nav::before{
  content:'';position:absolute;left:50%;top:-17px;transform:translateX(-50%);width:22px;height:20px;
  border:2px solid rgba(255,199,141,.72);border-bottom:none;border-radius:14px 14px 0 0;
  box-shadow:0 -2px 0 rgba(255,215,164,.15) inset;
}
:root[data-yuvl-theme="halloween"] .drop-nav::after{
  content:'';position:absolute;inset:10px 11px 12px;border-radius:11px 11px 16px 16px;
  background:
    linear-gradient(90deg,transparent 0 16%,rgba(255,220,170,.30) 16% 18%,transparent 18% 82%,rgba(255,220,170,.26) 82% 84%,transparent 84%),
    linear-gradient(180deg,rgba(255,213,146,.95),rgba(255,149,70,.65) 55%,rgba(133,69,42,.55) 100%);
  border:1px solid rgba(255,199,136,.58);
  box-shadow:inset 0 0 24px rgba(255,236,185,.55),0 0 20px rgba(255,145,56,.35);
}
:root[data-yuvl-theme="halloween"] .drop-nav.is-visible:hover{transform:scale(1.04) rotate(2deg);border-radius:18px 18px 24px 24px!important}
@keyframes h-lantern-swing{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@media(max-width:850px){.yuvl-halloween-scene .p1{--size:78px;left:-32px}.yuvl-halloween-scene .p2{--size:64px;right:-16px}.yuvl-halloween-scene .p3,.yuvl-halloween-scene .p4{display:none}.yuvl-halloween-scene .h-web{width:135px;height:135px;opacity:.2}.yuvl-halloween-scene .h-bats{width:100px;right:9%;opacity:.16}}
@media(prefers-reduced-motion:reduce){.yuvl-halloween-scene *{animation:none!important}}

/* YUVL Seasonal Edition 2026 — atmospheric details, reusable by toggling the seasonal lock. */
.yuvl-halloween-scene .p5{--size:64px;--alpha:.32;--duration:13s;--delay:-8s;left:1%;top:48%}
.yuvl-halloween-scene .p6{--size:90px;--alpha:.25;--duration:11s;--delay:-6s;right:-23px;top:68%}
.yuvl-halloween-scene .p7{--size:58px;--alpha:.30;--duration:12s;--delay:-4s;left:9%;top:79%}
.yuvl-halloween-scene .p8{--size:70px;--alpha:.22;--duration:14s;--delay:-3s;right:8%;top:88%}
/* Decorative web corners stay behind footer content. */
:root[data-yuvl-theme="halloween"] footer{position:relative;isolation:isolate;overflow:hidden}
:root[data-yuvl-theme="halloween"] footer::before,
:root[data-yuvl-theme="halloween"] footer::after{
 content:"";position:absolute;width:310px;height:310px;bottom:-94px;opacity:.35;z-index:-1;pointer-events:none;
 background:repeating-conic-gradient(from 0deg at 0% 100%,transparent 0deg 13deg,rgba(211,155,217,.27) 13.3deg 13.8deg,transparent 14deg 26deg),repeating-radial-gradient(circle at 0% 100%,transparent 0 32px,rgba(211,155,217,.23) 33px 34px,transparent 35px 57px);
 mask-image:radial-gradient(circle at 0% 100%,#000 10%,transparent 76%);
}
:root[data-yuvl-theme="halloween"] footer::before{left:-22px}
:root[data-yuvl-theme="halloween"] footer::after{right:-22px;transform:scaleX(-1)}
/* Main preview becomes a subtle enchanted window with wooden shutters, without hiding interactive UI. */
:root[data-yuvl-theme="halloween"] .hero-stage .app-window{
  border:2px solid rgba(231,156,90,.66)!important;
  box-shadow:0 42px 100px rgba(4,2,10,.48),0 0 42px rgba(242,115,55,.11),inset 0 0 0 2px rgba(255,196,121,.15)!important;
}
:root[data-yuvl-theme="halloween"] .hero-stage .app-window::before,
:root[data-yuvl-theme="halloween"] .hero-stage .app-window::after{
  content:"";position:absolute;top:10px;bottom:10px;width:15px;z-index:3;pointer-events:none;
  background:repeating-linear-gradient(180deg,#82442d 0 17px,#bd7950 18px 20px,#5c302b 21px 35px);
  border:1px solid rgba(252,172,96,.48);box-shadow:inset 2px 0 5px rgba(255,197,123,.18),0 0 14px rgba(0,0,0,.2);
}
:root[data-yuvl-theme="halloween"] .hero-stage .app-window::before{left:3px;border-radius:12px 3px 3px 12px;transform:perspective(100px) rotateY(-15deg)}
:root[data-yuvl-theme="halloween"] .hero-stage .app-window::after{right:3px;border-radius:3px 12px 12px 3px;transform:perspective(100px) rotateY(15deg)}
:root[data-yuvl-theme="halloween"] .hero-stage .app-window .app-inner{box-shadow:inset 0 0 0 2px rgba(236,159,103,.14)}
@media(max-width:850px){.yuvl-halloween-scene .p5,.yuvl-halloween-scene .p6,.yuvl-halloween-scene .p7,.yuvl-halloween-scene .p8{display:none}:root[data-yuvl-theme="halloween"] footer::before,:root[data-yuvl-theme="halloween"] footer::after{width:200px;height:200px;opacity:.18}}
@media(prefers-reduced-motion:reduce){.yuvl-halloween-scene .h-pumpkin{animation:none!important}}
