html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.pd-wrap {
  position: relative;
  display: inline-block;
  font: 800 clamp(24px, 8vw, 38px)/1.2 "Space Mono", "Courier New", monospace;
  color: #2f6df6;
}

.pd-dots {
  display: block;
  letter-spacing: 0.12em;
}

.pd-real {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.9);
  letter-spacing: 0.04em;
}

@keyframes pd-hide {
  0%, 18% {
    opacity: 1;
    transform: scale(1);
  }
  48%, 100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
@keyframes pd-show {
  0%, 18% {
    opacity: 0;
    transform: scale(0.9);
  }
  48%, 78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
.pd-wrap.is-demo .pd-dots {
  animation: pd-hide 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.pd-wrap.is-demo .pd-real {
  animation: pd-show 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pd-dots, .pd-wrap.is-demo .pd-dots {
    animation: none !important;
    opacity: 0 !important;
  }
  .pd-real, .pd-wrap.is-demo .pd-real {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
