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

.dem {
  width: 100%;
  max-width: 200px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.dem__shape {
  width: 120px;
  height: 120px;
}

.dem__poly {
  fill: #b9a0ff;
  stroke: #0a4fe8;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.dem__row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font: 600 12px/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.dem__pct {
  font-variant-numeric: tabular-nums;
}

.dem__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #fff7e6;
  overflow: hidden;
}

.dem__fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 999px;
  background: #0a4fe8;
}

.dem__btn {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  background: #17141a;
  color: #fff7e6;
  font: 700 12px/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.dem__btn:active {
  transform: scale(0.96);
}

@media (max-width: 340px) {
  .dem {
    max-width: 170px;
  }
  .dem__shape {
    width: 96px;
    height: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dem__btn {
    transition: none;
  }
}
