:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #f7f7ff;
  font-family: "Courier New", monospace;
}

body {
  display: grid;
  place-items: center;
  overscroll-behavior: none;
  touch-action: none;
}

.shell {
  position: relative;
  width: min(100vw, 177.78vh);
  max-width: 1920px;
  aspect-ratio: 16 / 9;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Cpath fill='%23f7f7ff' d='M11 0h2v7h-2zM11 17h2v7h-2zM0 11h7v2H0zM17 11h7v2h-7zM10 10h4v4h-4z'/%3E%3Cpath fill='%23000000' d='M11 11h2v2h-2z'/%3E%3C/svg%3E") 12 12, crosshair;
  border: 4px solid #34ff5a;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

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