:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #101319;
}

main {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

canvas {
  /* Logical canvas is 598x664 (ratio ~0.9006); scale down on small viewports. */
  width: min(598px, calc(94vh * 0.9006), 97vw);
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  image-rendering: auto;
  user-select: none;
  touch-action: none;
}
