@charset "UTF-8";
html, body {
  margin: 0;
  overflow: hidden;
}

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

.tt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 40px;
}

.tt__dock {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: #17141a;
}

.tt__btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), background-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tt__btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.tt__btn:hover,
.tt__btn:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

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

.tt__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tt__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 8px;
  border-radius: 4px;
  background: #17141a;
  color: #ffd23f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform-origin: bottom center;
  transform: translateX(-50%) scaleY(0);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 140ms steps(1, end);
}

.tt__btn:hover .tt__tip,
.tt__btn:focus-visible .tt__tip {
  opacity: 1;
  transform: translateX(-50%) scaleY(1);
}

.tt__cap {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.7);
}

/* 자동 재생 — 이름표가 왼쪽부터 차례로 올라온다. 사라짐은 컷(steps) */
.is-demo .tt__tip {
  animation-name: tt-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.is-demo .tt__btn:nth-child(2) .tt__tip {
  animation-delay: 0.34s;
}

.is-demo .tt__btn:nth-child(3) .tt__tip {
  animation-delay: 0.68s;
}

.is-demo .tt__btn:nth-child(4) .tt__tip {
  animation-delay: 1.02s;
}

.is-demo .tt__btn:nth-child(5) .tt__tip {
  animation-delay: 1.36s;
}

.is-demo .tt__btn {
  animation-name: tt-lit;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.is-demo .tt__btn:nth-child(2) {
  animation-delay: 0.34s;
}

.is-demo .tt__btn:nth-child(3) {
  animation-delay: 0.68s;
}

.is-demo .tt__btn:nth-child(4) {
  animation-delay: 1.02s;
}

.is-demo .tt__btn:nth-child(5) {
  animation-delay: 1.36s;
}

@keyframes tt-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
  3% {
    opacity: 1;
    transform: translateX(-50%) scaleY(0);
  }
  9% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
  26% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
  26.01% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }
}
@keyframes tt-lit {
  0% {
    color: rgba(255, 255, 255, 0.6);
    background: none;
  }
  3% {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
  26% {
    color: rgba(255, 255, 255, 0.6);
    background: none;
  }
  100% {
    color: rgba(255, 255, 255, 0.6);
    background: none;
  }
}
@media (max-width: 340px) {
  .tt__btn {
    width: 44px;
    height: 44px;
  }
  .tt {
    padding-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-demo .tt__tip,
  .is-demo .tt__btn {
    animation-name: none;
  }
  .tt__tip,
  .tt__btn {
    transition: none;
  }
}
