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

.cr {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-bottom: 8px;
}

.cr__card {
  width: min(100%, 420px);
  background: #fff7e6;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 12px 16px 8px;
}

.cr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cr__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 14px);
  color: #17141a;
}

.cr__chip {
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  color: rgba(23, 20, 26, 0.66);
  border: 1px solid rgba(23, 20, 26, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
}

.cr__plot {
  position: relative;
}

.cr__svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

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

.cr__spoke {
  stroke: rgba(23, 20, 26, 0.08);
  stroke-width: 1;
}

.cr__lab {
  fill: rgba(23, 20, 26, 0.72);
  font-weight: 800;
  font-size: 10px;
  dominant-baseline: middle;
}

.cr__poly {
  fill: rgba(47, 109, 246, 0.22);
  stroke: #2f6df6;
  stroke-width: 2.5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
}

.cr__dot {
  fill: #ffffff;
  stroke: #2f6df6;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

.cr__tip {
  position: absolute;
  transform: translate(-50%, -128%);
  display: flex;
  align-items: baseline;
  gap: 4px;
  pointer-events: none;
  background: #17141a;
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
}

.cr__tip.is-below {
  transform: translate(-50%, 18%);
}

.cr__tip.is-on {
  opacity: 1;
  transition: opacity 220ms ease-out;
}

.cr__tipName {
  opacity: 0.72;
}

.cr__tipVal {
  font-size: 12px;
}

.cr__sr {
  position: fixed;
  top: 0;
  left: -640px;
  width: 320px;
  margin: 0;
}

.cr.is-demo .cr__poly {
  animation-name: crGrow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes crGrow {
  0%, 4% {
    transform: scale(0);
  }
  34%, 86% {
    transform: scale(1);
  }
  94%, 100% {
    transform: scale(0);
  }
}
.cr.is-demo .cr__dot {
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
}

.cr.is-demo .cr__dot:nth-child(1) {
  animation-name: crD1, crCut;
}

.cr.is-demo .cr__dot:nth-child(2) {
  animation-name: crD2, crCut;
}

.cr.is-demo .cr__dot:nth-child(3) {
  animation-name: crD3, crCut;
}

.cr.is-demo .cr__dot:nth-child(4) {
  animation-name: crD4, crCut;
}

.cr.is-demo .cr__dot:nth-child(5) {
  animation-name: crD5, crCut;
}

.cr.is-demo .cr__dot:nth-child(6) {
  animation-name: crD6, crCut;
}

@keyframes crD1 {
  0%, 36% {
    transform: scale(0);
  }
  42%, 100% {
    transform: scale(1);
  }
}
@keyframes crD2 {
  0%, 40% {
    transform: scale(0);
  }
  46%, 100% {
    transform: scale(1);
  }
}
@keyframes crD3 {
  0%, 44% {
    transform: scale(0);
  }
  50%, 100% {
    transform: scale(1);
  }
}
@keyframes crD4 {
  0%, 48% {
    transform: scale(0);
  }
  54%, 100% {
    transform: scale(1);
  }
}
@keyframes crD5 {
  0%, 52% {
    transform: scale(0);
  }
  58%, 100% {
    transform: scale(1);
  }
}
@keyframes crD6 {
  0%, 56% {
    transform: scale(0);
  }
  62%, 100% {
    transform: scale(1);
  }
}
@keyframes crCut {
  0%, 86% {
    opacity: 1;
  }
  88%, 100% {
    opacity: 0;
  }
}
.cr.is-demo .cr__tip {
  animation-name: crTip;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes crTip {
  0%, 64% {
    opacity: 0;
  }
  66%, 84% {
    opacity: 1;
  }
  86%, 100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .cr__card {
    padding: 8px 12px 4px;
  }
  .cr__lab {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr.is-demo .cr__poly,
  .cr.is-demo .cr__dot,
  .cr.is-demo .cr__tip {
    animation: none !important;
  }
  .cr.is-demo .cr__poly {
    transform: none !important;
  }
  .cr.is-demo .cr__dot {
    transform: none !important;
    opacity: 1 !important;
  }
}
