html {
  width: 100%;
  height: 100%;
  -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;
}

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;
  overflow: hidden;
  cursor: default;
  color: #d8e9ff;
  background:
    radial-gradient(
      circle at 50% 42%,
      #142044 0,
      #080e24 52%,
      #030713 100%
    );
  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  background: #070c1f;
}

#GameDiv.tierglow-desktop-frame {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(124, 205, 255, 0.18),
    0 24px 80px rgba(0, 0, 0, 0.48);
}

@media (any-hover: hover) and (any-pointer: fine) {
  #GameDiv {
    width: min(
      750px,
      calc(56.221889vh - 18px),
      calc(100vw - 32px)
    );
    height: auto;
    aspect-ratio: 750 / 1334;
  }
}

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