/* Shared share-button + popover styling for funny.lott665.com. Deliberately
   theme-neutral (a plain light popover) so it reads the same on every page,
   regardless of that page's own color scheme. */

.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover, .share-btn:focus-visible { background: rgba(255,255,255,.2); outline: none; }

/* Small variant for game cards on the landing page */
.share-btn.card-share {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 36px; height: 36px; background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.35);
}
.share-btn.card-share svg { width: 17px; height: 17px; }

.share-popover {
  position: fixed; z-index: 2147483000; width: 240px; max-height: 70vh; overflow-y: auto;
  background: #fff; color: #1a1a1a; border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35); font: 400 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.share-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px;
  background: none; border: 0; text-align: left; text-decoration: none; color: #1a1a1a; cursor: pointer;
  font: inherit;
}
.share-opt:hover, .share-opt:focus-visible { background: #f0f2f5; outline: none; }
.share-opt-icon { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; }
.share-opt-icon svg { width: 20px; height: 20px; }
.share-opt-icon--text {
  width: 20px; height: 20px; border-radius: 4px; background: #0a66c2; color: #fff;
  font: 700 11px/20px system-ui, sans-serif; text-align: center;
}
.share-copy { border-top: 1px solid #eee; margin-top: 4px; padding-top: 11px; }

@media (prefers-color-scheme: dark) {
  .share-popover { background: #22262b; color: #f2f2f2; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
  .share-opt { color: #f2f2f2; }
  .share-opt:hover, .share-opt:focus-visible { background: #2e333a; }
  .share-copy { border-top-color: #383d44; }
}
