:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #080d16;
  color: #e5f0fb;
}

body {
  box-sizing: border-box;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right))
    max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  overscroll-behavior: none;
}

main {
  display: grid;
  width: min(100%, 960px);
  justify-items: center;
  gap: 0.5rem;
}

canvas {
  display: block;
  width: 100%;
  width: min(100%, max(0px, calc((100dvh - 7rem) * 16 / 9)));
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0f1623;
  image-rendering: pixelated;
  touch-action: none;
}

#status {
  margin: 0;
}

.controls {
  display: flex;
  justify-content: space-between;
  width: min(100%, 24rem);
  gap: 1rem;
}

button {
  width: min(45%, 8rem);
  min-height: 3rem;
  border: 1px solid #4a6883;
  border-radius: 0.75rem;
  background: #17263a;
  color: #e5f0fb;
  font: 600 1.5rem system-ui, sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

button[data-held] {
  background: #46debc;
  color: #0f1623;
}

button:focus-visible {
  outline: 2px solid #e5f0fb;
  outline-offset: 2px;
}
