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

.rm {
  position: relative;
  width: min(280px, 92vw);
  list-style: none;
  margin: 0;
  padding: 0 0 0 32px;
}

.rm::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(23, 20, 26, 0.12);
}

.rm__step {
  position: relative;
  padding: 8px 0;
  cursor: pointer;
  outline: none;
}

.rm__step:focus-visible .rm__q {
  color: #17141a;
}

.rm__marker {
  position: absolute;
  left: -32px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(185, 160, 255, 0.18);
  color: rgba(23, 20, 26, 0.4);
  transition: color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rm__step.is-active .rm__marker {
  background: #b9a0ff;
  color: #ffffff;
  transform: scale(1.08);
}

.rm__q {
  margin: 0;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
  transition: color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rm__t {
  margin: 4px 0 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  font-family: inherit;
  color: #17141a;
}

.rm__step.is-active .rm__q {
  color: #17141a;
}

.rm__spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  margin-left: -32px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(185, 160, 255, 0.35);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .rm__spot, .rm__marker, .rm__q {
    transition: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .rm {
    padding-left: 24px;
    width: min(230px, 90vw);
  }
  .rm::before {
    left: 8px;
  }
  .rm__step {
    padding: 4px 0;
  }
  .rm__marker {
    left: -24px;
    top: 3px;
    width: 18px;
    height: 18px;
  }
  .rm__marker svg {
    width: 11px;
    height: 11px;
  }
  .rm__q {
    font-size: 9px;
  }
  .rm__t {
    font-size: 10px;
    line-height: 1.2;
  }
  .rm__spot {
    width: 18px;
    height: 18px;
    margin-left: -24px;
  }
}
