/* Independent Christmas lighting layer */
.garland{border-radius:0;height:25px;overflow:visible;isolation:isolate}
.garland::before{content:"";position:absolute;left:0;right:0;top:7px;height:2px;background:#183020;z-index:-1}
.garland i,.garland i:nth-child(3n){position:relative;width:9px;height:13px;margin-top:3px;border-radius:45% 45% 55% 55%;background:var(--bulb);box-shadow:0 0 10px 2px var(--bulb);animation:twinkle 3.8s ease-in-out infinite;animation-delay:calc(var(--n) * -0.47s)}
.garland i::before{content:"";position:absolute;top:-3px;left:2px;width:5px;height:4px;border-radius:1px;background:#26382b}
.garland i::after{content:"";position:absolute;top:2px;left:2px;width:2px;height:5px;border-radius:50%;background:#fff9}
@keyframes twinkle{0%,100%{opacity:.65;box-shadow:0 0 4px var(--bulb)}50%{opacity:1;box-shadow:0 0 12px 3px var(--bulb)}}
@media(prefers-reduced-motion:reduce){.garland i{animation:none}}
@media(max-height:480px) and (orientation:landscape){.garland{height:15px}.garland i{height:9px;width:7px}}

/* Three selectable lighting modes */
.garland i,.garland i:nth-child(3n){animation:none;opacity:1}
.garland[data-mode="off"] i,.garland[data-mode="sequence"] i:not(.lit){background:var(--bulb);filter:brightness(.32);box-shadow:none}
.garland[data-mode="sequence"] i.lit{filter:none;box-shadow:0 0 12px 3px var(--bulb)}
#lights-control{font:600 11px system-ui;padding:3px 9px;border:1px solid #ad8849;border-radius:8px;background:#17382b;color:#ffe4a2;margin-right:10px;touch-action:manipulation;width:80px;flex-shrink:0}
#lights-control:focus-visible{outline:2px solid #ffe4a2;outline-offset:2px}
