  html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    -ms-touch-action: none;
    touch-action: none;
  }

  #preload {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 1;
    transition: all 0.3s;
  }
  
  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: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    /* padding-top: var(--safe-top);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left); */
    border: 0;
    margin: 0;
  
    cursor: default;
    color: #888;
    background-color: #000;
  
    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%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    /* margin-top: -var(--safe-top);
    margin-right: -var(--safe-right);
    margin-bottom: -var(--safe-bottom);
    margin-left: -var(--safe-left); */
  }
  
  :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);
  }
  