/* Public player profile + username activation */

body.social-profile-page,
body.social-activate-page,
body.social-following-page,
body.social-profile-missing-page,
body.home-hub {
  --sp-gold: #e6c97a;
  --sp-border: rgba(255, 255, 255, 0.08);
  --sp-muted: rgba(255, 255, 255, 0.55);
  --sp-card: rgba(255, 255, 255, 0.03);
}

.social-profile-wrap {
  padding: 1.1rem 0 3rem;
}

.social-profile-wrap section {
  padding: 0;
}

.social-header {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 0.85rem 0 0.8rem;
  border-bottom: 1px solid var(--sp-border);
}

button.social-history-btn {
  position: absolute;
  top: 0.55rem;
  right: 0;
  z-index: 4;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

button.social-history-btn:hover,
button.social-history-btn:focus-visible {
  color: var(--sp-gold);
  border-color: rgba(230, 201, 122, 0.55);
}

.social-history-btn:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 2px;
}

@media (min-width: 701px) {
  body.social-profile-page[data-social-owner="1"] .social-header-row {
    padding-right: 2.75rem;
  }
}

.social-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.social-avatar-frame {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.social-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

button.social-avatar {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  line-height: 1;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.social-avatar img,
.social-hl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.social-avatar--edit {
  cursor: pointer;
}

.social-avatar--edit:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 3px;
}

.social-avatar-actions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0;
}

a.social-vip-mark {
  position: relative;
  z-index: 2;
  display: block;
  width: 52px;
  height: 52px;
  margin: 0.35rem auto 0;
  line-height: 0;
  border-radius: 50%;
}

a.social-vip-mark::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 6px;
  bottom: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  filter: blur(2.5px);
  z-index: 0;
}

a.social-vip-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.social-avatar-action {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.05rem 0.15rem;
  border: 0;
  border-radius: 6px;
  display: inline;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  position: relative;
}

.social-avatar-action::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 0;
  bottom: -14px;
  left: 0;
}

.social-avatar-action:hover,
.social-avatar-action:focus-visible {
  color: var(--sp-gold);
}

.social-avatar-action:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 2px;
}

.social-header-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.48rem;
}

.social-header-main > .social-header-row,
.social-header-main > .social-wallet,
.social-header-main > .social-wallet-hidden,
.social-header-main > .social-links-block,
.social-header-main > .social-badge-block,
.social-header-main > .social-follow-meta,
.social-header-main > .social-x {
  margin-top: 0;
  margin-bottom: 0;
}

.social-header-main .social-badge-rail {
  margin-top: 0;
}

.social-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  width: 100%;
}

.social-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.social-username-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.social-username {
  position: relative;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.social-username-cluster.is-copied .social-username {
  color: transparent;
  overflow: visible;
}

.social-username-cluster.is-copied .social-username::after {
  content: 'Copied';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.social-copy-link.is-copied::after {
  content: 'Copied';
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sp-gold);
  pointer-events: none;
  white-space: nowrap;
}

.social-username-cluster .social-you-pill {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(230, 201, 122, 0.62);
  border-color: rgba(230, 201, 122, 0.22);
  padding: 0.05rem 0.36rem;
}

.social-you-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-gold);
  border: 1px solid rgba(230, 201, 122, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.social-copy-link {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  position: relative;
}

.social-copy-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.social-copy-link:hover,
.social-copy-link:focus-visible,
.social-copy-link.is-copied {
  color: var(--sp-gold);
}

.social-copy-link.is-copied::after {
  position: absolute;
  left: calc(100% + 0.4rem);
  top: 50%;
  transform: translateY(-50%);
}

.social-copy-link:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 2px;
}

.social-avatar-wrap .social-copy-link {
  width: 2.75rem;
  height: 1.35rem;
  margin-top: 0;
  color: inherit;
}

.social-avatar-actions .social-copy-link.is-copied::after {
  left: 50%;
  top: calc(100% + 0.15rem);
  transform: translateX(-50%);
}

.social-report-btn {
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
}

.social-report-btn:hover {
  color: #fff;
}

.social-profile-foot {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sp-border);
}

.social-locked-banner,
.social-locked-page {
  border: 1px solid rgba(230, 201, 122, 0.28);
  background: rgba(230, 201, 122, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.social-locked-page h1 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.social-featured {
  margin: 0 0 1.4rem;
}

.social-featured-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.social-featured-pill {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-gold);
}

.social-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
}

.social-report-overlay[hidden] {
  display: none !important;
}

.social-report-sheet {
  width: min(26rem, 100%);
  background: var(--bg-card, #1e1e1e);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
}

.social-report-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.social-report-option,
.social-report-details {
  display: block;
  margin: 0.45rem 0;
  font-size: 0.9rem;
}

.social-report-details span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sp-muted);
  font-size: 0.8rem;
}

.social-report-details textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--sp-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 0.5rem 0.6rem;
  resize: vertical;
}

.social-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

/* Higher specificity than token-base/style.css [class*="-btn"] { width: 100% } */
button.social-follow-btn,
a.social-follow-btn,
.social-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  white-space: nowrap;
  box-sizing: border-box;
  border: 1px solid rgba(230, 201, 122, 0.45);
  background: var(--sp-gold);
  color: #0b0f16;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.social-follow-btn.is-following {
  background: transparent;
  color: var(--sp-gold);
}

