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

.scene {
  perspective: 640px;
}

.cube {
  position: relative;
  width: 96px;
  height: 96px;
  transform-style: preserve-3d;
  animation: spin 2s linear infinite;
}

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

.cube__face--front {
  transform: translateZ(48px);
}

.cube__face--right {
  transform: rotateY(90deg) translateZ(48px);
  background: rgb(3.0951223465%, 24.451466537%, 71.8068384379%);
}

.cube__face--back {
  transform: rotateY(180deg) translateZ(48px);
}

.cube__face--left {
  transform: rotateY(-90deg) translateZ(48px);
  background: rgb(3.0951223465%, 24.451466537%, 71.8068384379%);
}

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