html {
  -ms-touch-action: none;
  touch-action: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #050b0a;
}

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 {
    -webkit-appearance: none;
    margin: 0;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background:
    radial-gradient(circle at 50% 46%, rgba(39, 232, 176, 0.13) 0, rgba(10, 33, 28, 0.08) 30%, transparent 62%),
    radial-gradient(circle at 14% 18%, rgba(31, 173, 210, 0.09) 0, transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(118, 88, 255, 0.07) 0, transparent 32%),
    linear-gradient(145deg, #040908 0%, #081512 48%, #030807 100%);

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  overflow: hidden;
}

canvas {
  background-color: transparent;
}

#GameDiv, #Cocos3dGameContainer {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw;
  min-height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background: transparent;
  contain: layout size paint;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(30deg, rgba(93, 232, 193, 0.14) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(150deg, rgba(93, 232, 193, 0.10) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(93, 232, 193, 0.06) 0 1px, transparent 1px 83px);
  mask-image: radial-gradient(ellipse at center, transparent 0 30%, #000 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0 30%, #000 72%);
}

body::after {
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.72);
}

#GameDiv {
  z-index: 1;
}

#GameCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

: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);
}

@media (max-width: 899px), (max-aspect-ratio: 4/5) {
  html,
  body,
  #GameDiv,
  #Cocos3dGameContainer {
    background: #08110f;
  }

  body::before,
  body::after {
    display: none;
  }
}
