/* V63 responsive layout: iPhone 13 Pro Max through iPad landscape.
   Loads AFTER the single V60 home stylesheet; gameplay is untouched. */
html,body { max-width:100%; }
body { overflow-x:hidden; }
body.home-screen { overscroll-behavior:none; }
body.home-screen #app .approved-home {
  /* Fit the whole portrait artwork inside the *visible* viewport, with breathing room.
     No object-fill, crop, sideways pan or vertical scrolling. */
  width:min(calc(100vw - 8px),calc(46.258dvh - 12px))!important;
  height:auto!important;
  aspect-ratio:853 / 1844!important;
  left:50%!important;top:50%!important;
  transform:translate(-50%,-50%)!important;
}
body.home-screen #app .approved-home > .approved-home-art { object-fit:contain!important; }
/* Tablet: preserve image proportions, extend the existing dark scene behind it.
   A portrait illustration cannot physically fill a wide landscape viewport without
   either stretching faces or cutting the title/buttons. */
@media(min-width:768px) {
 body.home-screen main,
 body.home-screen #app { width:100%!important;max-width:none!important; }
 body.home-screen #app .approved-home {filter:drop-shadow(0 10px 36px #0009)!important;}
 body:not(.home-screen) main {
    box-sizing:border-box!important;
    width:100%!important;max-width:760px!important;
    margin-inline:auto!important;
    padding-inline:clamp(18px,3vw,32px)!important;
 }
 body:not(.home-screen) .card { max-width:100%; }
}
/* Internal screens can scroll vertically when content is naturally longer than
   one screen, but horizontal panning of the whole interface is always forbidden. */
body:not(.home-screen) main,
body:not(.home-screen) #app {min-width:0;max-width:100%;overflow-x:clip;}
body:not(.home-screen) .row,
body:not(.home-screen) .player {min-width:0;max-width:100%;}
body:not(.home-screen) img,
body:not(.home-screen) video {max-width:100%;}
body:not(.home-screen) .tablewrap {max-width:100%;}
/* The approved instructions and points table retain their original styles. */
@supports not (height:100dvh) {
 body.home-screen #app .approved-home {
  width:min(calc(100vw - 8px),calc(46.258vh - 12px))!important;
 }
}
