html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  cursor: default;
  color: #000000;
  background-color: #000000;
  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
}

: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);
}

/* 加载层 无z-index，靠DOM顺序置顶 */
.loading-div {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  box-sizing: border-box;
}

.image-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: auto;
  height: auto;
}

.image-container img{
  width: 330px;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* 进度条样式 */
.progress-wrap {
  width: 40vw;
  max-width: 500px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  transition: width 0.2s ease-out;
}
.progress-text {
  color: #fff;
  text-align: center;
  font-size: 18px;
}

/* 旧加载圆点 保留兼容 */
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.875rem;
}
.dot {
  width: 1.5625rem;
  height: 1.5625rem;
  border-radius: 50%;
  background-color: white;
  animation: pulse-dot 1.5s infinite ease-in-out;
}
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* 弹窗容器 无z-index，写在loading前面，被加载页盖住 */
.fixed-div {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.7);
  /* 取消居中，让iframe铺满全屏 */
  align-items: unset;
  justify-content: unset;
}
#test_iframe {
  width: 100vw;
  height: 100vh;
  border:0;
}
.close_btn {
  position: absolute;
  top: 10px;
  left: 30px;
  width: 30px;
  height: 30px;
  padding: 0px;
  /* 移除水平居中 translate */
  transform: none;
}
@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}