/* Spooky Pals · share.css (pairs with share.js)
   "This Ghostie reminds me of you" (the single sharing action) in the story dialog, and its card sheet.
   Touch targets >= 48px. Animates only transform/opacity; none with reduced motion. */

.share-row {
  margin-top: 22px;
}
/* The one sharing action: a little letter you send, with the scene card inside. */
.share-row .share-remind {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 10px 18px 10px 10px;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(255, 196, 150, .22), rgba(255, 196, 150, 0) 70%),
    #1d1729;
  color: #fffaf2;
  text-align: left;
  box-shadow: 0 10px 22px -12px rgba(29, 23, 41, .7);
  touch-action: manipulation;
  transition: transform .14s cubic-bezier(.23, 1, .32, 1);
}
.share-remind-stamp {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffc496;
  color: #1d1729;
  transform: rotate(-6deg);
  box-shadow: 0 0 0 2px #1d1729, 0 0 0 3.5px rgba(255, 196, 150, .55);
}
.share-remind-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-remind-label { font: 800 17px/1.2 var(--display, 'Outfit', sans-serif); letter-spacing: -.01em; }
.share-remind-sub { font: italic 14px/1.3 Georgia, 'Times New Roman', serif; color: #e6dcef; }
.share-row .share-remind > .gi { flex: none; width: 22px; height: 22px; color: #ffc496; }
.share-row .share-remind-stamp .gi { width: 24px; height: 24px; }
.share-row .share-remind:active { transform: scale(.97); }
.share-row .share-remind:focus-visible { outline: 3px solid var(--purple, #66518b); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .share-row .share-remind:hover .share-remind-stamp { transform: rotate(0deg) translateY(-2px); }
  .share-remind-stamp { transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
}

.share-arrival {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 99px;
  background: #ffe7d4;
  color: #6b3a1c;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Sheet ---------- */
dialog.share-sheet {
  width: min(480px, calc(100% - 22px));
  max-height: 92dvh;
  padding: 0;
  border-radius: 22px;
  background: var(--paper, #f7f2e8);
  color: var(--ink, #292333);
}
dialog.share-sheet::backdrop { background: rgba(37, 30, 52, .78); backdrop-filter: none; }
dialog.share-sheet[open] { animation: share-in .22s ease-out both; }
@keyframes share-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.share-sheet-inner { position: relative; padding: 22px 18px 20px; }
.share-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: var(--ink, #292333);
}
.share-title {
  margin: 4px 52px 12px 0;
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.5px;
}
.share-pick-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #625b68; }

.share-presets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.share-preset {
  min-height: 48px;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--line, #d5cebf);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #292333);
  font-size: 15px;
  line-height: 1.3;
}
.share-preset[aria-pressed="true"] {
  border-color: var(--purple, #66518b);
  background: #efe8fa;
  box-shadow: inset 0 0 0 2px var(--purple, #66518b);
  font-weight: 700;
}

.share-preview {
  position: relative;
  width: min(100%, 176px);
  margin: 0 auto 12px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #3b3150;
}
.share-preview[hidden] { display: none; }
.share-preview-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.share-preview-img:not([src]) { opacity: 0; }
.share-preview.is-busy .share-preview-img { opacity: .45; }
.share-busy {
  position: absolute;
  inset: auto 0 12px;
  margin: 0;
  text-align: center;
  color: #fff8ec;
  font-size: 14px;
  font-weight: 700;
}

.share-actions {
  position: sticky;
  bottom: -20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 -18px -20px;
  padding: 12px 18px 20px;
  background: var(--paper, #f7f2e8);
  box-shadow: 0 -10px 18px -12px rgba(41, 35, 51, .35);
}
.share-sheet .share-status:empty { display: none; }
.share-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 99px;
  border: 1px solid var(--ink, #292333);
  background: transparent;
  color: var(--ink, #292333);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.share-btn[hidden] { display: none; }
.share-primary { grid-column: 1 / -1; background: var(--ink, #292333); color: var(--paper, #f7f2e8); }
.share-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.share-status { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--purple, #66518b); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  dialog.share-sheet[open] { animation: none; }
  .share-row .share-remind, .share-remind-stamp, .share-preview-img { transition: none; }
  .share-row .share-remind:active { transform: none; }
  .share-row .share-remind:hover .share-remind-stamp { transform: rotate(-6deg); }
}

/* Brand icons (assets/icons.svg) */
.share-close { display: grid; place-items: center; padding: 0; }
.share-close .gi { width: 22px; height: 22px; }
