:root {
  color-scheme: dark;
  --background: 0;
  --foreground: 255;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  min-height: 100svh;
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: center;
  pointer-events: none;
}

.centerpiece {
  display: grid;
  justify-items: center;
}

.sorry {
  padding: 0.15em 0.2em 0.22em;
  border: 0;
  color: rgb(var(--foreground), var(--foreground), var(--foreground));
  background: transparent;
  font:
    200 clamp(0.92rem, 1.55vw, 1.22rem) / 1
    "Helvetica Neue", "SF Pro Display", "Segoe UI", Helvetica, Arial,
    sans-serif;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  cursor: pointer;
  opacity: 0.94;
  pointer-events: auto;
  transition:
    color 500ms linear,
    opacity 400ms ease,
    filter 400ms ease;
  animation: waiting 4.6s ease-in-out infinite;
  will-change: transform, color, opacity, letter-spacing;
}

.sorry:hover {
  opacity: 1;
}

.sorry:focus-visible {
  outline: 1px solid rgb(var(--foreground), var(--foreground), var(--foreground));
  outline-offset: 12px;
}

.sorry.is-playing {
  animation: none;
}

.sorry.is-loading {
  animation: loading 1.1s ease-in-out infinite;
  cursor: wait;
}

.hint {
  margin-top: 0.85rem;
  color: rgb(var(--foreground), var(--foreground), var(--foreground));
  font:
    200 0.56rem / 1
    "Helvetica Neue", "SF Pro Display", "Segoe UI", Helvetica, Arial,
    sans-serif;
  letter-spacing: 0.24em;
  opacity: 0.34;
  transition:
    color 500ms linear,
    opacity 650ms ease,
    transform 650ms ease;
}

.hint.is-hidden {
  opacity: 0;
  transform: translateY(3px);
}

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

@keyframes waiting {
  0%,
  100% {
    opacity: 0.62;
    filter: blur(0);
    transform: scale(0.995);
  }

  50% {
    opacity: 1;
    filter: blur(0.25px);
    transform: scale(1.008);
  }
}

@keyframes loading {
  0%,
  100% {
    opacity: 0.28;
  }

  50% {
    opacity: 0.9;
  }
}

@media (max-width: 640px) {
  .sorry {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sorry {
    animation: none;
  }
}
