/* brick-bounce · fullscreen — in immersive mode the arena takes the whole stage below the 52px dock.
   The game fits its own 2:3 arena to .canvas-container, so we only give that container the room. */
html.pip-immersive body.pip-stage>.pip-backdrop{display:none!important}  /* body is the stage here, so the shell backdrop would sit on top of the game */
html.pip-immersive body[data-screen="play"].pip-stage{display:block!important;padding:0!important;overflow:hidden!important}
html.pip-immersive body[data-screen="play"].pip-stage>.hub-bar,
html.pip-immersive body[data-screen="play"].pip-stage>.playyard-ad,
html.pip-immersive body[data-screen="play"].pip-stage>.below-content{display:none!important}
html.pip-immersive body[data-screen="play"].pip-stage #play-screen{width:100%;height:calc(var(--pip-vvh,100dvh) - 52px);margin-top:52px}
html.pip-immersive body[data-screen="play"].pip-stage .play-wrapper{height:100%!important;min-height:0}
html.pip-immersive body[data-screen="play"].pip-stage #bb-depth-tools{display:none!important}
@media (orientation:landscape) and (max-height:520px){
  html.pip-immersive body[data-screen="play"].pip-stage .play-hud{padding:.15rem .5rem;flex-wrap:nowrap}
  html.pip-immersive body[data-screen="play"].pip-stage .play-hud .btn{padding:.2rem .5rem;font-size:.7rem}
}

/* wave3b: title, level and how screens also fit the stage in full screen (immersive and native). No scroll on the title. */
html.pip-immersive body.pip-stage:not([data-screen="play"]),html.pip-native body.pip-stage:not([data-screen="play"]){overflow:hidden!important;padding:0!important}
html.pip-immersive body.pip-stage>.hub-bar,html.pip-immersive body.pip-stage>.playyard-ad,html.pip-immersive body.pip-stage>.below-content,
html.pip-native body.pip-stage>.hub-bar,html.pip-native body.pip-stage>.playyard-ad,html.pip-native body.pip-stage>.below-content{display:none!important}
html.pip-immersive body.pip-stage:not([data-screen="play"])>section{margin-top:52px;height:calc(var(--pip-vvh,100dvh) - 52px);overflow-y:auto;overscroll-behavior:contain;padding-top:max(.5rem,env(safe-area-inset-top));padding-bottom:max(.75rem,env(safe-area-inset-bottom))}
html.pip-native body.pip-stage:not([data-screen="play"])>section{height:var(--pip-vvh,100dvh);overflow-y:auto;overscroll-behavior:contain;padding-top:max(.5rem,env(safe-area-inset-top));padding-bottom:max(.75rem,env(safe-area-inset-bottom))}
html.pip-immersive body[data-screen="title"].pip-stage #title-screen,html.pip-native body[data-screen="title"].pip-stage #title-screen{display:flex;flex-direction:column;justify-content:center;overflow:hidden}
:is(html.pip-immersive,html.pip-native) body[data-screen="title"] .hero-card{padding:.9rem 1rem;max-height:100%;display:flex;flex-direction:column;justify-content:center;gap:.5rem}
:is(html.pip-immersive,html.pip-native) body[data-screen="title"] :is(.how-line,.bounce-lab,.kicker,.hero-tagline){display:none!important}
:is(html.pip-immersive,html.pip-native) body[data-screen="title"] .hero-preview{margin:0;flex:0 1 auto;min-height:0}
:is(html.pip-immersive,html.pip-native) body[data-screen="title"] .hero-preview canvas{width:100%;height:auto;max-height:22dvh;object-fit:contain}
:is(html.pip-immersive,html.pip-native) body[data-screen="title"] .arcade-facts{margin:0}
:is(html.pip-immersive,html.pip-native) body[data-screen="title"] .btn-group .btn{min-height:48px}
:is(html.pip-immersive,html.pip-native) body[data-screen="play"] .play-hud .btn{min-height:44px}
/* wave3b finish: soft glow and depth on the title card */
body[data-screen="title"] .hero-card{box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 0 1px rgba(114,242,235,.18),inset 0 1px 0 rgba(255,255,255,.06)}
body[data-screen="title"] .hero-card h1{text-shadow:0 0 22px rgba(0,229,255,.45),0 3px 0 rgba(0,0,0,.35)}
body[data-screen="title"] .btn--primary{box-shadow:0 6px 18px rgba(0,229,255,.28)}

/* wave4: nothing below the game may take room or scroll the stage in full screen (similar-games shelf, bottom ad, footer copy). */
:is(html.pip-immersive,html.pip-native) body.pip-stage>#similar-games,
:is(html.pip-immersive,html.pip-native) body.pip-stage>.bottom-ad-section,
:is(html.pip-immersive,html.pip-native) body.pip-stage>.below-content,
:is(html.pip-immersive,html.pip-native) body.pip-stage>footer,
:is(html.pip-immersive,html.pip-native) body.pip-stage>.playyard-ad{display:none!important}
:is(html.pip-immersive,html.pip-native) body.pip-stage{overflow:hidden!important}
/* native Fullscreen API: no dock, so the play screen uses the whole stage */
html.pip-native body[data-screen="play"].pip-stage{display:block!important;padding:0!important;overflow:hidden!important}
html.pip-native body[data-screen="play"].pip-stage>.hub-bar{display:none!important}
html.pip-native body[data-screen="play"].pip-stage #play-screen{width:100%;height:var(--pip-vvh,100dvh);margin-top:0}
html.pip-native body[data-screen="play"].pip-stage .play-wrapper{height:100%!important;min-height:0}
html.pip-native body[data-screen="play"].pip-stage #bb-depth-tools{display:none!important}
/* title and over screens: the card fits, and scrolls inside itself only if a tiny screen needs it */
@media (orientation:landscape) and (max-height:520px){
  :is(html.pip-immersive,html.pip-native) body[data-screen="title"] .hero-preview{display:none!important}
  :is(html.pip-immersive,html.pip-native) body[data-screen="title"] .hero-card{padding:.5rem 1rem;gap:.35rem}
}
