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: 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__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cc__card {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.cc__card--safe {
  background: rgba(76, 212, 166, 0.18);
}

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

.cc__num {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: #4cd4a6;
  font-variant-numeric: tabular-nums;
}

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

.cc__state {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}

.cc__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.cc__dot.is-on {
  background: #6ec8ff;
}

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

.cc__pre {
  font-size: 13px;
  line-height: 16px;
  color: #6ec8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.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: 24px;
    line-height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc__num, .cc__dot {
    transform: none;
    opacity: 1;
  }
}
