/* Quiet atmosphere: varied drift, soft edges and sparse particles. */
.weather-accents{position:fixed;inset:0;z-index:2;overflow:hidden;pointer-events:none;opacity:.56}
.weather-accents i{position:absolute;display:block;animation:weather-drift 36s ease-in-out infinite alternate}
.weather-sun.weather-night .weather-orb{position:absolute;right:-100px;top:-80px;width:520px;height:520px;border-radius:50%;filter:blur(15px);background:radial-gradient(circle,#a5bee62a,transparent 68%)}
.weather-wind i{opacity:.45;animation-name:weather-leaf-flight;animation-timing-function:linear;animation-direction:normal;left:-8%!important}
.weather-leaf{display:block;width:19px;height:9px;background:var(--leaf-tone,#90936c);border-radius:5% 85% 8% 85%;position:relative;box-shadow:inset 0 -1px 0 #56644326}
.weather-wind i>.weather-leaf{transform:scale(var(--leaf-scale,1));animation:weather-leaf-sway 4.7s ease-in-out infinite alternate}
.weather-leaf:after{content:'';position:absolute;left:2px;right:2px;top:4px;border-top:1px solid #fff4;transform:rotate(-15deg)}
.weather-moment{position:fixed;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.weather-moment-wind>.weather-leaf{position:absolute;left:-40px;width:20px;height:10px;animation:weather-gust 10s ease-in-out both}
@keyframes weather-drift{from{transform:translate(-70px,0)}to{transform:translate(100px,12px)}}
@keyframes weather-leaf-flight{0%{transform:translate(-8vw,0) rotate(-18deg);opacity:0}12%{opacity:.4}35%{transform:translate(36vw,var(--drift,20px)) rotate(25deg)}65%{transform:translate(70vw,-12px) rotate(-8deg);opacity:.35}100%{transform:translate(115vw,32px) rotate(40deg);opacity:0}}
@keyframes weather-leaf-sway{from{rotate:-10deg}to{rotate:16deg}}
@keyframes weather-gust{0%{transform:translate(-8vw,0) rotate(-20deg);opacity:0}20%{opacity:.2}55%{transform:translate(60vw,24px) rotate(40deg);opacity:.18}100%{transform:translate(115vw,-20px) rotate(70deg);opacity:0}}
@media(max-width:600px){.weather-accents{opacity:.44}}

html[data-experience=lite] .weather-accents,html[data-experience=lite] .weather-moment,html[data-motion=reduced] .weather-accents,html[data-motion=reduced] .weather-moment{display:none}@media(prefers-reduced-motion:reduce){.weather-accents,.weather-moment{display:none}}

.weather-wind .weather-dust{width:3px;height:3px;background:#857453;border-radius:50%;box-shadow:9px 5px 0 -1px #a69368;opacity:.65;animation-name:weather-dust-swirl;animation-timing-function:linear}
.weather-wind i>.weather-leaf{animation-name:weather-leaf-tumble;animation-duration:6s}
@keyframes weather-dust-swirl{0%{transform:translate(-10vw,0);opacity:0}12%{opacity:.6}30%{transform:translate(30vw,-65px)}48%{transform:translate(47vw,25px)}62%{transform:translate(52vw,-45px)}80%{transform:translate(80vw,35px);opacity:.55}100%{transform:translate(115vw,-25px);opacity:0}}
@keyframes weather-leaf-tumble{0%{rotate:-20deg}45%{rotate:65deg}70%{rotate:10deg}100%{rotate:135deg}}
@media(prefers-reduced-motion:reduce){.weather-accents,.weather-moment{display:none}}

/* Both cores follow one horizon. Each ray opens around its own core. */
.sundog{
  position:absolute;top:clamp(1.25rem,6vh,4rem);width:min(42vw,500px);height:auto;
  pointer-events:none;overflow:hidden;
}
.sundog-left{left:0;opacity:.84;--phase:0s}
.sundog-right{right:0;transform:scaleX(-1);opacity:.71;--phase:-3.4s}
.sundog use{transform-box:view-box;transform-origin:37px 118px}
@media(prefers-reduced-motion:no-preference){
  .sundog{animation:sundog-horizon 16s ease-in-out -2.4s infinite}
  .sundog-fan{animation:sundog-fan 8.7s ease-in-out var(--phase) infinite}
  .sundog-shaft{animation:sundog-sweep 5.8s ease-in-out calc(var(--phase) - 1.4s) infinite}
  .sundog-lower-ray{animation:sundog-sweep 7.6s ease-in-out calc(var(--phase) - 3.2s) infinite reverse}
  .sundog-prism{animation:sundog-refraction 6.9s ease-in-out var(--phase) infinite}
  .sundog-core{animation:sundog-glint 5.8s ease-in-out calc(var(--phase) - 1.4s) infinite}
}
@keyframes sundog-horizon{
  0%,100%{translate:0 0}
  45%{translate:0 clamp(8px,1.7vh,19px)}
  78%{translate:0 3px}
}
@keyframes sundog-fan{
  0%,100%{transform:rotate(-7deg) scale(.76,.86);opacity:.60}
  48%{transform:rotate(9deg) scale(1.14,1.12);opacity:1}
  77%{transform:rotate(3deg) scale(.98,1);opacity:.79}
}
@keyframes sundog-sweep{
  0%,100%{transform:rotate(7deg) scale(.59,.74);opacity:.40}
  55%{transform:rotate(-13deg) scale(1.19,1.04);opacity:.96}
}
@keyframes sundog-refraction{
  0%,100%{transform:scale(.78,.88);opacity:.68}
  56%{transform:scale(1.32,1.18);opacity:.99}
}
@keyframes sundog-glint{
  0%,100%{transform:scale(.84,.78);opacity:.76}
  50%{transform:scale(1.10,1.21);opacity:1}
}
.weather-cloud i,.weather-fog i{width:240px;height:65px;border-radius:50%;background:#a8b8c3;filter:blur(24px);opacity:.3}
.weather-fog i{width:50vw;height:90px;filter:blur(32px);opacity:.12}
.weather-accents:has(>.precipitation){opacity:1}
.precipitation{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.lightning{position:absolute;top:-2%;width:clamp(115px,24vw,340px);height:min(53vh,480px);fill:none;stroke-linecap:round;stroke-linejoin:round;animation:bolt-decay .98s both}
.lightning path{stroke-dasharray:1;animation:bolt-channel .11s cubic-bezier(.65,0,.98,.25) both}
.lightning .corona{stroke:#4d88ff;stroke-width:6;filter:blur(3px)}
.lightning .fork{stroke:#b8d9ff;stroke-width:1;animation-delay:.04s}
.lightning .return-stroke{stroke:#f4fdff;stroke-width:1.85;filter:drop-shadow(0 0 1px #95dfff);animation-delay:.065s}
@keyframes bolt-channel{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes bolt-decay{0%,19%{opacity:1}35%{opacity:.37}65%{opacity:.14}100%{opacity:0}}
@media(max-width:600px){.weather-wind i:nth-child(n+10){display:none}}
