/* ScoreMV 2.9.28: final phone court viewport sizing override.
   Keep the complete left/right court visible; don't crop the net or sidelines. */
body.phone-umpire:has(.bc-console){overflow-x:hidden!important}
body.phone-umpire .bc-console,body.phone-umpire .bc-live-position,body.phone-umpire .bc-court-area{box-sizing:border-box!important;min-width:0!important}
body.phone-umpire .bc-court-area{display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
body.phone-umpire .bc-court-layout{box-sizing:border-box!important;flex:0 1 auto!important;width:100%!important;max-width:100%!important;min-height:0!important;max-height:none!important;height:auto!important;aspect-ratio:2.48/1!important;overflow:hidden!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
body.phone-umpire .bc-court-half{box-sizing:border-box!important;min-width:0!important;overflow:hidden!important}
body.phone-umpire .bc-court-net{pointer-events:none!important}
body.phone-umpire .bc-court-touch{touch-action:manipulation!important;-webkit-tap-highlight-color:rgba(30,190,255,.15)!important}
body.phone-umpire .bc-console-header{flex-shrink:0!important}
body.phone-umpire .bc-phone-buttons button{min-height:40px!important;min-width:44px!important}
@media (orientation:landscape){
 body.phone-umpire:has(.bc-console){overflow:hidden!important}
 body.phone-umpire .bc-console{height:100dvh!important;max-height:100dvh!important;min-height:0!important;padding:2px max(6px,env(safe-area-inset-right)) 3px max(6px,env(safe-area-inset-left))!important}
 body.phone-umpire .bc-live-position{flex:1 1 0!important;min-height:0!important;overflow:hidden!important}
 body.phone-umpire .bc-court-area{flex:1 1 0!important;min-height:0!important;max-height:none!important}
 body.phone-umpire .bc-court-layout{width:min(100%,calc((100dvh - 116px)*2.48))!important;max-width:100%!important;max-height:calc(100dvh - 116px)!important;aspect-ratio:2.48/1!important}
 body.phone-umpire .bc-large-score{font-size:clamp(24px,6dvh,42px)!important;margin:0 auto 2px!important}
 body.phone-umpire .bc-stage-bar{min-height:28px!important}
 body.phone-umpire .bc-shuttle-controls{min-height:30px!important;margin:1px auto!important}
 body.phone-umpire .bc-shuttle-controls button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
}
@media (orientation:portrait){
 body.phone-umpire .bc-console{min-height:100dvh!important}
 body.phone-umpire .bc-court-layout{width:100%!important;max-height:none!important;aspect-ratio:2.48/1!important}
}
