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

.cg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 440px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 16px;
  background: #241f2a;
  border-top: 2px solid #2f6df6;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cg__shot {
  position: relative;
  overflow: hidden;
  height: clamp(40px, 13vw, 62px);
  border-radius: 8px;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 62%), linear-gradient(152deg, #2f6df6, rgba(47, 109, 246, 0.22));
}

.cg__shot--b {
  background-position: 70% 30%, 0 0;
}

.cg__shot--c {
  background-position: 45% 70%, 0 0;
}

.cg__band {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1.2;
  white-space: nowrap;
}

.cg__ic {
  display: inline-grid;
  place-items: center;
  color: #2f6df6;
  font-size: 11px;
}

.cg__name {
  margin: 0;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.25;
}

.cg__line {
  margin: 0;
  color: rgba(255, 247, 230, 0.78);
  font-weight: 500;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.35;
}

.cg__link {
  margin-top: auto;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cg__link:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
  border-radius: 4px;
}

.cg.is-demo .cg__card {
  animation-name: cgRise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.cg.is-demo .cg__card:nth-child(2) {
  animation-delay: 0.16s;
}

.cg.is-demo .cg__card:nth-child(3) {
  animation-delay: 0.32s;
}

.cg.is-demo .cg__band {
  animation-name: cgBand;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.cg.is-demo .cg__card:nth-child(2) .cg__band {
  animation-delay: 0.16s;
}

.cg.is-demo .cg__card:nth-child(3) .cg__band {
  animation-delay: 0.32s;
}

@keyframes cgRise {
  0% {
    transform: translateY(14px);
  }
  30% {
    transform: translateY(0);
  }
  74% {
    transform: translateY(0);
  }
  88%, 100% {
    transform: translateY(14px);
  }
}
@keyframes cgBand {
  0%, 12% {
    transform: translateY(180%);
  }
  42% {
    transform: translateY(0);
  }
  74% {
    transform: translateY(0);
  }
  86%, 100% {
    transform: translateY(180%);
  }
}
@media (max-width: 340px) {
  .cg {
    gap: 4px;
  }
  .cg__card {
    gap: 0;
    padding: 4px;
  }
  .cg__band {
    padding: 0 4px;
    left: 4px;
    bottom: 4px;
  }
  .cg__ic {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cg.is-demo .cg__card,
  .cg.is-demo .cg__band {
    animation: none !important;
    transform: none !important;
  }
}
