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: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(https://webusstatic.yo-star.com/stellasora/stellasora-us-clawdoll-minigame/prod/bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  z-index: 100;
}

.title {
  margin-bottom: 10vh;
  width: 30vw;
  max-width: 36rem;
  min-width: 16rem;
  height: auto;
  z-index: 10;
}

.progress-bar {
  position: relative;
  margin-bottom: 4vh;
  width: 58vw;
  max-width: 48rem;
  min-width: 18rem;
  height: 3vh;
  min-height: 2rem;
  max-height: 4.8rem;
  border-radius: 20px;
  border: solid 4px #7ac95e;
  background-color: #ffffff;
  z-index: 20;
}

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

.progress-rate {
  display: block;
  position: relative;
  height: 100%;
  border-radius: 20px;
  background-color: #b8eea0;
  z-index: 1;
}

.progress-rate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 165 / 42;
  background-image: url(./cycle.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  z-index: 2;
}

.q-character {
  position: absolute;
  width: 10vw;
  max-width: 222px;
  min-width: 100px;
  height: auto;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.loading-text {
  margin-bottom: 6vh;
  width: 10vw;
  max-width: 217px;
  min-width: 100px;
  height: auto;
  z-index: 10;
}

@media only screen and (max-width: 768px) {
  .title,
  .loading-text {
    margin-bottom: 4vh;
  }

  .progress-bar {
    height: 2vh;
  }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {
  .title,
  .loading-text {
    margin-bottom: 4vh;
  }

  .progress-bar {
    height: 2vh;
  }
}
