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

.cc {
  width: min(100%, 420px);
  display: grid;
  gap: 8px;
  color: #ffffff;
}

.cc__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.cc__ta {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  resize: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
}

.cc__ta::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.cc__ta:focus-visible {
  outline: 2px solid #6ec8ff;
  outline-offset: 2px;
}

.cc__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cc__tile {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  padding: 8px 4px 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.cc__tileLabel {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}

.cc__num {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cc__num b {
  font-weight: 700;
}

.cc__num small {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
}

.cc__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.cc__tile--chars {
  background: color-mix(in srgb, #4cd4a6 calc(8% + var(--fill, 0) * 26%), transparent);
}

.cc__tile--chars .cc__num {
  color: #4cd4a6;
}

.cc__tile--chars .cc__bar {
  background: #4cd4a6;
}

.cc__tile--words {
  background: color-mix(in srgb, #6ec8ff calc(8% + var(--fill, 0) * 26%), transparent);
}

.cc__tile--words .cc__num {
  color: #6ec8ff;
}

.cc__tile--words .cc__bar {
  background: #6ec8ff;
}

.cc__tile--bytes {
  background: color-mix(in srgb, #b9a0ff calc(8% + var(--fill, 0) * 26%), transparent);
}

.cc__tile--bytes .cc__num {
  color: #b9a0ff;
}

.cc__tile--bytes .cc__bar {
  background: #b9a0ff;
}

.cc__tile--time {
  background: color-mix(in srgb, #ff9ebb calc(8% + var(--fill, 0) * 26%), transparent);
}

.cc__tile--time .cc__num {
  color: #ff9ebb;
}

.cc__tile--time .cc__bar {
  background: #ff9ebb;
}

.cc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 340px) {
  .cc__num {
    font-size: 16px;
    line-height: 20px;
  }
  .cc__tileLabel {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc__bar {
    transition: none;
  }
}
