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

.bubble {
  position: relative;
  width: min(200px, 60vw);
  aspect-ratio: 4/3;
  margin: 0;
  padding: 6px;
  border-radius: 16px;
  background: #fff7e6;
  overflow: hidden;
}

.skeleton, .photo {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
}

.skeleton {
  background: rgba(23, 20, 26, 0.12);
  overflow: hidden;
}

.shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}
.bubble.is-demo .shine {
  animation: shine-loop 2s ease-out infinite;
}

.photo {
  background: linear-gradient(135deg, #2f6df6, #ff4d1f);
  opacity: 0;
}
.bubble.is-demo .photo {
  animation: photo-in-loop 2s ease-out infinite;
}

.caption {
  margin: 4px 2px 0;
  font-weight: 600;
  font-size: clamp(10px, 3vw, 12px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  opacity: 0.85;
}

@keyframes shine-loop {
  0% {
    transform: translateX(0);
  }
  60% {
    transform: translateX(360%);
  }
  100% {
    transform: translateX(360%);
  }
}
@keyframes photo-in-loop {
  0% {
    opacity: 0;
  }
  62% {
    opacity: 0;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shine, .photo {
    animation: none !important;
  }
  .photo {
    opacity: 1;
  }
  .shine {
    opacity: 0;
  }
}
