body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #fafafa;
}

main {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 0.5rem;
}

/* The canvas has a fixed 640x400 logical size; CSS scales it to fit. */
#playfield {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 400;
  image-rendering: pixelated;
}
