html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #100d08;
  touch-action: none;
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  -ms-touch-action: none;
}

body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: #888;
  background: #100d08;
  text-align: center;
  font-family: Arial, sans-serif;
}

canvas { background: transparent; }

/* Let Cocos own canvas sizing so CSS pixels, backing pixels, and pointer
   coordinates stay in sync on desktop, high-DPI screens, and mobile. */
/* Fill the window so Cocos can measure the real viewport. Do NOT
   translate #GameDiv — the engine writes width/height in px, and a 50%
   offset would push the canvas off-center. Distortion is prevented by
   ResolutionPolicy.FIXED_HEIGHT (uniform scale by height). */
#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

#RotatePrompt { display: 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);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
