:root {
  --spot-x: 50vw;
  --spot-y: 50vh;
  --spot-size: 140px;
  --spot-feather: 90px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.stage {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.underlay {
  position: absolute;
  inset: 0;
  background: #fff;
  display: grid;
  place-items: center;
}

.underlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.terms {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.term {
  position: absolute;
  color: #000;
  letter-spacing: 0.01em;
  white-space: nowrap;
  user-select: none;
  transform: translate(-50%, -50%);
  animation-name: term-drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes term-drift {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }
  50% {
    transform: translate(-50%, -50%) translate3d(var(--dx, 0px), var(--dy, -10px), 0);
  }
  100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }
}

.logo {
  width: min(60vw, 420px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--spot-x) var(--spot-y),
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) var(--spot-size),
      rgba(0, 0, 0, 1) calc(var(--spot-size) + var(--spot-feather))
    );
  cursor: pointer;
  touch-action: none;
}

.popup {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.popup[hidden] {
  display: none;
}

.popup-card {
  width: min(520px, calc(100vw - 40px));
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 18px 18px 16px;
  text-align: left;
}

.popup-title {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 600;
}

.popup-text {
  margin: 0 0 10px;
  line-height: 1.45;
}

.popup-link {
  color: inherit;
  text-decoration: underline;
}

.popup-hint {
  margin: 12px 0 0;
  font-size: 12px;
}

@media (max-width: 520px) {
  :root {
    --spot-size: 110px;
    --spot-feather: 80px;
  }
}
