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

.stage {
  padding: clamp(8px, 2.4vw, 16px);
}

.card {
  anchor-name: --c7;
  position: relative;
  width: min(150px, 48vw);
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  outline: none;
  cursor: pointer;
}

.card__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #2f6df6 0%, #17141a 100%);
}

.card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(23, 20, 26, 0.8), rgba(23, 20, 26, 0));
}

.card__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.3;
  font-family: inherit;
  color: #ffffff;
}

.card__meta {
  margin: 0;
  font-weight: 500;
  font-size: clamp(10px, 2.8vw, 11px);
  line-height: 1.3;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.85);
}

.panel {
  position: absolute;
  position-anchor: --c7;
  position-area: block-end;
  position-try-fallbacks: flip-block;
  margin-top: 4px;
  width: min(150px, 48vw);
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 8px;
  background: #17141a;
  color: #ffffff;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
  pointer-events: none;
  z-index: 5;
}

.panel__row {
  margin: 0;
}

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

.card.is-demo ~ .panel {
  animation: panel-loop 2s ease-out infinite;
}

@keyframes panel-loop {
  0%, 20% {
    opacity: 0;
    transform: translateY(-6px);
  }
  50%, 75% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel {
    transition: none;
  }
  .card.is-demo ~ .panel {
    animation: none;
    opacity: 1;
    transform: translateY(0);
  }
}
