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

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

@property --h {
  syntax: "<length>";
  inherits: true;
  initial-value: 63px;
}
.ah {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid rgb(79.9843137255%, 65.9607843137%, 21.5137254902%);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.ah__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.ah__seg {
  height: 4px;
  border-radius: 999px;
  background: rgb(92.7215686275%, 76.3921568627%, 23.5450980392%);
  overflow: hidden;
}

.ah__seg-f {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f6df6;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ah__seg.is-done .ah__seg-f {
  transform: scaleX(1);
}

.ah__box {
  --h: 63px;
  display: grid;
  align-items: start;
  height: var(--h);
  overflow: hidden;
  transition: --h 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ah__panel {
  display: grid;
  grid-area: 1/1;
  align-content: start;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
}

.ah__panel.is-on {
  opacity: 1;
  visibility: visible;
}

.ah__t {
  margin: 0;
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ah__f {
  box-sizing: border-box;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgb(79.9843137255%, 65.9607843137%, 21.5137254902%);
  border-radius: 8px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.3;
}

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

.ah__note {
  margin: 0;
  color: rgb(43.5921568627%, 41.6705882353%, 40.5960784314%);
  font-size: 11px;
  line-height: 1.25;
}

.ah__foot {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.ah__btn {
  margin: 0;
  padding: 4px 12px;
  border: 1px solid rgb(79.9843137255%, 65.9607843137%, 21.5137254902%);
  border-radius: 999px;
  background: transparent;
  color: rgb(36.3137254902%, 34.5490196078%, 34.1960784314%);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.ah__btn--go {
  border-color: #0a4fe8;
  background: #0a4fe8;
  color: #fff7e6;
}

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

@keyframes ah-h {
  0%, 18% {
    --h: 63px;
  }
  30%, 46% {
    --h: 87px;
  }
  58%, 72% {
    --h: 70px;
  }
  86%, 100% {
    --h: 63px;
  }
}
@keyframes ah-p1 {
  0%, 17% {
    opacity: 1;
    visibility: visible;
  }
  18%, 71% {
    opacity: 0;
    visibility: hidden;
  }
  72%, 100% {
    opacity: 1;
    visibility: visible;
  }
}
@keyframes ah-p2 {
  0%, 17% {
    opacity: 0;
    visibility: hidden;
  }
  18%, 45% {
    opacity: 1;
    visibility: visible;
  }
  46%, 100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes ah-p3 {
  0%, 45% {
    opacity: 0;
    visibility: hidden;
  }
  46%, 71% {
    opacity: 1;
    visibility: visible;
  }
  72%, 100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes ah-seg2 {
  0%, 17% {
    transform: scaleX(0);
  }
  18% {
    transform: scaleX(0);
  }
  30%, 71% {
    transform: scaleX(1);
  }
  84%, 100% {
    transform: scaleX(0);
  }
}
@keyframes ah-seg3 {
  0%, 45% {
    transform: scaleX(0);
  }
  46% {
    transform: scaleX(0);
  }
  58%, 71% {
    transform: scaleX(1);
  }
  84%, 100% {
    transform: scaleX(0);
  }
}
.ah.is-demo .ah__box, .ah.is-demo .ah__seg-f {
  transition: none;
}
.ah.is-demo .ah__box {
  animation-name: ah-h;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ah.is-demo .ah__panel[data-step="1"] {
  animation-name: ah-p1;
}
.ah.is-demo .ah__panel[data-step="2"] {
  animation-name: ah-p2;
}
.ah.is-demo .ah__panel[data-step="3"] {
  animation-name: ah-p3;
}
.ah.is-demo .ah__panel {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ah.is-demo .ah__seg[data-seg="2"] .ah__seg-f {
  animation-name: ah-seg2;
}
.ah.is-demo .ah__seg[data-seg="3"] .ah__seg-f {
  animation-name: ah-seg3;
}
.ah.is-demo .ah__seg[data-seg="2"] .ah__seg-f,
.ah.is-demo .ah__seg[data-seg="3"] .ah__seg-f {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .ah {
    padding: 8px;
    font-size: 11px;
  }
  .ah__btn {
    padding: 0 8px;
  }
  .ah__note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah.is-demo .ah__box,
  .ah.is-demo .ah__panel,
  .ah.is-demo .ah__seg-f {
    animation: none !important;
    transition: none !important;
  }
  .ah.is-demo .ah__box {
    --h: 87px !important;
  }
  .ah.is-demo .ah__panel[data-step="1"],
  .ah.is-demo .ah__panel[data-step="3"] {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .ah.is-demo .ah__panel[data-step="2"] {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .ah.is-demo .ah__seg[data-seg="1"] .ah__seg-f,
  .ah.is-demo .ah__seg[data-seg="2"] .ah__seg-f {
    transform: scaleX(1) !important;
  }
  .ah.is-demo .ah__seg[data-seg="3"] .ah__seg-f {
    transform: scaleX(0) !important;
  }
}
