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

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

.tt {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.tt__field {
  position: relative;
  width: 100%;
  height: clamp(110px, 32vh, 160px);
  border: 3px solid #17141a;
  border-radius: 16px;
  background: #fff7e6;
}

.tt__ch {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 40px;
  color: #17141a;
  font-weight: 800;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  will-change: transform;
}

.tt__ch:nth-child(1) {
  color: #17141a;
}

.tt__ch:nth-child(2) {
  color: rgba(23, 20, 26, 0.84);
}

.tt__ch:nth-child(3) {
  color: rgba(23, 20, 26, 0.72);
}

.tt__ch:nth-child(4) {
  color: rgba(23, 20, 26, 0.72);
}

.tt__ch:nth-child(5) {
  color: rgba(23, 20, 26, 0.84);
}

.tt__hint {
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
}

.tt.is-demo .tt__ch {
  animation-name: ttWave;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.tt.is-demo .tt__ch:nth-child(1) {
  animation-delay: 0ms;
}

.tt.is-demo .tt__ch:nth-child(2) {
  animation-delay: 110ms;
  left: 24px;
  top: 12px;
}

.tt.is-demo .tt__ch:nth-child(3) {
  animation-delay: 220ms;
  left: 48px;
  top: 24px;
}

.tt.is-demo .tt__ch:nth-child(4) {
  animation-delay: 330ms;
  left: 72px;
  top: 4px;
}

.tt.is-demo .tt__ch:nth-child(5) {
  animation-delay: 440ms;
  left: 104px;
  top: 22px;
}

@keyframes ttWave {
  0% {
    transform: translate3d(36px, 96px, 0);
  }
  38%, 46% {
    transform: translate3d(196px, 30px, 0);
  }
  60%, 68% {
    transform: translate3d(120px, 72px, 0);
  }
  86%, 100% {
    transform: translate3d(36px, 96px, 0);
  }
}
@media (max-width: 340px) {
  .tt {
    gap: 8px;
  }
  .tt__field {
    height: clamp(96px, 28vh, 130px);
  }
  .tt__ch {
    width: 22px;
    height: 32px;
    font-size: 22px;
    line-height: 32px;
  }
  .tt.is-demo .tt__ch {
    animation-name: ttWaveNarrow;
  }
}
@keyframes ttWaveNarrow {
  0% {
    transform: translate3d(18px, 76px, 0);
  }
  38%, 46% {
    transform: translate3d(140px, 26px, 0);
  }
  60%, 68% {
    transform: translate3d(88px, 58px, 0);
  }
  86%, 100% {
    transform: translate3d(18px, 76px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt.is-demo .tt__ch {
    animation: none !important;
  }
  .tt.is-demo .tt__ch:nth-child(1) {
    transform: translate3d(64px, 56px, 0) !important;
  }
  .tt.is-demo .tt__ch:nth-child(2) {
    transform: translate3d(100px, 56px, 0) !important;
  }
  .tt.is-demo .tt__ch:nth-child(3) {
    transform: translate3d(136px, 56px, 0) !important;
  }
  .tt.is-demo .tt__ch:nth-child(4) {
    transform: translate3d(172px, 56px, 0) !important;
  }
  .tt.is-demo .tt__ch:nth-child(5) {
    transform: translate3d(208px, 56px, 0) !important;
  }
}
