.clue-puzzle-share {
  --share-paper: #ffffff;
  --share-grid: rgb(77 112 161 / 10%);
  position: relative; isolation: isolate; overflow: hidden;
  margin: 20px 0 24px; padding: 22px; border: 1px solid #d8e3f1; border-radius: 14px;
  background-color: var(--share-paper);
  background-image: linear-gradient(90deg, var(--share-paper) 20%, transparent 100%),
    linear-gradient(var(--share-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--share-grid) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-position: right top; text-align: left;
}
.clue-puzzle-share::before {
  content: ''; position: absolute; top: 0; right: 0; width: 28px; height: 28px;
  background: #315b91; opacity: .08; pointer-events: none;
  box-shadow: -28px 0 #315b91, 0 28px #315b91, -84px 56px #315b91, -112px 84px #315b91, -56px 112px #315b91;
}
.clue-puzzle-share > * { position: relative; }


.clue-puzzle-share > h2 { margin: 0; color: var(--text-primary, #222); font-size: 18px; font-weight: 700; line-height: 1.4; }
.clue-puzzle-share > p { margin: 0; color: var(--text-secondary, #645c55); font-size: 13px; }
.clue-puzzle-share > .clue-share-invitation { max-width: 580px; margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.clue-share-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.clue-share-links :is(a, button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 13px; border: 1px solid var(--border-normal, #ddd) !important; border-radius: 8px !important; background: var(--bg-card, #fff); color: var(--text-primary, #222); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.clue-share-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clue-share-links [data-clue-social="facebook"] svg { fill: currentColor; stroke: none; }
.clue-share-links :is(a, button):hover { background: var(--accent-blue-soft, #edf3ff); border-color: #9bb8ff !important; color: #2563eb; }
.clue-share-links :is(a, button):active { background: #dce9ff; }
.clue-share-links :is(a, button):focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.clue-puzzle-share .clue-share-link { display: block; width: 100%; max-width: 520px; margin: 12px 0 0; padding: 10px; border: 1px solid var(--border-normal, #ddd); background: var(--bg-card, #fff); color: var(--text-primary, #222); font: inherit; font-size: 13px; }
.clue-puzzle-share [hidden] { display: none !important; }
.clue-puzzle-share .clue-share-status:not(:empty) { margin-top: 10px; }
@media (max-width: 480px) {
  .clue-puzzle-share { padding: 18px 16px; }
  .clue-share-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clue-share-links [data-clue-copy-link] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .clue-share-links :is(a, button) { transition: none; } }
