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

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

.ccol {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ccol__card {
  box-sizing: border-box;
  width: 84px;
  padding: 8px 8px 4px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 5px 0 rgba(36, 29, 46, 0.16);
  animation-name: cardStraighten;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.ccol__card--coral {
  --rot: -7deg;
}

.ccol__card--sky {
  --rot: 5deg;
  animation-delay: -0.24s;
}

.ccol__card--grape {
  --rot: -4deg;
  animation-delay: -0.48s;
}

.ccol__photo {
  display: grid;
  place-items: center;
  height: 56px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 24px;
}

.ccol__card--coral .ccol__photo {
  background: linear-gradient(150deg, #bb7f74 0%, #d1c8a3 100%);
}

.ccol__card--sky .ccol__photo {
  background: linear-gradient(150deg, #668cb4 0%, #bfce9c 100%);
}

.ccol__card--grape .ccol__photo {
  background: linear-gradient(150deg, #6b3fa0 0%, #bb7f74 100%);
}

.ccol__no {
  margin: 8px 0 0;
  color: #bb7f74;
  font-family: Georgia, "Nanum Myeongjo", "Times New Roman", serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.ccol__name {
  margin: 4px 0 0;
  color: #241d2e;
  font-family: Georgia, "Nanum Myeongjo", "Times New Roman", serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

@keyframes cardStraighten {
  0%, 100% {
    transform: rotate(var(--rot));
    box-shadow: 0 5px 0 rgba(36, 29, 46, 0.16);
  }
  45% {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 13px 0 rgba(36, 29, 46, 0.12);
  }
}
@media (max-width: 360px), (max-height: 230px) {
  .ccol {
    gap: 8px;
  }
  .ccol__card {
    width: 64px;
    padding: 4px;
  }
  .ccol__photo {
    height: 40px;
    font-size: 18px;
  }
  .ccol__name {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ccol__card {
    animation: none !important;
    transform: rotate(var(--rot));
  }
}
