/* Seasonal artwork uses the same quiet line-art treatment as Halloween. */
:root[data-seasonal-active="christmas"] #app #chatScroll {
  background-image:url("christmas-pattern.svg?v=20261101-1"),radial-gradient(ellipse at 100% 0%,#e21b2d0d,transparent 65%);
  background-size:600px 460px,100% 100%; background-repeat:repeat,no-repeat; background-position:right top; background-attachment:scroll;
}
:root[data-seasonal-active="new_years_eve"] #app #chatScroll {
  background-image:url("new-year-pattern.svg?v=20261101-1"),radial-gradient(ellipse at 100% 0%,#d8ad630d,transparent 65%);
  background-size:600px 460px,100% 100%; background-repeat:repeat,no-repeat; background-position:right top; background-attachment:scroll;
}
:root:is([data-seasonal-active="christmas"],[data-seasonal-active="new_years_eve"]) #app .chat-feed .panel-head {
  background-image:linear-gradient(100deg,#d8ad6312,transparent 65%);
}
@media(max-width:760px){
  :root:is([data-seasonal-active="christmas"],[data-seasonal-active="new_years_eve"]) #app #chatScroll {background-size:460px 353px,100% 100%;}
}
#quickEmojiTray {max-height:min(360px,55vh);max-height:min(360px,55dvh);overflow-y:auto;overscroll-behavior:contain;}
.chat-festive-effect {position:absolute;inset:0;overflow:hidden;pointer-events:none;animation:festiveScene 6.5s linear both;}
.festive-clock,.festive-big-ben {position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);filter:drop-shadow(0 0 18px #f5c45c80);}
.festive-clock {font-size:clamp(80px,20vw,150px);animation:festiveClock 2s ease-in-out infinite;}
.festive-big-ben {width:clamp(85px,23%,150px);height:65%;object-fit:contain;}
.festive-caption {position:absolute;left:50%;top:78%;transform:translateX(-50%);font:800 clamp(12px,3vw,20px) system-ui;letter-spacing:.15em;color:#fff0c8;text-shadow:0 2px 8px #000;white-space:nowrap;}
.festive-beam {position:absolute;left:50%;bottom:-8%;width:10%;height:140%;transform-origin:50% 100%;background:linear-gradient(0deg,transparent,hsla(var(--beam-hue),100%,65%,.2));clip-path:polygon(50% 100%,0 0,100% 0);filter:drop-shadow(0 0 8px hsla(var(--beam-hue),100%,65%,.6));animation:festiveLaser 3.5s ease-in-out infinite;animation-delay:var(--delay);}
.festive-disco-ball {position:absolute;top:5%;left:50%;font-size:clamp(55px,15vw,100px);transform:translateX(-50%);animation:festiveDisco 4s ease-in-out infinite;filter:drop-shadow(0 0 16px #c7dfff80);}
.festive-disco-dot {position:absolute;width:clamp(9px,3vw,22px);aspect-ratio:1;border-radius:50%;background:hsla(var(--beam-hue),100%,70%,.38);box-shadow:0 0 15px hsla(var(--beam-hue),100%,70%,.3);animation:festiveSpot 4s ease-in-out infinite;animation-delay:var(--delay);}
.festive-dancer {position:absolute;bottom:15%;font-size:clamp(38px,10vw,74px);animation:festiveDance .85s ease-in-out infinite alternate;animation-delay:var(--delay);}
.festive-falling {position:absolute;top:-10%;font-size:var(--fall-size);color:hsl(var(--beam-hue),85%,75%);animation:festiveFall var(--fall-duration) linear both;animation-delay:var(--delay);}
.festive-snow .festive-falling {color:#e6f4ff;text-shadow:0 0 8px #cceaff66;}
.festive-sleigh-team {position:absolute;left:10%;top:35%;font-size:clamp(22px,6vw,48px);white-space:nowrap;animation:festiveSleigh 6s ease-in-out both;}
.festive-sleigh-riders {display:block;animation:festiveSleighTurn 6s steps(1,end) both;}
@keyframes festiveScene {0%,100%{opacity:0}10%,85%{opacity:1}}
@keyframes festiveClock {0%,100%{transform:translate(-50%,-50%) scale(.95)}50%{transform:translate(-50%,-50%) scale(1.07)}}
@keyframes festiveLaser {0%,100%{transform:translateX(-50%) rotate(calc(var(--beam-angle) - 25deg))}50%{transform:translateX(-50%) rotate(calc(var(--beam-angle) + 25deg))}}
@keyframes festiveDisco {0%,100%{transform:translateX(-50%) rotate(-12deg)}50%{transform:translateX(-50%) rotate(12deg)}}
@keyframes festiveSpot {0%,100%{transform:translate(-12px,-8px);opacity:.35}50%{transform:translate(22px,18px);opacity:.85}}
@keyframes festiveDance {from{transform:translateY(0) rotate(-12deg)}to{transform:translateY(-20px) rotate(12deg)}}
@keyframes festiveFall {from{transform:translateY(-30px) rotate(0);opacity:0}10%{opacity:1}to{transform:translateY(85vh) rotate(180deg);opacity:0}}
/* The left-facing team leads each rising sweep; turn only at the bends. */
@keyframes festiveSleigh {
  0%{left:100%;top:110%;transform:translate(-100%,-50%) rotate(10deg)}
  30%{left:0%;top:72%;transform:translate(0,-50%) rotate(0deg)}
  65%{left:100%;top:38%;transform:translate(-100%,-50%) rotate(0deg)}
  100%{left:0%;top:-15%;transform:translate(0,-50%) rotate(12deg)}
}
@keyframes festiveSleighTurn {
  0%{transform:scaleX(1)}
  30%{transform:scaleX(-1)}
  65%,100%{transform:scaleX(1)}
}
/* Still festive scenes, with no sweep, falling motion, pulse or flashing. */
.festive-reduced,.festive-reduced * {animation:none!important;}
.festive-reduced {opacity:.8;}
.festive-reduced .festive-beam {transform:translateX(-50%) rotate(var(--beam-angle));}
.festive-reduced .festive-falling {top:35%;}
.festive-reduced .festive-sleigh-team {left:10%;top:35%;}
@media(prefers-reduced-motion:reduce){.chat-festive-effect,.chat-festive-effect *{animation:none!important;}}
/* Easter and Summer Solstice retain the shared, quiet station line-art style. */
:root[data-seasonal-active="easter"] #app #chatScroll {
  background-image:url("easter-pattern.svg?v=20261101-1"),radial-gradient(ellipse at 100% 0%,#d795b00d,transparent 65%);
  background-size:600px 460px,100% 100%;background-repeat:repeat,no-repeat;background-position:right top;background-attachment:scroll;
}
:root[data-seasonal-active="summer_solstice"] #app #chatScroll {
  background-image:url("solstice-pattern.svg?v=20261101-1"),radial-gradient(ellipse at 100% 0%,#e2b45e0d,transparent 65%);
  background-size:600px 460px,100% 100%;background-repeat:repeat,no-repeat;background-position:right top;background-attachment:scroll;
}
:root:is([data-seasonal-active="easter"],[data-seasonal-active="summer_solstice"]) #app .chat-feed .panel-head {background-image:linear-gradient(100deg,#e2b45e12,transparent 65%);}
@media(max-width:760px){
  :root:is([data-seasonal-active="easter"],[data-seasonal-active="summer_solstice"]) #app #chatScroll {background-size:460px 353px,100% 100%;}
}
.festive-bunny {position:absolute;bottom:18%;font-size:clamp(36px,10vw,70px);animation:festiveBunnyHop 1.15s ease-in-out infinite;animation-delay:var(--delay);}
.festive-nest-egg {position:absolute;bottom:14%;font-size:clamp(18px,5vw,30px);}
.festive-nature-particle {position:absolute;font-size:var(--nature-size);filter:drop-shadow(0 3px 7px #0004);animation:festiveNatureFloat 4.8s ease-in-out both;animation-delay:var(--delay);}
.nature-eggs {animation-name:festiveEggTumble;}
.nature-blossoms {animation-name:festiveBlossomBreeze;}
.nature-butterflies,.nature-bees {animation-name:festiveFlutter;}
.nature-sunflowers {transform-origin:50% 100%;animation-name:festiveBloom;}
.festive-sun {position:absolute;left:50%;top:36%;font-size:clamp(70px,22vw,140px);transform:translate(-50%,-50%);filter:drop-shadow(0 0 26px #ffd26b70);animation:festiveSunGlow 3s ease-in-out infinite;}
.festive-sunray {position:absolute;left:50%;top:36%;width:5px;height:clamp(85px,22vw,150px);transform-origin:50% 0;background:linear-gradient(#ffd26b70,transparent);transform:rotate(var(--ray-angle)) translateY(45px);border-radius:50%;animation:festiveRayGlow 3s ease-in-out infinite;}
.festive-rainbow-arc {position:absolute;box-sizing:border-box;left:50%;top:28%;width:calc(86% - var(--arc-index)*7%);aspect-ratio:2/1;border:clamp(5px,1.7vw,10px) solid var(--arc-colour);border-bottom:0;border-radius:100% 100% 0 0 / 200% 200% 0 0;transform:translateX(-50%);margin-top:calc(var(--arc-index)*3.5%);opacity:.7;}
.festive-rainbow-cloud {position:absolute;top:50%;font-size:clamp(40px,12vw,80px);filter:drop-shadow(0 0 12px #ffffff30);}
.cloud-left {left:3%;}.cloud-right {right:3%;}
@keyframes festiveBunnyHop {0%,100%{transform:translateY(0) rotate(-4deg)}40%{transform:translateY(-65px) rotate(8deg)}70%{transform:translateY(0) scale(1.08,.9)}}
@keyframes festiveNatureFloat {0%{opacity:0;transform:translateY(30px)}20%,75%{opacity:1}100%{opacity:0;transform:translateY(-80px)}}
@keyframes festiveEggTumble {0%{opacity:0;transform:translateY(-150px) rotate(-35deg)}25%{opacity:1}65%{transform:translateY(80px) rotate(25deg)}80%{opacity:1;transform:translateY(45px) rotate(-10deg)}100%{opacity:0;transform:translateY(90px)}}
@keyframes festiveBlossomBreeze {0%{opacity:0;transform:translate(0,-70px) rotate(-20deg)}20%,80%{opacity:1}100%{opacity:0;transform:translate(var(--nature-drift),120px) rotate(70deg)}}
@keyframes festiveFlutter {0%{opacity:0;transform:translate(0,50px) rotate(-15deg)}20%{opacity:1;transform:translate(var(--nature-drift),-20px) rotate(15deg)}50%{transform:translate(0,-65px) rotate(-12deg)}75%{opacity:1;transform:translate(var(--nature-drift),-100px) rotate(12deg)}100%{opacity:0;transform:translate(0,-150px)}}
@keyframes festiveBloom {0%{opacity:0;transform:scale(.2) rotate(-20deg)}25%{opacity:1;transform:scale(1.15) rotate(10deg)}50%,80%{opacity:1;transform:scale(1) rotate(-6deg)}100%{opacity:0;transform:scale(1.1) rotate(6deg)}}
@keyframes festiveSunGlow {0%,100%{transform:translate(-50%,-50%) scale(.95)}50%{transform:translate(-50%,-50%) scale(1.08)}}
@keyframes festiveRayGlow {0%,100%{opacity:.4}50%{opacity:.85}}
/* Keep the stationary alternatives visible when motion is reduced. */
.festive-reduced .festive-sun {transform:translate(-50%,-50%);}
.festive-reduced .festive-nature-particle {opacity:.85;}
