:root {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  font-family: monospace;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep the 1024x640 logical canvas at its aspect ratio, scaled to fit. */
#game {
  width: min(100vw, calc(100vh * 1.6));
  height: min(100vh, calc(100vw / 1.6));
  image-rendering: pixelated;
  background: #020a02;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  display: block;
}
