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

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

.ct__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;
}

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

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

.ct__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;
}

.ct__plot {
  position: relative;
}

.ct__svg {
  display: block;
  width: 100%;
  height: auto;
}

.ct__cell {
  stroke: #fff7e6;
  stroke-width: 2;
  cursor: pointer;
}

.ct__cell--c1 {
  fill: #2f6df6;
}

.ct__cell--c2 {
  fill: #c2361a;
}

.ct__cell--c3 {
  fill: #2b9d74;
}

.ct__cell--c4 {
  fill: #8a5cd6;
}

.ct__cell:hover {
  fill-opacity: 0.82;
  stroke: #17141a;
  stroke-width: 2.5;
}

.ct__name, .ct__num {
  fill: #17141a;
  stroke: #fff7e6;
  stroke-width: 3px;
  paint-order: stroke;
  font-weight: 800;
  dominant-baseline: middle;
  pointer-events: none;
}

.ct__name {
  font-size: 13px;
}

.ct__num {
  font-size: 15px;
  font-weight: 800;
}

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

.ct__tip.is-on {
  opacity: 1;
}

.ct__tip strong {
  font-size: 11px;
}

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

.ct.is-demo .ct__group {
  transform-box: fill-box;
  transform-origin: center;
  animation-name: ctPop;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: var(--d, 0s);
  animation-fill-mode: backwards;
}

@keyframes ctPop {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  6%, 88% {
    opacity: 1;
    transform: scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .ct {
    padding-bottom: 0;
  }
  .ct__card {
    padding: 8px 12px 0;
  }
  .ct__name {
    font-size: 11px;
  }
  .ct__num {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct.is-demo .ct__group {
    animation: none !important;
  }
  .ct.is-demo .ct__group {
    opacity: 1 !important;
  }
}
