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

.dmf {
  width: 100%;
  max-width: 240px;
  display: grid;
  gap: 8px;
}

.dmf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font: 600 12px/1.2 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fff7e6;
  margin-bottom: 4px;
}

.dmf__pct {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 247, 230, 0.72);
}

.dmf__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.16);
  overflow: hidden;
}

.dmf__fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 999px;
  background: #5b8cf8;
  transition: transform 140ms linear;
}

.dmf__row--total {
  margin-top: 4px;
}

.dmf__row--total .dmf__fill--total {
  background: #b9a0ff;
}

.dmf--done .dmf__row--total .dmf__fill--total {
  background: #4cd4a6;
}

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

@media (max-width: 340px) {
  .dmf {
    max-width: 200px;
    gap: 4px;
  }
  .dmf__row--total {
    margin-top: 0;
  }
  .dmf__btn {
    margin-top: 4px;
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dmf__fill {
    transition: none;
  }
  .dmf__btn {
    transition: none;
  }
}
