/* PointsBall 2.23.5 — mobile live clearance + accessible VBA bet sheet */
:root{--pb-mobile-nav-clearance:62px;--pb-mobile-live-dock-clearance:78px}
@media(max-width:900px){
  /* A live dock reserves real document space instead of floating over the final controls. */
  body.has-vba-live-dock main{padding-bottom:calc(66px + var(--pb-mobile-live-dock-clearance) + env(safe-area-inset-bottom))!important}
  body.has-vba-live-dock .toast-zone{bottom:calc(72px + var(--pb-mobile-live-dock-clearance) + env(safe-area-inset-bottom))!important}

  /* The betting sheet lives ABOVE navigation rather than underneath it. */
  .vba-live-bet-sheet{
    z-index:146!important;
    right:8px!important;
    left:8px!important;
    bottom:calc(var(--pb-mobile-nav-clearance) + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-height:calc(100dvh - var(--pb-mobile-nav-clearance) - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    border-radius:20px!important;
    overscroll-behavior:contain;
    padding-bottom:max(8px,env(safe-area-inset-bottom));
  }
  .vba-live-bet-scrim{z-index:140!important}
  .premier-mobile-nav,.mobile-nav{z-index:142!important}

  /* While a wager sheet is open, remove the competing live dock from the interaction layer. */
  body.vba-live-bet-open .vba-continuous-rail{
    opacity:0!important;
    pointer-events:none!important;
    transform:translateY(12px)!important;
  }
}
@media(max-width:520px){
  :root{--pb-mobile-nav-clearance:58px;--pb-mobile-live-dock-clearance:72px}
  body.has-vba-live-dock main{padding-bottom:calc(62px + var(--pb-mobile-live-dock-clearance) + env(safe-area-inset-bottom))!important}
  .vba-live-bet-sheet{
    left:6px!important;
    right:6px!important;
    bottom:calc(var(--pb-mobile-nav-clearance) + env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - var(--pb-mobile-nav-clearance) - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    border-radius:18px!important;
  }
  .vba-live-bet-body{padding-bottom:18px!important}
  #confirmVbaLiveBet{position:sticky;bottom:0;width:100%;min-height:48px;z-index:2;box-shadow:0 -8px 18px color-mix(in srgb,var(--surface) 82%,transparent)}
}
