html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #eceff1;
  font-family: system-ui, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

#screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  /* Every gesture goes to Android Auto: no browser scrolling, zooming or long-press menu. */
  touch-action: none;
  -webkit-touch-callout: none;
}

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
  text-align: center;
}

#overlay[hidden] {
  display: none;
}

#message {
  margin: 0 2rem;
  max-width: 40rem;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.4;
}

#message:empty {
  display: none;
}

#fullscreen {
  pointer-events: auto;
  font: inherit;
  font-size: 1.5rem;
  padding: 0.75em 1.5em;
  border: 2px solid #ff8a80;
  border-radius: 999px;
  background: #263238;
  color: #eceff1;
}

#stats {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 70%);
  color: #b9f6ca;
  font: 0.9rem/1.3 ui-monospace, monospace;
  pointer-events: none;
}
