/* ========================================================================
   ZENKAI IDLE — V22 GAME VIEWPORT LOCK
   Structural only. Keeps V21 visual/UI untouched.
   The document is the game client viewport, never a scrollable webpage.
   ======================================================================== */
html,
body {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body {
  position: fixed !important;
  inset: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  /* permit normal one-finger panning inside scrollable HUD panels,
     but do not give the browser permission to pinch-zoom the page */
  touch-action: pan-x pan-y !important;
}

.game-shell {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Floating game windows may scroll internally; only the page itself is locked. */
.left,
.right,
.chatlog,
.modal-body,
.action-list,
.npc-shop-grid,
.session-loot-body,
.hunt-list,
.inventory-scroll,
[style*="overflow:auto"],
[style*="overflow-y:auto"] {
  overscroll-behavior: contain;
}
