:root {
  color-scheme: dark;
  background: #0c1019;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(48, 69, 111, 0.2), transparent 38%),
    #0c1019;
}

body {
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
}

.game-shell {
  position: relative;
  width: min(100vw, calc(100vh * 0.5625));
  height: min(100vh, calc(100vw * 1.7777778));
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  background: #161c2b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: pointer;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
}

@media (max-aspect-ratio: 9 / 16) {
  .game-shell {
    width: 100vw;
    height: calc(100vw * 1.7777778);
  }
}

@media (min-aspect-ratio: 9 / 16) {
  .game-shell {
    width: calc(100vh * 0.5625);
    height: 100vh;
  }
}
