html {
  -ms-touch-action: none;
  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 {
  position: fixed !important;
  bottom: 80px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60% !important;
  max-width: 400px !important;
  z-index: 99999 !important;
  display: none !important;
  pointer-events: none !important;
  background: transparent !important;
}

/* Cocos 引擎加载文字样式 */
#splash .label,
#splash .progress-bar + div,
#splash > div:last-child {
  color: #00a3fb !important;
  -webkit-text-stroke: 2px #ffffff !important;
  text-stroke: 2px #ffffff !important;
  paint-order: stroke fill !important;
  font-weight: 500 !important;
}

/* 进度条背景 */
.progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  background-color: rgba(26, 26, 26, 0.8);
  border-radius: 7px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 进度条填充 */
.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background-color: #34c2e3;
  border-radius: 5px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(52, 194, 227, 0.6);
}

/* 条纹动画效果 */
.stripes span {
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 30px 30px;
  animation: animate-stripes 1s linear infinite;
}

@keyframes animate-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 0;
  }
}
/******************end**********/
