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

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

.ltd-viewport {
  width: min(260px, 80vw);
  height: 168px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  position: relative;
}

.ltd-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ltd-viewport.is-open .ltd-track {
  transform: translateX(-50%);
}

.ltd-list, .ltd-detail {
  width: 50%;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 16px;
}

.ltd-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ltd-list__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: rgba(23, 20, 26, 0.04);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #17141a;
  cursor: pointer;
  font-family: inherit;
}

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

.ltd-list__row svg {
  width: 14px;
  height: 14px;
  color: #2f6df6;
}

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

.ltd-detail h2 {
  margin: 0;
  font-size: 15px;
  color: #17141a;
}

.ltd-detail p {
  margin: 0;
  font-size: 12px;
  color: rgba(23, 20, 26, 0.65);
}

.ltd-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  border: 0;
  background: none;
  color: #0a4fe8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

.ltd-detail__back:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 2px;
}

.ltd-detail__back svg {
  width: 14px;
  height: 14px;
}

.ltd-viewport.is-demo .ltd-track {
  animation: ltd-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes ltd-loop {
  0%, 10% {
    transform: translateX(0);
  }
  45%, 65% {
    transform: translateX(-50%);
  }
  95%, 100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ltd-track {
    transition: none;
  }
}
