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

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

.hs {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 12px;
  width: clamp(288px, 94vw, 432px);
}

.hs__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.hs__eyebrow {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffd23f;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(9px, 2vw, 11px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hs__title {
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(16px, 4.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hs__lead {
  margin: 0;
  color: #56505e;
  font-weight: 500;
  font-size: clamp(10px, 2.4vw, 13px);
  line-height: 1.35;
}

.hs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hs__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(10px, 2.2vw, 12px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.hs__btn--primary {
  border-color: #9791c9;
  background: #9791c9;
  color: #ffffff;
}

.hs__btn--ghost {
  border-color: #17141a;
  color: #17141a;
}

.hs__btn:focus-visible,
.hs__cue:focus-visible {
  outline: 2px solid #9791c9;
  outline-offset: 4px;
}

.hs__art {
  --rise: 22px;
  position: relative;
  width: 156px;
  height: 126px;
}

.hs__card {
  position: absolute;
  width: 130px;
  height: 72px;
  border-radius: 16px;
  background: #d8d6eb;
}

.hs__card--c {
  left: 26px;
  top: 0;
}

.hs__card--b {
  left: 13px;
  top: 16px;
  background: #9791c9;
}

.hs__card--a {
  left: 0;
  top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px;
  border: 2px solid #17141a;
  background: #ffffff;
}

.hs__bar {
  border-radius: 4px;
  background: #d8d6eb;
}

.hs__bar--t {
  width: 56%;
  height: 8px;
  background: #17141a;
}

.hs__bar--m {
  width: 88%;
  height: 6px;
}

.hs__bar--k {
  width: 34%;
  height: 8px;
  border-radius: 999px;
  background: #9791c9;
}

.hs__cue {
  grid-column: 1/-1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 12px;
  border: 2px solid #17141a;
  border-radius: 999px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(9px, 2vw, 11px);
  line-height: 1.3;
  cursor: pointer;
}

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

.hs.is-demo .hs__card--b {
  animation-delay: 0.12s;
}

.hs.is-demo .hs__card--a {
  animation-delay: 0.24s;
}

.hs.is-demo .hs__cue {
  animation-name: hsCue;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes hsRise {
  0% {
    transform: translateY(var(--rise));
  }
  18%, 60% {
    transform: translateY(0);
  }
  88%, 100% {
    transform: translateY(var(--rise));
  }
}
@keyframes hsCue {
  0%, 100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-6px);
  }
  40% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-3px);
  }
  80% {
    transform: translateY(0);
  }
}
.hs.is-replay .hs__card {
  animation-name: hsEnter;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

.hs.is-replay .hs__card--b {
  animation-delay: 0.1s;
}

.hs.is-replay .hs__card--a {
  animation-delay: 0.2s;
}

@keyframes hsEnter {
  from {
    transform: translateY(var(--rise));
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .hs {
    column-gap: 8px;
    row-gap: 8px;
    width: 100%;
  }
  .hs__copy {
    gap: 4px;
  }
  .hs__art {
    --rise: 14px;
    width: 104px;
    height: 86px;
  }
  .hs__card {
    width: 88px;
    height: 48px;
  }
  .hs__card--c {
    left: 16px;
  }
  .hs__card--b {
    left: 8px;
    top: 12px;
  }
  .hs__card--a {
    top: 24px;
    gap: 4px;
    padding: 8px;
  }
  .hs__bar--t {
    height: 6px;
  }
  .hs__bar--m {
    height: 4px;
  }
  .hs__bar--k {
    height: 6px;
  }
  .hs__btn {
    padding: 4px 8px;
  }
  .hs__cue {
    padding: 0 8px;
  }
  .hs__cue svg {
    width: 11px;
    height: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs__card, .hs__cue {
    animation: none !important;
    transform: none !important;
  }
}
