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

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

.cp {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 300px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 158, 187, 0.28);
  box-shadow: 0 18px 30px rgba(23, 20, 26, 0.14), inset 6px 6px 12px rgba(255, 255, 255, 0.9), inset -6px -6px 12px rgba(23, 20, 26, 0.1);
  color: #17141a;
  user-select: none;
  -webkit-user-select: none;
}

.cp__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #b9a0ff;
  box-shadow: inset 4px 4px 10px rgba(255, 255, 255, 0.85), inset -4px -4px 10px rgba(23, 20, 26, 0.12);
  color: #17141a;
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
}

.cp__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp__name {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}

.cp__role {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.62);
}

.cp__stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cp__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cp__stat + .cp__stat {
  border-left: 1px solid rgba(23, 20, 26, 0.14);
  padding-left: 16px;
}

.cp__num {
  font-size: 17px;
  line-height: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cp__lab {
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.62);
}

.cp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(185, 160, 255, 0.6);
  box-shadow: 0 8px 16px rgba(23, 20, 26, 0.14), inset 3px 3px 8px rgba(255, 255, 255, 0.85), inset -3px -3px 8px rgba(23, 20, 26, 0.1);
  color: #17141a;
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 300ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cp__btn svg {
  display: block;
}

.cp__btn svg[hidden] {
  display: none;
}

.cp__btn:hover {
  background: rgba(185, 160, 255, 0.78);
}

.cp__btn:focus-visible {
  outline: 2px solid #b9a0ff;
  outline-offset: 2px;
}

.cp__btn:active {
  transform: scale(0.95);
}

.cp__btn[aria-pressed=true] {
  background: rgba(76, 212, 166, 0.55);
}

.cp.is-demo .cp__avatar {
  animation-name: cp-breathe;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.cp.is-demo .cp__btn {
  animation-name: cp-puff;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-delay: -600ms;
}

@keyframes cp-breathe {
  0%, 100% {
    transform: scale(1);
  }
  44% {
    transform: scale(1.12);
  }
  88% {
    transform: scale(1);
  }
}
@keyframes cp-puff {
  0%, 100% {
    transform: scale(1);
  }
  44% {
    transform: scale(1.07);
  }
  88% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .cp {
    width: 272px;
    gap: 4px;
    padding: 12px;
  }
  .cp__head {
    gap: 8px;
  }
  .cp__avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
    line-height: 18px;
  }
  .cp__who {
    gap: 0;
  }
  .cp__name {
    font-size: 14px;
    line-height: 18px;
  }
  .cp__role {
    font-size: 11px;
    line-height: 13px;
  }
  .cp__stats {
    gap: 12px;
  }
  .cp__stat {
    gap: 0;
  }
  .cp__stat + .cp__stat {
    padding-left: 12px;
  }
  .cp__num {
    font-size: 13px;
    line-height: 16px;
  }
  .cp__lab {
    font-size: 11px;
    line-height: 13px;
  }
  .cp__btn {
    height: 32px;
    padding: 0 16px;
    font-size: 12px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp.is-demo .cp__avatar,
  .cp.is-demo .cp__btn {
    animation: none !important;
  }
  .cp__btn {
    transition: none;
  }
}
