/* Full-width phone scene; short preview screens scroll instead of shrinking play. */
html{height:auto!important;min-height:100%;overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior-y:contain}
body{display:block!important;margin:0!important;width:100%!important;height:auto!important;min-height:max(100dvh,216.183575vw)!important;overflow:visible!important;touch-action:pan-y}
#surface{width:100%!important;max-width:none!important;height:max(100dvh,216.183575vw)!important;overflow:clip!important}
#stage{touch-action:pan-y}

body{position:relative!important;inset:auto!important}
/* Desktop portrait stage */
@media (pointer: fine), (orientation: landscape) and (min-width: 601px) {
  html, body { height: 100dvh !important; min-height: 0 !important; overflow: hidden !important; }
  body { display: flex !important; justify-content: center; }
  #surface { width: min(100%, calc(100dvh * 414 / 895)) !important; height: 100dvh !important; }
  #stage { touch-action: none; }
}
