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

.gt {
  box-sizing: border-box;
  width: min(240px, 86vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 16px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.gt__top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
}

.gt__ic {
  flex: 0 0 auto;
  color: #4cd4a6;
}

.gt__title {
  flex: 1 1 auto;
  font-size: 12px;
}

.gt__pct {
  font-size: 11px;
  font-weight: 800;
  color: #17141a;
}

.gt__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  overflow: hidden;
  margin: 0 0 16px;
}

.gt__fill {
  width: 100%;
  height: 100%;
  background: #4cd4a6;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 300ms ease-out;
}

.gt__steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 0;
}

.gt__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.gt__dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(23, 20, 26, 0.18);
  display: grid;
  place-items: center;
}

.gt__check {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4cd4a6;
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.gt__step.is-active .gt__check {
  opacity: 1;
  transform: scale(1);
}

.gt__label {
  font-size: 9px;
  color: rgba(23, 20, 26, 0.72);
  text-align: center;
}

.gt__step.is-active .gt__label {
  color: #17141a;
  font-weight: 700;
}

.gt__next {
  width: 100%;
  border: 0;
  background: #4cd4a6;
  color: #17141a;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 8px;
  border-radius: 12px;
  cursor: pointer;
}

.gt.is-demo .gt__fill {
  animation: gt-fill 3s ease-out infinite;
  transform-origin: left center;
}

@keyframes gt-fill {
  0% {
    transform: scaleX(0);
  }
  85% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
  }
}
.gt.is-demo .gt__step .gt__check {
  animation: gt-check 3s ease-out infinite;
}

.gt.is-demo .gt__step:nth-child(1) .gt__check {
  animation-delay: 0s;
}

.gt.is-demo .gt__step:nth-child(2) .gt__check {
  animation-delay: 0.55s;
}

.gt.is-demo .gt__step:nth-child(3) .gt__check {
  animation-delay: 1.1s;
}

.gt.is-demo .gt__step:nth-child(4) .gt__check {
  animation-delay: 1.65s;
}

@keyframes gt-check {
  0%, 15% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .gt {
    padding: 12px;
  }
  .gt__label {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gt.is-demo .gt__fill {
    animation: none !important;
  }
  .gt.is-demo .gt__step .gt__check {
    animation: none !important;
  }
  .gt__fill, .gt__check {
    transition: none;
  }
}
