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

.st {
  display: grid;
  justify-items: start;
  gap: 12px;
  width: min(360px, 90vw);
}

.st__stack {
  display: flex;
  align-items: center;
  padding: 4px;
}

.st__stack > * + * {
  margin-left: -12px;
}

.st__av {
  position: relative;
  z-index: calc(4 - var(--i));
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 2px solid #17141a;
  border-radius: 50%;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st__av:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.st__av--1 {
  background: #7c90be;
}

.st__av--2 {
  background: #9791c9;
}

.st__av--3 {
  background: #479082;
}

.st__av--4 {
  background: #ab5488;
}

.st__more {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 2px solid #17141a;
  border-radius: 50%;
  background: #3b4a63;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.st__more:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.st.is-open .st__av,
.st.is-open .st__more {
  transform: translateX(calc(var(--i) * 12px));
}

.st__line {
  margin: 0;
  color: #b6b0c0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}

.st__folded {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st__row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff7e6;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}

.st__row[hidden] {
  display: none;
}

.st__mini {
  display: grid;
  place-items: center;
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff7e6;
  font-weight: 700;
  font-size: 9px;
  line-height: 1;
}

.st__mini--5 {
  background: #c2361a;
}

.st__mini--6 {
  background: #3b4a63;
}

.st__mini--7 {
  background: #7c90be;
}

.st.is-demo .st__av,
.st.is-demo .st__more {
  animation-name: stSpread;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-delay: calc(var(--i) * 45ms);
  animation-fill-mode: backwards;
}

@keyframes stSpread {
  0% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(calc(var(--i) * 12px));
  }
  78% {
    transform: translateX(calc(var(--i) * 12px));
  }
  90% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .st {
    gap: 8px;
  }
  .st__line {
    font-size: 12px;
  }
  .st__row {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st__av, .st__more {
    animation: none !important;
    transition: none !important;
  }
}