#social-follow-btn.is-following {
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.12rem 0;
  min-height: 0;
  box-shadow: none;
}

#social-follow-btn.is-following:hover,
#social-follow-btn.is-following:focus-visible {
  filter: none;
  color: var(--sp-gold);
}

.social-follow-btn.is-blocked,
#social-blocked-btn {
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 0.12rem 0;
  min-height: 0;
  box-shadow: none;
}

.social-follow-btn.is-blocked:hover,
.social-follow-btn.is-blocked:focus-visible,
#social-blocked-btn:hover,
#social-blocked-btn:focus-visible {
  filter: none;
  color: var(--sp-gold);
}

.social-follow-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.social-wallet {
  margin-top: 0.35rem;
  border: 0;
  background: none;
  color: var(--sp-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  padding: 0;
  cursor: pointer;
}

.social-wallet-hidden {
  margin: 0.35rem 0 0;
  color: var(--sp-muted);
  font-size: 0.82rem;
}

.social-badge-block {
  --lht-accent: #3ecfb2;
}

.social-badge-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin: 0.48rem 0 0;
}

button.social-badge-chip,
button.social-badge-more,
.social-badge-chip,
.social-badge-more {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  overflow: visible;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.92);
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
}

button.social-badge-chip::-moz-focus-inner,
button.social-badge-more::-moz-focus-inner,
.social-badge-chip::-moz-focus-inner,
.social-badge-more::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button.social-badge-chip[hidden],
button.social-badge-more[hidden],
.social-badge-chip[hidden],
.social-badge-more[hidden] {
  display: none !important;
}

.social-badge-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 0;
  line-height: 1.25;
}

.social-badge-chip .social-badge-icon,
.social-badge-sheet-item .social-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  line-height: 0;
  color: var(--sp-gold);
}

.social-badge-chip .social-badge-icon svg,
.social-badge-sheet-item .social-badge-icon svg {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0;
  overflow: visible;
}

.social-badge-chip--plays .social-badge-icon svg {
  width: 10px;
  height: 10px;
}

.social-badge-chip--plays {
  border-color: rgba(230, 201, 122, 0.38);
  background: rgba(230, 201, 122, 0.08);
}

.social-badge-chip--plays .social-badge-icon {
  color: var(--sp-gold);
}

.social-badge-chip--lht {
  border-color: color-mix(in srgb, var(--lht-accent) 42%, transparent);
  background: color-mix(in srgb, var(--lht-accent) 10%, transparent);
}

.social-badge-chip--lht .social-badge-icon {
  color: var(--lht-accent);
}

.social-badge-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.5rem;
  line-height: 1.25;
  font-size: 12px;
}

button.social-badge-more,
.social-badge-more {
  padding: 0 8px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--sp-muted);
  font-weight: 700;
}

.social-badge-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.social-badge-sheet[hidden] {
  display: none !important;
}

.social-badge-sheet-card {
  width: min(22.5rem, 100%);
  background: var(--bg-card, #1e1e1e);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.15rem;
}

.social-badge-sheet-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.social-badge-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.social-badge-sheet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--sp-border);
  background: rgba(255, 255, 255, 0.03);
}

.social-badge-sheet-item.is-active {
  border-color: rgba(230, 201, 122, 0.35);
}

.social-badge-sheet-item--plays .social-badge-icon {
  color: var(--sp-gold);
}

.social-badge-sheet-item--lht .social-badge-icon {
  color: var(--lht-accent, #3ecfb2);
}

.social-badge-sheet-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.social-badge-sheet-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.social-badge-sheet-copy span {
  font-size: 0.78rem;
  color: var(--sp-muted);
}

button.social-badge-sheet-close,
.social-badge-sheet-close {
  display: inline-flex;
  width: auto;
  margin: 0.9rem 0 0;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

@media (min-width: 721px) {
  .social-badge-sheet {
    place-items: center;
  }
}

.social-follow-meta {
  margin: 0.55rem 0 0;
  color: var(--sp-muted);
  font-size: 0.92rem;
}

.social-follow-meta strong {
  color: #fff;
  font-weight: 650;
}

.social-follow-count {
  color: inherit;
  text-decoration: none;
}

.social-follow-count:hover strong {
  color: var(--sp-gold);
}

.social-follow-dot {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.social-x {
  margin: 0.4rem 0 0;
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.social-links-block {
  margin: 0.42rem 0 0;
}

.social-links-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

a.social-link-icon,
.social-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(232, 228, 220, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sp-border);
  text-decoration: none;
  flex: 0 0 auto;
}

/* Beat body a:link / :visited (blue) from style.css */
body a.social-link-icon:link,
body a.social-link-icon:visited {
  color: rgba(232, 228, 220, 0.72);
  text-decoration: none;
}

body a.social-link-icon:hover,
body a.social-link-icon:focus-visible,
body a.social-link-icon:active {
  color: var(--sp-gold);
  text-decoration: none;
  border-color: rgba(230, 201, 122, 0.55);
}

a.social-link-icon--hidden,
.social-link-icon--hidden {
  opacity: 0.42;
}

.social-link-icon svg {
  display: block;
  fill: currentColor;
}

a.social-links-sheet-item,
.social-links-sheet-item {
  text-decoration: none;
  color: inherit;
}

/* Beat body a:link (blue + underline) from style.css */
body a.social-links-sheet-item:link,
body a.social-links-sheet-item:visited,
body a.social-links-sheet-item:hover,
body a.social-links-sheet-item:active,
body a.social-badge-sheet-item.social-links-sheet-item:link,
body a.social-badge-sheet-item.social-links-sheet-item:visited,
body a.social-badge-sheet-item.social-links-sheet-item:hover,
body a.social-badge-sheet-item.social-links-sheet-item:active {
  color: inherit;
  text-decoration: none;
}

body a.social-links-sheet-item:hover,
body a.social-links-sheet-item:focus-visible {
  border-color: rgba(230, 201, 122, 0.4);
}

.social-links-sheet-item .social-link-icon {
  width: 28px;
  height: 28px;
}

.social-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.social-stat {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 0.85rem 0.7rem;
  text-align: center;
}

.social-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-gold);
}

.social-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.social-section {
  margin: 1.75rem 0 0;
}

.social-section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.social-games,
.social-achievements {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-games {
  display: grid;
  gap: 0.7rem;
}

button.social-games-more {
  display: block;
  width: auto;
  margin: 0.15rem auto 0;
  padding: 0.45rem 0.35rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

button.social-games-more:hover,
button.social-games-more:focus-visible {
  color: var(--sp-gold);
}

button.social-games-more:disabled {
  cursor: default;
  opacity: 0.55;
}

.social-game-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 88px;
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.social-game-thumb {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: #10151d;
}

.social-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.social-game-thumb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 12, 0.72) 0%, rgba(4, 8, 12, 0.18) 42%, transparent 78%);
  pointer-events: none;
}

