/* Forest scenery is decorative. Pointer and pen events stay with the app. */
.has-forest-scenery{position:relative;isolation:isolate;overflow:hidden;border-radius:20px;background:#dbe6cb;box-shadow:inset 0 0 0 1px #48644718;--forest-season-filter:saturate(.92);--forest-weather-filter:none;--forest-night-filter:none}
.forest-scenery,.forest-scenery *{pointer-events:none;user-select:none;-webkit-user-select:none}
.forest-scenery,.forest-world,.forest-distance,.forest-sky-shade,.forest-night-shade,.forest-stars,.forest-mist,.forest-rain,.forest-snow{position:absolute;inset:0}
.forest-scenery{z-index:0;overflow:hidden;border-radius:inherit;contain:paint}
.forest-world{filter:var(--forest-season-filter) var(--forest-weather-filter) var(--forest-night-filter);transition:filter .5s}
.forest-distance{background:url('./assets/home/garden-meadow.webp') center 65%/cover no-repeat;transform:scale(1.02)}
.forest-sky-shade{background:linear-gradient(180deg,#315b4f24,transparent 48%,#c1d4a32b);mix-blend-mode:multiply}
.forest-tree{position:absolute;height:143%;width:auto;max-width:none;bottom:-29%;object-fit:contain;filter:drop-shadow(3px 5px 8px #243d3830)}
.forest-tree--left{left:-30%;transform:rotate(-5deg)}
.forest-tree--right{right:-26%;transform:rotate(5deg) scaleX(-1)}
.forest-floor{position:absolute;inset:52% -15% -33%;background:url('./assets/scenery/forest-floor.webp') center top/100% 100% no-repeat}
.forest-leaves{position:absolute;inset:73% 0 0;opacity:0;background:radial-gradient(ellipse 5px 2px at 18% 61%,#a96332 95%,transparent),radial-gradient(ellipse 6px 3px at 78% 42%,#dbac4b 95%,transparent),radial-gradient(ellipse 4px 2px at 35% 76%,#ba743d 95%,transparent),radial-gradient(ellipse 5px 2px at 64% 83%,#b34f35 95%,transparent);background-size:145px 53px;transform:rotate(-3deg)}
.forest-character-shadow{position:absolute;left:30%;right:30%;height:7%;bottom:5%;border-radius:50%;background:#334d3c38;filter:blur(5px)}
.has-forest-scenery .character-podium{display:none}
.has-forest-scenery #companion-avatar{z-index:2;pointer-events:none}
.has-forest-scenery[data-season='spring']{--forest-season-filter:saturate(.92) hue-rotate(-6deg)}
.has-forest-scenery[data-season='spring'] .forest-leaves{opacity:.65;background:radial-gradient(ellipse 4px 3px at 19% 65%,#f6b9c1 95%,transparent),radial-gradient(ellipse 3px 2px at 77% 42%,#ffedf0 95%,transparent);background-size:127px 59px}
.has-forest-scenery[data-season='summer']{--forest-season-filter:saturate(1.07) hue-rotate(5deg)}
.has-forest-scenery[data-season='autumn']{--forest-season-filter:sepia(.2) saturate(.85) hue-rotate(-20deg)}
.has-forest-scenery[data-season='autumn'] .forest-tree{filter:sepia(.36) saturate(1.3) hue-rotate(-25deg) drop-shadow(3px 5px 8px #513c2830)}
.has-forest-scenery[data-season='autumn'] .forest-leaves{opacity:.9}
.has-forest-scenery[data-season='winter']{--forest-season-filter:saturate(.25) brightness(1.04)}
.has-forest-scenery[data-season='winter'] .forest-tree{filter:saturate(.2) contrast(.88) brightness(1.13) drop-shadow(3px 5px 8px #32455825)}
.has-forest-scenery[data-season='winter'] .forest-sky-shade{background:linear-gradient(180deg,#cbddeb55,transparent 58%,#dae4e544);mix-blend-mode:screen}
.forest-night-shade{opacity:0;background:linear-gradient(180deg,#1724438a,#2d41622b 60%,#2a3e613d);transition:opacity .5s}
.has-forest-scenery[data-day='night']{--forest-night-filter:brightness(.56) saturate(.72)}
.has-forest-scenery[data-day='night'] .forest-night-shade{opacity:1}
.forest-stars{opacity:0;background:radial-gradient(circle 1.2px at 19% 15%,#fff8df 95%,transparent),radial-gradient(circle 1px at 73% 9%,#fff8df 95%,transparent),radial-gradient(circle 1.2px at 49% 17%,#fff8df 95%,transparent),radial-gradient(circle 1px at 61% 29%,#fff8df 95%,transparent),radial-gradient(circle 1px at 34% 30%,#fff8df 95%,transparent)}
.forest-moon{position:absolute;left:16%;top:10%;width:24px;height:24px;background:#fff5d9;border-radius:50%;box-shadow:0 0 19px 8px #fff5d92b;opacity:0}
.has-forest-scenery[data-day='night'][data-weather='clear'] .forest-stars,.has-forest-scenery[data-day='night'][data-weather='clear'] .forest-moon{opacity:.8}
.has-forest-scenery[data-weather='cloudy'],.has-forest-scenery[data-weather='fog']{--forest-weather-filter:saturate(.72) brightness(.88)}
.has-forest-scenery[data-weather='rain'],.has-forest-scenery[data-weather='storm']{--forest-weather-filter:saturate(.65) brightness(.76)}
.forest-mist{opacity:0;background:linear-gradient(180deg,#dce6e51a 12%,#dce6e5a8 55%,#dce6e536);filter:blur(4px)}
.has-forest-scenery[data-weather='fog'] .forest-mist{opacity:.8}
.forest-rain{inset:-40% -15%;opacity:0;background:repeating-linear-gradient(106deg,transparent 0 25px,#deeff8a8 26px 27px,transparent 28px 55px);background-size:97px 68px;mask-image:repeating-linear-gradient(180deg,transparent 0 12px,#000 13px 25px,transparent 26px 57px);transform:rotate(4deg)}
.has-forest-scenery:is([data-weather='rain'],[data-weather='storm']) .forest-rain{opacity:.45;animation:forest-rainfall 1.35s linear infinite}
.forest-snow{inset:-40% -10%;opacity:0;background:radial-gradient(circle 2px at 18px 14px,#fff 95%,transparent),radial-gradient(circle 1.5px at 68px 56px,#fff 95%,transparent),radial-gradient(circle 2px at 97px 32px,#fff 95%,transparent);background-size:125px 90px}
.has-forest-scenery[data-weather='snow'] .forest-snow{opacity:.8;animation:forest-snowfall 9s linear infinite}
.has-forest-scenery[data-weather='snow'] .forest-floor{filter:saturate(.2) brightness(1.3)}
.has-forest-scenery[data-weather='snow'] .forest-character-shadow{background:#42647c26}
.scenery-toolbar{display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:0}
#scenery-status{display:block;min-width:0;font-size:10px;line-height:1.5;color:#647b65;overflow-wrap:anywhere}
.scenery-attribution{display:inline-block;margin-left:8px;font-size:9px;color:inherit;text-decoration:underline;text-underline-offset:2px}
#scenery-location,.scenery-reset{flex:none;min-height:30px;border:1px solid #c8d6bb;border-radius:9px;background:#f8f9ee;color:#45654a;font:inherit;font-size:11px;padding:4px 8px;cursor:pointer}
#scenery-location{white-space:nowrap}#scenery-location:disabled{cursor:wait;opacity:.7}
.scenery-reset{min-height:24px;margin-left:7px;font-size:9px;padding:2px 5px}
@keyframes forest-rainfall{from{background-position:0 0}to{background-position:-18px 68px}}
@keyframes forest-snowfall{from{background-position:0 0}to{background-position:25px 90px}}
@media(max-height:500px){.has-forest-scenery{border-radius:14px}.forest-tree--left{left:-21%}.forest-tree--right{right:-19%}.forest-moon{width:16px;height:16px}.scenery-toolbar{gap:5px}#scenery-status{font-size:9px}#scenery-location{min-height:27px;font-size:10px;padding:3px 6px}}
@media(prefers-reduced-motion:reduce){.forest-world,.forest-night-shade{transition:none}.forest-rain,.forest-snow{animation:none!important}}

.has-forest-scenery .forest-floor{display:none}
.forest-world{transform-origin:50% 80%}
.forest-wind{position:absolute;inset:-20%;opacity:0;background:radial-gradient(ellipse 7px 2px at 12% 27%,#eddaa3 90%,transparent),radial-gradient(ellipse 5px 2px at 45% 62%,#92ad63 90%,transparent),radial-gradient(ellipse 6px 2px at 81% 39%,#e7e6c1 90%,transparent);background-size:260px 180px;pointer-events:none}
.has-forest-scenery[data-wind='breeze'] .forest-wind{opacity:.65;animation:garden-breeze 8s linear infinite}
.has-forest-scenery[data-wind='strong'] .forest-wind{opacity:.85;animation:garden-breeze 3.5s linear infinite}
.has-forest-scenery[data-wind='strong'] .forest-distance{animation:garden-sway 4s ease-in-out infinite alternate}
@keyframes garden-breeze{from{transform:translate(-12%,-3%) rotate(-5deg)}to{transform:translate(12%,6%) rotate(8deg)}}
@keyframes garden-sway{from{transform:scale(1.03) translateX(-.4%)}to{transform:scale(1.03) translateX(.4%)}}
@media(prefers-reduced-motion:reduce){.forest-wind,.forest-distance{animation:none!important}}
