/* Fix136 - four teams screen takes all available WebView area. */
#soroTeamsPage{position:fixed!important;inset:0!important;z-index:2147482500!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;margin:0!important;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important;background:#edf6f1!important;border-radius:0!important;transform:none!important;opacity:1!important;visibility:visible!important}
#soroTeamsPage.hidden{display:none!important}
#soroTeamsPage .soroTeamsHeader{display:flex!important;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;min-height:51px;padding:6px 12px;margin:0;background:#f9fff9;border-bottom:1px solid #d7e9df}
#soroTeamsPage .soroTeamsHeader h2{margin:0;font-size:clamp(17px,3.2vw,22px);font-weight:900;color:#165744}
#soroTeamsPage .soroTeamsExit{min-height:40px;border:1px solid #c9e1d5;border-radius:10px;background:#e3f3eb;color:#155741;font-weight:900;padding:7px 12px;cursor:pointer;touch-action:manipulation}
#soroTeamsFrame{display:block!important;position:relative!important;flex:1 1 auto!important;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:auto!important;background:#eaf4ef}
@media(max-width:700px){#soroTeamsPage .soroTeamsHeader{min-height:48px;padding:5px 8px}#soroTeamsPage .soroTeamsHeader h2{font-size:17px}}

#soroTeamsPage .soroTeamsHeaderActions{display:flex;align-items:center;gap:6px}
#soroTeamsPage .soroTeamsMode{min-height:40px;border:1px solid #b1dfcb;border-radius:10px;background:#117658;color:white;font-weight:900;padding:7px 12px;cursor:pointer;touch-action:manipulation}
#soroTeamsPage .soroTeamsMode:active,#soroTeamsPage .soroTeamsExit:active{filter:brightness(.90)}
@media(max-width:370px){#soroTeamsPage .soroTeamsMode,#soroTeamsPage .soroTeamsExit{padding:7px 8px;font-size:12px}#soroTeamsPage .soroTeamsHeader h2{font-size:14px}}


/* Fix137 — override legacy R57/R58 app scroller rules using REAL host specificity.
   The prior standalone QA did not include those CSS rules, which collapsed the iframe to 150px.
   Scope every change to the four-teams page only. */
html.soroTeamsGameOpen,html.soroTeamsGameOpen body{overflow:hidden!important;overscroll-behavior:none!important}
html.soroTeamsGameOpen body #app{
  width:100%!important;max-width:none!important;min-width:0!important;
  height:100dvh!important;overflow:visible!important;transform:none!important;contain:none!important;
}
html.soroTeamsGameOpen body.r57-app-mode #app>section#soroTeamsPage.wrap:not(.hidden),
html.soroTeamsGameOpen body #app>section#soroTeamsPage.wrap:not(.hidden){
  position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
  display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
  width:100vw!important;max-width:100vw!important;min-width:0!important;
  height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;
  margin:0!important;padding:0!important;overflow:hidden!important;overflow-x:hidden!important;overflow-y:hidden!important;
  scrollbar-gutter:auto!important;contain:none!important;transform:none!important;
  z-index:2147482500!important;visibility:visible!important;
}
html.soroTeamsGameOpen body #app>section#soroTeamsPage.wrap:not(.hidden)>.soroTeamsHeader,
html.soroTeamsGameOpen body.r57-app-mode #app>section#soroTeamsPage.wrap:not(.hidden)>.soroTeamsHeader{
  flex:0 0 auto!important;display:flex!important;min-height:50px!important;margin:0!important;
  padding:7px 10px!important;box-sizing:border-box!important;
}
html.soroTeamsGameOpen body #app>section#soroTeamsPage.wrap:not(.hidden)>iframe#soroTeamsFrame,
html.soroTeamsGameOpen body.r57-app-mode #app>section#soroTeamsPage.wrap:not(.hidden)>iframe#soroTeamsFrame{
  display:block!important;position:relative!important;flex:1 1 0px!important;
  width:100%!important;height:0!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  overflow:auto!important;box-sizing:border-box!important;
}
@media (max-width:700px){
 html.soroTeamsGameOpen body #app>section#soroTeamsPage.wrap:not(.hidden)>.soroTeamsHeader{min-height:48px!important;padding:5px 8px!important}
}
