/* Modal must stay above every ad/player overlay. */
.auth-modal{z-index:2147483646!important;isolation:isolate}
.auth-modal__backdrop{z-index:0!important}
.auth-modal__dialog{z-index:1!important;width:min(92vw,480px)!important;height:min(620px,calc(100dvh - 40px))!important}
.auth-modal--register .auth-modal__dialog{height:min(760px,calc(100dvh - 40px))!important}
.auth-modal--forgot .auth-modal__dialog{height:min(560px,calc(100dvh - 40px))!important}
.auth-modal__close{z-index:10!important;text-decoration:none!important;line-height:1!important}
body:has(.auth-modal:not([hidden]))>.floating-ad,
body:has(.auth-modal:not([hidden])) .floating-ad,
body:has(.auth-modal:not([hidden])) #floating-ad{display:none!important}
@media(max-width:560px){
  .auth-modal{padding:12px!important;place-items:center!important}
  .auth-modal__dialog{width:min(100%,410px)!important;height:min(570px,calc(100dvh - 24px))!important;border:1px solid rgba(255,255,255,.14)!important;border-top:3px solid #ed174c!important;border-radius:17px!important}
  .auth-modal--register .auth-modal__dialog{height:min(700px,calc(100dvh - 24px))!important}
  .auth-modal--forgot .auth-modal__dialog{height:min(510px,calc(100dvh - 24px))!important}
  .auth-modal__close{top:9px!important;right:9px!important;width:34px!important;height:34px!important;border-radius:9px!important;font-size:20px!important}
}
@media(max-width:360px){
  .auth-modal{padding:8px!important}
  .auth-modal__dialog{height:min(550px,calc(100dvh - 16px))!important}
  .auth-modal--register .auth-modal__dialog{height:calc(100dvh - 16px)!important}
  .auth-modal--forgot .auth-modal__dialog{height:min(490px,calc(100dvh - 16px))!important}
}
