html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; touch-action: none; overscroll-behavior: none; }
body, canvas, div { outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.header, .footer { display: none; }
#GameDiv { position: fixed; inset: 0; width: 100% !important; height: 100% !important; border: 0; margin: 0; }
#Cocos3dGameContainer, #GameCanvas { width: 100%; height: 100%; touch-action: none; }
canvas { display: block; }
/* Match the native EditBox label inset while typing in the browser overlay. */
input.cocosEditBox { box-sizing: border-box; left: 0 !important; padding: 0 12px !important; }
input.cocosEditBox[data-canvas-aligned] {
  position: fixed !important; transform: none !important; bottom: auto !important;
  left: var(--edit-left) !important; top: var(--edit-top) !important;
  width: var(--edit-width) !important; height: var(--edit-height) !important;
  font-size: var(--edit-font) !important; padding: 0 var(--edit-padding) !important;
}
