html {
  line-height: 0;
}

html,body {
  height: 100%;
}
  
body {
  background-color: black;
  padding:0;
  margin:0;
  text-align:center;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar {
  display: none;
}
  
.game_wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.game_wrapper > .game_canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

input {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#web-notice {
  margin: 8px 0;
  padding: 10px 18px;
  color: white;
  background: #242424ed;
  border-radius: 6px;
  font: 15px/1.6 sans-serif;
  pointer-events: none;
}
noscript { color: white; font: 18px/1.6 sans-serif; }

#web-recovery {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  width: min(540px, 92vw);
  color: #fff;
  font: 16px/1.6 sans-serif;
  pointer-events: none;
}
#web-recovery section {
  padding: 12px 18px;
  margin-top: 8px;
  background: #242424f5;
  border-radius: 6px;
  pointer-events: auto;
}
#web-recovery p { margin: 0 0 8px; }
#web-recovery button {
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
}

@media (aspect-ratio: 16/9),(min-aspect-ratio: 16/9) {
  .game_wrapper > .game_canvas {
    width: auto;
    height: 100vh;
  }

  canvas {
    width: auto;
    height: 100vh;
  }
}

@media (max-aspect-ratio: 16/9) {
  .game_wrapper > .game_canvas {
    width: 100vw;
    height: auto;
  }

  canvas {
    width: 100vw;
    height: auto;
  }
}
