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

.pf-scene {
  perspective: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pf-flip {
  width: 150px;
  height: 92px;
}

.pf-flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pf-flip:hover .pf-flip__inner {
  transform: rotateX(180deg);
}

.pf-flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  backface-visibility: hidden;
  font: 700 28px/1 -apple-system, "Segoe UI", sans-serif;
  color: #fff7e6;
}

.pf-flip__face--front {
  background: #0a4fe8;
}

.pf-flip__face--back {
  background: rgba(255, 255, 255, 0.12);
  transform: rotateX(180deg);
}

.pf-hint {
  color: #fff7e6;
  opacity: 0.55;
  font: 500 11px/1 -apple-system, sans-serif;
}

@keyframes pf-flip {
  0%, 40% {
    transform: rotateX(0);
  }
  60%, 100% {
    transform: rotateX(180deg);
  }
}
.pf-scene.is-demo .pf-flip__inner {
  animation: pf-flip 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pf-flip:hover .pf-flip__inner,
  .pf-scene.is-demo .pf-flip__inner {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
