/* InazumArcade V793 — restore Battaglia's own inner scroll container.
   V791 unintentionally replaced V790's scrollable #iaScoutingMain with
   overflow:visible. Keep the modal viewport fixed and make its content area
   the vertical scroll owner again. Only real-phone mode is affected. */

/* The Battle modal remains a viewport-sized frame. The body lock used by
   Battaglia is preserved; scrolling happens inside the modal, not the page. */
html.ia-real-phone-mode.ia-phone-landscape body.ia-scouting-open:not(.gd-active):not(.ia-career-fit-active){
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
html.ia-real-phone-mode #iaScoutingOverlay:not([hidden]){
  display:grid!important;
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-height:100dvh!important;
  padding:0!important;
  place-items:stretch!important;
  overflow:hidden!important;
}
html.ia-real-phone-mode #iaScoutingOverlay .ia-scouting-shell{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  width:100vw!important;
  min-width:0!important;
  max-width:100vw!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  margin:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}

/* Header, stats strip and Battle navigation stay in place. Only the main
   content area scrolls, so every section remains reachable with a finger. */
html.ia-real-phone-mode #iaScoutingOverlay .ia-scouting-header,
html.ia-real-phone-mode #iaScoutingOverlay .ia-scouting-topline,
html.ia-real-phone-mode #iaScoutingOverlay .ia-v516-global-nav,
html.ia-real-phone-mode #iaScoutingOverlay .ia-scouting-footer{
  flex:0 0 auto!important;
}
html.ia-real-phone-mode #iaScoutingOverlay .ia-scouting-main{
  display:block!important;
  flex:1 1 0%!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
html.ia-real-phone-mode #iaScoutingOverlay #iaScoutingMain[data-view="game"]{
  display:block!important;
  flex:1 1 0%!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}

/* The separate event/minigame layer keeps its own scroll container from V791.
   No rotation gate, game input handler, or desktop selector is changed. */
