body.home-compact .home-stock-finder.has-christmas-forest{padding-bottom:0}
.christmas-forest{position:relative;margin:10px 0 0;height:72px;overflow:hidden}
.forest-scene{display:block;height:100%;width:100%;pointer-events:none}
.forest-light{transform-box:fill-box;transform-origin:center;animation:forest-lights var(--twinkle-duration,5s) ease-in-out var(--light-delay) infinite;filter:drop-shadow(0 0 2.5px #ffc96d)}
@keyframes forest-lights{0%,100%{opacity:.2;transform:scale(.65)}25%{opacity:.4;transform:scale(.8)}42%{opacity:1;transform:scale(1.18)}60%{opacity:.3;transform:scale(.75)}78%{opacity:.65;transform:scale(.95)}}
.tower-star{
  fill:#fffefa;
  filter:drop-shadow(0 0 1.5px white) drop-shadow(0 0 4px #ffcf72);
}
@media(prefers-reduced-motion:no-preference){
  .tower-star{animation-name:tower-star-glow}
}
@keyframes tower-star-glow{
  0%,100%{opacity:.88;transform:scale(1)}
  50%{opacity:1;transform:scale(1.18)}
}
.christmas-forest[data-paused] .forest-light{animation-play-state:paused}
.forest-toggle{position:absolute;right:0;bottom:4px;width:26px;height:26px;border:1px solid #ffffff55;border-radius:50%;background:#073b6499;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.forest-toggle[hidden]{display:none}
.forest-toggle:focus-visible{outline:2px solid #ffb554;outline-offset:2px}
@media(max-width:600px){.christmas-forest{height:60px;margin-top:10px}.forest-scene{width:740px;max-width:none;position:absolute;left:50%;transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.forest-light{animation:none;opacity:.85}}
@media print{.christmas-forest{display:none}}

.forest-snowfall{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.forest-snowflake{position:absolute;top:-7px;left:var(--x);width:var(--size);height:var(--size);border-radius:50%;background:#fff;opacity:0;animation:forest-snowfall var(--fall) linear var(--delay) infinite}
@keyframes forest-snowfall{0%{transform:translate(0,0);opacity:0}10%{opacity:.75}82%{opacity:.55}100%{transform:translate(var(--drift),460px);opacity:0}}
.forest-snowbank{position:absolute;bottom:0;left:0;right:0;height:24px;z-index:1;background:linear-gradient(180deg,#f8fcff,#dfedf7);border-radius:60% 45% 0 0;pointer-events:none;transform-origin:center bottom;animation:forest-snow-settle 610s linear infinite}
.forest-snowbank::before{content:"";position:absolute;inset:3px 0 0;background:#f5faff;border-radius:40% 70% 0 0;opacity:.65}
/* Build and hold for ten minutes, then melt away over ten seconds. */
@keyframes forest-snow-settle{0%{transform:scaleY(.03);opacity:0}1%{transform:scaleY(.08);opacity:.85}15%{transform:scaleY(.45);opacity:1}60%,98.3606557%{transform:scaleY(1);opacity:1}100%{transform:scaleY(.03);opacity:0}}
.christmas-forest[data-paused] .forest-snowbank{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.forest-snowbank{animation:none;transform:scaleY(.15);opacity:1}}
.christmas-forest[data-paused] .forest-snowflake{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.forest-snowflake{animation:none;display:none}}

/* Keep the landmark on the right, including narrow mobile layouts. */
.christmas-forest{height:100px}
.forest-scene{position:absolute;left:0;bottom:0;width:calc(100% - 135px);height:72px}
.forest-tower{position:absolute;right:34px;bottom:2px;width:82px;height:97px;overflow:visible;pointer-events:none}
.tower-bulb{fill:#fff0c8;filter:drop-shadow(0 0 1.5px #ffd790);transform-box:fill-box;transform-origin:center;animation:tower-glow var(--tower-duration,5s) ease-in-out var(--tower-delay) infinite}
@keyframes tower-glow{0%,100%{opacity:.18;transform:scale(.65)}35%{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.12)}70%{opacity:.25;transform:scale(.7)}}
.christmas-forest[data-paused] .tower-bulb{animation-play-state:paused}
@media(max-width:600px){.christmas-forest{height:85px}.forest-scene{left:0;bottom:0;width:calc(100% - 96px);height:60px;transform:none}.forest-tower{right:28px;width:66px;height:80px}}
@media(prefers-reduced-motion:reduce){.tower-bulb{animation:none;opacity:.9}}

.forest-trees{position:absolute;left:0;bottom:0;width:calc(100% - 135px);height:72px;overflow:hidden}
.forest-trees .forest-scene{width:100%;height:100%}
@media(max-width:600px){.forest-trees{width:calc(100% - 100px);height:60px}.forest-trees .forest-scene{width:520px;left:50%;transform:translateX(-50%)}}

/* The tower rises behind the search field while controls stay in front. */
.christmas-forest{position:static;overflow:visible;z-index:0}
.home-stock-finder.has-christmas-forest .home-stock-search,
.home-stock-finder.has-christmas-forest .home-categories,
.home-stock-finder.has-christmas-forest>p{position:relative;z-index:2}
.forest-tower{height:330px;width:279px;right:90px;bottom:2px;z-index:1}
.forest-toggle{z-index:3}
@media(max-width:600px){.forest-tower{height:305px;width:258px;right:-25px}}
