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

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

.pages {
  position: relative;
  width: min(300px, 88%);
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #fff;
}

.page--list {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: clamp(12px, 5vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page__tag {
  margin: 0;
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.12em;
  color: #17141a;
  opacity: 0.55;
}

.thumb-row {
  display: flex;
  gap: 8px;
}

.thumb {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  background: #17141a;
  opacity: 0.14;
}

.thumb--hero {
  background: #2f6df6;
  opacity: 1;
}

.hero {
  position: absolute;
  left: clamp(12px, 5vw, 18px);
  top: 46px;
  width: 30%;
  height: 44px;
  border-radius: 8px;
  background: #2f6df6;
  transform-origin: top left;
  animation: hero-grow 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.hero__caption {
  position: absolute;
  left: clamp(12px, 5vw, 18px);
  bottom: 14px;
  margin: 0;
  font-weight: 700;
  font-size: clamp(11px, 3.4vw, 13px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  animation: caption-in 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes hero-grow {
  0%, 40% {
    transform: scale(1) translate(0, 0);
    width: 30%;
    height: 44px;
  }
  70%, 90% {
    transform: scale(1) translate(0, 0);
    width: 88%;
    height: 108px;
    top: 12px;
  }
  100% {
    transform: scale(1) translate(0, 0);
    width: 30%;
    height: 44px;
    top: 46px;
  }
}
@keyframes caption-in {
  0%, 55% {
    opacity: 0;
  }
  75%, 90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .hero__caption {
    animation: none !important;
  }
  .hero__caption {
    opacity: 0;
  }
}
