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: #1c393a;

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

#BootScreen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 24px;
  background: radial-gradient(ellipse at 50% 25%, #f9f4dd, #d7e9d8 75%);
  color: #214e4d; box-sizing: border-box;
}
#BootScreen h1 { font-size: clamp(24px, 7.5vw, 34px); line-height: 1.2; margin: 12px 0 24px; letter-spacing: -.04em; }
.boot-eyebrow { margin: 25px 0 0; font-size: 11px; letter-spacing: .19em; color: #53796a; }
#BootStatus { font-size: 14px; max-width: 290px; line-height: 1.5; }
.boot-bag { position: relative; display: grid; place-items: center; width: 62px; height: 75px; background: #fff6dc; border: 2px solid #b3c5a6; border-radius: 5px 5px 12px 12px; box-shadow: 5px 6px 0 #accab7; }
.boot-bag::before { content: ''; position: absolute; top: -22px; width: 29px; height: 29px; border: 3px solid #507d65; border-bottom: none; border-radius: 16px 16px 0 0; }
.boot-bag span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5b664; color: #3e6454; font-weight: bold; }
.boot-dots { display: flex; gap: 7px; margin-top: 9px; }
.boot-dots i { width: 7px; height: 7px; border-radius: 50%; background: #428378; animation: breathe 1.2s ease-in-out infinite; }
.boot-dots i:nth-child(2) { animation-delay: .15s; background: #e7b05b; }
.boot-dots i:nth-child(3) { animation-delay: .3s; background: #df7180; }
#BootRetry { margin: 18px 0; padding: 12px 25px; border: 0; border-radius: 12px; background: #397d75; color: #fff9e8; font-size: 16px; cursor: pointer; }
@keyframes breathe { 50% { opacity: .35; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .boot-dots i { animation: none; } }
