/* ========== SHARE CARD MODAL ========== */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px;
  overflow-y: auto;
}
.share-overlay[hidden] { display: none !important; }

.share-overlay .close {
  align-self: flex-end;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #eef1ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 12px;
}

.share-card {
  width: 360px;
  height: 640px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, #2a1a50 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, #1a0f30 0%, transparent 55%),
    linear-gradient(180deg, #0a0818 0%, #050310 100%);
  box-shadow: 0 20px 80px -20px rgba(255, 210, 74, 0.4);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
  color: #eef1ff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
.share-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,210,74,0.2) 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255,77,141,0.15) 0%, transparent 40%);
  pointer-events: none;
}
.share-card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 210, 74, 0.25);
  pointer-events: none;
}

.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
  position: relative;
}
.sc-brand { color: #ffd24a; }
.sc-date { color: #7680a4; }

.sc-player {
  margin-top: 10px;
  position: relative;
}
.sc-name {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}
.sc-tag {
  font-size: 10px;
  color: #7680a4;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.sc-club {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  color: #5ce1e6;
  background: rgba(92,225,230,0.1);
  border: 1px solid rgba(92,225,230,0.3);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 800;
}

.sc-rank-wrap {
  position: relative;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 4px;
}
.sc-rank-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #7680a4;
  font-weight: 800;
}
.sc-rank {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 140px;
  line-height: 0.85;
  font-weight: 900;
  color: #ffd24a;
  letter-spacing: -0.08em;
  text-shadow: 0 0 40px rgba(255,210,74,0.6),
               0 0 80px rgba(255,210,74,0.3);
  margin-top: 2px;
}
.sc-rank.long2 { font-size: 110px; }
.sc-rank.long3 { font-size: 86px; letter-spacing: -0.1em; }

.sc-title {
  margin: 6px auto 0;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,210,74,0.1);
  border: 1px solid rgba(255,210,74,0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #ffd24a;
}

.sc-percentile {
  text-align: center;
  margin-top: 14px;
  position: relative;
}
.sc-percentile .label {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #7680a4;
  font-weight: 800;
}
.sc-percentile .big {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #5ce1e6;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(92,225,230,0.5);
  margin-top: 2px;
}
.sc-percentile .big .pct {
  font-size: 28px;
  vertical-align: super;
  margin-left: 1px;
}

.sc-meme {
  text-align: center;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  position: relative;
}

.sc-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
}
.sc-stats .cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.sc-stats .cell span {
  display: block;
  font-size: 8px;
  color: #7680a4;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.sc-stats .cell strong {
  display: block;
  font-size: 15px;
  color: #ffd24a;
  font-weight: 900;
  margin-top: 2px;
}

.sc-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 9px;
  color: #7680a4;
  font-weight: 800;
  letter-spacing: 0.15em;
  position: relative;
}
.sc-footer .url {
  color: #ffd24a;
  font-size: 11px;
}

.share-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 360px;
  max-width: calc(100vw - 32px);
}
.share-actions button {
  border: 0;
  padding: 14px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.share-actions .download {
  background: linear-gradient(135deg, #ffd24a 0%, #ff8a3c 100%);
  color: #1a1300;
}
.share-actions .x-share {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}
.share-actions .line-share {
  background: #06c755;
  color: #fff;
}
.share-hint {
  font-size: 11px;
  color: #7680a4;
  text-align: center;
  margin-top: 8px;
}
