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

.wiz {
  width: min(300px, 90vw);
}

.wiz__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wiz__window {
  position: relative;
  height: clamp(96px, 48vh, 148px);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  overflow: hidden;
}

.wiz__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wiz__panel--1 {
  transform: translateX(0);
}

.wiz__panel--2 {
  transform: translateX(100%);
  opacity: 0;
}

.wiz__step {
  margin: 0;
  padding: 4px 8px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.14);
  font-weight: 700;
  font-size: 11px;
  font-family: inherit;
  color: #0a4fe8;
}

.wiz__q {
  margin: 0;
  font-weight: 800;
  font-size: clamp(15px, 4.4vw, 18px);
  line-height: 1.35;
  font-family: inherit;
  color: #17141a;
}

#wiz-1:checked ~ .wiz__window .wiz__panel--1 {
  transform: translateX(0);
  opacity: 1;
}

#wiz-1:checked ~ .wiz__window .wiz__panel--2 {
  transform: translateX(100%);
  opacity: 0;
}

#wiz-2:checked ~ .wiz__window .wiz__panel--1 {
  transform: translateX(-100%);
  opacity: 0;
}

#wiz-2:checked ~ .wiz__window .wiz__panel--2 {
  transform: translateX(0);
  opacity: 1;
}

.wiz__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.wiz__dots {
  display: flex;
  gap: 8px;
  padding: 0 4px;
}

.wiz__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.18);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#wiz-1:checked ~ .wiz__foot .wiz__dot:nth-child(1),
#wiz-2:checked ~ .wiz__foot .wiz__dot:nth-child(2) {
  background: #2f6df6;
  transform: scale(1.5);
}

.wiz__nav {
  padding: 4px 16px;
  border-radius: 12px;
  border: 2px solid rgba(23, 20, 26, 0.2);
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  color: #17141a;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wiz__nav--next {
  margin-left: auto;
  background: #17141a;
  border-color: #17141a;
  color: #ffffff;
}

.wiz__nav:active {
  transform: scale(0.94);
}

.wiz.is-demo .wiz__panel--1 {
  animation: p1-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wiz.is-demo .wiz__panel--2 {
  animation: p2-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wiz.is-demo .wiz__dot:nth-child(1) {
  animation: d1-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.wiz.is-demo .wiz__dot:nth-child(2) {
  animation: d2-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes p1-loop {
  0%, 10% {
    transform: translateX(0);
    opacity: 1;
  }
  40%, 60% {
    transform: translateX(-100%);
    opacity: 0;
  }
  90%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes p2-loop {
  0%, 10% {
    transform: translateX(100%);
    opacity: 0;
  }
  40%, 60% {
    transform: translateX(0);
    opacity: 1;
  }
  90%, 100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes d1-loop {
  0%, 10% {
    transform: scale(1.5);
    background: #2f6df6;
  }
  40%, 60% {
    transform: scale(1);
    background: rgba(23, 20, 26, 0.18);
  }
  90%, 100% {
    transform: scale(1.5);
    background: #2f6df6;
  }
}
@keyframes d2-loop {
  0%, 10% {
    transform: scale(1);
    background: rgba(23, 20, 26, 0.18);
  }
  40%, 60% {
    transform: scale(1.5);
    background: #2f6df6;
  }
  90%, 100% {
    transform: scale(1);
    background: rgba(23, 20, 26, 0.18);
  }
}
@media (max-width: 360px) {
  .wiz__window {
    height: 96px;
  }
  .wiz__panel {
    padding: 8px;
    gap: 4px;
  }
  .wiz__q {
    font-size: 13px;
  }
  .wiz__foot {
    margin-top: 8px;
    gap: 8px;
  }
  .wiz__nav {
    padding: 4px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wiz__panel, .wiz__dot, .wiz__nav {
    transition: none;
  }
  .wiz.is-demo .wiz__panel,
  .wiz.is-demo .wiz__dot {
    animation: none;
  }
}
