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

.tp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 164px;
  justify-content: center;
}

.tp:focus-visible {
  outline: 2px solid #b9a0ff;
  outline-offset: 2px;
  border-radius: 12px;
}

.tp__drop {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.tp__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(185, 160, 255, 0.16);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(185, 160, 255, 0.82);
  transform: scale(0);
  opacity: 0;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease-out;
}

.tp__thumb.is-pop {
  transform: scale(1);
  opacity: 1;
}

.tp__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tp__hint {
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 247, 230, 0.82);
}

.tp__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.14);
  overflow: hidden;
}

.tp__fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 999px;
  background: #b9a0ff;
}

.tp__bar {
  display: flex;
  justify-content: flex-end;
}

.tp__meta {
  font-weight: 500;
  font-size: 10px;
  color: rgba(255, 247, 230, 0.6);
}

@keyframes tpPop {
  0%, 8% {
    opacity: 0;
    transform: scale(0);
  }
  14% {
    opacity: 1;
    transform: scale(1.18);
    animation-timing-function: ease-out;
  }
  20% {
    transform: scale(1);
  }
  84% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes tpFillLoop {
  0%, 20% {
    transform: scaleX(0);
  }
  60% {
    transform: scaleX(1);
  }
  84% {
    transform: scaleX(1);
  }
  90%, 100% {
    transform: scaleX(0);
  }
}
.is-demo .tp__thumb {
  animation-name: tpPop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-iteration-count: infinite;
}

.is-demo .tp__fill {
  animation-name: tpFillLoop;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .tp__thumb {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-demo .tp__thumb, .is-demo .tp__fill {
    animation: none !important;
  }
  .is-demo .tp__thumb {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  .is-demo .tp__fill {
    transform: scaleX(0.7) !important;
  }
}
