/* Hand-built glass lights. Decorative only, with no pointer interception. */
#garland{position:absolute;top:var(--garland-top,80px);left:0;width:100%;height:48px;display:flex;overflow:hidden;pointer-events:none;z-index:1031;contain:layout paint;background:none;margin:0}
#garland .festive-lamp{position:relative;flex:0 0 64px;height:46px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='18' viewBox='0 0 64 18'%3E%3Cpath d='M-1 2 Q32 17 65 2' fill='none' stroke='%23314c55' stroke-width='1.7'/%3E%3Cpath d='M-1 1 Q32 16 65 1' fill='none' stroke='%23c7d6d2' stroke-opacity='.6' stroke-width='.65'/%3E%3C/svg%3E") top center/64px 18px no-repeat;--light:255,194,85;--glass:#e29a24;--core:#fff0b5}
#garland .festive-lamp-1{--light:91,214,237;--glass:#2a9aba;--core:#d6fcff}
#garland .festive-lamp-2{--light:255,132,151;--glass:#ce526d;--core:#ffe0da}
#garland .festive-lamp-3{--light:105,223,171;--glass:#369b7c;--core:#dcffe5}
#garland .festive-bulb{position:absolute;left:26px;top:14px;width:12px;height:20px;border-radius:45% 45% 50% 50% / 25% 25% 75% 75%;background:radial-gradient(ellipse at 35% 28%,#fff 0%,var(--core) 22%,var(--glass) 78%);box-shadow:inset -2px -2px 3px #163b4435,0 0 5px rgba(var(--light),.65);transform:rotate(-7deg)}
#garland .festive-lamp:nth-child(even) .festive-bulb{transform:rotate(7deg)}
#garland .festive-bulb:before{content:"";position:absolute;top:-6px;left:1px;width:10px;height:7px;border-radius:2px 2px 1px 1px;background:repeating-linear-gradient(0deg,#314b50 0 1px,#607c7b 1px 2px);box-shadow:inset 1px 0 1px #c0cfc87a}
#garland .festive-bulb:after{content:"";position:absolute;inset:-12px -14px;border-radius:50%;background:radial-gradient(ellipse,rgba(var(--light),.55),rgba(var(--light),.15) 38%,transparent 70%);z-index:-1;opacity:.7;animation:festiveBreath var(--speed,4s) ease-in-out var(--phase,0s) infinite}
@keyframes festiveBreath{0%,100%{opacity:.38;transform:scale(.82)}50%{opacity:1;transform:scale(1.12)}}
@media(min-width:992px){#garland{position:fixed}}
@media(max-width:767px){#garland{height:42px}#garland .festive-lamp{flex-basis:48px;background-size:48px 18px}#garland .festive-bulb{left:19px;width:10px;height:17px}#garland .festive-bulb:before{width:8px}#garland .festive-lamp:nth-child(n+19){display:none}}
@media(prefers-reduced-motion:reduce){#garland .festive-bulb:after{animation:none;opacity:.7}}
html.garland-paused #garland .festive-bulb:after{animation-play-state:paused}

@media(max-width:991px){#garland[data-menu-open]{visibility:hidden}}

/* Brighter light pools and a persistent, keyboard-accessible power switch. */
#garland{width:calc(100% - 62px);height:74px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 42px),transparent),linear-gradient(to bottom,#000 40px,transparent 72px);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,#000 calc(100% - 42px),transparent),linear-gradient(to bottom,#000 40px,transparent 72px);mask-composite:intersect}
#garland .festive-bulb{background:radial-gradient(ellipse at 38% 30%,#fff 0 17%,var(--core) 36%,var(--glass) 100%);box-shadow:0 0 5px 2px rgba(var(--light),1),0 0 14px 5px rgba(var(--light),.85),0 0 28px 10px rgba(var(--light),.45);transition:box-shadow .3s,filter .3s;animation:festiveLampGlow var(--speed,4s) ease-in-out var(--phase,0s) infinite}
#garland .festive-bulb:after{inset:-16px -20px;background:radial-gradient(ellipse,rgba(var(--light),.8),rgba(var(--light),.4) 35%,transparent 72%);opacity:1}
@keyframes festiveLampGlow{0%,100%{filter:brightness(1);box-shadow:0 0 5px 2px rgba(var(--light),1),0 0 13px 5px rgba(var(--light),.75),0 0 24px 8px rgba(var(--light),.4)}50%{filter:brightness(1.35);box-shadow:0 0 7px 3px rgba(var(--light),1),0 0 19px 7px rgba(var(--light),.95),0 0 32px 12px rgba(var(--light),.55)}}
/* Each power-on chooses a different gentle rhythm. */
#garland[data-mode="wave"] .festive-bulb{animation:festiveWave 5s ease-in-out calc(var(--lamp-index)*-.24s) infinite}
#garland[data-mode="wave"] .festive-bulb:after{animation:festiveBreath 5s ease-in-out calc(var(--lamp-index)*-.24s) infinite}
#garland[data-mode="aurora"] .festive-bulb{animation:festiveAurora 9s ease-in-out var(--phase) infinite}
#garland[data-mode="duet"] .festive-bulb{animation:festiveWave 6s ease-in-out 0s infinite}
#garland[data-mode="duet"] .festive-lamp:nth-child(even) .festive-bulb{animation-delay:-3s}
#garland[data-mode="duet"] .festive-bulb:after{animation:festiveBreath 6s ease-in-out 0s infinite}
#garland[data-mode="duet"] .festive-lamp:nth-child(even) .festive-bulb:after{animation-delay:-3s}
@keyframes festiveWave{0%,100%{filter:brightness(.85);box-shadow:0 0 4px 1px rgba(var(--light),.9),0 0 12px 4px rgba(var(--light),.5)}50%{filter:brightness(1.4);box-shadow:0 0 7px 3px rgba(var(--light),1),0 0 20px 8px rgba(var(--light),.9),0 0 32px 12px rgba(var(--light),.5)}}
@keyframes festiveAurora{0%,100%{filter:brightness(1) hue-rotate(-25deg)}50%{filter:brightness(1.4) hue-rotate(35deg)}}
#garland[data-mode].is-off .festive-bulb{animation:none;filter:saturate(.35) brightness(.8);box-shadow:inset -2px -2px 3px #163b4435}
#garland[data-mode].is-off .festive-bulb:after{animation:none;opacity:0}
.garland-switch{position:absolute;top:calc(var(--garland-top,80px) + 3px);right:8px;z-index:1032;width:48px;height:36px;border:1px solid #c9dbe4;border-radius:12px;background:#f5faff;box-shadow:0 3px 9px #193b5520;display:grid;place-items:center;padding:0;cursor:pointer;touch-action:manipulation}
.garland-switch-track{position:relative;width:32px;height:18px;border-radius:20px;background:#8d9daa;box-shadow:inset 0 1px 3px #102d5040;transition:background .25s}
.garland-switch-knob{position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:linear-gradient(#fff,#e2edf3);box-shadow:0 1px 3px #102d5050;transition:transform .25s}
.garland-switch[aria-checked="true"] .garland-switch-track{background:#099d86;box-shadow:inset 0 1px 3px #004c4040,0 0 8px #3ad9b750}
.garland-switch[aria-checked="true"] .garland-switch-knob{transform:translateX(14px)}
.garland-switch:focus-visible{outline:3px solid #dba844;outline-offset:3px}
@media(min-width:992px){.garland-switch{position:fixed}}
@media(max-width:991px){#garland[data-menu-open]+.garland-switch{visibility:hidden}}
@media(prefers-reduced-motion:reduce){#garland .festive-bulb{animation:none}.garland-switch-track,.garland-switch-knob{transition:none}}
html.garland-paused #garland .festive-bulb{animation-play-state:paused}

@media(prefers-reduced-motion:reduce){#garland[data-mode] .festive-bulb,#garland[data-mode] .festive-bulb:after{animation:none}}
html.garland-paused #garland[data-mode] .festive-bulb,html.garland-paused #garland[data-mode] .festive-bulb:after{animation-play-state:paused}

/* Keep glass and socket solid. Animate only the separate light pool. */
#garland[data-mode] .festive-bulb{animation:none;opacity:1;filter:none;transition:none;border:1px solid rgba(38,76,85,.38);box-sizing:border-box;background:radial-gradient(ellipse at 32% 25%,#fff 0 12%,var(--core) 25%,var(--glass) 72%);box-shadow:inset -2px -3px 3px #163b4455,inset 1px 1px 2px #ffffffb0,0 0 3px rgba(var(--light),.55)}
#garland[data-mode] .festive-bulb:after{animation:festiveTogether 4.8s ease-in-out 0s infinite;transform:none;opacity:1;inset:-15px -19px;background:radial-gradient(ellipse,rgba(var(--light),.95) 0%,rgba(var(--light),.55) 32%,transparent 72%);box-shadow:0 0 12px 3px rgba(var(--light),.25)}
#garland[data-mode="wave"] .festive-bulb:after{animation:festiveWaveOpacity 4.2s ease-in-out calc(var(--lamp-index)*-.42s) infinite}
#garland[data-mode="aurora"] .festive-bulb:after{animation:festiveSparkOpacity 6.4s ease-in-out var(--phase) infinite}
#garland[data-mode="duet"] .festive-bulb:after{animation:festiveTogether 3.6s ease-in-out 0s infinite}
#garland[data-mode="duet"] .festive-lamp:nth-child(even) .festive-bulb:after{animation-delay:-1.8s}
@keyframes festiveTogether{0%,100%{opacity:.16}40%,60%{opacity:1}}
@keyframes festiveWaveOpacity{0%,65%,100%{opacity:.14}25%,38%{opacity:1}}
@keyframes festiveSparkOpacity{0%,100%{opacity:.22}20%,32%{opacity:1}55%{opacity:.35}72%,80%{opacity:.85}}
#garland[data-mode].is-off .festive-bulb{animation:none;opacity:1;filter:none;box-shadow:inset -2px -2px 3px #163b4455}
#garland[data-mode].is-off .festive-bulb:after{animation:none;opacity:0}
html.garland-paused #garland[data-mode] .festive-bulb:after{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#garland[data-mode] .festive-bulb:after{animation:none;opacity:1}#garland[data-mode].is-off .festive-bulb:after{opacity:0}}

/* Performance fallback: steady light, zero continuous decorative animations. */
#garland .festive-bulb,#garland .festive-bulb:before,#garland .festive-bulb:after{animation:none!important;transition:none!important;filter:none!important}
#garland[data-mode] .festive-bulb:after{opacity:.85}
#garland[data-mode].is-off .festive-bulb:after{opacity:0}

#winter-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1000}
#garland.has-light-canvas .festive-bulb:after{display:none}
#garland .garland-light-canvas{position:absolute;inset:0;width:100%;height:74px;pointer-events:none;z-index:-1}
