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

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 14px;
  padding: 20px 26px 20px 40px;
  font: 800 20px/1 inherit;
  color: #17141a;
  background: #fff7e6;
  cursor: pointer;
}

.arrow {
  position: relative;
  width: 26px;
  height: 16px;
  display: block;
}

.arrow__line, .arrow__head {
  position: absolute;
  display: block;
  background: currentColor;
}

.arrow__line {
  left: 0;
  top: 7px;
  width: 100%;
  height: 2.5px;
  transform-origin: left;
  transform: scaleX(0.55);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.arrow__head {
  right: 0;
  top: 2px;
  width: 12px;
  height: 12px;
  background: transparent;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover .arrow__line, .btn:focus-visible .arrow__line {
  transform: scaleX(1);
}

.btn:hover .arrow__head, .btn:focus-visible .arrow__head {
  transform: rotate(45deg) translate(5.6px, -5.6px);
}

.btn.is-demo .arrow__line {
  animation: line-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.btn.is-demo .arrow__head {
  animation: head-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes line-loop {
  0%, 20% {
    transform: scaleX(0.55);
  }
  45%, 70% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0.55);
  }
}
@keyframes head-loop {
  0%, 20% {
    transform: rotate(45deg);
  }
  45%, 70% {
    transform: rotate(45deg) translate(5.6px, -5.6px);
  }
  100% {
    transform: rotate(45deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .arrow__line, .arrow__head {
    transition: none;
    animation: none !important;
  }
}
