/* Shared platform shell. The game remains mobile-first; no desktop transform/scaling. */
.bbf-ad-rail{
  position:fixed;top:0;bottom:0;z-index:40;display:none;align-items:center;justify-content:center;
  pointer-events:none;overflow:hidden
}
.bbf-ad-rail-left{left:0}.bbf-ad-rail-right{right:0}
.bbf-ad-slot{width:min(300px,calc((100vw - 760px)/2 - 20px));min-width:0;min-height:250px;pointer-events:auto}
body.bbf-layout-desktop.bbf-ad-rails-enabled .bbf-ad-rail{display:flex}
body.bbf-platform-telegram .bbf-ad-rail{display:none!important}
body.bbf-platform-telegram{overscroll-behavior:none}
@media(min-width:1280px){
  body.bbf-layout-desktop .scene,
  body.bbf-layout-desktop .game-shell,
  body.bbf-layout-desktop .well-screen,
  body.bbf-layout-desktop .collection-shell,
  body.bbf-layout-desktop .settings-shell,
  body.bbf-layout-desktop .account-scene{margin-left:auto;margin-right:auto}
}

/* Desktop shell embeds the unmodified mobile client in a real mobile-sized viewport. */
html:has(body) body.bbf-layout-mobile .bbf-ad-rail{display:none}
