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

.fh-card {
  position: relative;
  display: flex;
  width: 176px;
  height: 108px;
  perspective: 900px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.fh-half {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a4fe8;
  color: #fff7e6;
  font: 700 12px/1.3 -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.fh-half--fold {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  background: none;
}

.fh-half__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  font: 700 12px/1.3 -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  color: #fff7e6;
}

.fh-half__face--front {
  background: #0a4fe8;
}

.fh-half__face--back {
  background: rgba(23, 20, 26, 0.78);
  transform: rotateY(180deg);
}

@keyframes fh-fold {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(-172deg);
  }
  100% {
    transform: rotateY(0);
  }
}
.fh-card.is-demo .fh-half--fold {
  animation: fh-fold 1440ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fh-card.is-demo .fh-half--fold {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