.social-game-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
  flex: 1;
}

.social-game-name {
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.social-game-plays,
.social-game-best {
  color: var(--sp-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.social-game-best {
  color: rgba(230, 201, 122, 0.88);
}

.social-game-go {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
}

.social-game-card:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 201, 122, 0.38);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.social-game-card:hover .social-game-thumb-shade {
  background: linear-gradient(to top, rgba(4, 8, 12, 0.82) 0%, rgba(4, 8, 12, 0.28) 48%, transparent 82%);
}

.social-game-card:hover .social-game-go {
  color: var(--sp-gold);
}

.social-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: visible;
}

.social-achievements li {
  position: relative;
  border: none;
  padding: 0;
  color: var(--sp-gold);
}

.social-achievement {
  appearance: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(230, 201, 122, 0.28);
  color: inherit;
  background: transparent;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: help;
}

.social-achievement-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 6;
  width: max-content;
  max-width: min(240px, calc(100vw - 24px));
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: #10151d;
  border: 1px solid rgba(230, 201, 122, 0.35);
  color: #e8edf4;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.social-achievement:hover .social-achievement-tip,
.social-achievement:focus-visible .social-achievement-tip,
.social-achievement[aria-expanded="true"] .social-achievement-tip {
  opacity: 1;
  visibility: visible;
}

.social-muted {
  color: var(--sp-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}

body.social-edit-open {
  overflow: hidden;
}

.social-edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(0, 0, 0, 0.62);
}

.social-edit-overlay[hidden] {
  display: none !important;
}

.social-edit-sheet {
  width: 100%;
  max-width: 100%;
  max-height: min(92dvh, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card, #1e1e1e);
  border: 1px solid var(--sp-border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  padding: 0.95rem 1.05rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.social-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin: 0 0 0.55rem;
}

.social-edit-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

button.social-edit-x,
.social-edit-x {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: none;
  color: var(--sp-muted);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  width: auto;
}

.social-edit-x:hover,
.social-edit-x:focus-visible {
  color: var(--sp-gold);
}

.social-edit-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.social-edit-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.social-edit-body::-webkit-scrollbar {
  width: 5px;
}

.social-edit-body::-webkit-scrollbar-track {
  background: transparent;
}

.social-edit-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.social-edit-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.social-edit-section + .social-edit-section {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--sp-border);
}

.social-edit-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.social-edit-section > .social-muted {
  margin: 0 0 0.45rem;
}

.social-edit-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.social-edit-photo .social-avatar {
  width: 88px;
  height: 88px;
  font-size: 1.35rem;
}

.social-edit-photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.social-edit-section input[type="file"][hidden],
.social-edit-section .social-setting-status[hidden] {
  display: none !important;
  margin: 0;
}

button.social-edit-remove,
.social-edit-remove {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  width: auto;
}

.social-edit-remove:hover,
.social-edit-remove:focus-visible {
  border-color: rgba(230, 201, 122, 0.45);
  color: var(--sp-gold);
}

.social-edit-actions {
  flex: 0 0 auto;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sp-border);
}

.social-edit-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.social-edit-actions .social-setting-status {
  margin: 0 0 0.55rem;
}

.social-edit-actions .social-badge-sheet-close {
  margin: 0;
}

.social-edit-body .social-setting {
  padding: 0.55rem 0;
}

.social-edit-body .social-setting input[type="text"] {
  max-width: none;
}

@media (min-width: 721px) {
  .social-edit-overlay {
    place-items: center;
    padding: 1.25rem;
  }

  .social-edit-sheet {
    width: min(28.5rem, 100%);
    max-height: min(86vh, 820px);
    border-radius: 16px;
    border-bottom: 1px solid var(--sp-border);
    padding: 1.1rem 1.15rem 1.15rem;
  }
}

.social-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  color: rgba(255, 255, 255, 0.84);
}

