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;
  -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 */
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #333;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}


#custom-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('splash.jpg') no-repeat center/cover;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


/* 固定按钮图片样式 */
.quick-play-button {
  position: absolute;
  bottom: 30%; /* 调整整体位置 */
  max-width: 40%;
  max-height: 40%;
  /* 根据需要调整按钮图片大小 */
  width: auto;
  height: auto;
  cursor: pointer;
  /* 鼠标悬停时显示手型指针 */
  display: none
}

.loading-container {
  position: absolute;
  bottom: 20%; /* 调整整体位置 */
  width: 80%;
  max-width: 400px;
  transform: translateY(50%);
}

/* 进度条容器样式 */
#progress-container {
  position: relative;
  width: 100%; /* 继承父容器宽度 */
  height: 18px;
  background-color: black;
  border-radius: 10px;
  overflow: hidden;
  /* 添加安全区域margin */
  margin-bottom: env(safe-area-inset-bottom);
}

/* 进度条填充样式 */
#progress-bar {
  width: 0%;
  height: 100%;
  background-image: linear-gradient(
    to bottom, 
    rgb(255, 207, 100),  /* 顶部浅黄色 */
    rgb(124, 76, 4)   /* 底部深橙色 */
  );
  border-radius: 10px;
  transition: width 0.3s ease;
}

.flip-container {
  position: absolute;
  bottom: 35%;
  transform: translateY(50%);
}

.loading-text {
  color: #FFCF64;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  /* 适配小屏幕 */
  font-size: calc(12px + 1vmin);
}


#GameDiv, #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);
}
