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 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(100%, 260px);
}

.cc__code {
  position: relative;
  border-radius: 16px;
  background: #17141a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 0;
  overflow: hidden;
}

.cc__row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 22px;
}

.cc__num {
  flex: 0 0 22px;
  height: 22px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font-family: monospace;
  font-size: 11px;
  cursor: pointer;
}

.cc__num--sel {
  color: #ffffff;
  font-weight: 700;
}

.cc__line {
  height: 22px;
  line-height: 22px;
  font-family: monospace;
  font-size: 11px;
  color: #ffffff;
  white-space: nowrap;
}

.cc__sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--top, 0);
  height: var(--h, 22px);
  background: rgba(94, 160, 255, 0);
  transition: top 220ms cubic-bezier(0.2, 1.4, 0.4, 1), height 220ms cubic-bezier(0.2, 1.4, 0.4, 1), background 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
  z-index: 1;
}

.cc__sweep--on {
  background: rgba(94, 160, 255, 0.28);
}

.cc__label {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 1.4, 0.4, 1), color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cc__label--done {
  background: #5b8cf8;
  color: #17141a;
}

@media (max-width: 340px) {
  .cc__line, .cc__num {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc__sweep, .cc__label {
    transition: none !important;
  }
}
