/* Dome Blitz only: reserve real document-scroll space above and below
   the complete game scene. Do not translate or scale the board, header,
   rack, player panels, or control buttons. Browser scrolling remains native.
   The space is removed automatically outside an active Blitz room. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) > main {
  padding-top:clamp(88px,11dvh,148px)!important;
  padding-bottom:clamp(180px,26dvh,300px)!important;
}

/* Keep the same scroll breathing room on phones and narrow portrait
   tablets without wasting too much of their shorter visible viewport. */
@media (max-width:820px) {
  body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) > main {
    padding-top:clamp(48px,7dvh,88px)!important;
    padding-bottom:clamp(128px,20dvh,220px)!important;
  }
}

/* A short desktop may use a measured native layout zoom. The fit helper
   leaves the normal scroll padding in document flow and never transforms
   individual interactive tiles. Touch devices and other games stay unchanged. */
@media (min-width:1100px) and (max-height:950px) and (pointer:fine) {
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) > main {
  zoom:var(--wd-blitz-desktop-zoom,1);
 }
}
