html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.dcr {
  width: 100%;
  max-width: 230px;
  display: grid;
  gap: 12px;
}

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

.dcr--bad .dcr__state {
  color: #c2361a;
}

.dcr--ok .dcr__state {
  color: #17141a;
}

.dcr__retry {
  font-variant-numeric: tabular-nums;
  color: rgba(23, 20, 26, 0.68);
}

.dcr__track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.14);
  overflow: hidden;
}

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

.dcr--bad .dcr__fill {
  background: #c2361a;
}

.dcr--ok .dcr__fill {
  background: #4cd4a6;
}

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

@media (max-width: 340px) {
  .dcr {
    max-width: 195px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dcr__fill, .dcr__btn {
    transition: none;
  }
}
