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

.dsg {
  width: 100%;
  max-width: 260px;
  display: grid;
  gap: 8px;
}

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

.dsg__val {
  font-variant-numeric: tabular-nums;
  color: #0a4fe8;
}

.dsg__graph {
  width: 100%;
  height: 96px;
  border-radius: 8px;
  background: #fff7e6;
}

.dsg__raw {
  fill: none;
  stroke: #c2361a;
  stroke-width: 1;
  opacity: 0.35;
  vector-effect: non-scaling-stroke;
}

.dsg__avg {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.dsg__btn {
  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;
}
.dsg__btn:active {
  transform: scale(0.96);
}

@media (max-width: 340px) {
  .dsg {
    max-width: 200px;
  }
  .dsg__graph {
    height: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dsg__avg, .dsg__raw {
    transition: none;
  }
  .dsg__btn {
    transition: none;
  }
}
