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

.cm {
  width: min(300px, 88vw);
}

.cm__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cm__axis {
  stroke: rgba(255, 247, 230, 0.22);
  stroke-width: 1;
}

.cm__flat {
  fill: none;
  stroke: rgba(255, 247, 230, 0.3);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  animation: cmFlatFade 2s ease-out infinite;
}

.cm__series {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cmDraw 2s ease-out infinite;
}

#cmSeries0 {
  stroke: #2f6df6;
}

#cmSeries1 {
  stroke: #c2361a;
}

#cmSeries2 {
  stroke: #2b9d74;
}

.cm__reload {
  display: block;
  margin: 16px auto 0;
  appearance: none;
  border: none;
  cursor: pointer;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
}

.cm__reload:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

@keyframes cmFlatFade {
  0% {
    opacity: 1;
  }
  8% {
    opacity: 1;
  }
  16% {
    opacity: 0;
  }
  84% {
    opacity: 0;
  }
  94% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes cmDraw {
  0% {
    stroke-dashoffset: var(--len);
  }
  10% {
    stroke-dashoffset: var(--len);
  }
  40% {
    stroke-dashoffset: 0;
  }
  84% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: var(--len);
  }
}
@media (max-width: 340px) {
  .cm {
    width: min(190px, 80vw);
  }
  .cm__reload {
    margin-top: 8px;
    font-size: 11px;
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm__flat {
    animation: none;
    opacity: 0;
  }
  .cm__series {
    animation: none;
    stroke-dashoffset: 0;
  }
}
