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

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

.hc-grid {
  width: min(260px, 78vw);
  aspect-ratio: 8/5;
  display: flex;
  gap: 8px;
}

.hc-tile {
  position: relative;
  flex: 1 1 0;
  border-radius: 8px;
  overflow: hidden;
}

.hc-tile--a {
  background: radial-gradient(60px circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #2f6df6, #17141a);
}

.hc-tile--b {
  background: radial-gradient(60px circle at 70% 40%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #fff7e6, #2f6df6);
}

.hc-tile--c {
  background: radial-gradient(60px circle at 50% 60%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(150deg, #17141a, #fff7e6);
}

.hc-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  background: rgba(23, 20, 26, 0.78);
  color: #fff7e6;
  font: 600 11px/1 -apple-system, "Segoe UI", sans-serif;
  transform: translateY(100%);
  opacity: 0;
}

.hc-cap {
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}

.hc-tile:hover .hc-cap {
  transform: translateY(0);
  opacity: 1;
}

@keyframes hc-cap-cycle {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  6% {
    transform: translateY(0);
    opacity: 1;
  }
  26% {
    transform: translateY(0);
    opacity: 1;
  }
  33% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
.hc-grid.is-demo .hc-tile--a .hc-cap {
  animation: hc-cap-cycle 2s ease-out infinite;
  animation-delay: 0s;
}

.hc-grid.is-demo .hc-tile--b .hc-cap {
  animation: hc-cap-cycle 2s ease-out infinite;
  animation-delay: 0.66s;
}

.hc-grid.is-demo .hc-tile--c .hc-cap {
  animation: hc-cap-cycle 2s ease-out infinite;
  animation-delay: 1.32s;
}

@media (prefers-reduced-motion: reduce) {
  .hc-tile:hover .hc-cap,
  .hc-grid.is-demo .hc-tile .hc-cap {
    animation: none !important;
    transition: none !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}
