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

.ct {
  box-sizing: border-box;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fff7e6;
}

.ct__scene {
  perspective: 700px;
  padding: 8px;
}

.ct__card {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  width: min(260px, 76vw);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 2px solid #b9a0ff;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.ct__card.is-idle {
  transition: transform 300ms ease-out;
}

.ct__card::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0) 62%);
}

.ct__name {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: #b9a0ff;
}

.ct__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ct__amount {
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
}

.ct__unit {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  opacity: 1;
}

.ct__feat {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  opacity: 0.82;
}

.ct.is-demo .ct__card {
  animation-name: ct-tilt;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ct-tilt {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  11% {
    transform: rotateX(5deg) rotateY(6.4deg);
  }
  22% {
    transform: rotateX(0deg) rotateY(9deg);
  }
  33% {
    transform: rotateX(-5deg) rotateY(6.4deg);
  }
  44% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  55% {
    transform: rotateX(5deg) rotateY(-6.4deg);
  }
  66% {
    transform: rotateX(0deg) rotateY(-9deg);
  }
  77% {
    transform: rotateX(-5deg) rotateY(-6.4deg);
  }
  88% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
}
.ct.is-demo .ct__card::after {
  animation-name: ct-glare;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ct-glare {
  0% {
    transform: translate(0%, 0%);
  }
  11% {
    transform: translate(18%, -14%);
  }
  22% {
    transform: translate(26%, 0%);
  }
  33% {
    transform: translate(18%, 14%);
  }
  44% {
    transform: translate(0%, 0%);
  }
  55% {
    transform: translate(-18%, -14%);
  }
  66% {
    transform: translate(-26%, 0%);
  }
  77% {
    transform: translate(-18%, 14%);
  }
  88% {
    transform: translate(0%, 0%);
  }
  100% {
    transform: translate(0%, 0%);
  }
}
@media (max-width: 340px) {
  .ct__scene {
    padding: 4px;
  }
  .ct__card {
    padding: 16px;
    gap: 4px;
  }
  .ct__amount {
    font-size: 24px;
    line-height: 28px;
  }
  .ct__name {
    font-size: 11px;
    line-height: 16px;
  }
  .ct__unit {
    font-size: 11px;
    line-height: 16px;
  }
  .ct__feat {
    font-size: 11px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct__card.is-idle {
    transition: none;
  }
  .ct.is-demo .ct__card,
  .ct.is-demo .ct__card::after {
    animation: none !important;
  }
  .ct.is-demo .ct__card {
    transform: rotateX(0deg) rotateY(0deg);
  }
}
