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

.tb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.tb__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 12px);
  color: #17141a;
}

.tb__ico {
  width: 16px;
  height: 16px;
  color: #17141a;
}

.tb__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 900;
}

.tb__l {
  display: inline-block;
  font-size: clamp(44px, 12vw, 60px);
  line-height: 1;
  color: #17141a;
  transform-origin: 50% 50%;
  transform: translateY(calc(-18px * var(--j, 0))) scale(calc(1 + var(--j, 0) * 0.16));
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tb__legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 4px;
}

.tb__band {
  border-radius: 999px;
  padding: 0 8px;
  height: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: clamp(10px, 2.6vw, 11px);
  line-height: 1;
  color: #17141a;
  border: 2px solid rgba(23, 20, 26, 0.5);
}

.tb__band--low::before, .tb__band--mid::before, .tb__band--high::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.tb__band--low::before {
  background: #905a47;
}

.tb__band--mid::before {
  background: #17141a;
}

.tb__band--high::before {
  background: rgba(23, 20, 26, 0.38);
}

.tb__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.tb__play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: #17141a;
  color: #fff7e6;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1;
}

.tb__ico--pause {
  display: none;
}

.tb__play[aria-pressed=true] .tb__ico--play {
  display: none;
}

.tb__play[aria-pressed=true] .tb__ico--pause {
  display: inline-block;
}

.tb__play .tb__ico {
  color: #fff7e6;
}

.tb__level {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb__levelLabel {
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 11px);
  color: #17141a;
}

.tb__levelBox {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 20px;
  border-radius: 4px;
  padding: 0 4px;
  background: rgba(255, 247, 230, 0.3);
  color: #17141a;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1;
}

.tb__loop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
}

.tb__loop i {
  grid-area: 1/1;
  font-style: normal;
  visibility: hidden;
}

.tb.is-demo .tb__l {
  animation-name: tbJump;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--n) * 140ms);
  transition: none;
}

.tb.is-demo .tb__l:nth-child(1) {
  --n: 0;
}

.tb.is-demo .tb__l:nth-child(2) {
  --n: 1;
}

.tb.is-demo .tb__l:nth-child(3) {
  --n: 2;
}

.tb.is-demo .tb__l:nth-child(4) {
  --n: 3;
}

.tb.is-demo .tb__l:nth-child(5) {
  --n: 4;
}

.tb.is-demo .tb__l:nth-child(6) {
  --n: 5;
}

.tb.is-demo .tb__l:nth-child(7) {
  --n: 6;
}

@keyframes tbJump {
  0%, 8% {
    transform: translateY(0) scale(1);
  }
  16%, 30% {
    transform: translateY(-18px) scale(1.16);
  }
  44%, 100% {
    transform: translateY(0) scale(1);
  }
}
.tb.is-demo .tb__levelText {
  color: transparent;
}

.tb.is-demo .tb__loop {
  visibility: visible;
}

.tb.is-demo .tb__loop i {
  animation-name: tbBandName;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.tb.is-demo .tb__loop i:nth-child(1) {
  animation-delay: 0ms;
}

.tb.is-demo .tb__loop i:nth-child(2) {
  animation-delay: 666ms;
}

.tb.is-demo .tb__loop i:nth-child(3) {
  animation-delay: 1332ms;
}

@keyframes tbBandName {
  0%, 33% {
    visibility: visible;
  }
  34%, 100% {
    visibility: hidden;
  }
}
@media (max-width: 340px) {
  .tb {
    gap: 4px;
  }
  .tb__l {
    font-size: 34px;
  }
  .tb__foot {
    gap: 8px;
  }
  .tb__play {
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tb.is-demo .tb__l,
  .tb.is-demo .tb__loop i {
    animation: none !important;
  }
  .tb.is-demo .tb__levelText {
    color: #17141a !important;
  }
  .tb.is-demo .tb__loop {
    visibility: hidden !important;
  }
  .tb__l {
    transition: none !important;
  }
}
