html,
body {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #080808;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  -webkit-user-drag: none;
  -webkit-text-size-adjust: 100%;
}

html {
  position: fixed;
  inset: 0;
}

body {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden !important;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  background: #111;
  cursor: default;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  -webkit-user-drag: none;
}

@supports (height: 100svh) {
  body, canvas {
    height: 100svh;
    min-height: 100svh;
  }
}

@supports (height: 100dvh) {
  body, canvas {
    height: 100dvh;
    min-height: 100dvh;
  }
}

html, body, canvas, #game {
  overflow: hidden !important;
  -ms-touch-action: none;
  touch-action: none;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

canvas:focus {
  outline: none;
}
