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);
}

html, body { background: #1b1a2e; }
#boot { position: fixed; inset: 0; z-index: 10; background: #1b1a2e; transition: opacity .4s; pointer-events: none; }
#boot .b-bg { position: absolute; inset: 0; background: url(boot.jpg) center/cover no-repeat; }
#boot .b-logo { position: absolute; left: 50%; top: 9%; width: 78vw; max-width: 420px; aspect-ratio: 620/313;
  transform: translateX(-50%); background: url(boot-logo.png) center/contain no-repeat; }
#boot .b-bar { position: absolute; left: 12%; right: 12%; bottom: 9%; height: 10px; border-radius: 6px;
  background: rgba(20, 16, 30, .65); border: 2px solid #3b2a1e; overflow: hidden; }
#boot .b-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e9b54a, #ffe39a); transition: width .2s; }
#boot .b-tip { position: absolute; left: 0; right: 0; bottom: calc(9% + 22px); text-align: center; color: #fff6dc;
  font: 14px/1 "PingFang SC", sans-serif; text-shadow: 0 1px 2px #000; letter-spacing: 2px; }
