html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: system-ui, sans-serif;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas {
  display: block;
  touch-action: none;
  outline: none;
  image-rendering: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  z-index: 10;
  padding: 1em;
}

.overlay[hidden] {
  display: none;
}

#error {
  max-width: 36em;
  color: #f66;
}

.overlay button {
  font-size: 1.4em;
  padding: 0.5em 2em;
  margin: 0.5em;
  border: 0;
  border-radius: 999px;
  background: #ffcf33;
  color: #222;
  cursor: pointer;
}

#rotate {
  display: none;
  z-index: 20;
}

/* Phones and tablets held upright */
@media (orientation: portrait) and (pointer: coarse) {
  #rotate {
    display: flex;
  }
}

#bp-messages {
  position: fixed;
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.bp-message {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #ffcf33;
  border-radius: 8px;
  padding: 0.6em 1em;
  max-width: 30em;
  cursor: pointer;
}
