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__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.cc__btn {
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  line-height: 22px;
  font-weight: 600;
  cursor: pointer;
}

.cc__btn[aria-pressed=true] {
  background: #b9a0ff;
  border-color: #b9a0ff;
  color: #17141a;
}

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

.cc__ta {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  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__lanes {
  display: grid;
  gap: 8px;
}

.cc__lane {
  display: grid;
  grid-template-columns: 76px 48px 1fr;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

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

.cc__laneNum {
  font-size: 12px;
  font-weight: 600;
  color: #4cd4a6;
  font-variant-numeric: tabular-nums;
}

.cc__laneNum b {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.cc__laneNum--raw {
  color: #ff9ebb;
}

.cc__ticks {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  min-width: 0;
  overflow: hidden;
}

.cc__ticks i {
  flex: 0 0 auto;
  width: 3px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.cc__lane:nth-child(1) .cc__ticks i.is-on {
  background: #ff9ebb;
}

.cc__lane:nth-child(2) .cc__ticks i.is-on {
  background: #4cd4a6;
}

.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__lane {
    grid-template-columns: 68px 40px 1fr;
    padding: 0 8px;
  }
  .cc__ticks i {
    width: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc__ticks i {
    transform: none;
  }
}
