:root{
  --ap-tg-top:max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));
  --ap-tg-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));
}
html,body,#root{min-height:100%;background:#070a12}
body{padding-top:0;}
.app{
  min-height:calc(100dvh - max(14px,var(--ap-tg-top)));
  padding-bottom:calc(108px + var(--ap-tg-bottom))!important;
}
.topbar{
  top:0!important;
  padding-top:calc(10px + max(48px,var(--ap-tg-top),var(--ap-safe-top,0px),var(--ap-content-safe-top,0px)))!important;
  min-height:68px;
}
.telegram-fullscreen .topbar{
  padding-top:calc(50px + max(var(--ap-tg-top),var(--ap-safe-top,0px)))!important;
}
main{padding-top:8px!important;padding-bottom:76px!important;}
.bottom-nav{
  position:fixed!important;
  left:12px!important;
  right:12px!important;
  bottom:12px!important;
  min-height:68px!important;
  z-index:2147483647!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  transform:translateZ(0)!important;
  isolation:isolate!important;
}
.bottom-nav button,.bottom-nav a{
  pointer-events:auto!important;
  touch-action:manipulation!important;
  position:relative!important;
  z-index:2!important;
  min-height:48px!important;
}
@media (max-width:600px){
  body{padding-top:0;}
  .topbar{padding-top:calc(10px + max(48px,var(--ap-tg-top),var(--ap-safe-top,0px),var(--ap-content-safe-top,0px)))!important;padding-bottom:12px!important;}
  main{padding-top:6px!important;}
  .bottom-nav{bottom:12px!important;}
}
@media (max-width:390px){
  .bottom-nav{bottom:10px!important;}
}
