/* A little life in the forest; all decoration stays behind readable content. */
.forest-mist{position:absolute;inset:auto -12% -45px;height:34%;pointer-events:none;overflow:hidden;opacity:.55;contain:paint}
.forest-mist::before,.forest-mist::after{content:"";position:absolute;inset:10% -15% -30%;background:radial-gradient(ellipse at 20% 68%,#b1c5b12e 0,transparent 50%),radial-gradient(ellipse at 72% 56%,#c5c9ad24 0,transparent 46%);filter:blur(19px);animation:forest-mist-drift 42s ease-in-out infinite alternate;will-change:transform}
.forest-mist::after{inset:25% -10% -30%;opacity:.6;animation-duration:57s;animation-delay:-24s;animation-direction:alternate-reverse}
.forest-fireflies{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.forest-fireflies i{position:absolute;left:var(--x);top:var(--y);width:4px;height:4px;border-radius:50%;background:#f2f5bf;box-shadow:0 0 5px 2px #e4eea9b3,0 0 15px 5px #b7d66d66;opacity:.65;animation:forest-firefly calc(var(--duration)*.7) ease-in-out infinite;animation-delay:var(--delay)}
.forest-fireflies i:nth-child(3){left:34%;top:81%}
.forest-fireflies i:nth-child(5){left:15%;top:71%}
.header .brand img{animation:forest-emblem 9s ease-in-out infinite}
.ambience-control{display:flex;align-items:center;gap:12px;margin-top:25px}
.ambience-toggle{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:8px 14px;border:1px solid #c4a67545;border-radius:2px;background:#08130e66;color:#d4c4a3;font-size:11px;letter-spacing:.3px;transition:border-color .3s,background .3s}
.ambience-toggle:hover{border-color:#c4a67599;background:#13251b9c}
.ambience-toggle[data-state=playing]{border-color:#a3b98b66;color:#dfdcc7}
.ambience-wave{display:flex;align-items:center;justify-content:center;gap:3px;width:15px;height:16px}
.ambience-wave i{display:block;width:1px;height:5px;background:#b8c994;transform-origin:center;animation:forest-wave 1.7s ease-in-out infinite alternate;animation-play-state:paused}
.ambience-wave i:nth-child(2){height:12px;animation-delay:-.7s}.ambience-wave i:nth-child(3){height:8px;animation-delay:-1.2s}
[data-state=playing] .ambience-wave i{animation-play-state:running}
.ambience-note{font-size:9px;letter-spacing:.5px;color:#9aab96}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.forest-resting .forest-mist::before,.forest-resting .forest-mist::after,.forest-resting .forest-fireflies i,.forest-resting .header .brand img{animation-play-state:paused}
@keyframes forest-mist-drift{from{transform:translate3d(-5%,2%,0) scale(1)}to{transform:translate3d(6%,-4%,0) scale(1.09)}}
@keyframes forest-firefly{0%,100%{opacity:.4;transform:translate3d(0,12px,0) scale(.85)}25%{opacity:.95;transform:translate3d(28px,-20px,0) scale(1)}50%{opacity:.5;transform:translate3d(10px,-68px,0) scale(.9)}75%{opacity:.9;transform:translate3d(-25px,-38px,0) scale(1)}}
@keyframes forest-emblem{0%,100%{filter:drop-shadow(0 0 6px #7caa3320)}50%{filter:drop-shadow(0 0 11px #9eb94c50)}}
@keyframes forest-wave{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
@media(max-width:760px){.forest-mist{height:27%;opacity:.4}.forest-mist::after{display:none}.forest-fireflies i:nth-child(n+4){display:none}.ambience-control{margin-top:22px;gap:10px}.ambience-note{font-size:8px}.ambience-toggle{min-height:44px;font-size:10px;padding:8px 12px}}
@media(max-width:360px){.ambience-note{display:none}}
@media(prefers-reduced-motion:reduce){.forest-mist{display:none}.forest-fireflies i{animation:none!important;opacity:.65}.header .brand img,.ambience-wave i{animation:none!important}.ambience-toggle{transition:none}}
