/* Island-paper controls and original, restrained scene atmosphere. */
.gal-weather-canvas,.gal-weather-atmosphere { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:1; }
.gal-weather-atmosphere { transition:background 1.2s,opacity 1.2s; background:radial-gradient(ellipse at 85% 4%,#fff1b32e,transparent 55%); }
.gal-stage[data-weather] .gal-particles { display:none; }
.gal-stage[data-weather] .gal-scenery { transition:filter 1.2s,background-position 1s; }
.gal-stage[data-weather="rain"] .gal-scenery { filter:saturate(.65) brightness(.72) hue-rotate(8deg); }
.gal-stage[data-weather="rain"] .gal-weather-atmosphere { background:linear-gradient(180deg,#28465959,#78969a20 70%,#385b6552); }
.gal-stage[data-weather="fog"] .gal-scenery { filter:saturate(.7) contrast(.85) brightness(.91); }
.gal-stage[data-weather="fog"] .gal-weather-atmosphere { background:linear-gradient(180deg,#cfdfd914,#d4e3dc29 45%,#dce9df70); }
.gal-stage[data-weather="snow"] .gal-scenery { filter:saturate(.45) brightness(.88) hue-rotate(12deg); }
.gal-stage[data-weather="snow"] .gal-weather-atmosphere { background:linear-gradient(145deg,#bccfdf35,transparent 65%,#e4f2ec33); }
.gal-stage[data-weather="wind"] .gal-weather-atmosphere { background:linear-gradient(120deg,#edebc210,transparent 65%); }
.gal-stage[data-weather="sun"][data-weather-period="night"] .gal-weather-atmosphere { background:radial-gradient(ellipse at 80% 0,#d2e3ff20,transparent 70%); }
.gal-stage[data-weather-indoor="true"] .gal-weather-atmosphere { opacity:.35; }
.gal-stage[data-weather="rain"] .gal-cast { filter:saturate(.8) brightness(.88); }
.gal-stage[data-weather="snow"] .gal-cast { filter:saturate(.75); }.gal-cast { transition:filter 1.2s; }
.gal-stage #galWeatherTrigger { min-width:149px; gap:7px; bottom:-16px; padding:5px 9px; font:inherit; cursor:pointer; transition:background .2s; }
.gal-stage #galWeatherTrigger:hover,.gal-stage #galWeatherTrigger[aria-expanded="true"] { background:#fff0cc; }
#galWeatherTrigger > svg { flex:none; width:16px; height:16px; fill:none; stroke:#8f855d; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
#galWeatherTrigger > #galWeather { flex:1; font-size:10px; white-space:nowrap; letter-spacing:.7px; }
#galWeatherTrigger > .gal-weather-caret { font-size:12px; letter-spacing:0; }
.gal-weather-menu[hidden] { display:none!important; }.gal-weather-menu { position:fixed; z-index:36; width:330px; max-width:calc(100vw - 20px); padding:17px; border:1px solid #fff2d2; border-radius:6px 18px 6px 18px; color:#4e6e63; background:#fcf8eaf5; box-shadow:0 14px 50px #183f3f45; backdrop-filter:blur(18px); font-family:'PingFang SC','Microsoft YaHei',sans-serif; }
.gal-weather-menu header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }.gal-weather-menu header small { color:#a49878; font-size:9px; letter-spacing:2px; }.gal-weather-menu h2 { margin:5px 0 0; font-size:19px; font-weight:500; letter-spacing:3px; }.gal-weather-menu header button { width:29px; height:29px; border:1px solid #b8c3aa80; border-radius:50%; color:#7a907c; background:transparent; font-size:19px; cursor:pointer; }.gal-weather-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }.gal-weather-options button { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; gap:7px; padding:12px 1px; border:1px solid #d8dfcc; border-radius:7px 11px 7px 11px; color:#82907b; background:#f5f4e8; cursor:pointer; }.gal-weather-options button:hover { background:#e8eddc; }.gal-weather-options button.active { color:#fff9e8; background:#688678; border-color:#688678; box-shadow:inset 0 0 0 2px #f0e8bd40; }.gal-weather-options svg { width:23px; height:23px; stroke:currentColor; stroke-width:1.25; fill:none; stroke-linecap:round; stroke-linejoin:round; }.gal-weather-options b { font-size:11px; font-weight:500; }.gal-weather-options small { font-size:7px; opacity:.75; white-space:nowrap; }.gal-weather-menu > p { color:#9a9d87; font-size:9px; line-height:1.7; margin:13px 0 0; }.gal-weather-menu button:focus-visible { outline:2px solid #b6a16d; outline-offset:2px; }
@media(max-height:540px) and (orientation:landscape) { .gal-stage #galWeatherTrigger { min-width:115px; bottom:-13px; padding:3px 6px; gap:5px; }#galWeatherTrigger > svg { width:13px; height:13px; }#galWeatherTrigger > #galWeather { font-size:8px; }.gal-weather-menu { padding:12px; }.gal-weather-menu header { margin-bottom:9px; }.gal-weather-menu h2 { font-size:16px; }.gal-weather-options button { padding:9px 1px; gap:5px; }.gal-weather-menu > p { margin-top:8px; } }
@media(max-width:720px) and (orientation:portrait) { .gal-stage #galWeatherTrigger { min-width:84px; bottom:-11px; padding:2px 5px; gap:3px; }#galWeatherTrigger > svg { width:10px; height:10px; }#galWeatherTrigger > #galWeather { font-size:7px; letter-spacing:0; }#galWeatherTrigger > .gal-weather-caret { font-size:9px; } }
@media(prefers-reduced-motion:reduce) { .gal-stage[data-weather] .gal-scenery,.gal-weather-atmosphere,.gal-cast { transition:none; } }
/* Keep status controls reachable when portrait dialogue approaches the header. */
.gal-top { z-index:8; pointer-events:none; }.gal-top button { pointer-events:auto; }
@media(max-width:360px) and (orientation:portrait) { .gal-stage #galWeatherTrigger { right:-33px; } }
