/* Painted weather illustrations. Only ink moves; the button's hit area is stable. */
button.fyw-weather-art {
  --wa-ray:#eda739; --wa-sun:#ffd071; --wa-sun-edge:#ae772e; --wa-sun-shade:#efa044; --wa-glow:#fff0ba;
  --wa-moon:#fae1a6; --wa-cloud:#cce5f7; --wa-cloud-edge:#56738d; --wa-cloud-shade:#9dbbda;
  --wa-cloud-light:#eff9ff; --wa-rain:#327eae; --wa-fog:#7495a8; --wa-snow:#4a8fae;
  --wa-heat:#eb7656; --wa-neutral:#e6edf3;
  display:inline-grid; place-items:center; flex:none; box-sizing:border-box;
  inline-size:max(2.75rem,var(--weather-art-size,3.75rem)); block-size:max(2.75rem,var(--weather-art-size,3.75rem));
  padding:0; margin:0; border:0; border-radius:28%; color:inherit; background:transparent;
  font:inherit; line-height:1; appearance:none; touch-action:manipulation; cursor:default;
  vertical-align:middle; -webkit-tap-highlight-color:transparent;
}
button.fyw-weather-art > svg {
  display:block; inline-size:var(--weather-art-size,3.75rem); block-size:var(--weather-art-size,3.75rem);
  max-inline-size:100%; max-block-size:100%; pointer-events:none; overflow:visible;
}
button.fyw-weather-art:focus-visible { outline:2px solid var(--wa-rain); outline-offset:2px }
:root[data-theme="dark"] button.fyw-weather-art {
  --wa-ray:#ffd276; --wa-sun:#ffcd6c; --wa-sun-edge:#ecac4f; --wa-sun-shade:#ea9538;
  --wa-cloud:#bfdaee; --wa-cloud-edge:#82a1c4; --wa-cloud-shade:#91adc9; --wa-cloud-light:#e6f6ff;
  --wa-rain:#84c9f8; --wa-fog:#b6ccdf; --wa-snow:#d9f3ff; --wa-neutral:#343f55; --wa-heat:#f79373;
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) button.fyw-weather-art {
    --wa-ray:#ffd276; --wa-cloud-edge:#82a1c4; --wa-rain:#84c9f8; --wa-fog:#b6ccdf; --wa-snow:#d9f3ff; --wa-neutral:#343f55;
  }
}
@media (prefers-reduced-motion:no-preference) {
  .wa-playing :is(.wa-rays,.wa-disc,.wa-moon,.wa-stars,.wa-mercury,.wa-quiet) { transform-box:fill-box; transform-origin:center }
  .wa-playing .wa-rays { animation:wa-sunshine .78s cubic-bezier(.3,.05,.22,1) }
  .wa-playing .wa-disc { animation:wa-breathe .68s ease-in-out }
  .wa-playing .wa-moon { animation:wa-moonrock .78s ease-in-out }
  .wa-playing .wa-stars { animation:wa-twinkle .76s ease-in-out }
  .wa-playing .wa-cloud { animation:wa-sail .8s ease-in-out }
  .wa-playing .wa-fog { animation:wa-mist .9s ease-in-out }
  .wa-playing .wa-mist-low { animation:wa-mist-back .9s ease-in-out }
  .wa-playing .wa-drops { animation:wa-rainfall .42s ease-in 2 }
  .wa-playing[data-weather-art="showers"] .wa-drops { animation-duration:.30s; animation-iteration-count:3 }
  .wa-playing .wa-bolt { animation:wa-thunder .77s ease-out }
  .wa-playing .wa-mercury { transform-origin:center bottom; animation:wa-rise .84s ease-in-out }
  .wa-playing .wa-quiet { animation:wa-breathe .75s ease-in-out }
  @keyframes wa-sunshine { 42% { transform:rotate(30deg) } 72% { transform:rotate(-4deg) } }
  @keyframes wa-breathe { 50% { transform:scale(1.1) } }
  @keyframes wa-moonrock { 38% { transform:rotate(-10deg) } 72% { transform:rotate(4deg) } }
  @keyframes wa-twinkle { 42% { opacity:.34; transform:scale(.76) } 70% { opacity:1; transform:scale(1.12) } }
  @keyframes wa-sail { 44% { transform:translate(3px,-1px) } 76% { transform:translate(-1px,0) } }
  @keyframes wa-mist { 45% { transform:translateX(4px) } }
  @keyframes wa-mist-back { 45% { transform:translateX(-7px) } }
  @keyframes wa-rainfall { 0% { transform:translate(1.5px,-2px); opacity:.75 } 67% { transform:translate(-1.5px,3px); opacity:1 } 100% { transform:translate(-3px,5px); opacity:.24 } }
  @keyframes wa-thunder { 23% { transform:translate(1px,-2px); opacity:.75 } 40% { transform:translate(-1px,2px) } 60% { transform:translate(1px,0) } }
  @keyframes wa-rise { 42% { transform:scaleY(1.39) } 77% { transform:scaleY(.95) } }
}
@media screen and (prefers-reduced-motion:no-preference) {
  .wa-flakes path {
    animation:wa-flurry 2.7s linear var(--flake-delay,-.18s) infinite;
    animation-play-state:var(--snow-play-state,running);
  }
  .wa-flakes > g:nth-child(2) {--flake-delay:-1.08s}
  .wa-flakes > g:nth-child(3) {--flake-delay:-1.98s}
  @keyframes wa-flurry {
    0%   {transform:translate(1px,-4px);opacity:0}
    18%  {opacity:1}
    50%  {transform:translate(-1.4px,.5px)}
    77%  {opacity:.85}
    100% {transform:translate(1px,5px);opacity:0}
  }
}
@media(forced-colors:active) {
  button.fyw-weather-art { --wa-ray:ButtonText; --wa-sun:Canvas; --wa-sun-edge:ButtonText;
    --wa-sun-shade:ButtonFace; --wa-glow:Canvas; --wa-moon:Canvas; --wa-cloud:Canvas; --wa-cloud-edge:ButtonText;
    --wa-cloud-shade:ButtonFace; --wa-cloud-light:Canvas; --wa-rain:Highlight; --wa-fog:ButtonText; --wa-snow:Highlight;
    --wa-heat:Highlight; --wa-neutral:Canvas; forced-color-adjust:none; }
}
@media screen and (prefers-reduced-motion:no-preference) {
  .fyw-weather-art:not(.wa-playing) .wa-rays {transform-box:fill-box;transform-origin:center;animation:wa-daylight 18s linear infinite;}
  .fyw-weather-art:not(.wa-playing) .wa-drops {animation:wa-rainfall .95s ease-in infinite;}
  .fyw-weather-art:not(.wa-playing)[data-weather-art="showers"] .wa-drops {animation-duration:.65s;}
  .fyw-weather-art:not(.wa-playing) .wa-cloud,.fyw-weather-art:not(.wa-playing) .wa-fog {animation:wa-sail 6s ease-in-out infinite;}
  .fyw-weather-art:not(.wa-playing) .wa-stars {animation:wa-twinkle 5s ease-in-out infinite;}
  .fyw-weather-art:not(.wa-playing) .wa-bolt {animation:wa-thunder 5.5s ease-out infinite;}
  [data-snow-paused] .fyw-weather-art :is(.wa-rays,.wa-drops,.wa-cloud,.wa-stars,.wa-fog,.wa-bolt) {animation-play-state:paused;}
  @keyframes wa-daylight {to {transform:rotate(360deg)}}
}
