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

@property --pw-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.pw {
  box-sizing: border-box;
  width: 100%;
  max-width: 432px;
}

.pw__wall {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: start;
}

.pw__card {
  box-sizing: border-box;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: #242230;
  color: #fbf7ef;
}

.pw__card--b {
  margin-top: 16px;
}

.pw__card--c {
  margin-top: 8px;
}

.pw__card--a {
  border: 2px solid transparent;
  background: linear-gradient(#242230, #242230) padding-box, conic-gradient(from var(--pw-angle), #a49cce, #b3dad5, #479089, #a49cce) border-box;
}

.pw__card--b {
  border: 2px solid rgba(179, 218, 213, 0.45);
  box-shadow: 0 0 6px rgba(179, 218, 213, 0.18), inset 0 0 8px rgba(164, 156, 206, 0.18);
}

.pw__card--c {
  border: 2px solid rgba(251, 247, 239, 0.18);
}

.pw__top {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pw__ini {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(179, 218, 213, 0.18);
  color: #b3dad5;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
}

.pw__who {
  min-width: 0;
  display: grid;
  color: inherit;
  text-decoration: none;
}

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

.pw__name {
  color: #fbf7ef;
  font-weight: 700;
  font-size: clamp(9px, 2.3vw, 11px);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw__role {
  color: #b3dad5;
  font-weight: 500;
  font-size: clamp(8px, 2vw, 10px);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw__body {
  margin: 0;
  color: #fbf7ef;
  font-weight: 500;
  font-size: clamp(9px, 2.3vw, 12px);
  line-height: 1.4;
}

.pw__likes {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #b3dad5;
}

.pw__count {
  font-weight: 700;
  font-size: clamp(9px, 2.2vw, 11px);
  line-height: 1.2;
}

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

.pw.is-demo .pw__card--a {
  animation-name: pwFloat, pwSpin;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), linear;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
  animation-delay: 0s, 0s;
}

.pw.is-demo .pw__card--b {
  animation-name: pwFloat, pwNeon;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), ease-out;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
  animation-delay: 0.16s, 0s;
}

.pw.is-demo .pw__card--c {
  animation-delay: 0.32s;
}

@keyframes pwFloat {
  0%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  66% {
    transform: translateY(3px);
  }
}
@keyframes pwSpin {
  from {
    --pw-angle: 0deg;
  }
  to {
    --pw-angle: 360deg;
  }
}
@keyframes pwNeon {
  0%, 88%, 100% {
    border-color: rgba(179, 218, 213, 0.45);
    box-shadow: 0 0 6px rgba(179, 218, 213, 0.18), inset 0 0 8px rgba(164, 156, 206, 0.18);
  }
  46% {
    border-color: #b3dad5;
    box-shadow: 0 0 16px rgba(179, 218, 213, 0.6), 0 0 30px rgba(164, 156, 206, 0.45), inset 0 0 14px rgba(164, 156, 206, 0.38);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .pw__wall {
    gap: 4px;
  }
  .pw__card {
    padding: 4px;
    gap: 0;
  }
  .pw__card--b {
    margin-top: 12px;
  }
  .pw__card--c {
    margin-top: 4px;
  }
  .pw__ini {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .pw__likes svg {
    width: 12px;
    height: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pw__card {
    animation: none !important;
  }
}
