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

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

.ff {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}

.ff__art {
  display: block;
  width: clamp(176px, 60vw, 320px);
  height: auto;
}

.ff__line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ff__line--a {
  stroke: #fff7e6;
  opacity: 0.82;
}

.ff__line--b {
  stroke: #2f6df6;
}

.ff__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ff__seed {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 247, 230, 0.8);
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
}

.ff__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff7e6;
  color: #17141a;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  cursor: pointer;
}

.ff__btn:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.ff__ic {
  width: 12px;
  height: 12px;
  flex: none;
}

.ff.is-demo .ff__line {
  animation-name: ffFlow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.7, 0, 0.85, 0.4);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 62ms);
}

.ff.is-draw .ff__line {
  animation-name: ffDraw;
  animation-duration: 600ms;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 30ms);
}

@keyframes ffFlow {
  0% {
    stroke-dashoffset: 1;
    animation-timing-function: cubic-bezier(0.7, 0, 0.85, 0.4);
  }
  40% {
    stroke-dashoffset: 0;
    animation-timing-function: linear;
  }
  52% {
    stroke-dashoffset: 0;
    animation-timing-function: ease-out;
  }
  86% {
    stroke-dashoffset: -1;
  }
  100% {
    stroke-dashoffset: -1;
  }
}
@keyframes ffDraw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 340px) {
  .ff {
    gap: 8px;
  }
  .ff__ic {
    width: 10px;
    height: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff.is-demo .ff__line,
  .ff.is-draw .ff__line {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}
