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

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

.gcc {
  position: relative;
  width: min(300px, 86vw);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.gcc::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(76, 212, 166, 0);
  transition: background-color 0.26s ease;
}

.gcc.is-copied::before {
  background: rgba(76, 212, 166, 0.16);
}

.gcc__label {
  align-self: flex-start;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: rgba(23, 20, 26, 0.7);
}

.gcc__frame {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  border: 2px solid rgba(23, 20, 26, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
}

.gcc__display {
  flex: 1;
  min-height: 1.3em;
  font-weight: 600;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.3;
  font-family: "SFMono-Regular", Consolas, monospace;
  color: #17141a;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.gcc__status {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}

.gcc__icon {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  color: #17141a;
}

.gcc__icon--copy {
  opacity: calc(1 - var(--copyMorph, 0));
}

.gcc__check {
  position: absolute;
  inset: 0;
  opacity: var(--copyMorph, 0);
}

.gcc__checkBar {
  position: absolute;
  left: 5px;
  top: 11px;
  height: 2.4px;
  border-radius: 999px;
  background: #17141a;
  transform-origin: left center;
}

.gcc__checkBar--short {
  width: 6px;
  transform: rotate(225deg);
}

.gcc__checkBar--long {
  width: 12px;
  transform: rotate(-48deg);
}

.gcc__gen {
  border: 0;
  border-radius: 999px;
  padding: 8px 24px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  background: #17141a;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.gcc__gen:active {
  transform: scale(0.96);
}

@media (max-width: 340px) {
  .gcc {
    width: min(260px, 88vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gcc__gen {
    transition: none;
  }
  .gcc::before {
    transition: none;
  }
}
