html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* щоб не було скролу */
  background: black; /* якщо потрібно */
  touch-action: none;
  user-select: none;
  overscroll-behavior: none;
}

body {
  margin: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
  overscroll-behavior: none;
}

canvas {
  position: absolute;
  touch-action: none;
  display: block;
  -webkit-user-select: none; 
  -webkit-touch-callout: none;
}

#gameUICanvas{
  z-index: 9;
}