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

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

.cd {
  --view-h: min(calc(100vh - 2 * clamp(8px, 4vw, 24px) - 48px), 196px);
  position: relative;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #17141a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.cd__view {
  position: relative;
}

.cd__view--scene {
  width: 100%;
  height: var(--view-h);
  overflow: hidden;
  border-radius: 16px;
  background: rgb(16.6431372549%, 14.431372549%, 20.9725490196%);
}

.cd__cv {
  display: block;
  width: 100%;
  height: 100%;
}

.cd__read {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.cd__read b {
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
}

.cd__read--center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cd__read--corner {
  position: absolute;
  left: 8px;
  top: 8px;
}

.cd__bar {
  display: flex;
  gap: 8px;
}

.cd__btn {
  box-sizing: border-box;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
}

.cd__btn:focus-visible {
  outline: 2px solid #b9a0ff;
  outline-offset: 2px;
}

.cd__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .cd__strip {
    filter: none !important;
  }
  .cd__leaf {
    display: none !important;
  }
}
.cd__view {
  display: grid;
  place-items: center;
}

.cd__cards {
  display: flex;
  gap: 12px;
  --cw: clamp(72px, 20vw, 108px);
}

.cd__card {
  position: relative;
  width: var(--cw);
  height: calc(var(--cw) * 1.4);
  transform-style: preserve-3d;
}

.cd__half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: #17141a;
  color: #fff7e6;
  backface-visibility: hidden;
}

.cd__half--top {
  top: 0;
  border-radius: 8px 8px 0 0;
  transform-origin: 50% 100%;
  border-bottom: 1px solid rgba(255, 247, 230, 0.12);
}

.cd__half--bot {
  bottom: 0;
  border-radius: 0 0 8px 8px;
  transform-origin: 50% 0;
}

.cd__num {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
  display: grid;
  place-items: center;
  font-size: calc(var(--cw) * 0.98);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd__half--top .cd__num {
  top: 0;
}

.cd__half--bot .cd__num {
  top: -100%;
}

.cd__shade {
  position: absolute;
  inset: 0;
  background: #17141a;
  opacity: 0;
  pointer-events: none;
}

.cd__leaf {
  z-index: 2;
}

.cd__leaf--bot {
  transform: rotateX(180deg);
}
