.share-block {
  --share-gold: #f2d596;
  --share-muted: #c5b9d7;
  --share-ink: #f4ecff;
  color: var(--share-ink);
}

.share-block-result {
  margin: 2rem 0 0;
  padding: clamp(1.25rem, 4vw, 2.35rem);
  position: relative;
  overflow: hidden;
  border: 1px solid #d9af6c48;
  border-radius: 1.2rem;
  background: radial-gradient(ellipse at 83% 0%, #60417e53, transparent 53%),
    radial-gradient(circle at 12% 120%, #5340724a, transparent 56%), #161427;
  box-shadow: 0 1rem 3rem #05041468;
}

.share-block h2 {
  margin: 0 0 .75rem;
  color: var(--share-gold);
  font-size: clamp(1.05rem, 3vw, 1.42rem);
  line-height: 1.35;
}

.share-block-result h2 {
  font-size: clamp(1.25rem, 4vw, 1.76rem);
}

.share-description {
  margin: 0 0 1.35rem;
  color: var(--share-muted);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem .7rem;
}

.share-action {
  background: transparent;
  border: 0;
  color: var(--share-ink);
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .43rem;
  min-width: 3.5rem;
  max-width: 5rem;
  padding: 0;
  text-align: center;
  font: inherit;
}

.share-action:disabled {
  cursor: wait;
  opacity: .55;
}

.share-circle {
  box-sizing: border-box;
  width: 2.82rem;
  height: 2.82rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d8c5f03b;
  background: #312441;
  color: #f4e8ff;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}

.share-circle svg {
  width: 1.16rem;
  height: 1.16rem;
}

.share-action-kakao .share-circle {
  background: #fee500;
  border-color: #fee500;
  color: #191919;
}

.share-action-instagram .share-circle {
  background: radial-gradient(circle at 18% 95%, #ffe083, #e34862 39%, #9c2db8 66%, #664bda);
  color: #fff;
}

:is(.share-action-threads, .share-action-x) .share-circle {
  background: #111015;
  color: #fff;
}

.share-action-facebook .share-circle {
  background: #0866ff;
  border-color: #0866ff;
  color: #fff;
}

.share-action:hover:not(:disabled) .share-circle,
.share-action:focus-visible .share-circle {
  box-shadow: 0 0 0 .19rem #b38be54a, 0 0 1.1rem #ae79e866;
  border-color: #d8b7ff;
  transform: translateY(-2px);
}

.share-action:focus-visible {
  outline: 2px solid #ead1ff;
  outline-offset: .25rem;
  border-radius: .3rem;
}

.share-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.27;
  letter-spacing: 0;
}

.share-block-compact {
  margin: .9rem 0 0;
}

.share-block-compact .share-buttons {
  gap: .4rem;
}

.share-block-compact .share-action {
  min-width: 0;
}

.share-block-compact .share-circle {
  width: 2.75rem;
  height: 2.75rem;
}

.share-block-compact .share-label {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.share-status {
  margin: .65rem 0 0;
  color: var(--share-muted);
  font-size: .85rem;
}

.share-manual {
  max-width: 100%;
  margin-top: .35rem;
  padding: .35rem .5rem;
  color: var(--share-ink);
  background: #21182e;
  border: 1px solid #b892d17d;
  border-radius: .45rem;
}

@media (max-width: 560px) {
  .share-block-result .share-buttons {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: .9rem .35rem;
  }
  .share-block-result .share-action {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-circle { transition: none; }
}
