/* 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}
#stage{position:absolute!important;left:0!important;top:0!important;transform:scale(var(--scale,1))!important;transform-origin:top left!important}

body{position:relative!important;inset:auto!important}

#phone-scene{position:relative;width:100%;height:max(100dvh,216.183575vw);overflow:clip;touch-action:pan-y}

@media (hover: hover) and (pointer: fine), (min-width: 768px) {
  body { min-height:100dvh!important; }
  #phone-scene { height:var(--viewport-height,100dvh); }
  #stage { left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(var(--scale,1))!important;transform-origin:center!important; }
}
