/* The whole page is the game: no scrolling, zooming, pull-to-refresh or text selection anywhere,
   so a swipe that starts or wanders outside the picture can't move the page. */
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  flex: none;
  touch-action: none;
}

#out {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  padding: 6px;
  max-height: 100%;
  overflow: auto;
  color: #ffb050;
  background: rgba(0, 0, 0, 0.8);
  font: 12px monospace;
  white-space: pre-wrap;
}
