:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #231d48;
  touch-action: none;
}

body {
  display: grid;
  place-items: center;
}

#game-shell {
  position: relative;
  width: min(100vw, 56.25vh);
  height: min(100vh, 177.78vw);
  max-width: 450px;
  max-height: 800px;
  overflow: hidden;
  background: #8ad6ff;
  box-shadow: 0 0 40px #0d0a2477;
}

#game,
#game canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#controls {
  position: absolute;
  inset: auto 0 18px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 0 22px;
  pointer-events: none;
}

#controls button {
  width: 82px;
  height: 64px;
  border: 2px solid #fff9;
  border-radius: 24px;
  color: white;
  background: #392b6fb8;
  box-shadow: 0 6px 0 #211846aa;
  font-size: 28px;
  font-weight: 900;
  pointer-events: auto;
  user-select: none;
}

#controls button:active,
#controls button.active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #211846aa;
  background: #7553c9db;
}

@media (pointer: fine) {
  #controls {
    opacity: .72;
  }
}
