/* Bird Sort Sky LINE MINI App (issue #57): the banner strip, full-screen ad overlays and the portrait-only notice.
   --bss-ad-reserve is set by line-yahoo-ads.js before the game lays out its board (only on hosts with a banner), so
   the board and the item row sit above the banner from the start and never move when it appears. */
:root { --bss-ad-reserve: 0px; }
html, body { overscroll-behavior: none; }
html body #app { padding-bottom: calc(10px + var(--bss-ad-reserve)); }   /* beats the game's own #app rule */
.bss-ad-banner {
  position: fixed; bottom: env(safe-area-inset-bottom, 0px); left: 0; right: 0;
  height: 50px; z-index: 50; display: flex; justify-content: center; background: #ffffff;
}
/* Yahoo sets inline width:auto on this slot; keep it full-width as a flex item. */
.bss-ad-banner > div { flex: 0 0 100%; min-width: 0; width: 100%; height: 50px; }
.bss-ad-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.92);
  display: grid; place-items: center; color: #173a78; touch-action: auto;
}
.bss-ad-delay, .bss-ad-interstitial { background: transparent; }
.bss-ad-delay { touch-action: none; }
.bss-ad-slot { position: absolute; inset: 0; display: grid; place-items: center; }
.bss-ad-delay .bss-ad-slot,
.bss-ad-delay .bss-ad-slot * { visibility: hidden !important; }
/* phones held sideways: the game is portrait only */
#bss-rotate { display: none; }
@media (orientation: landscape) and (max-width: 900px) and (pointer: coarse) {
  #bss-rotate {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 20000; padding: 24px;
    background: #2f8cf0; color: #fff; font: 700 18px/1.6 "Fredoka", system-ui, sans-serif; text-align: center;
  }
}
