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

.fp {
  width: min(300px, 86vw);
}

.fp__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fp__nav {
  position: relative;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.25);
  padding-bottom: 8px;
}

.fp__tab {
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 14px);
  line-height: 1;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.85);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#fp-1:checked ~ .fp__nav label[for=fp-1],
#fp-2:checked ~ .fp__nav label[for=fp-2],
#fp-3:checked ~ .fp__nav label[for=fp-3] {
  color: #17141a;
}

.fp__panels {
  position: relative;
  display: grid;
  margin-top: 16px;
  min-height: 40px;
}

.fp__panel {
  grid-area: 1/1;
  margin: 0;
  color: #17141a;
  font-weight: 400;
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.5;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}

#fp-1:checked ~ .fp__panels .fp__panel--1,
#fp-2:checked ~ .fp__panels .fp__panel--2,
#fp-3:checked ~ .fp__panels .fp__panel--3 {
  opacity: 1;
  pointer-events: auto;
}

.fp.is-demo .fp__panel--1 {
  animation: fp-loop-1-inertia 2s ease-out infinite;
}

.fp.is-demo .fp__panel--2 {
  animation: fp-loop-2-inertia 2s ease-out infinite;
}

.fp.is-demo .fp__panel--3 {
  animation: fp-loop-3-inertia 2s ease-out infinite;
}

@keyframes fp-loop-1-inertia {
  0%, 15% {
    opacity: 1;
    transform: translateY(0);
  }
  22% {
    transform: translateY(-1px);
  }
  30%, 100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}
@keyframes fp-loop-2-inertia {
  0%, 30% {
    opacity: 0;
    transform: translateY(8px);
  }
  42% {
    transform: translateY(-2px);
  }
  45%, 63% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    transform: translateY(-1px);
  }
  78%, 100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}
@keyframes fp-loop-3-inertia {
  0%, 63% {
    opacity: 0;
    transform: translateY(8px);
  }
  75% {
    transform: translateY(-2px);
  }
  78%, 96% {
    opacity: 1;
    transform: translateY(0);
  }
  98% {
    transform: translateY(-1px);
  }
  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fp__panel {
    transition: none;
  }
  .fp.is-demo .fp__panel--1,
  .fp.is-demo .fp__panel--2,
  .fp.is-demo .fp__panel--3 {
    animation: none !important;
  }
}
