:root {
  color-scheme: dark;
  background: #111214;
  color: #f0f0ed;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 240px; }

.stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 100svh;
  min-height: 240px;
  overflow: hidden;
}

.mark {
  display: block;
  width: min(200px, 48vw, 48svh);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

/* Keep the image's accessible name and layout after canvas takes over. */
.stage[data-ready] .mark { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  canvas { display: none; }
  .stage[data-ready] .mark { opacity: 1; }
}
