/* Fix78 — actual adventure router is r46OpenAdventure, not r42OpenAdventure.
   Keep the game canvas and its own pause/character chooser, remove only outer UI.
   This stylesheet deliberately does NOT modify the game engine. */
@media (max-width:720px) and (orientation:portrait){
  html:has(body.r46AdventureMode),body.r46AdventureMode{
    overflow:hidden!important;overscroll-behavior:none!important;
    width:100%!important;height:100%!important;margin:0!important;padding:0!important;
  }
  body.r46AdventureMode #app{
    overflow:hidden!important;width:100vw!important;max-width:100vw!important;
    height:100dvh!important;max-height:100dvh!important;min-height:0!important;
  }
  body.r46AdventureMode #app>header.top,
  body.r46AdventureMode #safeR10Bottom,
  body.r46AdventureMode .safeR10Bottom,
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden)>.head,
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden)>.saSettingsToggle{
    display:none!important;height:0!important;min-height:0!important;max-height:0!important;
    padding:0!important;margin:0!important;border:0!important;
  }
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden){
    position:fixed!important;inset:0!important;top:0!important;left:0!important;
    display:flex!important;flex-direction:column!important;z-index:6000!important;
    width:100vw!important;max-width:100vw!important;min-width:0!important;
    height:100dvh!important;max-height:100dvh!important;min-height:0!important;
    padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;background:#07162b!important;overflow:hidden!important;
  }
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden)>.gamewrap{
    box-sizing:border-box!important;display:flex!important;flex:1 1 auto!important;
    flex-direction:column!important;position:relative!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:100%!important;max-height:100%!important;min-height:0!important;
    padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
    overflow:hidden!important;
  }
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden).v19Embedded #v19EmbeddedGameHost,
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden).v19Embedded #v19EmbeddedGameFrame{
    display:block!important;position:relative!important;box-sizing:border-box!important;
    flex:1 1 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;
    height:100%!important;max-height:100%!important;min-height:0!important;
    padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
    overflow:hidden!important;background:#07162b!important;
  }
  body.r46AdventureMode #app > #game.r46AdventurePage:not(.hidden).v19Embedded .gamewrap>*:not(#v19EmbeddedGameHost){
    display:none!important;
  }
}
