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

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

.cw {
  width: min(280px, 86vw);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  border-radius: 16px;
}
.cw:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 4px;
}

.cw__row {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: cwRowPop 2s ease-out infinite;
}

.cw__label {
  width: 44px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.cw__spark {
  width: 100%;
  height: 28px;
  overflow: visible;
}

.cw__flat {
  fill: none;
  stroke: rgba(23, 20, 26, 0.26);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  animation: cwFlatFade 2s ease-out infinite;
}

.cw__real {
  fill: none;
  stroke: #17141a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cwDraw 2s ease-out infinite;
}

@keyframes cwFlatFade {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  86% {
    opacity: 0;
  }
  96% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes cwDraw {
  0% {
    stroke-dashoffset: var(--len);
  }
  18% {
    stroke-dashoffset: var(--len);
  }
  46% {
    stroke-dashoffset: 0;
  }
  86% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: var(--len);
  }
}
@keyframes cwRowPop {
  0% {
    transform: translateY(0);
  }
  16% {
    transform: translateY(0);
  }
  22% {
    transform: translateY(-3px);
  }
  30% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .cw {
    width: min(230px, 84vw);
    gap: 8px;
  }
  .cw__label {
    width: 36px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw__row {
    animation: none;
    transform: none;
  }
  .cw__flat {
    animation: none;
    opacity: 0;
  }
  .cw__real {
    animation: none;
    stroke-dashoffset: 0;
  }
}
