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

.sp {
  position: relative;
  padding-bottom: 88px;
  color: #17141a;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 18px;
  user-select: none;
  -webkit-user-select: none;
}

.sp__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.sp__item--menu {
  position: relative;
}

.sp__sep {
  display: inline-flex;
  margin: 0 4px;
  color: rgba(23, 20, 26, 0.38);
}

.sp__sep svg {
  display: block;
}

.sp__crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(23, 20, 26, 0.72);
  font-family: inherit;
  font-size: inherit;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__crumb:hover {
  background: rgba(47, 109, 246, 0.12);
  color: #2f6df6;
}

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

.sp__crumb--btn {
  cursor: pointer;
}

.sp__crumb--now {
  color: #17141a;
  font-weight: 800;
  cursor: default;
}

.sp__crumb--now:hover {
  background: transparent;
  color: #17141a;
}

.sp__crumb--btn svg {
  display: block;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__item--menu.is-open .sp__crumb--btn {
  background: rgba(47, 109, 246, 0.12);
  color: #2f6df6;
}

.sp__item--menu.is-open .sp__crumb--btn svg {
  transform: rotate(180deg);
}

.sp__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 2;
  min-width: 112px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(23, 20, 26, 0.14);
  border-radius: 12px;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__item--menu.is-open .sp__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sp__opt {
  display: block;
}

.sp__mlink {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: rgba(23, 20, 26, 0.78);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sp__mlink:hover,
.sp__mlink:focus-visible {
  outline: none;
  background: #2f6df6;
  color: #fff7e6;
}

.sp__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 2px solid #fff7e6;
  border-radius: 50%;
  background: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, 92px);
}

.sp.is-demo .sp__cursor {
  opacity: 1;
  animation-name: sp-cursor;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes sp-cursor {
  0%, 2% {
    transform: translate(4px, 92px);
  }
  26%, 40% {
    transform: translate(110px, 20px);
  }
  72% {
    transform: translate(112px, 58px);
  }
  86%, 100% {
    transform: translate(4px, 92px);
  }
}
.sp.is-demo .sp__menu {
  visibility: visible;
  pointer-events: none;
  transition: none;
  animation-name: sp-open;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes sp-open {
  0%, 26% {
    opacity: 0;
    transform: translateY(-6px);
  }
  40%, 72% {
    opacity: 1;
    transform: translateY(0);
  }
  86%, 100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.sp.is-demo .sp__crumb--btn {
  animation-name: sp-btn;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes sp-btn {
  0%, 24% {
    background-color: rgba(47, 109, 246, 0);
  }
  26%, 84% {
    background-color: rgba(47, 109, 246, 0.14);
  }
  86%, 100% {
    background-color: rgba(47, 109, 246, 0);
  }
}
.sp.is-demo .sp__opt:nth-child(2) .sp__mlink {
  animation-name: sp-pick;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes sp-pick {
  0%, 60% {
    background-color: rgba(47, 109, 246, 0);
    color: rgba(23, 20, 26, 0.78);
  }
  62%, 78% {
    background-color: #2f6df6;
    color: #fff7e6;
  }
  80%, 100% {
    background-color: rgba(47, 109, 246, 0);
    color: rgba(23, 20, 26, 0.78);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp.is-demo .sp__cursor,
  .sp.is-demo .sp__menu,
  .sp.is-demo .sp__crumb--btn,
  .sp.is-demo .sp__opt:nth-child(2) .sp__mlink {
    animation: none !important;
  }
  .sp__menu, .sp__crumb, .sp__crumb--btn svg {
    transition: none;
  }
  .sp.is-demo .sp__menu {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .sp {
    padding-bottom: 84px;
  }
  .sp__crumb {
    padding: 4px;
  }
  .sp__sep {
    margin: 0;
  }
  .sp__menu {
    min-width: 96px;
  }
}
