/* Page owns GameDiv dimensions; Creator owns the backing canvas and UI scaling. */
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: #10151c; }
body { position: fixed; display: block; }
#GameDiv { position: absolute; overflow: hidden; touch-action: none; }
#Cocos3dGameContainer, #GameCanvas { width: 100%; height: 100%; }
/* Intersect device safe insets with the centered frame, then let Cocos apply once. */
:root { --device-top: env(safe-area-inset-top, 0px); --device-right: env(safe-area-inset-right, 0px); --device-bottom: env(safe-area-inset-bottom, 0px); --device-left: env(safe-area-inset-left, 0px); }
