/* ============================================================
   CHRONOFALL — VIRALITÄT / SHARING styles
   Toast, Share-Buttons (Minigame + Story), Footer-Social-Row.
   Touch-first: alles ohne Hover bedienbar, 44px-Ziele.
   ============================================================ */

/* ---------- Share-Buttons (auf <button> sitzt .btn .btn--ghost) ---------- */
.share-btn {
  background: transparent;
  border: 1px solid rgba(168, 85, 247, .5);
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.share-btn:active {
  background: rgba(168, 85, 247, .18);
  box-shadow: 0 0 24px rgba(168, 85, 247, .35);
  transform: translateY(1px);
}
.share-btn:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* Minigame-Endscreen: unter NOCHMAL SPIELEN, etwas kleiner */
.share-btn--minigame {
  margin-top: .7rem;
  font-size: .68rem;
  padding: .8rem 1.8rem;
}

/* Story-Epitaph-Karte: unter dem Neustart-Button */
.share-btn--story {
  display: block;
  margin: .8rem auto 0;
  font-size: .68rem;
  padding: .8rem 1.8rem;
}

/* ---------- Toast ---------- */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1.2rem, 4vh, 2.4rem);
  transform: translate(-50%, 16px);
  z-index: 999;
  max-width: min(92vw, 26rem);
  padding: .85rem 1.5rem;
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .3em;
  text-align: center;
  color: var(--pink);
  background: rgba(13, 7, 22, .94);
  border: 1px solid var(--purple);
  box-shadow: 0 0 24px rgba(168, 85, 247, .55), inset 0 0 18px rgba(168, 85, 247, .12);
  text-shadow: 0 0 12px var(--purple);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.share-toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Footer-Social-Row (#socialRow) ---------- */
.share-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem auto 0;
}
.share-row__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
}
.share-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-dim);
  border: 1px solid rgba(168, 85, 247, .35);
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.share-row__icon svg {
  display: block;
}
.share-row__icon:hover,
.share-row__icon:focus-visible,
.share-row__icon:active {
  color: var(--pink);
  border-color: var(--purple);
  box-shadow: 0 0 18px rgba(168, 85, 247, .45);
}
.share-row__icon:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.share-row__icon:active {
  transform: scale(.94);
}
.share-btn--page {
  font-size: .68rem;
  padding: .8rem 1.8rem;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .share-toast,
  .share-row__icon,
  .share-btn {
    transition: none !important;
    transform: translate(-50%, 0);
  }
  .share-row__icon,
  .share-btn {
    transform: none;
  }
}
