/* MADA V111: keep controls upright even when Android/iOS refuses orientation lock. */
body.mada110-wide-mode{overflow:hidden!important;overscroll-behavior:none!important}
body.mada110-wide-mode .mada-topbar,
body.mada110-wide-mode .mada-unified-bottom,
body.mada110-wide-mode .mada105-bottom,
body.mada110-wide-mode .mada109-focus-nav,
body.mada110-wide-mode #mobile-simple-back,
body.mada110-wide-mode .site-footer,
body.mada110-wide-mode .mada-sidebar,
body.mada110-wide-mode footer{display:none!important}
body.mada110-wide-mode #main{padding:0!important;margin:0!important;max-width:none!important;min-width:0!important}
body.mada110-wide-mode #main [data-mada110-wide]{
 position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
 width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;
 min-width:0!important;min-height:0!important;box-sizing:border-box!important;
 transform:none!important;transform-origin:center!important;z-index:52000!important;
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;
 padding:max(6px,env(safe-area-inset-top,0px)) max(6px,env(safe-area-inset-right,0px)) max(7px,env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px))!important;
 gap:6px!important;background:#f7faff!important;overflow:hidden!important;border:0!important;border-radius:0!important;
 direction:rtl;contain:layout style;
}
body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-focus-top,.game-focus-top){
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;width:100%!important;
 padding:4px 6px!important;min-height:0!important;max-height:56px!important;margin:0!important;
 overflow:hidden!important;border-radius:11px!important;background:#fff!important
}
body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-focus-top,.game-focus-top)>button{
 flex:0 0 auto!important;max-width:40%!important;width:auto!important;min-width:0!important;min-height:40px!important;
 padding:5px 9px!important;font-size:clamp(11px,2.4vw,15px)!important;line-height:1.2!important;
 white-space:normal!important;overflow-wrap:normal!important;align-self:center!important
}
body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-focus-top,.game-focus-top)>div{
 flex:1 1 auto!important;min-width:0!important;max-width:none!important;display:block!important;width:auto!important;overflow:hidden!important
}
body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-focus-top,.game-focus-top) h1{
 display:block!important;font-size:clamp(15px,3.7vw,23px)!important;line-height:1.25!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;margin:0!important
}
body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-focus-top,.game-focus-top) :is(.eyebrow,p){display:none!important}
body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-stage-focus,.standalone-game-board){
 min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;
 padding:clamp(6px,1.5vw,14px)!important;margin:0!important;box-sizing:border-box!important;
 scrollbar-width:thin!important;-webkit-overflow-scrolling:touch!important
}
body.mada110-wide-mode #main [data-mada110-wide] .foundation-stage-head.v78{
 display:flex!important;align-items:center!important;gap:8px!important;padding:5px!important;margin:0 0 6px!important
}
body.mada110-wide-mode #main [data-mada110-wide] .foundation-stage-head.v78>span{font-size:22px!important;width:34px!important;height:34px!important;flex:0 0 auto!important}
body.mada110-wide-mode #main [data-mada110-wide] .foundation-stage-head.v78 h2{font-size:clamp(15px,3vw,22px)!important;line-height:1.25!important;margin:0!important}
body.mada110-wide-mode #main [data-mada110-wide] .foundation-stage-head.v78 p{font-size:clamp(11px,2.3vw,14px)!important;line-height:1.3!important;margin:2px 0!important}
body.mada110-wide-mode #main [data-mada110-wide] button{touch-action:manipulation}
body.mada110-wide-mode #main [data-mada110-wide] .foundation-number-pads{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(4px,1.5vw,9px)!important}
body.mada110-wide-mode #main [data-mada110-wide] .foundation-number-pads button{min-height:clamp(46px,11vh,72px)!important;padding:4px 2px!important}
@media (orientation:landscape) and (max-height:500px){
 body.mada110-wide-mode #main [data-mada110-wide] :is(.foundation-focus-top,.game-focus-top){max-height:44px!important;padding:2px 5px!important}
 body.mada110-wide-mode #main [data-mada110-wide] .foundation-number-pads{grid-template-columns:repeat(8,minmax(0,1fr))!important}
 body.mada110-wide-mode #main [data-mada110-wide] .foundation-number-pads button{min-height:40px!important}
}
