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

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

.ht__cap {
  margin: 0;
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 12px;
  background: #17141a;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.4;
  color: #fff7e6;
}

.ht__bar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding-bottom: 40px;
}

.ht__btn {
  position: relative;
  border: 0;
  cursor: pointer;
  background: #fff7e6;
  color: #17141a;
  border-radius: 12px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.4;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ht__btn:focus-visible {
  outline: 3px solid #17141a;
  outline-offset: 2px;
}

.ht__btn.is-hit {
  transform: translateY(2px);
}

.ht__label {
  pointer-events: none;
}

.ht__tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  margin-left: -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  box-sizing: border-box;
  background: #17141a;
  border-radius: 8px;
  padding: 4px 8px;
  visibility: hidden;
  transform: translateY(4px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ht__cap1 {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 247, 230, 0.36);
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-family: inherit;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  padding: 0 4px;
}

.ht__ico {
  width: 12px;
  height: 12px;
}

.ht__btn:hover .ht__tip,
.ht__btn:focus-visible .ht__tip {
  visibility: visible;
  transform: translateY(0);
}

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

.ht.is-demo .ht__btn:nth-child(1) .ht__tip {
  animation-delay: 0ms;
}

.ht.is-demo .ht__btn:nth-child(2) .ht__tip {
  animation-delay: 660ms;
}

.ht.is-demo .ht__btn:nth-child(3) .ht__tip {
  animation-delay: 1320ms;
}

@keyframes htTip {
  0% {
    visibility: visible;
    transform: translateY(4px);
  }
  8%, 32% {
    visibility: visible;
    transform: translateY(0);
  }
  33%, 100% {
    visibility: hidden;
    transform: translateY(0);
  }
}
.ht.is-demo .ht__btn {
  animation-name: htLift;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

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

.ht.is-demo .ht__btn:nth-child(2) {
  animation-delay: 660ms;
}

.ht.is-demo .ht__btn:nth-child(3) {
  animation-delay: 1320ms;
}

@keyframes htLift {
  0% {
    transform: translateY(0);
  }
  8%, 30% {
    transform: translateY(-2px);
  }
  33%, 100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .ht__bar {
    gap: 4px;
    padding-bottom: 36px;
  }
  .ht__btn {
    padding: 8px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht.is-demo .ht__tip,
  .ht.is-demo .ht__btn {
    animation: none !important;
  }
  .ht__tip, .ht__btn {
    transition: none !important;
  }
}
