*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: var(--color-background);
  font-family: var(--font-family-sans);
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: a clipped box is not a scroll container, so a decorative shape can
     never widen the layout viewport. A phone browser that widens the viewport to fit
     overflow renders the whole kiosk zoomed out and cut off, which is what happened here. */
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--color-background);
  overflow-x: clip;
}

button {
  min-width: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 0.22rem solid var(--color-focus);
  outline-offset: 0.2rem;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
