/* Fit the complete game to desktop/laptop windows without overlapping artwork. */
@media(min-width:760px){
 html,body{height:100%;min-height:0;overflow:hidden!important}
 body>main{position:absolute!important;top:8px;left:50%;margin:0!important;width:min(900px,calc(100vw - 24px))!important;min-height:0!important;height:auto!important;transform:translateX(-50%) scale(var(--screen-scale,1));transform-origin:top center}
 body>main.app{gap:8px;padding:0;min-height:0!important}
 .app .game-frame{width:100%!important;max-height:none}
 .app .hints{margin-top:0}
}

/* Reserve desktop artwork and dialogue space before typing or image decoding. */
@media(min-width:760px){
 .app .game-frame{container-type:inline-size}
 .app .scene-image{height:75cqw;aspect-ratio:4/3;object-fit:contain}
 .app .dialogue{height:340px;min-height:340px;max-height:340px;overflow:auto}
 #game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]) .panel{height:340px!important;min-height:340px!important;max-height:340px;overflow:auto}
}
