* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #1a1a1a;
  color: #e0e0e0;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: auto;              /* proportional scaling — no non-uniform stretch */
  image-rendering: pixelated; /* nearest-neighbor when CSS-scaled, keeps pixels crisp */
}

#status {
  position: fixed;
  top: 8px;
  left: 8px;
  font-size: 12px;
  color: #888;
}

#output {
  position: fixed;
  bottom: 8px;
  left: 8px;
  font-size: 12px;
  color: #aaa;
  max-height: 200px;
  overflow-y: auto;
}