.social-setting select,
.social-setting input[type="text"] {
  background: #161616;
  color: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
}

.social-edit-sheet input[type="checkbox"],
.social-setting input[type="checkbox"],
.social-link-public input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--sp-gold);
  cursor: pointer;
}

.social-setting--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.social-setting input[type="text"] {
  width: 100%;
  max-width: 22rem;
  padding: 0.45rem 0.65rem;
}

.social-setting-hint {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
  font-weight: 400;
}

.social-link-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
  margin: 0.5rem 0 0.35rem;
}

.social-link-add[hidden],
.social-link-add-chip[hidden],
.social-link-field[hidden] {
  display: none !important;
}

button.social-link-add-chip,
.social-link-add-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  white-space: nowrap;
  box-sizing: border-box;
  border: 1px solid var(--sp-border);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 228, 220, 0.86);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
  cursor: pointer;
}

button.social-link-add-chip:hover,
button.social-link-add-chip:focus-visible,
.social-link-add-chip:hover,
.social-link-add-chip:focus-visible {
  border-color: rgba(230, 201, 122, 0.55);
  color: var(--sp-gold);
}

.social-link-list {
  display: grid;
  gap: 0.55rem;
}

.social-link-field {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.2rem;
  row-gap: 0.32rem;
  align-items: start;
  padding: 0.7rem 0.8rem 0.65rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.social-link-field-head {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.social-link-field-head .social-setting {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.social-link-field .social-setting {
  padding: 0;
  gap: 0.32rem;
}

.social-link-field input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

button.social-link-handle,
.social-link-handle {
  appearance: none;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 228, 220, 0.34);
  cursor: grab;
  touch-action: none;
}

button.social-link-handle:hover,
button.social-link-handle:focus-visible,
.social-link-handle:hover,
.social-link-handle:focus-visible {
  color: var(--sp-gold);
  background: rgba(255, 255, 255, 0.04);
}

.social-link-handle[hidden] {
  display: none !important;
}

.social-link-field:has(.social-link-handle[hidden]) {
  grid-template-columns: 0 minmax(0, 1fr);
  column-gap: 0;
  padding-left: 0.8rem;
}

.social-link-field.is-dragging {
  position: relative;
  z-index: 2;
  opacity: 0.96;
  border-color: rgba(230, 201, 122, 0.32);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.social-link-list.is-reordering .social-link-field:not(.is-dragging) {
  transition: transform 0.12s ease;
}

body.social-link-dragging,
body.social-link-dragging .social-link-handle {
  cursor: grabbing;
  user-select: none;
}

.social-link-field-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.social-link-public {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  cursor: pointer;
  width: fit-content;
}

.social-link-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  padding: 0;
  font-size: 0.78rem;
  cursor: pointer;
}

.social-link-remove:hover,
.social-link-remove:focus-visible {
  color: #fff;
}

.social-setting-status {
  margin: 0.5rem 0 0;
  color: var(--sp-gold);
  font-size: 0.85rem;
}

.social-activate-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.5rem;
}

.social-activate-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
  margin-bottom: 0.45rem;
}

.social-activate-input-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.social-activate-prefix {
  padding: 0 0.2rem 0 0.85rem;
  color: var(--sp-gold);
  font-weight: 700;
}

.social-activate-input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  padding: 0.8rem 0.8rem 0.8rem 0.15rem;
  outline: none;
}

