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

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

.tt {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.tt__row {
  display: flex;
  gap: 4px;
  margin: 0;
}

.tt__box {
  display: block;
  overflow: hidden;
}

.tt__ch {
  display: block;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.15;
}

.tt__line {
  display: block;
  width: min(60%, 220px);
  height: 2px;
  background: #17141a;
  transform-origin: 0 50%;
}

.tt__mbox {
  overflow: hidden;
}

.tt__sub {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.5;
}

.tt__go {
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.tt__skip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 4px 12px;
  border: 1px solid rgba(23, 20, 26, 0.32);
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

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

.tt__ch {
  animation-name: ttChOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: calc(var(--i) * 0.05s);
  animation-fill-mode: both;
}

.tt__line {
  animation-name: ttLineOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.46s;
  animation-fill-mode: both;
}

.tt__sub {
  animation-name: ttMaskOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.54s;
  animation-fill-mode: both;
}

.tt__go {
  animation-name: ttMaskOnce;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.64s;
  animation-fill-mode: both;
}

@keyframes ttChOnce {
  from {
    transform: translateY(112%);
  }
  to {
    transform: none;
  }
}
@keyframes ttLineOnce {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes ttMaskOnce {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}
.tt.is-demo .tt__ch {
  animation-name: ttChLoop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 0.05s);
}

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

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

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

@keyframes ttChLoop {
  0% {
    transform: translateY(112%);
  }
  16%, 62% {
    transform: none;
    animation-timing-function: linear;
  }
  78%, 100% {
    transform: translateY(112%);
  }
}
@keyframes ttLineLoop {
  0%, 12% {
    transform: scaleX(0);
  }
  34%, 62% {
    transform: scaleX(1);
    animation-timing-function: linear;
  }
  74%, 100% {
    transform: scaleX(0);
  }
}
@keyframes ttSubLoop {
  0%, 34% {
    transform: translateY(110%);
  }
  48%, 62% {
    transform: none;
    animation-timing-function: linear;
  }
  74%, 100% {
    transform: translateY(110%);
  }
}
@keyframes ttGoLoop {
  0%, 40% {
    transform: translateY(110%);
  }
  54%, 64% {
    transform: none;
    animation-timing-function: linear;
  }
  76%, 100% {
    transform: translateY(110%);
  }
}
.tt.is-done .tt__ch, .tt.is-done .tt__line, .tt.is-done .tt__sub, .tt.is-done .tt__go {
  animation: none;
}

.tt.is-done .tt__skip {
  display: none;
}

@media (max-width: 340px) {
  .tt {
    gap: 8px;
  }
  .tt__ch {
    font-size: 24px;
  }
  .tt__line {
    width: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt .tt__ch, .tt .tt__line, .tt .tt__sub, .tt .tt__go {
    animation: none !important;
  }
}
