body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;

  text-align: center;
  background-color: white;
  font-family: Helvetica, Verdana, Arial, sans-serif;
}

body, canvas, div {
  outline: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv {
    margin: 0 auto;
    position:relative;
    border:5px solid black;
    border-radius: 10px;
    box-shadow: 0 5px 50px #333
}

#Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

: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);
}

/* 二维码容器样式 */
 /* 调整游戏容器布局 */
      .game-wrapper {
        display: flex;
        align-items: center; /* 垂直居中对齐 */
        justify-content: center; /* 水平居中 */
        gap: 100px; /* 二维码与游戏区之间的间距 */
        margin: 20px auto;
        max-width: 100%;
        padding: 0 20px;
      }

      /* 二维码容器样式 */
      .qrcode-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 150px; /* 二维码宽度固定 */
      }

      .qrcode-img, .qrcode-canvas {
        width: 150px;
        height: 150px;
        object-fit: contain;
      }

      .qrcode-text {
        margin-top: 10px;
        text-align: center;
      }

      /* 游戏区域样式保持 */
      #GameDiv {
        flex-shrink: 0; /* 防止游戏区被压缩 */
      }

      /* 响应式调整 */
      @media (max-width: 1000px) {
        .game-wrapper {
          flex-direction: column;
          gap: 30px;
        }
      }

      /* 启动图样式：全屏居中，无拉伸 */
        #splash-screen {
            position: fixed; /* 固定定位，覆盖整个屏幕 */
            top: 0; left: 0;
            margin: 0 auto;
            width: 100%; height: 100%;
            display: flex; /* 弹性布局，让图片居中 */
            justify-content: center;
            align-items: center;
            z-index: 9999; /* 层级高于 Cocos 容器，确保先显示 */
            background: #F5D948; /* 背景色（与游戏加载背景一致，避免闪烁） */
        }
        
        /* 启动图适配：保持宽高比，不拉伸 */
        #splash-image {
            max-width: 100%; /* 最大宽度不超过屏幕 */
            max-height: 100%; /* 最大高度不超过屏幕 */
            object-fit: fill; /* 保持宽高比，空白处显示背景色 */
        }

        /* 图片自适应样式 */
        .auto-scale-img {
            max-width: 100%; /* 最大宽度不超过屏幕 */
            max-height: 100%; /* 最大高度不超过屏幕 */
            object-fit: contain; /* 保持比例，完整显示（可选：cover 会填满但可能裁剪） */
        }