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

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

.tf__title {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.tf__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.tf__notch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tf__step {
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.tf__notch[aria-current=step] .tf__step {
  color: #0a4fe8;
}

.tf__track {
  height: 4px;
  border-radius: 999px;
  background-color: rgba(23, 20, 26, 0.14);
  overflow: hidden;
}

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

.tf__body {
  position: relative;
  height: 116px;
}

.tf__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
}

.tf:not(.is-demo)[data-step="1"] .tf__panel[data-panel="1"],
.tf:not(.is-demo)[data-step="2"] .tf__panel[data-panel="2"],
.tf:not(.is-demo)[data-step="3"] .tf__panel[data-panel="3"] {
  opacity: 1;
}

.tf:not(.is-demo)[data-step="1"] .tf__fill[data-fill="1"],
.tf:not(.is-demo)[data-step="2"] .tf__fill[data-fill="1"],
.tf:not(.is-demo)[data-step="2"] .tf__fill[data-fill="2"],
.tf:not(.is-demo)[data-step="3"] .tf__fill[data-fill="1"],
.tf:not(.is-demo)[data-step="3"] .tf__fill[data-fill="2"],
.tf:not(.is-demo)[data-step="3"] .tf__fill[data-fill="3"] {
  transform: scaleX(1);
}

.tf__panel[data-panel="1"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tf__qr {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  color: #17141a;
  background-color: rgba(23, 20, 26, 0.06);
  background-image: repeating-linear-gradient(90deg, rgba(23, 20, 26, 0.82) 0 6px, rgba(23, 20, 26, 0) 6px 12px), repeating-linear-gradient(0deg, rgba(23, 20, 26, 0.82) 0 6px, rgba(23, 20, 26, 0) 6px 12px);
}

.tf__qrdot {
  display: inline-flex;
  padding: 4px;
  border-radius: 50%;
  background-color: #fff7e6;
  color: #17141a;
}

.tf__qrdot svg {
  display: block;
}

.tf__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tf__lead {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.tf__ic {
  display: inline-flex;
  flex: 0 0 auto;
  color: #2f6df6;
}

.tf__ic svg {
  display: block;
}

.tf__go {
  box-sizing: border-box;
  margin: 0;
  padding: 0 16px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background-color: #0a4fe8;
  color: #fff7e6;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tf__go--wide {
  width: 100%;
  padding: 0;
}

.tf__go:focus-visible {
  outline: 3px solid #17141a;
  outline-offset: 2px;
}

.tf__panel[data-panel="2"] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.tf__label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.56);
}

.tf__input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(23, 20, 26, 0.24);
  border-radius: 8px;
  background-color: #ffffff;
  color: #17141a;
  text-align: center;
  letter-spacing: 5px;
  font-size: 16px;
  line-height: 34px;
  font-weight: 700;
  font-family: inherit;
}

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

.tf__panel[data-panel="3"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tf__shield {
  display: inline-flex;
  color: #4cd4a6;
}

.tf__shield svg {
  display: block;
}

.tf__done {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.tf__codes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf__chip {
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 4px;
  background-color: rgba(23, 20, 26, 0.1);
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tf.is-demo .tf__panel {
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}

.tf.is-demo .tf__panel[data-panel="1"] {
  animation-name: tf-cut1, tf-rise1;
}

.tf.is-demo .tf__panel[data-panel="2"] {
  animation-name: tf-cut2, tf-rise2;
}

.tf.is-demo .tf__panel[data-panel="3"] {
  animation-name: tf-cut3, tf-rise3;
}

@keyframes tf-cut1 {
  0% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  86% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tf-cut2 {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes tf-cut3 {
  0% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  86% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes tf-rise1 {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(0);
  }
  31% {
    transform: translateY(10px);
  }
  86% {
    transform: translateY(10px);
  }
  94% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes tf-rise2 {
  0% {
    transform: translateY(10px);
  }
  30% {
    transform: translateY(10px);
  }
  38% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(0);
  }
  61% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(10px);
  }
}
@keyframes tf-rise3 {
  0% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(10px);
  }
  68% {
    transform: translateY(0);
  }
  86% {
    transform: translateY(0);
  }
  87% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(10px);
  }
}
.tf.is-demo .tf__fill {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.tf.is-demo .tf__fill[data-fill="1"] {
  animation-name: tf-fill1;
}

.tf.is-demo .tf__fill[data-fill="2"] {
  animation-name: tf-fill2;
}

.tf.is-demo .tf__fill[data-fill="3"] {
  animation-name: tf-fill3;
}

@keyframes tf-fill1 {
  0% {
    transform: scaleX(0);
  }
  4% {
    transform: scaleX(0);
  }
  26% {
    transform: scaleX(1);
  }
  84% {
    transform: scaleX(1);
  }
  86% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes tf-fill2 {
  0% {
    transform: scaleX(0);
  }
  34% {
    transform: scaleX(0);
  }
  56% {
    transform: scaleX(1);
  }
  84% {
    transform: scaleX(1);
  }
  86% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes tf-fill3 {
  0% {
    transform: scaleX(0);
  }
  64% {
    transform: scaleX(0);
  }
  82% {
    transform: scaleX(1);
  }
  84% {
    transform: scaleX(1);
  }
  86% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
.tf.is-demo .tf__notch .tf__step {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.tf.is-demo .tf__notch[data-notch="1"] .tf__step {
  animation-name: tf-cur1;
}

.tf.is-demo .tf__notch[data-notch="2"] .tf__step {
  animation-name: tf-cur2;
}

.tf.is-demo .tf__notch[data-notch="3"] .tf__step {
  animation-name: tf-cur3;
}

@keyframes tf-cur1 {
  0% {
    color: #0a4fe8;
  }
  30% {
    color: rgba(23, 20, 26, 0.72);
  }
  86% {
    color: #0a4fe8;
  }
  100% {
    color: #0a4fe8;
  }
}
@keyframes tf-cur2 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  30% {
    color: #0a4fe8;
  }
  60% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes tf-cur3 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  60% {
    color: #0a4fe8;
  }
  86% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@media (max-width: 340px) {
  .tf {
    padding: 8px;
  }
  .tf__title {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 16px;
  }
  .tf__bar {
    gap: 4px;
    margin: 0 0 8px;
  }
  .tf__step {
    font-size: 9px;
    line-height: 12px;
  }
  .tf__body {
    height: 96px;
  }
  .tf__panel[data-panel="1"] {
    gap: 8px;
  }
  .tf__qr {
    width: 62px;
    height: 62px;
  }
  .tf__lead {
    font-size: 12px;
    line-height: 16px;
  }
  .tf__go {
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 16px;
  }
  .tf__go--wide {
    padding: 0;
  }
  .tf__panel[data-panel="2"] {
    gap: 4px;
  }
  .tf__label {
    font-size: 10px;
    line-height: 12px;
  }
  .tf__input {
    height: 30px;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 4px;
  }
  .tf__panel[data-panel="3"] {
    gap: 4px;
  }
  .tf__done {
    font-size: 12px;
    line-height: 15px;
  }
  .tf__chip {
    font-size: 9px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tf.is-demo .tf__panel,
  .tf.is-demo .tf__fill,
  .tf.is-demo .tf__notch .tf__step {
    animation: none !important;
  }
  .tf__fill {
    transition: none !important;
  }
  .tf.is-demo .tf__panel[data-panel="1"] {
    opacity: 1 !important;
  }
  .tf.is-demo .tf__fill[data-fill="1"] {
    transform: scaleX(1) !important;
  }
}
