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);
}

#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);
}

#splash {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-image: url(start_bg.4dd3e.jpg);
  background-size: 100% auto;
  background-position: center 63%;
  background-repeat: no-repeat;
}

#splash-box {
  width: min(100vw, calc(100vh * 375 / 812));
  height: 100vh;
  position: relative;
}

@keyframes animate-stripes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 0;
  }
}

#splash-container {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 34%;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 10;
}

#progress-bg-container {
	width: 267px;
	height: 32px;
	overflow: hidden;
	position: relative;
}

#progress-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	top: 50%;
	transform: translateY(-50%);
}

#progress-fill-container {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	overflow: hidden;
}

#progress-fill {
	padding-left: 5.5px;
	padding-right: 6.5px;
	margin-top: 4px;
	width: auto;
	height: auto;
}

/* 进度文案样式 */
#loading-text {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  /* 定位在进度条正上方，距离进度条一定距离 */
  color: white; /* 白色文字，与黑色背景形成对比 */
  font-size: 13px; /* 响应式字体大小 */
  font-family: Arial, sans-serif;
  white-space: nowrap; /* 防止文字换行 */
  z-index: 2;
  text-shadow: none;
  /* 使用多层阴影模拟描边效果 (0,0,0,0.3) */
  text-shadow: 
    -1px -1px 0 rgba(45, 65, 150, 1),
     1px -1px 0 rgba(45, 65, 150, 1),
    -1px  1px 0 rgba(45, 65, 150, 1),
     1px  1px 0 rgba(45, 65, 150, 1);
}

#logo {
  position: absolute;              /* 绝对定位，相对于 #splash-box */
  left: 50%;                       /* 水平居中 */
  top: 20%;                        /* 调整垂直位置，这里是示例值 */
  transform: translate(-50%, -50%); /* 精确居中 */
  
  /* 背景图片 */
  background-image: url(start_logo.84b25.png); /* 替换成你的 logo 路径 */
  background-size: contain;         /* 自适应容器大小，保持比例 */
  background-repeat: no-repeat;     /* 不重复 */
  background-position: center;      /* 图片在容器中居中 */
  
  /* 大小设置 - 可以按需要调整 */
  width: 68vw;                      /* 宽度为视口宽度的 40% */
  height: auto;                     /* 高度自动按比例 */
  min-height: 148px;
}