/* ============================================================
   ROLLIT — SHARE CARD  (css/sharecard.4a4cb181.css)
   Modal that previews the generated "Top 10" image + share actions.
   Self-contained; relies only on the global --gold / spinner defined
   elsewhere, with safe fallbacks.
   ============================================================ */
.sharecard-bg {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(6, 7, 11, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.sharecard-bg.open { opacity: 1; }

.sharecard-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: 92vh;
  display: flex; flex-direction: column;
  background: #14151d;
  border: 1px solid #262833;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
  overflow: hidden;
}
.sharecard-bg.open .sharecard-modal { transform: none; }

.sharecard-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); color: #cfd0da;
  border: 1px solid #2c2e3a; cursor: pointer;
  font-size: 18px; transition: background .15s, color .15s;
}
.sharecard-close:hover { background: rgba(0, 0, 0, .7); color: #fff; }

.sharecard-stage {
  position: relative;
  padding: 22px 22px 8px;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
  overflow: auto;
}
.sharecard-preview {
  max-width: 100%;
  max-height: 62vh;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  opacity: 1; transition: opacity .2s ease;
}
.sharecard-bg.loading .sharecard-preview { opacity: 0; }
.sharecard-spinner {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
}
.sharecard-bg.loading .sharecard-spinner { display: flex; }

/* Title-count slider — choose how many titles the card shows (3 … list size). */
.sharecard-count {
  padding: 12px 20px 4px;
}
.sharecard-count-label { font-size: 13px; color: #9a98ae; display: block; margin-bottom: 8px; }
.sharecard-count-label strong { color: var(--gold, #e8c96b); font-size: 15px; }
.sharecard-count-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 20px;
  background: #23242e; outline: none;
}
.sharecard-count-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold, #e8c96b); cursor: pointer;
  border: 2px solid #14151d; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.sharecard-count-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold, #e8c96b); cursor: pointer; border: 2px solid #14151d;
}
.sharecard-count-ticks { display: flex; justify-content: space-between; font-size: 10px; color: #6f6d82; margin-top: 3px; }

.sharecard-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 18px 18px;
  border-top: 1px solid #20222c;
}
.sc-btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #1d1f29; color: #d9dae4;
  border: 1px solid #2c2e3a;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.sc-btn:hover { background: #24262f; border-color: #3a3c48; }
.sc-btn:active { transform: translateY(1px); }
.sc-btn i { font-size: 16px; }

.sc-btn-primary {
  flex-basis: 100%;
  background: linear-gradient(135deg, #e8c96b, #d9b24e);
  color: #201a06; border-color: transparent;
}
.sc-btn-primary:hover { background: linear-gradient(135deg, #f0d580, #e2bd5a); }

/* "Share Top 10" action button inside the list modal action row. */
.lm-act.lm-top {
  color: var(--gold, #e8c96b);
  border-color: rgba(232, 201, 107, .35);
}
.lm-act.lm-top:hover { background: rgba(232, 201, 107, .12); }

/* Share button in the Rankings tab section headings. */
.rank-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 5px 11px;
  border-radius: 9px;
  background: rgba(232, 201, 107, .1);
  color: var(--gold, #e8c96b);
  border: 1px solid rgba(232, 201, 107, .3);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  vertical-align: middle;
  transition: background .15s;
}
.rank-share-btn:hover { background: rgba(232, 201, 107, .2); }

@media (max-width: 480px) {
  .sc-btn { flex-basis: 100%; }
}
