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

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff7e6;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  max-width: 380px;
}

.preview {
  margin: 0;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.copyBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.fillTrack {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fillBar {
  --fill: 0;
  position: absolute;
  inset: 0;
  transform: scaleX(var(--fill));
  transform-origin: left center;
  background: #0a4fe8;
}

.iconSlot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  flex: none;
}

.icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.count {
  position: relative;
  z-index: 1;
  min-width: 1.4em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 340px) {
  .card {
    padding: 16px 20px;
  }
  .preview {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .copyBtn * {
    transition: none;
  }
}
