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-scene {
  position: relative;
  width: 252px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
}

.ct-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 64px;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px 12px;
  padding: 16px;
}

.ct-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.4);
}

.ct-bar-title {
  height: 20px;
  grid-column: 1/-1;
  background: rgba(255, 247, 230, 0.75);
}

.ct-thumb {
  grid-row: 2/4;
  grid-column: 2;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.3);
}

.ct-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
}

.ct-left {
  left: 0;
  background: #b9a0ff;
}

.ct-right {
  right: 0;
  background: #ff9ebb;
}

.ct-label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.55);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #fff7e6;
  white-space: nowrap;
}

.is-loading .ct-left,
.is-demo .ct-left {
  animation: ct-open-left 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.is-loading .ct-right,
.is-demo .ct-right {
  animation: ct-open-right 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes ct-open-left {
  0%, 12% {
    transform: translateX(0);
  }
  38%, 72% {
    transform: translateX(-101%);
  }
  94%, 100% {
    transform: translateX(0);
  }
}
@keyframes ct-open-right {
  0%, 12% {
    transform: translateX(0);
  }
  38%, 72% {
    transform: translateX(101%);
  }
  94%, 100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-loading .ct-left,
  .is-demo .ct-left {
    animation: none !important;
    transform: translateX(-101%) !important;
  }
  .is-loading .ct-right,
  .is-demo .ct-right {
    animation: none !important;
    transform: translateX(101%) !important;
  }
}
