[data-seasonal-decorations]{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.seasonal-decoration{position:absolute;width:clamp(120px,24%,420px);aspect-ratio:320/230;filter:drop-shadow(0 4px 3px #47205b16);animation:seasonalDrift 19s ease-in-out infinite}
.seasonal-decoration svg{width:100%;height:100%;display:block}
.seasonal-top{left:-2%;top:-2%;transform-origin:15% 15%}
.seasonal-bottom{right:-2%;bottom:-1%;width:clamp(120px,21%,360px);animation-delay:-9s;transform-origin:85% 85%}
#stage[data-seasonal-theme]:not([data-seasonal-theme=""]){--screen-background:var(--season-base,radial-gradient(ellipse at 10% 100%,var(--season-2),transparent 72%),linear-gradient(125deg,var(--season-0),var(--season-1)));background:var(--screen-background)}
#stage[data-seasonal-theme]:not([data-seasonal-theme=""]) #fallback{background:var(--screen-background)}
#stage.local>[data-seasonal-decorations="foreground"],#stage.brand>[data-seasonal-decorations]:not([data-seasonal-decorations="foreground"]){display:none}
[data-seasonal-decorations="foreground"]{z-index:2;inset:3% 2%;overflow:visible;container-type:size}
/* Container units keep the route inside the output (and the smaller theme previews).
   Only transforms animate: an ornament follows the edges, never a diagonal across the video. */
.seasonal-front{--ornament-size:min(20cqw,clamp(64px,18cqh,230px));--travel-x:calc(100cqw - var(--ornament-size));--travel-y:calc(100cqh - var(--ornament-size));left:0;top:0;width:var(--ornament-size);aspect-ratio:1;filter:drop-shadow(0 3px 1px #fff9) drop-shadow(0 6px 7px #47205b38);transform-origin:50% 50%;animation:seasonalPerimeter 112s ease-in-out infinite;will-change:transform}
.seasonal-front svg{animation:seasonalRock 9s ease-in-out infinite}
.seasonal-front-0{transform:translate(var(--travel-x),0);animation-delay:-28s}
.seasonal-front-1{--ornament-size:min(18cqw,clamp(60px,16cqh,210px));transform:translate(0,var(--travel-y));animation-duration:136s;animation-direction:reverse;animation-delay:-34s}
.seasonal-front-1 svg{animation-duration:12s;animation-delay:-5s}
#stage.with-ticker>[data-seasonal-decorations="foreground"]{bottom:calc(calc(4 * var(--graphic-unit,1vmin)) + var(--output-ticker-height,calc(6.5 * var(--graphic-unit,1vmin))))}
#stage.portrait .seasonal-front{--ornament-size:min(17cqw,180px)}
#stage.portrait .seasonal-front-1{--ornament-size:min(15cqw,160px)}
#stage.embedded>[data-seasonal-decorations="foreground"]{display:none}
#stage.landscape.downloaded[data-mascot="valentines:kiss"] .rail-mascot{height:43%}
#stage.landscape.downloaded[data-mascot="santjordi:exchange"] .rail-mascot{height:43%}
#stage.brand .floating-mascot{z-index:3}
#stage.motion-off .seasonal-decoration,#stage.motion-off .seasonal-front svg{animation:none;will-change:auto}
@keyframes seasonalDrift{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(7px) rotate(2deg)}}
@keyframes seasonalPerimeter{0%,100%{transform:translate(0,0)}25%{transform:translate(var(--travel-x),0)}50%{transform:translate(var(--travel-x),var(--travel-y))}75%{transform:translate(0,var(--travel-y))}}
@keyframes seasonalRock{0%,100%{transform:rotate(-5deg) scale(.97)}50%{transform:rotate(5deg) scale(1)}}
.themes-console{min-width:0}
.themes-console .themes-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;margin-bottom:16px}
.themes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:18px;align-items:start}
.theme-card{border:1px solid #594069;border-radius:18px;background:#21192d;overflow:hidden;min-width:0;color:#fff}
.theme-card-body{padding:18px;display:grid;gap:14px}
.theme-card h3{margin:0;font-size:20px}
.theme-card label{margin:0}
.theme-card .theme-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.theme-card .theme-checks{display:flex;gap:15px;flex-wrap:wrap}
.theme-card .theme-checks label{display:flex;gap:7px;align-items:center;font-size:13px}
.theme-card input[type=checkbox],.themes-toolbar input[type=checkbox]{width:auto;margin:0;accent-color:#c77bff}
.theme-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.theme-date-fields label{display:grid;gap:5px;font-size:12px}
.theme-date-fields input{width:100%;box-sizing:border-box;min-width:0}
.theme-status{font-size:11px;border-radius:20px;padding:5px 10px;background:#392b48;color:#d5c3e2}
.theme-status.active{background:#214d3a;color:#b5ffd2}
.theme-status.overlap,.theme-status.unscheduled{background:#624726;color:#ffe5a0}
.theme-priority{display:flex;align-items:center;gap:8px;font-size:12px;color:#cab8d9}
.theme-priority button{padding:5px 9px;margin:0}
.theme-preview{aspect-ratio:16/9;background:var(--season-base,radial-gradient(ellipse at 10% 100%,var(--season-2),transparent 72%),linear-gradient(125deg,var(--season-0),var(--season-1)));position:relative;overflow:hidden;isolation:isolate}
.theme-preview .seasonal-decoration{width:35%;min-width:0}
.theme-preview [data-seasonal-decorations="foreground"]{bottom:13%}
.theme-preview .seasonal-front{width:var(--ornament-size)}
.theme-preview-video{position:absolute;inset:10% 5% 12% 19%;display:grid;place-items:center;border-radius:6px;background:linear-gradient(145deg,#342340,#100b1b);color:#b8a7c7;font-size:12px;box-shadow:0 0 0 1px #ffffff40;z-index:1}
.theme-preview-mascot{position:absolute;left:3%;bottom:5%;height:71%;max-width:34%;object-fit:contain;z-index:3;filter:drop-shadow(0 2px 2px #44204430)}
.theme-preview-logo{position:absolute;top:6%;left:3%;width:25%;z-index:2;filter:drop-shadow(0 1px 1px #fff)}
.theme-preview-ribbon{position:absolute;left:6%;right:5%;bottom:7%;height:6%;background:#6423a1;border-radius:20px;z-index:2}
.theme-poses{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}
.theme-pose{display:flex;flex-direction:column;align-items:center;gap:6px;padding:7px;border:1px solid #624779;border-radius:9px;background:#352645;text-align:center;font-size:10px}
.theme-pose img{height:95px;max-width:100%;object-fit:contain}
.theme-pose:has(input:not(:checked)){opacity:.45}
.theme-pose input{width:auto;margin:0}
.theme-card details summary{cursor:pointer;color:#e0c8f2;font-size:13px}
.theme-card .theme-preview-button{width:100%}
.theme-preview-dialog{padding:0;width:min(1100px,calc(94 * var(--screen-vw,1vw)));max-width:calc(94 * var(--screen-vw,1vw));background:#21192d;border:1px solid #6c4f7c;border-radius:18px;color:#fff;overflow:hidden}
.theme-preview-dialog::backdrop{background:#090412c9}
.theme-preview-dialog .theme-preview{width:100%}
.theme-preview-dialog .dialog-actions{display:flex;align-items:center;justify-content:space-between;padding:16px;gap:12px}
.theme-preview-dialog .theme-preview-video{font-size:clamp(14px,calc(2 * var(--screen-vw,1vw)),32px)}
@media(prefers-reduced-motion:reduce){.seasonal-decoration,.seasonal-front svg{animation:none;will-change:auto}}
@media(max-width:520px){.theme-poses{grid-template-columns:repeat(2,1fr)}}

/* No fixed pixel floor can overwhelm a small LED canvas. */
#stage .seasonal-top{width:min(24%,calc(39 * var(--graphic-unit)))}
#stage .seasonal-bottom{width:min(21%,calc(34 * var(--graphic-unit)))}
#stage.landscape .seasonal-front{--ornament-size:min(20cqw,18cqh)}
#stage.landscape .seasonal-front-1{--ornament-size:min(18cqw,16cqh)}

/* Each season owns its atmosphere; the video and the free frame share one base. */
[data-seasonal-theme="halloween"]{
 --season-base:radial-gradient(ellipse at 12% 70%,#a749242e,transparent 55%),radial-gradient(ellipse at 85% 15%,#68418c75,transparent 52%),linear-gradient(150deg,#171129,#342046 57%,#241531);
 --season-light:radial-gradient(ellipse at 22% 80%,#ed8b4140,transparent 52%),radial-gradient(ellipse at 80% 30%,#a288ca45,transparent 58%);
 --season-pattern:repeating-linear-gradient(168deg,transparent 0 20%,#c3acc210 24%,transparent 31% 48%);
 --season-texture-size:100% 100%;--season-drift:themeMist;--season-duration:56s;--season-pattern-opacity:.6;
}
[data-seasonal-theme="christmas"]{
 --season-base:radial-gradient(ellipse at 12% 10%,#8bbfa360,transparent 55%),linear-gradient(145deg,#164d48,#36645a 55%,#193f46);
 --season-light:radial-gradient(ellipse at 80% 70%,#f7d58a38,transparent 55%),radial-gradient(ellipse at 10% 25%,#dfffe62b,transparent 48%);
 --season-pattern:radial-gradient(circle at 20% 30%,#fff9eab0 0 1%,transparent 1.6%),radial-gradient(circle at 75% 75%,#fff8e180 0 .7%,transparent 1.3%);
 --season-texture-size:calc(19 * var(--season-pattern-unit,1vmin)) calc(24 * var(--season-pattern-unit,1vmin));--season-drift:themeSnow;--season-duration:68s;--season-pattern-opacity:.5;
}
[data-seasonal-theme="carnival"]{
 --season-base:radial-gradient(ellipse at 5% 85%,#36cbdc9c,transparent 57%),radial-gradient(ellipse at 95% 15%,#f32b9887,transparent 57%),linear-gradient(130deg,#61418b,#274a77);
 --season-light:radial-gradient(ellipse at 25% 15%,#ffe68d60,transparent 42%),radial-gradient(ellipse at 75% 90%,#2bd8ca40,transparent 45%);
 --season-pattern:repeating-linear-gradient(35deg,transparent 0 32%,#ffda6f48 33% 33.7%,transparent 34% 65%,#f781bf45 66% 67%,transparent 68% 100%);
 --season-texture-size:calc(35 * var(--season-pattern-unit,1vmin)) calc(31 * var(--season-pattern-unit,1vmin));--season-drift:themeConfetti;--season-duration:49s;--season-pattern-opacity:.65;
}
[data-seasonal-theme="easter"]{
 --season-base:radial-gradient(ellipse at 0 85%,#b7e4ce,transparent 68%),radial-gradient(ellipse at 100% 0,#f6c4df,transparent 65%),linear-gradient(135deg,#fff4dc,#e7e6f6);
 --season-light:radial-gradient(ellipse at 25% 35%,#ffffedb0,transparent 52%),radial-gradient(ellipse at 80% 75%,#b7dbf550,transparent 58%);
 --season-pattern:radial-gradient(ellipse at 30% 25%,#ffffff90 0 4%,transparent 4.6%),radial-gradient(ellipse at 76% 72%,#dc9cc640 0 3%,transparent 3.8%);
 --season-texture-size:calc(26 * var(--season-pattern-unit,1vmin)) calc(32 * var(--season-pattern-unit,1vmin));--season-drift:themePetals;--season-duration:74s;--season-pattern-opacity:.5;
}
[data-seasonal-theme="canaries"]{
 --season-base:radial-gradient(ellipse at 12% 0,#ffeda9,transparent 53%),linear-gradient(165deg,#d0f2ff,#71bcd7 58%,#3b86bc);
 --season-light:radial-gradient(ellipse at 80% 70%,#fffef055,transparent 65%),radial-gradient(ellipse at 5% 80%,#a6e9e870,transparent 55%);
 --season-pattern:repeating-radial-gradient(ellipse at 50% -20%,transparent 0 16%,#ffffff24 17% 17.6%,transparent 18% 31%);
 --season-texture-size:100% 65%;--season-drift:themeOcean;--season-duration:62s;--season-pattern-opacity:.65;
}
[data-seasonal-theme="valentines"]{
 --season-base:radial-gradient(ellipse at 15% 25%,#f4aac7,transparent 65%),radial-gradient(ellipse at 90% 85%,#ba4e89,transparent 58%),linear-gradient(145deg,#fbe0df,#e6a4c5);
 --season-light:radial-gradient(ellipse at 65% 25%,#fff0dd75,transparent 50%),radial-gradient(ellipse at 25% 80%,#fff0e34a,transparent 55%);
 --season-pattern:radial-gradient(circle at 25% 30%,#fff3eb60 0 3%,transparent 4%),radial-gradient(circle at 75% 75%,#cf538b24 0 7%,transparent 8%);
 --season-texture-size:calc(32 * var(--season-pattern-unit,1vmin)) calc(35 * var(--season-pattern-unit,1vmin));--season-drift:themeGlow;--season-duration:60s;--season-pattern-opacity:.55;
}
[data-seasonal-theme="santjordi"]{
 --season-base:radial-gradient(ellipse at 85% 15%,#cbdcb65c,transparent 62%),linear-gradient(120deg,#f8eccd,#e6d0a8 65%,#d6c29e);
 --season-light:radial-gradient(ellipse at 10% 70%,#fff7dfad,transparent 58%),radial-gradient(ellipse at 90% 80%,#b9475b24,transparent 42%);
 --season-pattern:repeating-linear-gradient(0deg,transparent 0 8%,#9e765513 8.2% 8.5%,transparent 8.7% 16%),repeating-linear-gradient(90deg,transparent 0 48%,#b4415530 49% 49.4%,transparent 50% 100%);
 --season-texture-size:calc(45 * var(--season-pattern-unit,1vmin)) calc(32 * var(--season-pattern-unit,1vmin));--season-drift:themePaper;--season-duration:86s;--season-pattern-opacity:.6;
}
#stage[data-seasonal-theme]:not([data-seasonal-theme=""])::before,
#stage[data-seasonal-theme]:not([data-seasonal-theme=""]) #fallback::before,
.theme-preview[data-seasonal-theme]::before{
 content:"";position:absolute;inset:-12%;pointer-events:none;z-index:0;
 background:var(--season-light);animation:themeGlow 53s ease-in-out infinite alternate;opacity:.75;
}
#stage[data-seasonal-theme]:not([data-seasonal-theme=""])::after,
#stage[data-seasonal-theme]:not([data-seasonal-theme=""]) #fallback::after,
.theme-preview[data-seasonal-theme]::after{
 content:"";position:absolute;inset:-12%;pointer-events:none;z-index:0;
 background:var(--season-pattern);background-size:var(--season-texture-size);
 animation:var(--season-drift) var(--season-duration) ease-in-out infinite alternate;opacity:calc(var(--season-pattern-opacity) * var(--season-density,1));
}
.theme-preview{container-type:size;--graphic-unit:min(1cqw,1cqh)}
@keyframes themeMist{from{transform:translate(-4%,2%) scale(1);opacity:calc(.35 * var(--season-density,1))}to{transform:translate(4%,-2%) scale(1.08);opacity:calc(.7 * var(--season-density,1))}}
@keyframes themeSnow{from{transform:translate(-1%,-6%)}to{transform:translate(2%,6%)}}
@keyframes themeConfetti{from{transform:translate(-3%,2%) rotate(-2deg)}to{transform:translate(3%,-2%) rotate(2deg)}}
@keyframes themePetals{from{transform:translate(-2%,3%) rotate(-1deg)}to{transform:translate(2%,-3%) rotate(1deg)}}
@keyframes themeOcean{from{transform:translate(-3%,1%) scale(1)}to{transform:translate(3%,-1%) scale(1.06)}}
@keyframes themeGlow{from{transform:translate(-2%,-1%) scale(1);opacity:calc(.45 * var(--season-density,1))}to{transform:translate(2%,1%) scale(1.06);opacity:calc(.8 * var(--season-density,1))}}
@keyframes themePaper{from{transform:translateX(-1%)}to{transform:translateX(1%)}}
@media(prefers-reduced-motion:reduce){.theme-preview::before,.theme-preview::after,#stage[data-seasonal-theme]::before,#stage[data-seasonal-theme]::after,#stage[data-seasonal-theme] #fallback::before,#stage[data-seasonal-theme] #fallback::after{animation:none!important}}
/* Keep the existing background-motion switch authoritative. */
#stage.motion-off::before,#stage.motion-off::after,#stage.motion-off #fallback::before,#stage.motion-off #fallback::after{display:none!important}

/* Halloween's cartoon set is scenery, never an overlay across the footage. */
.seasonal-scenery{position:absolute;pointer-events:none}
.seasonal-scenery svg{display:block;width:100%;height:100%}
.haunted-house{right:-6%;bottom:0;width:min(85%,calc(120 * var(--graphic-unit,1vmin)));aspect-ratio:4/3;opacity:.85}
.haunted-windows{animation:hauntedWindows 47s ease-in-out infinite}
.seasonal-web{top:0;width:min(38%,calc(48 * var(--graphic-unit,1vmin)));aspect-ratio:1;opacity:.32}
.seasonal-web-left{left:0}.seasonal-web-right{right:0;scale:-1 1}
.seasonal-spider{right:8%;top:-1%;width:calc(9 * var(--graphic-unit,1vmin));aspect-ratio:2/5;transform-origin:50% 0;animation:hauntedSpider 29s ease-in-out infinite;opacity:.8}
.seasonal-lightning{inset:0;opacity:0;animation:hauntedLightning 61s linear infinite;animation-delay:-13s}
.theme-preview .haunted-house{width:85%}
.theme-preview .seasonal-spider{width:9%}
@keyframes hauntedWindows{0%,58%,64%,100%{opacity:.8}61%{opacity:.4}82%{opacity:1}}
@keyframes hauntedSpider{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(3deg) translateY(calc(2 * var(--graphic-unit,1vmin)))}}
@keyframes hauntedLightning{0%,66%,68%,100%{opacity:0}66.3%{opacity:.3}66.7%{opacity:.06}67%{opacity:.2}67.5%{opacity:0}}
#stage.motion-off .seasonal-scenery,#stage.motion-off .haunted-windows{animation:none!important}
@media(prefers-reduced-motion:reduce){.seasonal-scenery,.haunted-windows{animation:none!important}}

/* Taller canvases expose much more backdrop: fewer, larger, quieter details. */
[data-seasonal-theme]{--season-pattern-unit:calc(var(--graphic-unit,1vmin) * var(--season-texture-scale,1))}
#stage.portrait{--season-texture-scale:1.25;--season-density:.72}
#stage.portrait .haunted-house{width:108%;right:-18%;opacity:.62}
#stage.portrait .seasonal-web{width:39%;opacity:.24}
#stage.portrait .seasonal-spider{opacity:.65}
.seasonal-spider-small{right:auto;left:3%;top:-5%;width:calc(6 * var(--graphic-unit,1vmin));animation-delay:-14s;animation-duration:37s}
.theme-preview .seasonal-spider-small{width:6%}

/* Seasonal sets: quiet scenery below the video, independent of edge overlays. */
.festival-ground{right:0;bottom:0;width:min(100%,calc(120 * var(--graphic-unit,1vmin)));aspect-ratio:4/3;opacity:.72}
.festival-canopy{left:0;right:0;top:0;aspect-ratio:64/15;opacity:.65}
.festival-detail{right:4%;top:22%;width:calc(13 * var(--graphic-unit,1vmin));aspect-ratio:1;opacity:.68;animation:festivalFloat 31s ease-in-out infinite;transform-origin:50% 50%}
.festival-detail.festival-easter{right:auto;left:2%;top:38%;animation-duration:37s}
.festival-detail.festival-carnival{top:37%;animation-duration:29s}
.festival-detail.festival-canaries{top:56%;animation-duration:43s}
.festival-detail.festival-valentines{right:auto;left:3%;top:30%;animation-duration:39s}
.festival-detail.festival-santjordi{top:47%;animation-duration:41s}
.festival-lights{animation:festivalLights 19s ease-in-out infinite}
.festival-turning-page{transform-origin:25px 60px;animation:festivalPage 47s ease-in-out infinite}
@keyframes festivalFloat{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(calc(-1.4 * var(--graphic-unit,1vmin))) rotate(3deg)}}
@keyframes festivalLights{0%,100%{opacity:.45}50%{opacity:.9}}
@keyframes festivalPage{0%,72%,100%{transform:scaleX(1)}78%{transform:scaleX(.16)}85%{transform:scaleX(.95)}}
#stage.portrait .festival-ground{width:128%;right:-14%;opacity:.57}
#stage.portrait .festival-canopy{opacity:.48}
#stage.portrait .festival-detail{width:calc(15 * var(--graphic-unit,1vmin));opacity:.54}
.theme-preview .festival-ground{width:100%}
.theme-preview .festival-detail{width:13%}
#stage.motion-off .festival-lights,#stage.motion-off .festival-turning-page{animation:none!important}
@media(prefers-reduced-motion:reduce){.festival-lights,.festival-turning-page{animation:none!important}}

.theme-preview-layout{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:10px 16px;background:#241b30;flex-wrap:wrap}
.theme-preview-layout>span{margin-right:auto;font-size:12px;color:#c5b3d5}
.theme-preview-layout button{padding:8px 13px;font-size:12px;border:1px solid #75538c;border-radius:8px;background:#34243f;color:#f5eaff}
.theme-preview-layout button[aria-pressed=true]{background:#7033a1;border-color:#d4a8f0;box-shadow:inset 0 -2px #ffce65}
.theme-preview-dialog{max-height:94vh;overflow:auto}
.theme-preview-dialog[data-preview-orientation=portrait]{width:min(480px,94vw)}
.theme-preview-dialog[data-preview-orientation=portrait] .theme-preview{width:min(100%,calc(63vh * 9 / 16));aspect-ratio:9/16;margin-inline:auto}
.theme-preview[data-preview-orientation=portrait]{--season-texture-scale:1.25;--season-density:.72}
.theme-preview[data-preview-orientation=portrait] .theme-preview-logo{width:65%;left:17.5%;top:12%}
.theme-preview[data-preview-orientation=portrait] .theme-preview-video{inset:30% 3% auto;height:30%}
.theme-preview[data-preview-orientation=portrait] .theme-preview-mascot{height:33%;bottom:12%;left:22.5%;max-width:55%}
.theme-preview[data-preview-orientation=portrait] .festival-ground{width:128%;right:-14%;opacity:.57}
.theme-preview[data-preview-orientation=portrait] .festival-canopy{opacity:.48}
.theme-preview[data-preview-orientation=portrait] .festival-detail{width:15%;opacity:.54}
.theme-preview[data-preview-orientation=portrait] .haunted-house{width:108%;right:-18%;opacity:.62}
.theme-preview[data-preview-orientation=portrait] .seasonal-web{width:39%;opacity:.24}
