/* Keep the live weather inside each scene and reserve measured room for it. */
.scene.has-window-weather:not(.expanded){height:calc(var(--window-weather-space,190px) + 390px);min-height:550px}
.scene.has-window-weather .doll-button{top:var(--window-weather-space,190px)}
.scene.has-window-weather .string{height:calc(var(--window-weather-space,190px) + 27px)}
.scene.has-window-weather .wish-tag{top:calc(var(--window-weather-space,190px) + 174px)}
.scene.has-window-weather .speech{top:calc(var(--window-weather-space,190px) + 110px)}
.scene.has-window-weather #weather-caption{display:none}
.scene.has-window-weather .scene-top{top:auto;bottom:20px;left:auto;right:64px}
.scene.has-window-weather .scene-actions{gap:7px}
.scene.has-window-weather .scene-actions .scene-icon{width:32px;height:32px;padding:8px}
.scene.has-window-weather .scene-actions .scene-icon .icon{width:15px;height:15px}
.scene.has-window-weather .scene-bottom{bottom:20px;pointer-events:none}
.scene.has-window-weather .scene-bottom button{pointer-events:auto}
.scene.has-window-weather .touch-hint{font-size:9px;letter-spacing:0}
.scene.has-window-weather.expanded .charm-anchor{width:clamp(110px,calc((100dvh - var(--window-weather-space,190px) - 100px) * .85),420px)}
.scene.has-window-weather.expanded .wish-tag{top:calc(var(--window-weather-space,190px) + 145px)}
@media(max-width:560px){
  .scene.has-window-weather:not(.expanded){height:calc(var(--window-weather-space,190px) + 345px);min-height:510px}
  .scene.has-window-weather .charm-anchor{width:280px}
  .scene.has-window-weather .wish-tag{top:calc(var(--window-weather-space,190px) + 157px)}
  .scene.has-window-weather .speech{top:calc(var(--window-weather-space,190px) + 98px)}
  .scene.has-window-weather .string{height:calc(var(--window-weather-space,190px) + 23px)}
  .scene.has-window-weather .touch-hint{font-size:8.5px;gap:5px}
  .scene.has-window-weather .touch-hint:before{width:10px}
}
@media(max-width:360px){
  .scene.has-window-weather .charm-anchor{width:260px}
  .scene.has-window-weather .string{height:calc(var(--window-weather-space,190px) + 21px)}
  .scene.has-window-weather:not(.expanded){height:calc(var(--window-weather-space,190px) + 325px)}
}

/* A short fullscreen viewport scrolls over a complete scene. The measured
   weather reserve, full-size wish paper, doll and bottom controls all keep
   their own space; the close/save controls remain reachable at the top. */
@media(max-height:600px){
  .scene.has-window-weather.expanded{--expanded-scene-height:calc(var(--window-weather-space,190px) + 400px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding-block:16px 64px}
  .scene.has-window-weather.expanded:after{content:"";display:block;height:var(--expanded-scene-height);pointer-events:none}
  .scene.has-window-weather.expanded>:is(.sky,.sky-grain,.event-art,.stars,.rain){height:var(--expanded-scene-height);bottom:auto}
  .scene.has-window-weather.expanded>.landscape{top:calc(var(--expanded-scene-height) - 140px);bottom:auto;height:140px}
  .scene.has-window-weather.expanded .charm-anchor{width:min(260px,70%);height:var(--expanded-scene-height)}
  .scene.has-window-weather.expanded .wish-tag{top:calc(var(--window-weather-space,190px) + 145px)}
  .scene.has-window-weather.expanded .scene-bottom{top:calc(var(--expanded-scene-height) - 56px);bottom:auto}
  .scene.has-window-weather.expanded .scene-top{position:fixed;top:30px;right:30px;bottom:auto;left:auto;z-index:8}
}
@media(max-height:600px) and (max-width:560px){
  .scene.has-window-weather.expanded .scene-top{top:20px;right:20px}
}
