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

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

.cf {
  box-sizing: border-box;
  width: min(292px, 92vw);
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.cf__grid {
  border: 1px solid rgba(255, 247, 230, 0.14);
  border-radius: 16px;
  background: rgb(21.7568627451%, 10.9725490196%, 10.4705882353%);
  overflow: hidden;
}

.cf__row {
  display: grid;
  grid-template-columns: 1fr 92px 68px;
  height: 26px;
}

.cf__row + .cf__row {
  border-top: 1px solid rgba(255, 247, 230, 0.08);
}

.cf__row > * {
  padding: 0 8px;
  font-size: 12px;
  line-height: 26px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.cf__row--head {
  background: rgba(255, 247, 230, 0.07);
}

.cf__row--head > * {
  color: rgba(255, 247, 230, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.cf__num {
  position: relative;
  text-align: right;
}

.cf__num i {
  position: relative;
  font-style: normal;
}

.cf__num[data-level="1"] {
  background: rgba(194, 54, 26, 0.3);
}

.cf__num[data-level="2"] {
  background: rgba(76, 212, 166, 0.18);
}

.cf__num[data-level="3"] {
  background: rgba(76, 212, 166, 0.38);
  color: #17141a;
}

.cf__bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(var(--v, 0));
}

.cf__num[data-level="1"] .cf__bar {
  background: rgba(194, 54, 26, 0.55);
}

.cf__num[data-level="2"] .cf__bar {
  background: rgba(76, 212, 166, 0.34);
}

.cf__num[data-level="3"] .cf__bar {
  background: rgba(76, 212, 166, 0.62);
}

.cf__badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 16px;
  font-style: normal;
  font-weight: 700;
}

.cf__badge[data-level="1"] {
  background: #ffffff;
  color: #c2361a;
}

.cf__badge[data-level="2"] {
  background: rgba(76, 212, 166, 0.26);
  color: #4cd4a6;
}

.cf__badge[data-level="3"] {
  background: #4cd4a6;
  color: #17141a;
}

.cf.is-demo .cf__bar {
  animation-name: cf-fill;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.cf.is-demo .cf__row:nth-child(3) .cf__bar {
  animation-delay: 60ms;
}

.cf.is-demo .cf__row:nth-child(4) .cf__bar {
  animation-delay: 120ms;
}

.cf.is-demo .cf__num {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.cf.is-demo .cf__row:nth-child(2) .cf__num {
  animation-name: cf-tint-a;
}

.cf.is-demo .cf__row:nth-child(3) .cf__num {
  animation-name: cf-tint-b;
}

.cf.is-demo .cf__row:nth-child(4) .cf__num {
  animation-name: cf-tint-c;
}

.cf.is-demo .cf__badge {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.cf.is-demo .cf__row:nth-child(2) .cf__badge {
  animation-name: cf-badge-a;
}

.cf.is-demo .cf__row:nth-child(3) .cf__badge {
  animation-name: cf-badge-b;
}

.cf.is-demo .cf__row:nth-child(4) .cf__badge {
  animation-name: cf-badge-c;
}

@keyframes cf-fill {
  0% {
    transform: scaleX(0);
  }
  8% {
    transform: scaleX(0);
  }
  38% {
    transform: scaleX(var(--v, 0));
  }
  70% {
    transform: scaleX(var(--v, 0));
  }
  82% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes cf-tint-a {
  0% {
    background: none;
  }
  44% {
    background: rgba(76, 212, 166, 0.18);
  }
  72% {
    background: none;
  }
  100% {
    background: none;
  }
}
@keyframes cf-tint-b {
  0% {
    background: none;
  }
  44% {
    background: rgba(194, 54, 26, 0.3);
  }
  76% {
    background: none;
  }
  100% {
    background: none;
  }
}
@keyframes cf-tint-c {
  0% {
    background: none;
  }
  44% {
    background: rgba(76, 212, 166, 0.38);
  }
  80% {
    background: none;
  }
  100% {
    background: none;
  }
}
@keyframes cf-badge-a {
  0% {
    opacity: 0;
  }
  44% {
    opacity: 1;
  }
  72% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cf-badge-b {
  0% {
    opacity: 0;
  }
  44% {
    opacity: 1;
  }
  76% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cf-badge-c {
  0% {
    opacity: 0;
  }
  44% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .cf__row {
    grid-template-columns: 1fr 76px 56px;
  }
  .cf__row > * {
    padding: 0 4px;
  }
  .cf__badge {
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf.is-demo .cf__bar,
  .cf.is-demo .cf__num,
  .cf.is-demo .cf__badge {
    animation: none !important;
  }
  .cf.is-demo .cf__bar {
    transform: scaleX(var(--v, 0));
  }
}
