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

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

.scene {
  perspective: 560px;
}

.ring {
  position: relative;
  width: 92px;
  height: 56px;
  list-style: none;
  margin: 0;
  padding: 0;
  transform-style: preserve-3d;
  animation: orbit 8s linear infinite;
}

.ring__card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  backface-visibility: hidden;
}

.ring__card:nth-child(1) {
  transform: rotateY(0deg) translateZ(118px);
}

.ring__card:nth-child(2) {
  transform: rotateY(72deg) translateZ(118px);
}

.ring__card:nth-child(3) {
  transform: rotateY(144deg) translateZ(118px);
}

.ring__card:nth-child(4) {
  transform: rotateY(216deg) translateZ(118px);
}

.ring__card:nth-child(5) {
  transform: rotateY(288deg) translateZ(118px);
}

@keyframes orbit {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
    transform: rotateY(0deg);
  }
}
