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

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

.modal {
  box-sizing: border-box;
  width: min(100%, 232px);
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dbe4f0;
  box-shadow: 0 10px 24px rgba(23, 20, 26, 0.1);
  text-align: center;
  transform: translateY(0);
}

.stage.is-demo .modal {
  animation: rise 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ico {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: #2f6df6;
  rotate: 0deg;
}

.ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.t {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #17141a;
}

.s {
  margin: 4px 0 0;
  font-size: 12px;
  color: #475569;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
}

.dots i {
  display: block;
  position: relative;
  width: 20px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  transform: scaleX(0.4);
}

.stage.is-demo .dots i {
  animation-name: step, dot-pop;
  animation-duration: 2s;
  animation-timing-function: steps(1, end), linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1);
  animation-iteration-count: infinite;
}

.stage.is-demo .d2 {
  animation-delay: calc(2s / 3);
}

.stage.is-demo .d3 {
  animation-delay: calc(2s / 3 * 2);
}

.dots i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2f6df6;
  opacity: 0.35;
  transform: scaleX(0.4);
}

.stage.is-demo .dots i::after {
  animation-name: step;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.stage.is-demo .d2::after {
  animation-delay: calc(2s / 3);
}

.stage.is-demo .d3::after {
  animation-delay: calc(2s / 3 * 2);
}

.stage.is-demo .ico {
  animation: ico-pendulum 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite, ico-swing 2s linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1) infinite;
  transform-origin: 50% 0%;
  rotate: 0deg;
}

@keyframes ico-pendulum {
  0%, 6% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(-14deg);
  }
  38% {
    transform: rotate(10deg);
  }
  56% {
    transform: rotate(-6deg);
  }
  74% {
    transform: rotate(3deg);
  }
  88%, 100% {
    transform: rotate(0);
  }
}
@keyframes ico-swing {
  0% {
    rotate: 0deg;
  }
  14% {
    rotate: 5deg;
  }
  36% {
    rotate: -3.1deg;
  }
  56% {
    rotate: 1.75deg;
  }
  76% {
    rotate: -0.8deg;
  }
  90%, 100% {
    rotate: 0deg;
  }
}
@keyframes rise {
  0% {
    transform: translateY(18px);
    opacity: 0;
  }
  18% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes step {
  0% {
    transform: scaleX(1);
    background: #2f6df6;
  }
  33.33% {
    transform: scaleX(0.4);
    background: #cbd5e1;
  }
  100% {
    transform: scaleX(0.4);
    background: #cbd5e1;
  }
}
@keyframes dot-pop {
  0% {
    scale: 1;
  }
  5% {
    scale: 1.18;
  }
  13% {
    scale: 0.93;
  }
  21% {
    scale: 1.04;
  }
  29%, 100% {
    scale: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .modal {
    animation: none;
    transform: none;
    opacity: 1;
  }
  .stage.is-demo .dots i, .stage.is-demo .dots i::after {
    animation: none;
  }
  .stage.is-demo .ico {
    animation: none;
    rotate: 0deg;
  }
  .stage.is-demo .d1 {
    transform: scaleX(1);
    background: #2f6df6;
  }
  .stage.is-demo .dots i::after {
    opacity: 0;
  }
}
