html,
body {
  margin: 0;
  height: 100%;
  background: #0b0716;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, #1a1030 0%, #0b0716 70%);
}

#screen {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(120, 80, 255, 0.25);
  outline: none;
  background: #000;
}

#touch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: none;
}

body.touch #touch {
  display: block;
}

#touch .zone {
  position: absolute;
  pointer-events: auto;
}

/* Thumbs rest on these and hammer them: no scrolling or zooming, and no text selection, callout menu or tap flash. */
#screen,
#touch,
#touch .zone,
#touch button {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* The zone takes the touch and input.js picks the nearest button, so the buttons themselves are only drawn. */
#touch button {
  position: absolute;
  box-sizing: border-box;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  background: rgba(20, 12, 40, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font: bold 28px/1 monospace;
  padding: 0;
  pointer-events: none;
  transition: transform 60ms;
}

#touch button.active {
  background: rgba(255, 210, 63, 0.55);
  border-color: #ffd23f;
  transform: scale(0.94);
}
