html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; background: #100E0B; }
body, canvas, div { outline: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#GameDiv { width: 100%; height: 100%; position: relative; }
#Cocos3dGameContainer, #GameCanvas { width: 100%; height: 100%; }
canvas { display: block; touch-action: none; }
:root { --safe-top: env(safe-area-inset-top); --safe-right: env(safe-area-inset-right); --safe-bottom: env(safe-area-inset-bottom); --safe-left: env(safe-area-inset-left); }

html:fullscreen, html:-webkit-full-screen { width: 100%; height: 100%; background: #100E0B; }
#fullscreen-button {
  position: fixed; z-index: 1000;
  left: max(8px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom));
  padding: 5px 13px; border: 1px solid #A68A60; border-radius: 3px;
  background: #100e0be8; color: #F3E6CA; font: 15px serif; cursor: pointer;
  touch-action: manipulation;
}
#fullscreen-message {
  position: fixed; z-index: 1001; left: 50%; bottom: max(50px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: max-content; max-width: min(85vw, 540px);
  box-sizing: border-box; padding: 10px 16px; border: 1px solid #A68A60;
  background: #100e0bf2; color: #F3E6CA; font: 16px/1.5 sans-serif; pointer-events: none;
}
[hidden] { display: none !important; }
