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);
}

.sp {
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(272px, 92vw);
  color: #17141a;
  text-align: center;
}

.sp * {
  box-sizing: border-box;
}

.sp__mark {
  position: relative;
  width: 60px;
  height: 60px;
  transform: scale(1);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2f6df6;
}

.sp__box {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #17141a;
  box-shadow: 0 0 0 4px #ffffff;
}

.sp__dots {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.sp__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6df6;
  opacity: 0.35;
}

.sp__msg {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.sp__enter {
  margin: 0;
  padding: 8px 16px;
  border: 2px solid #17141a;
  border-radius: 999px;
  background: none;
  color: #17141a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__enter:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.sp__enter:active {
  transform: scale(0.96);
}

.sp__enter[disabled] {
  opacity: 0.4;
  cursor: default;
}

.sp.is-ready .sp__dots {
  visibility: hidden;
}

.sp.is-ready .sp__mark {
  transform: scale(1);
}

@keyframes sp-breath {
  0% {
    transform: scale(1);
  }
  44% {
    transform: scale(1.1);
  }
  88%, 100% {
    transform: scale(1);
  }
}
@keyframes sp-dot {
  0%, 10% {
    transform: translateY(0);
    opacity: 0.35;
  }
  22% {
    transform: translateY(-7px);
    opacity: 1;
  }
  40%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
}
.sp.is-demo .sp__mark {
  animation-name: sp-breath;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.sp.is-demo .sp__dot {
  animation-name: sp-dot;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}
.sp.is-demo .sp__dot:nth-child(1) {
  animation-delay: 0ms;
}
.sp.is-demo .sp__dot:nth-child(2) {
  animation-delay: 200ms;
}
.sp.is-demo .sp__dot:nth-child(3) {
  animation-delay: 400ms;
}

@media (max-width: 340px) {
  .sp {
    gap: 8px;
    width: min(232px, 96vw);
  }
  .sp__mark {
    width: 44px;
    height: 44px;
  }
  .sp__box {
    width: 18px;
    height: 18px;
  }
  .sp__dot {
    width: 6px;
    height: 6px;
  }
  .sp__msg {
    font-size: 12px;
  }
  .sp__enter {
    padding: 4px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp.is-demo .sp__mark,
  .sp.is-demo .sp__dot {
    animation: none !important;
  }
  .sp.is-demo .sp__mark {
    transform: scale(1) !important;
  }
  .sp.is-demo .sp__dot {
    transform: none !important;
    opacity: 0.35 !important;
  }
  .sp__mark,
  .sp__enter {
    transition: none !important;
  }
}
