/* The game owns the viewport. Only designated inner content areas scroll. */
html { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
* { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
:is(input, textarea, select, [contenteditable]:not([contenteditable="false"]), [data-copyable]),
:is([contenteditable]:not([contenteditable="false"]), [data-copyable]) * {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}
img { -webkit-user-drag: none; }
:is(#board, #together-board) { touch-action: none; }
:is(.list-body, .options-content, .shop-content, .shop-product-list, .mission-content, .mode-dialog) {
  overscroll-behavior: contain;
}

/* Startup-only overlay: never reserve space or rescale the lobby artwork. */
#kakao-age-rating {
  position: fixed; z-index: 2147483647;
  top: calc(var(--ncq-top) + 12px); right: calc(var(--ncq-right) + 12px);
  width: 56px; height: 66px; margin: 0; padding: 0; border: 0; background: none;
  pointer-events: none; visibility: hidden;
}
#kakao-age-rating[data-visible] {
  visibility: visible;
  animation: age-rating-exit 320ms cubic-bezier(.4, 0, 1, 1) 3s both;
}
#kakao-age-rating img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes age-rating-exit {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(calc(-100% - var(--ncq-top) - 12px)); opacity: 0; }
}
/* Transparent top layer for Kakao SDK confirm dialogs (webview-ui.js liftKakaoDialogs). */
#kakao-sdk-layer[open] {
  display: block; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  overflow: visible; transform: none; filter: none; animation: none; color: inherit; outline: none;
}
#kakao-sdk-layer::backdrop { background: transparent; }