.social-activate-hint,
.social-activate-note {
  color: var(--sp-muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.social-activate-error {
  color: #f87171;
  font-size: 0.88rem;
  margin: 0.4rem 0 0;
}

.social-activate-submit {
  width: 100%;
  margin-top: 0.85rem;
  border: 0;
  border-radius: 10px;
  background: var(--sp-gold);
  color: #0b0f16;
  font-weight: 700;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

body a.social-activate-submit,
body a.social-activate-submit:link,
body a.social-activate-submit:visited,
body a.social-activate-submit:active {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  color: #0b0f16;
  background: var(--sp-gold);
}

.social-activate-submit:hover:not(:disabled),
body a.social-activate-submit:hover {
  color: #0b0f16;
  text-decoration: none;
  filter: brightness(1.1);
}

.social-activate-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.social-activate-note a {
  color: var(--sp-gold);
}

@media (min-width: 800px) {
  .social-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .social-header {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
  }

  .social-avatar-frame,
  .social-avatar,
  button.social-avatar {
    width: 88px;
    height: 88px;
  }

  .social-avatar-actions {
    margin-top: 0.2rem;
  }

  .social-avatar-wrap {
    position: relative;
  }

  a.social-vip-mark {
    position: absolute;
    top: calc(88px - 40px + 4px);
    right: -4px;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  a.social-vip-mark img {
    width: 40px;
    height: 40px;
  }

  .social-header-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-header-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    gap: 0.35rem;
  }

  .social-header-actions {
    margin-left: 0;
    justify-content: center;
  }

  .social-username-cluster {
    flex: 0 1 auto;
    max-width: 100%;
    justify-content: center;
  }

  .social-username {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 1.28rem;
    text-align: center;
  }

  .social-copy-link,
  .social-follow-btn,
  .social-you-pill {
    flex: 0 0 auto;
  }

  #social-follow-btn:not(.is-following) {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.2rem 0.52rem;
    border-radius: 6px;
    min-height: 0;
  }

  body.social-profile-page[data-social-owner="1"] .social-header-row {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
  }

  body.social-profile-page[data-social-owner="1"] .social-username-cluster {
    display: grid;
    grid-template-columns: minmax(3.6rem, 1fr) auto minmax(3.6rem, 1fr);
    width: 100%;
    max-width: 100%;
    align-items: center;
    column-gap: 0.4rem;
  }

  body.social-profile-page[data-social-owner="1"] .social-username {
    grid-column: 2;
    justify-self: center;
  }

  body.social-profile-page[data-social-owner="1"] .social-username-cluster .social-you-pill {
    grid-column: 3;
    justify-self: start;
  }

  body.social-profile-page[data-social-owner="1"] .social-wallet,
  body.social-profile-page[data-social-owner="1"] .social-wallet-hidden {
    max-width: 100%;
    text-align: center;
  }

  .social-links-rail,
  .social-badge-rail {
    justify-content: center;
  }

  .social-follow-meta {
    text-align: center;
  }

  .social-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-game-card {
    min-height: 76px;
    padding: 0.42rem 0.55rem 0.42rem 0.42rem;
    gap: 0.7rem;
    border-radius: 16px;
  }

  .social-game-thumb {
    flex-basis: 88px;
    width: 88px;
    height: 52px;
    border-radius: 12px;
  }

  button.social-follow-btn,
  a.social-follow-btn,
  .social-follow-btn {
    width: auto;
    flex: 0 0 auto;
  }
}

/* Highlights + following feed */
.social-feed-header h1 {
  margin: 0 0 0.35rem;
}

.social-feed-filters {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.15rem;
}

.social-feed-filter {
  border: 1px solid var(--sp-border);
  color: var(--sp-muted);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  text-decoration: none;
  font-size: 0.88rem;
}

.social-feed-filter:hover {
  color: #fff;
  border-color: rgba(230, 201, 122, 0.45);
}

.social-feed-filter.is-active {
  color: #0b0f16;
  background: var(--sp-gold);
  border-color: var(--sp-gold);
}

.social-feed-filter.is-active:hover {
  color: #0b0f16;
}

.social-hl-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-hl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.social-hl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.social-hl-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.social-hl-headline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-weight: 600;
}

.social-hl-headline a {
  color: var(--sp-gold);
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-hl-detail,
.social-hl-meta {
  margin: 0.25rem 0 0;
  color: var(--sp-muted);
  font-size: 0.86rem;
}

.social-hl-meta a,
.social-hl-meta .social-hl-share {
  color: var(--sp-gold);
  text-decoration: none;
}

.social-hl-dot {
  margin: 0 0.2rem;
}

.social-hl-mult {
  font-weight: 700;
  color: var(--sp-gold);
  white-space: nowrap;
}

button.social-feed-more,
.social-feed-more {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  border: 1px solid rgba(230, 201, 122, 0.4);
  background: transparent;
  color: var(--sp-gold);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  pointer-events: auto;
  width: 100%;
}

@media (max-width: 768px) {
  body.social-profile-page button.social-feed-more,
  body.social-profile-page .social-feed-more,
  body.social-following-page button.social-feed-more,
  body.social-following-page .social-feed-more {
    margin-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.social-hl-sentinel:not([hidden]) {
  display: block;
  width: 100%;
  min-height: 2.5rem;
}

button.social-feed-more[hidden],
.social-feed-more[hidden],
.social-hl-sentinel[hidden] {
  display: none !important;
}

.social-hl-sentinel[aria-busy="true"] {
  opacity: 0.65;
  cursor: wait;
}

.social-suggest-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.social-suggest {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.9rem;
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  padding: 0.7rem 0.8rem 0.7rem 0.75rem;
  background: var(--sp-card);
}

.social-suggest-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 0 1 auto;
  color: inherit;
  text-decoration: none;
}

/* Beat body a:link { text-decoration: underline } from style.css */
body a.social-suggest-main:link,
body a.social-suggest-main:visited,
body a.social-suggest-main:hover,
body a.social-suggest-main:active,
body a.social-hl-avatar:link,
body a.social-hl-avatar:visited,
body a.social-hl-avatar:hover,
body a.social-hl-avatar:active {
  color: #fff;
  text-decoration: none;
}
body a.social-follow-btn:link,
body a.social-follow-btn:visited,
body a.social-follow-btn:hover,
body a.social-follow-btn:active,
body .social-hl-headline a:link,
body .social-hl-headline a:visited,
body .social-hl-headline a:hover,
body .social-hl-headline a:active,
body .social-hl-meta a:link,
body .social-hl-meta a:visited,
body .social-hl-meta a:hover,
body .social-hl-meta a:active,
body a.social-home-follow-link:link,
body a.social-home-follow-link:visited,
body a.social-home-follow-link:hover,
body a.social-home-follow-link:active,
body .social-home-follow-more a:link,
body .social-home-follow-more a:visited,
body .social-home-follow-more a:hover,
body .social-home-follow-more a:active,
body a.social-game-card:link,
body a.social-game-card:visited,
body a.social-game-card:hover,
body a.social-game-card:active,
body a.social-feed-filter:link,
body a.social-feed-filter:visited,
body a.social-feed-filter:hover,
body a.social-feed-filter:active,
body a.social-follow-count:link,
body a.social-follow-count:visited,
body a.social-follow-count:hover,
body a.social-follow-count:active,
body a.social-back-link:link,
body a.social-back-link:visited,
body a.social-back-link:hover,
body a.social-back-link:active {
  text-decoration: none;
}

body a.social-follow-btn:link,
body a.social-follow-btn:visited,
body a.social-follow-btn:hover,
body a.social-follow-btn:active {
  color: #0b0f16;
}

body a.social-suggest-main:link,
body a.social-suggest-main:visited,
body a.social-suggest-main:hover,
body a.social-suggest-main:active {
  color: #fff;
}

body .social-hl-headline a:link,
body .social-hl-headline a:visited,
body .social-hl-headline a:hover,
body .social-hl-headline a:active {
  color: var(--sp-gold);
}

body .social-hl-meta a:link,
body .social-hl-meta a:visited,
body .social-hl-meta a:hover,
body .social-hl-meta a:active,
body a.social-home-follow-link:link,
body a.social-home-follow-link:visited,
body a.social-home-follow-link:hover,
body a.social-home-follow-link:active,
body .social-home-follow-more a:link,
body .social-home-follow-more a:visited,
body .social-home-follow-more a:hover,
body .social-home-follow-more a:active {
  color: var(--sp-gold);
}

body a.social-game-card:link,
body a.social-game-card:visited,
body a.social-game-card:hover,
body a.social-game-card:active {
  color: #fff;
}

body a.social-game-card:hover .social-game-name {
  color: var(--sp-gold);
}

body a.social-feed-filter:link,
body a.social-feed-filter:visited,
body a.social-feed-filter:hover,
body a.social-feed-filter:active {
  color: var(--sp-muted);
  text-decoration: none;
}

body a.social-feed-filter:hover,
body a.social-feed-filter:active {
  color: #fff;
}

body a.social-feed-filter.is-active:link,
body a.social-feed-filter.is-active:visited,
body a.social-feed-filter.is-active:hover,
body a.social-feed-filter.is-active:active {
  color: #0b0f16;
  text-decoration: none;
}

body a.social-follow-count:link,
body a.social-follow-count:visited,
body a.social-follow-count:hover,
body a.social-follow-count:active {
  color: var(--sp-muted);
}

body a.social-back-link:link,
body a.social-back-link:visited,
body a.social-back-link:hover,
body a.social-back-link:active {
  color: var(--sp-gold);
}

.social-back-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.social-suggest-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.social-suggest-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.social-suggest-stat {
  color: var(--sp-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.social-suggest .social-hl-avatar--sm {
  width: 40px;
  height: 40px;
  font-size: 0.78rem;
}

.social-suggest .social-follow-btn,
.social-suggest-follow {
  width: auto;
  flex: 0 0 auto;
  padding: 0.42rem 0.95rem;
}

body.social-following-page[data-follow-list-kind] .social-suggest-list {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

body.social-following-page[data-follow-list-kind] .social-suggest {
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  box-sizing: border-box;
  gap: 0.65rem;
  padding: 0.58rem 0.7rem 0.58rem 0.65rem;
}

body.social-following-page[data-follow-list-kind] .social-suggest-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.social-following-page[data-follow-list-kind] .social-suggest-copy {
  flex: 1 1 auto;
  min-width: 0;
}

body.social-following-page[data-follow-list-kind] .social-suggest-name {
  max-width: none;
}

body.social-following-page[data-follow-list-kind] .social-suggest-stat {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

@media (min-width: 701px) {
  body.social-following-page[data-follow-list-kind] .social-suggest-copy {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-name {
    flex: 0 1 auto;
    max-width: min(52%, 18rem);
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-stat {
    margin-left: auto;
    flex: 0 0 7.25rem;
    width: 7.25rem;
    min-width: 7.25rem;
    padding-right: 0.2rem;
    text-align: right;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    color: var(--sp-muted);
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.08rem;
    height: 2rem;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-ctrl,
  body.social-following-page[data-follow-list-kind] .social-more {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 2rem;
  }

  body.social-following-page[data-follow-list-kind][data-social-owner="1"] .social-suggest-ctrl {
    gap: 0.35rem;
  }

  body.social-following-page[data-follow-list-kind] .social-gift-btn {
    width: 2rem;
    height: 2rem;
    min-height: 2rem;
    box-sizing: border-box;
    margin: 0;
    align-self: center;
  }

  body.social-following-page[data-follow-list-kind] .social-gift-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn:not(.is-blocked) {
    height: 2rem;
    min-height: 2rem;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    margin: 0;
    align-self: center;
  }

  body.social-following-page[data-follow-list-kind] .social-more-btn {
    width: 1.45rem;
    height: 2rem;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn,
  body.social-following-page[data-follow-list-kind] .social-suggest .social-you-pill {
    width: auto;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn:not(.is-following) {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.2rem 0.52rem;
    border-radius: 6px;
    min-height: 0;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn.is-following,
  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn.is-blocked {
    border: 0;
    background: transparent;
    color: var(--sp-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    padding: 0.12rem 0;
    min-height: 0;
    box-shadow: none;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn.is-following:hover,
  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn.is-following:focus-visible,
  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn.is-blocked:hover,
  body.social-following-page[data-follow-list-kind] .social-suggest .social-follow-btn.is-blocked:focus-visible {
    color: var(--sp-gold);
  }

  body.social-following-page[data-follow-list-kind] .social-suggest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 0.28rem;
    padding: 0.58rem 0.08rem 0.58rem 0.55rem;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-main {
    grid-column: 1;
    min-width: 0;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-actions {
    display: contents;
  }

  body.social-following-page[data-follow-list-kind] .social-suggest-ctrl {
    grid-column: 2;
    justify-self: end;
    min-width: 0;
  }

  body.social-following-page[data-follow-list-kind] .social-gift-btn.is-block-hidden {
    display: none;
  }

  body.social-following-page[data-follow-list-kind] .social-more {
    grid-column: 3;
    justify-self: end;
  }

  body.social-following-page[data-follow-list-kind] .social-more-btn {
    width: 1.15rem;
    height: 1.75rem;
  }
}

.social-suggest-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.social-suggest-ctrl {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  background: transparent;
}

.social-gift-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(230, 201, 122, 0.4);
  border-radius: 8px;
  background: transparent;
  color: var(--sp-gold);
  font-family: inherit;
  cursor: pointer;
}

.social-gift-icon {
  display: block;
  font-size: 0.92rem;
  line-height: 1;
}

.social-gift-btn:hover,
.social-gift-btn:focus-visible {
  color: #fff;
  border-color: rgba(230, 201, 122, 0.8);
}

.social-gift-btn:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 2px;
}

.social-gift-btn:disabled,
.social-gift-btn.is-sent {
  opacity: 0.7;
  cursor: default;
}

.social-gift-btn.is-block-hidden {
  visibility: hidden;
  pointer-events: none;
}

.social-follow-slot {
  display: block;
  width: 100%;
  min-height: 1.75rem;
}

.social-more {
  position: relative;
  flex: 0 0 auto;
}

.social-more-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sp-muted);
  cursor: pointer;
}

.social-more-btn:hover,
.social-more-btn:focus-visible,
.social-more.is-open .social-more-btn {
  color: var(--sp-gold);
  background: var(--sp-card);
}

.social-more-btn:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 2px;
}

.social-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.2rem);
  z-index: 8;
  min-width: 8.5rem;
  padding: 0.28rem;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: #121821;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.social-more-item {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.42rem 0.65rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.social-more-item:hover,
.social-more-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sp-gold);
}

.social-gift-sheet-copy,
.social-gift-sheet-status {
  margin: 0 0 0.75rem;
  color: var(--sp-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.social-gift-sheet-status {
  color: var(--sp-gold);
}

.social-gift-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.social-gift-sheet-item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.social-gift-sheet-item:hover,
.social-gift-sheet-item:focus-visible {
  border-color: rgba(230, 201, 122, 0.45);
}

.social-gift-sheet-item:focus-visible {
  outline: 2px solid var(--sp-gold);
  outline-offset: 2px;
}

.social-gift-sheet-item:disabled {
  opacity: 0.55;
  cursor: wait;
}

.social-gift-sheet-item.is-authorized {
  opacity: 0.62;
  cursor: default;
  background: rgba(255, 255, 255, 0.02);
}

.social-gift-sheet-item.is-authorized:hover,
.social-gift-sheet-item.is-authorized:focus-visible {
  border-color: var(--sp-border);
  outline: none;
}

.social-gift-sheet-item-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.social-gift-sheet-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-gold);
  border: 1px solid rgba(230, 201, 122, 0.38);
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
}

.social-gift-sheet-item-meta {
  font-size: 0.78rem;
  color: var(--sp-muted);
}

body a.social-share-copy:link,
body a.social-share-copy:visited,
body a.social-share-copy:hover,
body a.social-share-copy:active {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.social-home-follow-empty {
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  background: var(--sp-card);
}

.social-home-follow-empty p {
  margin: 0 0 0.75rem;
  color: var(--sp-muted);
}

.social-home-follow-link,
.social-home-follow-more a {
  color: var(--sp-gold);
  text-decoration: none;
  font-weight: 600;
}

.social-home-follow-more {
  margin: 0.75rem 0 0;
}

.social-hl-list--compact .social-hl {
  padding: 0.7rem 0.8rem;
}

button.social-hl-share {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sp-gold);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body button.social-hl-share {
  color: var(--sp-gold);
}

.social-block-sheet {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  place-items: center;
  padding: 1.15rem;
  background: rgba(0, 0, 0, 0.72);
}

.social-block-sheet[hidden] {
  display: none !important;
}

.social-block-sheet-card {
  width: min(22rem, 100%);
  background: #121722;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.05rem;
}

.social-block-title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.social-block-copy {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.social-block-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

button.social-block-cancel,
button.social-block-ok {
  appearance: none;
  width: auto;
  margin: 0;
  border-radius: 10px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.social-block-cancel {
  border: 1px solid var(--sp-border);
  background: transparent;
  color: #fff;
}

button.social-block-ok {
  border: 0;
  background: var(--sp-gold);
  color: #0b0f16;
}

button.social-block-ok:disabled,
button.social-block-cancel:disabled {
  opacity: 0.45;
  cursor: default;
}

.social-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
}

.social-share-sheet[hidden] {
  display: none !important;
}

.social-share-sheet-card {
  display: flex;
  flex-direction: column;
  width: min(36rem, 100%);
  background: #121722;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 0.95rem 0.9rem 1.05rem;
}

.social-share-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.social-share-preview-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, calc(100dvh - 12rem));
  aspect-ratio: 1 / 1;
  height: auto;
  margin-inline: auto;
  overflow: hidden;
  background: #0b0f16;
}

.social-share-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.social-share-preview-loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  background: #0b0f16;
  color: var(--sp-gold);
  font-size: 0.86rem;
}

.social-share-preview-wrap.is-loading .social-share-preview-loader {
  display: grid;
}

.social-share-preview-wrap.is-loading .social-share-preview,
.social-share-preview-wrap.is-empty .social-share-preview {
  opacity: 0;
}

.social-share-preview-label {
  font-weight: 600;
}

.social-share-spinner {
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid rgba(230, 201, 122, 0.22);
  border-top-color: var(--sp-gold);
  border-radius: 50%;
  animation: social-share-spin 0.7s linear infinite;
}

@keyframes social-share-spin {
  to { transform: rotate(360deg); }
}

.social-share-status {
  margin: 0.65rem 0 0;
  color: var(--sp-gold);
  font-size: 0.86rem;
}

.social-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.social-share-download,
.social-share-native,
.social-share-copy,
.social-share-close {
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.social-share-download,
.social-share-native {
  background: var(--sp-gold);
  color: #0b0f16;
}

.social-share-download:disabled,
.social-share-native:disabled {
  opacity: 0.45;
  cursor: default;
}

.social-share-close,
.social-share-copy {
  background: transparent;
  color: #fff;
  border: 1px solid var(--sp-border);
}

.social-find-panel {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.social-following-setup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.1rem;
}

.social-following-setup .social-activate-card,
.social-following-setup .social-find-panel {
  max-width: none;
  width: 100%;
  margin: 0;
}

@media (min-width: 721px) {
  .social-following-setup {
    grid-template-columns: 1fr 1fr;
  }
}

.social-following-page .social-find-panel,
.social-profile-missing-page .social-find-panel {
  margin-left: auto;
  margin-right: auto;
}

.social-following-page .social-following-setup .social-find-panel {
  margin: 0;
  max-width: none;
}

.social-find-form--panel .social-find-heading {
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--sp-muted);
}

.social-find-form--panel .social-find-row {
  border-color: var(--sp-border);
}

.social-find-form--panel .social-find-prefix {
  color: var(--sp-gold);
}

.social-find-form--panel .social-find-submit {
  background: var(--sp-gold);
  color: #0b0f16;
  transition: filter 0.18s ease;
}

.social-find-form--panel .social-find-submit:hover:not(:disabled) {
  filter: brightness(1.1);
}

.social-home-follow .social-find-panel {
  margin-top: 0.85rem;
  max-width: none;
}

body.social-history-open {
  overflow: hidden;
}

.social-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, 0.62);
}

.social-history-overlay[hidden] {
  display: none !important;
}

.social-history-sheet {
  width: min(640px, 100%);
  max-height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card, #1e1e1e);
  border: 1px solid var(--sp-border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  padding: 0.95rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.social-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 0 0 auto;
  margin-bottom: 0.55rem;
}

.social-history-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.social-history-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.social-history-columns {
  display: none;
}

.social-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 0.15rem 0.75rem;
  padding: 0.65rem 0.15rem;
  border-bottom: 1px solid var(--sp-border);
}

.social-history-row .social-history-meta:nth-child(3)::before {
  content: 'Stake ';
}

.social-history-row .social-history-meta:nth-child(4)::before {
  content: 'Result ';
}

.social-history-game {
  min-width: 0;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  overflow-wrap: anywhere;
}

body a.social-history-game-link:link,
body a.social-history-game-link:visited,
body a.social-history-game-link:hover,
body a.social-history-game-link:active {
  color: inherit;
  text-decoration: none;
}

.social-history-time,
.social-history-meta {
  color: var(--sp-muted);
  font-size: 0.82rem;
}

.social-history-time {
  text-align: right;
  white-space: nowrap;
  align-self: start;
}

.social-history-meta {
  grid-column: 1 / -1;
}

.social-history-hashes {
  color: #d0bfff;
}

.social-history-status {
  flex: 0 0 auto;
  margin: 0.45rem 0 0;
  min-height: 1.2em;
  color: var(--sp-muted);
  font-size: 0.82rem;
}

@media (min-width: 720px) {
  .social-history-overlay {
    place-items: center;
    padding: 1.5rem;
  }

  .social-history-sheet {
    width: min(960px, 100%);
    border-bottom: 1px solid var(--sp-border);
    border-radius: 16px;
    max-height: min(78dvh, 680px);
  }

  .social-history-list {
    gap: 0;
  }

  .social-history-columns,
  .social-history-row {
    grid-template-columns: minmax(13rem, 1.7fr) 9rem minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) 8.75rem;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0;
  }

  .social-history-time,
  .social-history-meta {
    white-space: nowrap;
  }

  .social-history-time {
    align-self: center;
  }

  .social-history-columns {
    display: grid;
    padding: 0 0.15rem 0.35rem;
    color: var(--sp-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .social-history-row .social-history-meta:nth-child(3)::before,
  .social-history-row .social-history-meta:nth-child(4)::before {
    content: none;
  }

  .social-history-time,
  .social-history-meta {
    grid-column: auto;
    text-align: left;
  }
}

