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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;

  font-family: var(--font-body);
  font-weight: 400;

  background: var(--color-bg);
  color: var(--color-text);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--pb-grain-opacity, 0.24);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.34) 0 1px, transparent 1.3px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.28) 0 1.1px, transparent 1.5px),
    radial-gradient(circle at 35% 75%, rgba(0, 0, 0, 0.26) 0 0.9px, transparent 1.2px),
    radial-gradient(circle at 65% 60%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 55% 15%, rgba(0, 0, 0, 0.18) 0 1.2px, transparent 1.5px);
  background-size: 15px 15px, 21px 21px, 12px 12px, 19px 19px, 27px 27px;
  background-position: 0 0, 4px 7px, 2px 1px, 9px 3px, 6px 11px;
  mix-blend-mode: overlay;
  animation: global-grain-drift 180ms steps(2) infinite;
}

html.map-grain-off body::after {
  content: none;
  animation: none;
}

html.effects-lite body::after {
  opacity: 0.12;
  animation-duration: 260ms;
}

html.effects-off body::after {
  content: none;
  animation: none;
}

@keyframes global-grain-drift {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-1%, 1%);
  }

  50% {
    transform: translate(1%, -1%);
  }

  75% {
    transform: translate(-0.5%, 0.5%);
  }

  100% {
    transform: translate(0, 0);
  }
}

button,
input,
textarea,
select {
  font: inherit;
}
