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

.wt {
  width: min(252px, 86vw);
}

.wt__tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.wt__pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 68px;
  height: 28px;
  background: #2f6df6;
  border-radius: 999px;
  transform: translateX(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wt__tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 68px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  line-height: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 220ms steps(1, end);
}

.wt__tab.is-on {
  color: #fff;
}

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

.wt__view {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  touch-action: pan-y;
}

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

.wt__panel:nth-child(1) {
  background: rgba(47, 109, 246, 0.16);
}

.wt__panel:nth-child(2) {
  background: rgba(255, 158, 187, 0.14);
}

.wt__panel:nth-child(3) {
  background: rgba(76, 212, 166, 0.14);
}

.wt__panel {
  box-sizing: border-box;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.wt__num {
  font-size: 24px;
  line-height: 26px;
  font-weight: 800;
  color: #fff7e6;
  font-variant-numeric: tabular-nums;
}

.wt__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 148px;
  height: 44px;
}

.wt__bars i {
  display: block;
  flex: 1;
  background: #2f6df6;
  border-radius: 4px 4px 0 0;
}

.wt__bars i:nth-child(2n) {
  background: #ff9ebb;
}

.wt__cap {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.wt.is-demo .wt__track {
  animation: wt-slide 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes wt-slide {
  0%, 14% {
    transform: translateX(0);
  }
  24%, 40% {
    transform: translateX(-100%);
  }
  50%, 66% {
    transform: translateX(-200%);
  }
  90%, 100% {
    transform: translateX(0);
  }
}
.wt.is-demo .wt__pill {
  animation: wt-pill 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes wt-pill {
  0%, 14% {
    transform: translateX(0);
  }
  24%, 40% {
    transform: translateX(72px);
  }
  50%, 66% {
    transform: translateX(144px);
  }
  90%, 100% {
    transform: translateX(0);
  }
}
.wt.is-demo .wt__tab {
  transition: none;
}

.wt.is-demo .wt__tab:nth-child(2) {
  animation: wt-t0 2s steps(1, end) infinite;
}

.wt.is-demo .wt__tab:nth-child(3) {
  animation: wt-t1 2s steps(1, end) infinite;
}

.wt.is-demo .wt__tab:nth-child(4) {
  animation: wt-t2 2s steps(1, end) infinite;
}

@keyframes wt-t0 {
  0%, 23% {
    color: #fff;
  }
  24%, 89% {
    color: rgba(255, 255, 255, 0.55);
  }
  90%, 100% {
    color: #fff;
  }
}
@keyframes wt-t1 {
  0%, 23% {
    color: rgba(255, 255, 255, 0.55);
  }
  24%, 49% {
    color: #fff;
  }
  50%, 100% {
    color: rgba(255, 255, 255, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt.is-demo .wt__track,
  .wt.is-demo .wt__pill,
  .wt.is-demo .wt__tab {
    animation: none !important;
  }
  .wt__track, .wt__pill {
    transition: none;
  }
}
@keyframes wt-t2 {
  0%, 49% {
    color: rgba(255, 255, 255, 0.55);
  }
  50%, 89% {
    color: #fff;
  }
  90%, 100% {
    color: rgba(255, 255, 255, 0.55);
  }
}
