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

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

.st {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 392px;
}

.st__rail {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.92);
}

.st__nav {
  width: 100%;
}

.st__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st__item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.st__item[hidden] {
  display: none;
}

.st__sep {
  display: inline-flex;
  flex: none;
  color: rgba(255, 247, 230, 0.45);
}

.st__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.18);
  color: #fff7e6;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st__link svg {
  flex: none;
}

.st__link:hover {
  background: rgba(255, 247, 230, 0.34);
  transform: translateY(-1px);
}

.st__link:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.st__link--now {
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  cursor: default;
}

.st__btns {
  display: flex;
  gap: 8px;
}

.st__btn {
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #fff7e6;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
}

.st__btn--ghost {
  background: rgba(255, 247, 230, 0.18);
  color: #17141a;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 230, 0.55);
}

.st__btn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

@keyframes st-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-28px);
    opacity: 0;
  }
}
@keyframes st-in {
  from {
    transform: translateX(28px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.st__item.is-out {
  animation: st-out 300ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.st__item.is-in {
  animation: st-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes st-slide {
  0%, 6% {
    transform: translateX(0);
    opacity: 1;
  }
  34% {
    transform: translateX(-28px);
    opacity: 0;
  }
  46% {
    transform: translateX(-28px);
    opacity: 0;
  }
  47% {
    transform: translateX(28px);
    opacity: 0;
  }
  58% {
    transform: translateX(28px);
    opacity: 0;
  }
  86%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.st.is-demo .st__item:nth-child(4),
.st.is-demo .st__item:nth-child(5) {
  animation-name: st-slide;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.st.is-demo .st__item:nth-child(5) {
  animation-delay: 0s;
}

.st.is-demo .st__item:nth-child(4) {
  animation-delay: 0.09s;
}

@media (max-width: 340px) {
  .st {
    gap: 8px;
  }
  .st__rail {
    height: 40px;
    padding: 0 4px;
    border-radius: 12px;
  }
  .st__list {
    gap: 0;
  }
  .st__item {
    gap: 0;
  }
  .st__link {
    padding: 0 4px;
    font-size: 11px;
    line-height: 16px;
    gap: 0;
  }
  .st__link svg {
    width: 11px;
    height: 11px;
  }
  .st__sep svg {
    width: 10px;
    height: 10px;
  }
  .st__btn {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st.is-demo .st__item {
    animation: none !important;
  }
  .st__item.is-out, .st__item.is-in {
    animation-duration: 1ms !important;
  }
  .st__link {
    transition: none;
  }
  .st__link:hover {
    transform: none;
  }
}
