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 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  margin: 0;
  background-color: #fff;
}

#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: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(https://webcnstatic.yostar.net/bluearchive/ba-cn-hoshino-minigame/prod/bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.effect {
  position: absolute;
  left: 50%;
  top: calc(50% - 60px);
  transform: translate(-50%, -50%);
  width: 179.5px;
  height: 194.5px;
  background-image: url(https://webcnstatic.yostar.net/bluearchive/ba-cn-hoshino-minigame/prod/shake.png);
  background-repeat: repeat-x;
  overflow: hidden;
  animation: animate-loading 2s steps(17) infinite;
  z-index: 10;
}

.progress-bar {
  margin-top: 150px;
  min-width: 300px;
  width: 60vw;
  height: 36px;
  border-radius: 20px;
  border: solid 2px #4b70b6;
  background-color: #79baf0;
  z-index: 20;
}

.progress-bar .progress-inner {
  position: relative;
  margin: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 18px;
  background-color: #fffef9;
}

.progress-bar .progress-rate {
  display: block;
  position: absolute;
  margin: 2px;
  height: calc(100% - 4px);
  border-radius: 18px;
  background-image: url(https://webcnstatic.yostar.net/bluearchive/ba-cn-hoshino-minigame/prod/bar.png);
  transition: width 0.4s ease-in-out;
  animation: animate-stripes 1s linear infinite;
  box-sizing: border-box;
  max-width: calc(100% - 4px);
}

.text {
  margin-top: 10px;
  width: 119px;
  height: 47px;
  z-index: 20;
}

@keyframes animate-stripes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 0;
  }
}

@keyframes animate-loading {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -3051.5px 0;
  }
}
