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%;
}

#GameDiv {
  position: relative;
}

#gp-loading {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17%;
  z-index: 30;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.28s ease;
}

#gp-loading.gp-loading-hide {
  opacity: 0;
}

#gp-loading-pct {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

#gp-loading-track {
  width: min(960px, 72vw);
  height: 36px;
  box-sizing: border-box;
  padding: 4px 10px;
  background: url("/custom/loading/bar-bg.png") center / 100% 100% no-repeat;
}

#gp-loading-fill {
  display: block !important;
  height: 100%;
  width: 0%;
  border-radius: 16px;
  background: url("/custom/loading/bar-fill.png") left center / 100% 100% no-repeat;
}

: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);
}
