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

.cr-gallery {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(260px, 84vw);
}

.cr-card {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.cr-card__img {
  position: absolute;
  inset: 0;
}

.cr-card__img--a {
  background: linear-gradient(155deg, #b9a0ff 0%, #17141a 100%);
}

.cr-card__img--b {
  background: linear-gradient(205deg, #6ec8ff 0%, #b9a0ff 100%);
}

.cr-card__img--c {
  background: linear-gradient(115deg, #b9a0ff 0%, #ff9ebb 60%);
}

.cr-card__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 65%, rgba(23, 20, 26, 0) 0%, rgba(23, 20, 26, 0.86) 100%);
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.cr-card__caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  color: #fff7e6;
  font: 700 12px/1.4 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-family: inherit;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.cr-card:hover .cr-card__scrim, .cr-card:focus-visible .cr-card__scrim {
  opacity: 1;
}

.cr-card:hover .cr-card__caption, .cr-card:focus-visible .cr-card__caption {
  opacity: 1;
  transform: translateY(0);
}

.cr-gallery.is-demo .cr-card:nth-child(1) .cr-card__scrim,
.cr-gallery.is-demo .cr-card:nth-child(1) .cr-card__caption {
  animation-delay: 0s;
}

.cr-gallery.is-demo .cr-card:nth-child(2) .cr-card__scrim,
.cr-gallery.is-demo .cr-card:nth-child(2) .cr-card__caption {
  animation-delay: -0.67s;
}

.cr-gallery.is-demo .cr-card:nth-child(3) .cr-card__scrim,
.cr-gallery.is-demo .cr-card:nth-child(3) .cr-card__caption {
  animation-delay: -1.33s;
}

.cr-gallery.is-demo .cr-card__scrim {
  animation: scrim-loop 2s ease-out infinite;
}

.cr-gallery.is-demo .cr-card__caption {
  animation: caption-loop 2s ease-out infinite;
}

@keyframes scrim-loop {
  0%, 10% {
    opacity: 0;
  }
  25%, 45% {
    opacity: 1;
  }
  60%, 100% {
    opacity: 0;
  }
}
@keyframes caption-loop {
  0%, 10% {
    opacity: 0;
    transform: translateY(6px);
  }
  25%, 45% {
    opacity: 1;
    transform: translateY(0);
  }
  60%, 100% {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-card__scrim, .cr-card__caption {
    transition: none;
  }
  .cr-gallery.is-demo .cr-card__scrim, .cr-gallery.is-demo .cr-card__caption {
    animation: none;
  }
}
