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

.vgallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(280px, 84vw);
}

.vcard {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
}

.vcard__thumb {
  position: absolute;
  inset: 0;
}

.vcard__thumb--a {
  background: linear-gradient(155deg, #6ec8ff 0%, #17141a 100%);
}

.vcard__thumb--b {
  background: linear-gradient(205deg, #b9a0ff 0%, #17141a 100%);
}

.vcard__thumb--c {
  background: linear-gradient(115deg, #6ec8ff 0%, #b9a0ff 60%);
}

.vcard__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid #fff7e6;
  opacity: 0;
}

.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #17141a;
  font-size: 10px;
  line-height: 1;
  text-indent: 2px;
  cursor: pointer;
  transition: transform 2s ease-out;
}

.vcard__time {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0 4px;
  background: rgba(23, 20, 26, 0.78);
  color: #fff7e6;
  font: 700 9px/1.4 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-family: inherit;
  border-radius: 4px;
}

.vcard:hover .vcard__play, .vcard__play:focus-visible {
  transform: translate(-50%, -50%) scale(1.2);
}

.vgallery.is-demo .vcard:nth-child(1) .vcard__play {
  animation: play-pulse 2s ease-out infinite;
}

.vgallery.is-demo .vcard:nth-child(1) .vcard__ring {
  animation: ring-pulse 2s ease-out infinite;
}

.vgallery.is-demo .vcard:nth-child(2) .vcard__play {
  animation: play-pulse 2s ease-out infinite;
  animation-delay: -0.67s;
}

.vgallery.is-demo .vcard:nth-child(2) .vcard__ring {
  animation: ring-pulse 2s ease-out infinite;
  animation-delay: -0.67s;
}

.vgallery.is-demo .vcard:nth-child(3) .vcard__play {
  animation: play-pulse 2s ease-out infinite;
  animation-delay: -1.33s;
}

.vgallery.is-demo .vcard:nth-child(3) .vcard__ring {
  animation: ring-pulse 2s ease-out infinite;
  animation-delay: -1.33s;
}

@keyframes play-pulse {
  0%, 15% {
    transform: translate(-50%, -50%) scale(1);
  }
  30% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  45%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes ring-pulse {
  0%, 15% {
    transform: scale(1);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  60% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vcard__play {
    transition: none;
  }
  .vgallery.is-demo .vcard__play, .vgallery.is-demo .vcard__ring {
    animation: none;
  }
}
