/* Fix-64: Keep all five classic-adventure touch controls within narrow portrait phones.
   This only changes button geometry, not events, timers, game state, or controls in other games. */
@media screen and (max-width:430px) and (orientation:portrait){
  #game .classicGameBox .gameTouchOverlay{
    left:3px!important;right:3px!important;gap:2px!important;
    justify-content:space-between!important;max-width:calc(100% - 6px)!important;
  }
  #game .classicGameBox .gameTouchOverlay>div:first-child{
    gap:1px!important;min-width:0!important;flex:0 1 auto!important;
  }
  #game .classicGameBox .gameTouchOverlay .actionControls{
    gap:1px!important;flex:0 0 auto!important;
  }
  #game .classicGameBox .gameTouchOverlay .gameCtl{
    width:clamp(44px,12vw,52px)!important;height:clamp(44px,12vw,52px)!important;min-width:44px!important;
    flex:0 0 clamp(44px,12vw,52px)!important;font-size:clamp(19px,5.5vw,24px)!important;padding:0!important;
  }
  #game .classicGameBox .gameTouchOverlay .fireCtl{
    width:clamp(44px,12.5vw,55px)!important;height:clamp(44px,12.5vw,55px)!important;min-width:44px!important;
    flex-basis:clamp(44px,12.5vw,55px)!important;font-size:clamp(19px,5.5vw,24px)!important;
  }
}
