:root {
  color-scheme: dark;
  --bg: #020713;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(39, 95, 151, 0.25), transparent 34%),
    radial-gradient(circle at 50% 88%, rgba(255, 63, 31, 0.17), transparent 36%),
    var(--bg);
  font-family: "Courier New", ui-monospace, monospace;
}

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));
  min-width: 280px;
  min-height: 498px;
  overflow: hidden;
  background: #07111f;
  border: 1px solid rgba(115, 220, 255, 0.32);
  box-shadow:
    0 0 18px rgba(24, 193, 255, 0.25),
    0 0 60px rgba(0, 0, 0, 0.72),
    inset 0 0 30px rgba(24, 193, 255, 0.08);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
  outline: none;
}

@media (max-aspect-ratio: 9/16) {
  #game-shell {
    width: 100vw;
    height: 100vh;
    border: 0;
  }
}
