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

.cw {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 424px;
}

.cw__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cw__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 15px);
  color: #17141a;
}

.cw__say {
  margin: 0;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  color: rgba(23, 20, 26, 0.62);
}

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

.cw__rows {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cw__row {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 8px;
}

.cw__name {
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
  color: #17141a;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.cw__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cw__dot {
  width: 100%;
  max-width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  border: 2px solid rgba(23, 20, 26, 0.22);
  background: transparent;
}

.cw__dot[aria-pressed=true] {
  border-color: #2f6df6;
  background: #2f6df6;
}

.cw__dot:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.cw__ringBox {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

.cw__ring {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}

.cw__track {
  fill: none;
  stroke: rgba(23, 20, 26, 0.14);
  stroke-width: 8;
}

.cw__fill {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 54;
}

.cw__pct {
  position: absolute;
  font-weight: 800;
  font-size: clamp(13px, 3.4vw, 15px);
  color: #17141a;
}

.cw.is-demo .cw__dot {
  animation-name: cwDot;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i) * 24ms);
}

@keyframes cwDot {
  0% {
    transform: scale(0.4);
    border-color: rgba(23, 20, 26, 0.22);
    background-color: transparent;
  }
  10% {
    transform: scale(1);
    border-color: #2f6df6;
    background-color: #2f6df6;
  }
  74% {
    transform: scale(1);
    border-color: #2f6df6;
    background-color: #2f6df6;
  }
  84% {
    transform: scale(0.4);
    border-color: rgba(23, 20, 26, 0.22);
    background-color: transparent;
  }
  100% {
    transform: scale(0.4);
    border-color: rgba(23, 20, 26, 0.22);
    background-color: transparent;
  }
}
.cw.is-demo .cw__fill {
  animation-name: cwRing;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes cwRing {
  0% {
    stroke-dashoffset: 163.36;
  }
  62% {
    stroke-dashoffset: 54;
  }
  84% {
    stroke-dashoffset: 163.36;
  }
  100% {
    stroke-dashoffset: 163.36;
  }
}
@media (max-width: 340px) {
  .cw {
    gap: 8px;
  }
  .cw__main {
    gap: 8px;
  }
  .cw__row {
    grid-template-columns: 48px 1fr;
    gap: 4px;
  }
  .cw__dot {
    max-width: 14px;
    border-width: 2px;
  }
  .cw__ringBox {
    width: 56px;
    height: 56px;
  }
  .cw__ring {
    width: 56px;
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cw.is-demo .cw__dot {
    animation: none !important;
    transform: none !important;
  }
  .cw.is-demo .cw__fill {
    animation: none !important;
  }
}
