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(2, 1fr);
  gap: 12px;
  width: min(100%, 432px);
}

.cg__card {
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 247, 230, 0.1);
  border-radius: 16px;
  background: rgba(110, 200, 255, 0.06);
  box-shadow: 0 2px 6px rgba(23, 20, 26, 0.28);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cg__name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: #fff7e6;
}

.cg__line {
  font-weight: 500;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 247, 230, 0.72);
}

.cg__orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform-origin: 50% 50%;
  color: #17141a;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 46%), radial-gradient(circle at 66% 74%, rgba(185, 160, 255, 0.85), rgba(185, 160, 255, 0) 60%), radial-gradient(circle at 50% 50%, rgb(110, 200, 255) 20%, rgba(47, 109, 246, 0.95) 96%);
  box-shadow: 0 0 10px rgba(110, 200, 255, 0.35);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cg__orb svg {
  width: 60%;
  height: 60%;
}

.cg__card:hover, .cg__card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.cg__card:hover .cg__orb, .cg__card:focus-visible .cg__orb {
  transform: scale(1.35);
}

.cg.is-demo .cg__card {
  animation-name: cgLift;
  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__orb {
  animation-name: cgOrb;
  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.is-demo .cg__card:nth-child(2) .cg__orb {
  animation-delay: 120ms;
}

.cg.is-demo .cg__card:nth-child(3), .cg.is-demo .cg__card:nth-child(3) .cg__orb {
  animation-delay: 240ms;
}

.cg.is-demo .cg__card:nth-child(4), .cg.is-demo .cg__card:nth-child(4) .cg__orb {
  animation-delay: 360ms;
}

@keyframes cgLift {
  0%, 8% {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(23, 20, 26, 0.28);
  }
  22%, 46% {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  62%, 100% {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(23, 20, 26, 0.28);
  }
}
@keyframes cgOrb {
  0%, 8% {
    transform: scale(1);
  }
  22%, 46% {
    transform: scale(1.35);
  }
  62%, 100% {
    transform: scale(1);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .cg {
    gap: 8px;
  }
  .cg__card {
    gap: 4px;
    padding: 8px;
  }
  .cg__orb {
    width: 22px;
    height: 22px;
  }
  .cg__name {
    font-size: 11px;
  }
  .cg__line {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cg__card, .cg__orb {
    transition: none !important;
  }
  .cg.is-demo .cg__card, .cg.is-demo .cg__orb {
    animation: none !important;
  }
}
