/* YupPlay desktop side rail v2 (2026-11-27). CSS ONLY: no JS, no DOM moves, the game is never resized.
   The existing HilltopAds box (.yp-hb, zone 7661149, filled by hb-banner.js as today) is shown in the right
   margin ONLY when the viewport leaves a free margin beside the full-size game:
     landscape stage (.pp-land, max 1100px): 1100 + 2*(44 gap + 300 ad + 16 edge) = 1820 + 20 scrollbar = 1840px
     portrait stage  (.pp-port, max 480px):   480 + 2*360 = 1200 + 20 = 1220px
   Below those widths the banner stays below the game exactly as live. Resize/rotate = pure CSS, the ad iframe
   is never reparented and the game iframe is never touched. Browsers without :has() keep the live layout. */
@media (min-width:1840px){
  body.pp-page main:has(.pp-stage.pp-land){position:relative}
  body.pp-page main:has(.pp-stage.pp-land) > .yp-hb{position:absolute;top:8px;left:calc(50% + 550px + 44px);margin:0;z-index:1}
}
@media (min-width:1220px){
  body.pp-page main:has(.pp-stage.pp-port){position:relative}
  body.pp-page main:has(.pp-stage.pp-port) > .yp-hb{position:absolute;top:8px;left:calc(50% + 240px + 44px);margin:0;z-index:1}
}

/* Footer fix (optional package): links had no wrap point, causing sideways scroll on phones <= 414px. */
.pp-page .pz-foot{display:flex;flex-wrap:wrap;justify-content:center;row-gap:6px}
