/* Social rail — fixed 16:9 gutter. Do not change .account-shell metrics. */
#social-rail {
  position: fixed;
  right: max(10px, calc((100vw - min(720px, 96vw)) / 2 - 76px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 4300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
#social-rail[hidden] { display: none !important; }
.social-rail-burger {
  display: none;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: url("../../bg/ptn.png") top center / 200px 200px repeat, rgba(52, 163, 243, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.social-rail-burger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.7);
}
.social-rail-burger:active { transform: translateY(0) scale(0.97); }
#social-rail.is-open .social-rail-burger {
  background: url("../../bg/ptn.png") top center / 200px 200px repeat, rgba(232, 72, 153, 0.9);
  border-color: rgba(255, 179, 209, 0.85);
}
.social-rail-burger-bars,
.social-rail-burger-bars::before,
.social-rail-burger-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  position: relative;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.social-rail-burger-bars::before,
.social-rail-burger-bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.social-rail-burger-bars::before { top: -6px; }
.social-rail-burger-bars::after { top: 6px; }
#social-rail.is-open .social-rail-burger-bars { background: transparent; }
#social-rail.is-open .social-rail-burger-bars::before { top: 0; transform: rotate(45deg); }
#social-rail.is-open .social-rail-burger-bars::after { top: 0; transform: rotate(-45deg); }
.social-rail-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: inherit;
}
/* Wider shells (deck / shops): park on the viewport’s outer right. */
#social-rail.social-rail--edge {
  right: max(10px, env(safe-area-inset-right, 0px));
}
/* Unranked lobby is 920px — sit just outside that column, same idea as ranked’s 720px hub. */
#social-rail.social-rail--lobby {
  right: max(10px, calc((100vw - min(920px, 96vw)) / 2 - 76px));
}
/* Booster page is 1200px — sit just outside that column, same idea as the 720px hub. */
#social-rail.social-rail--booster {
  right: max(10px, calc((100vw - min(1200px, 98vw)) / 2 - 76px));
}
#social-rail.social-rail--pack {
  right: max(10px, calc((100vw - min(1100px, 98vw)) / 2 - 76px));
}
/* Card list shell is 1120px — sit just outside that column. */
#social-rail.social-rail--card-list {
  right: max(10px, calc((100vw - min(1120px, 98vw)) / 2 - 76px));
}
.social-rail-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.social-rail-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.social-rail-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.social-rail-btn.is-mod {
  color: #f4c36a;
  font-size: 28px;
  font-weight: 800;
  line-height: 56px;
  background: transparent;
}
@media (max-width: 1279px) {
  #social-rail { right: 8px; gap: 10px; }
  .social-rail-btn { width: 44px; height: 44px; }
}

/* Phones / small menus: burger in the top-right instead of a side rail. */
@media (max-width: 1023px) {
  #social-rail,
  #social-rail.social-rail--edge,
  #social-rail.social-rail--booster,
  #social-rail.social-rail--lobby,
  #social-rail.social-rail--pack {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    transform: none;
    align-items: flex-end;
    gap: 8px;
  }
  .social-rail-burger { display: flex; align-items: center; justify-content: center; }
  .social-rail-panel {
    display: none;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: url("../../bg/ptn.png") top center / 200px 200px repeat, rgba(38, 132, 210, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 163, 243, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    gap: 8px;
  }
  #social-rail.is-open .social-rail-panel { display: flex; }
}

html.tcg-phone-device #social-rail,
html.tcg-portrait-play #social-rail,
html.tcg-mobile-viewport #social-rail {
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  transform: none;
  align-items: flex-end;
  gap: 8px;
}
html.tcg-phone-device .social-rail-burger,
html.tcg-portrait-play .social-rail-burger,
html.tcg-mobile-viewport .social-rail-burger {
  display: flex;
  align-items: center;
  justify-content: center;
}
html.tcg-phone-device .social-rail-panel,
html.tcg-portrait-play .social-rail-panel,
html.tcg-mobile-viewport .social-rail-panel {
  display: none;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: url("../../bg/ptn.png") top center / 200px 200px repeat, rgba(38, 132, 210, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 163, 243, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  gap: 8px;
}
html.tcg-phone-device #social-rail.is-open .social-rail-panel,
html.tcg-portrait-play #social-rail.is-open .social-rail-panel,
html.tcg-mobile-viewport #social-rail.is-open .social-rail-panel { display: flex; }

body.social-overlay-open { overflow: hidden; }
body.social-overlay-open .llc-sky-dim {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(78,197,255,.12) 42%, rgba(50,157,255,.18) 100%),
    radial-gradient(ellipse 90% 60% at 72% 8%, rgba(255,255,255,.14) 0%, transparent 58%);
}
body.social-overlay-open .llc-sky-dim::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(4, 10, 24, 0.42);
}
.social-overlay.llc-menu-screen {
  position: fixed;
  inset: 0;
  z-index: 8760;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(12px, 3vw, 24px) 16px;
  background: rgba(4, 10, 24, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.social-overlay.open { display: flex; }
.social-overlay.open.social-stack-top { z-index: 8785; }
/* Card inspect (#modal-card is z-index 940) must sit above profile / friends. */
body.social-overlay-open #modal-card,
body.social-overlay-open #modal-card.open {
  z-index: 8900;
}
.social-overlay .social-shell {
  max-width: min(720px, 96vw);
  width: 100%;
  margin-block: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(16px, 2.6vw, 24px) clamp(14px, 2.2vw, 20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: url("../../bg/ptn.png") top center / 200px 200px repeat, rgba(38, 132, 210, 0.9);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.45), 0 0 32px rgba(52, 163, 243, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 0;
}
.social-overlay .social-panel-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-height: min(82vh, 760px);
  flex: 1 1 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.social-overlay .account-screen-head { margin-bottom: 8px; flex: 0 0 auto; }
.social-overlay .social-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px;
  margin-right: -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 179, 209, 0.75) rgba(255, 255, 255, 0.12);
}
.social-overlay .social-scroll::-webkit-scrollbar { width: 6px; }
.social-overlay .social-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin: 6px 0;
}
.social-overlay .social-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink-l), var(--pink));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 8px rgba(255, 107, 168, 0.28);
}
.social-overlay .social-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff, var(--pink-l));
}
.social-overlay textarea {
  font-family: 'Zen Kaku Gothic New', 'Nunito', sans-serif;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bae4ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  resize: vertical;
}
.social-overlay textarea:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(186, 228, 255, 0.35);
}
.social-add-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.social-add-form .field { flex: 1 1 auto; margin-bottom: 0; }
.social-add-form .btn-grad { flex: 0 0 auto; width: auto; }
.social-tabs button {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(186, 228, 255, 0.55);
  border-radius: 10px;
  background: rgba(52, 163, 243, 0.18);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 8px;
  cursor: pointer;
}
.social-tabs button[aria-selected="true"] {
  background: rgba(255, 107, 168, 0.42);
  border-color: #ffd0e4;
  box-shadow: 0 0 0 1px rgba(255, 208, 228, 0.35);
}
.social-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.social-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #223;
}
.social-code { font-family: ui-monospace, monospace; letter-spacing: 0.06em; }
.social-bio { width: 100%; min-height: 72px; resize: vertical; }
.social-showcase {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0;
  overflow-x: auto;
}
.social-showcase button,
.social-card-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  padding: 0;
  cursor: pointer;
}
.social-showcase img,
.social-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-picker-card { position: relative; }
.social-live-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% * 88 / 63);
  height: calc(100% * 63 / 88);
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
  overflow: hidden;
  pointer-events: none;
}
.social-live-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.social-card-thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1;
}
.social-card-thumb.is-picking {
  outline: 2px solid #ffd0e4;
  outline-offset: 2px;
}
.social-card-picker {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.2);
}
.social-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.social-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  max-height: min(42vh, 280px);
  overflow-y: auto;
  padding-right: 4px;
}
.social-picker-card {
  position: relative;
  aspect-ratio: 63 / 88;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.social-picker-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-picker-empty { margin: 8px 0; font-size: 13px; opacity: 0.9; }
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.social-row img.av,
.social-opp-row img.av,
.av-empty {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
}
.av-empty {
  display: block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.social-stats { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.social-stat-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.social-stat-empty { margin: 0; opacity: 0.7; font-size: 13px; }
.social-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(135deg, rgba(255, 107, 168, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.social-stat-chip-label { font-size: 11px; letter-spacing: 0.04em; opacity: 0.85; }
.social-stat-chip strong { font-size: 18px; line-height: 1.1; }
.social-stat-chip-sub { font-size: 11px; opacity: 0.8; }
.social-opp-list,
.social-hist-list { display: flex; flex-direction: column; gap: 6px; }
.social-opp-row,
.social-hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
}
.social-opp-row { cursor: pointer; }
.social-opp-row:hover { border-color: rgba(255, 107, 168, 0.7); background: rgba(255, 107, 168, 0.16); }
.social-opp-name,
.social-hist-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.social-record {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.social-hist-mode { flex: 0 0 auto; font-size: 11px; opacity: 0.78; }
.social-result {
  flex: 0 0 auto;
  min-width: 3.2em;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.social-result--win { background: linear-gradient(135deg, var(--pink, #ff6ba8), var(--pink-d, #e14d8c)); color: #fff; }
.social-result--loss { background: rgba(8, 12, 28, 0.55); border: 1px solid rgba(255, 255, 255, 0.28); }
.social-result--draw { background: rgba(186, 228, 255, 0.28); }
.social-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.social-tabs button[aria-selected="true"] { font-weight: 800; }
.social-bars { display: flex; flex-direction: column; gap: 6px; }
.social-bar {
  display: grid;
  grid-template-columns: 28px minmax(72px, 1.2fr) minmax(48px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.social-bar > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-idol-face {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.28);
}
.social-idol-face.is-empty { display: block; }
.social-bar-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
}
button.social-bar-art { cursor: pointer; }
.social-unit-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: rgba(0,0,0,.18);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.22);
  padding: 2px;
  box-sizing: border-box;
}
.social-live-thumb {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  display: block;
}
.social-bar-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.social-bar-fill {
  height: 100%;
  background: #e89aa4;
  border-radius: 6px;
}
.social-bar-n {
  font-size: 12px;
  background: #1a1a22;
  color: #fff;
  border-radius: 999px;
  text-align: center;
  padding: 1px 6px;
}
.social-comp-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.social-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
}
.social-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}
.social-banlist-title { margin: 16px 0 8px; font-size: 16px; }
.social-char-count { font-size: 12px; opacity: 0.8; text-align: right; }
.rank-name.social-name-link {
  cursor: pointer;
  text-decoration: none;
}
.social-friend-id {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(186,228,255,.45);
  background: rgba(52,163,243,.22);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}
.social-friend-id:hover,
.social-friend-id.is-copied { border-color: #ffd0e4; background: rgba(255,107,168,.38); }
.social-friend-id-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social-bio-text { white-space: pre-wrap; margin: 8px 0 12px; line-height: 1.45; }
.social-vis-hint { font-size: 12px; opacity: .75; margin: 0 0 8px; }
.social-deck-preview {
  display: block;
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.22);
  cursor: pointer;
  color: inherit;
  text-align: left;
}
.social-deck-preview:hover { border-color: #ffd0e4; }
.social-preview-row { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 8px; overflow-x: auto; }
.social-preview-card { position: relative; flex: 0 0 auto; width: 56px; height: 78px; border-radius: 6px; overflow: hidden; display: block; border: 1px solid rgba(255,255,255,.2); }
.social-preview-face { position: absolute; inset: 0; }
.social-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-preview-card em {
  position: absolute; right: 2px; bottom: 2px; z-index: 1;
  font-style: normal; font-size: 10px; font-weight: 800;
  background: rgba(0,0,0,.7); color: #fff; border-radius: 6px; padding: 0 4px;
}
.social-preview-hint { font-size: 12px; font-weight: 800; opacity: .85; }
.social-log-wrap { display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch; margin: 12px 0; }
.social-log-chart { flex: 1 1 0; min-width: 0; }
.social-log-title { text-align: center; font-weight: 800; margin-bottom: 4px; font-size: 11px; }
.social-log-cols { display: flex; align-items: flex-end; gap: 4px; background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px 6px 6px; min-height: 120px; }
.social-log-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.social-log-cap {
  font-size: 10px; font-weight: 800; background: #2a2a33; color: #fff;
  border-radius: 999px; padding: 1px 5px; margin-bottom: 4px;
}
.social-log-track { width: 100%; height: 72px; display: flex; align-items: flex-end; justify-content: center; }
.social-log-bar { width: 70%; max-width: 18px; background: #e89aa4; border-radius: 3px 3px 0 0; }
.social-log-foot { margin-top: 4px; font-size: 9px; font-weight: 800; text-align: center; line-height: 1.1; }
.social-log-heart { width: 16px; height: 16px; object-fit: contain; display: block; }
.social-log-heart { width: 14px; height: 14px; }
.social-idol-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.28); }
.social-idol-face.is-empty { display: block; }
.social-friend-id { display: inline-flex; align-items: center; margin: 4px 0 0; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(186,228,255,.45); background: rgba(52,163,243,.22); color: #fff; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
.social-friend-id:hover, .social-friend-id.is-copied { border-color: #ffd0e4; background: rgba(255,107,168,.38); }
.social-friend-id-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social-bio-text { white-space: pre-wrap; margin: 8px 0 12px; line-height: 1.45; }
.social-vis-hint { font-size: 12px; opacity: .75; margin: 0 0 8px; }
.social-deck-preview { display: block; width: 100%; margin: 8px 0 12px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.22); cursor: pointer; color: inherit; text-align: left; }
.social-deck-preview:hover { border-color: #ffd0e4; }
.social-preview-row { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 8px; overflow-x: auto; }
.social-preview-card { position: relative; flex: 0 0 auto; width: 56px; height: 78px; border-radius: 6px; overflow: hidden; display: block; border: 1px solid rgba(255,255,255,.2); }
.social-preview-face { position: absolute; inset: 0; }
.social-preview-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-preview-card em { position: absolute; right: 2px; bottom: 2px; z-index: 1; font-style: normal; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.7); color: #fff; border-radius: 6px; padding: 0 4px; }
.social-preview-hint { font-size: 12px; font-weight: 800; opacity: .85; }
.social-log-wrap { display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch; margin: 12px 0; }
.social-log-chart { flex: 1 1 0; min-width: 0; }
.social-log-title { text-align: center; font-weight: 800; margin-bottom: 4px; font-size: 11px; }
.social-log-cols { display: flex; align-items: flex-end; gap: 4px; background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px 6px 6px; min-height: 120px; }
.social-log-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.social-log-cap { font-size: 10px; font-weight: 800; background: #2a2a33; color: #fff; border-radius: 999px; padding: 1px 5px; margin-bottom: 4px; }
.social-log-track { width: 100%; height: 72px; display: flex; align-items: flex-end; justify-content: center; }
.social-log-bar { width: 70%; max-width: 18px; background: #e89aa4; border-radius: 3px 3px 0 0; }
.social-log-foot { margin-top: 4px; font-size: 9px; font-weight: 800; text-align: center; line-height: 1.1; }
.social-log-heart { width: 16px; height: 16px; object-fit: contain; display: block; }
.social-friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.social-friend-status {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 800;
  opacity: .9;
}
.social-report { margin: 12px 0 4px; }
.social-report-confirm {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 168, 0.45);
  background: rgba(0, 0, 0, 0.22);
}
.social-report-confirm.is-open { display: block; }
.social-report-confirm p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.social-report-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.social-report-opt input { margin-top: 2px; flex-shrink: 0; }

.friend-push-banner {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 5200;
  width: min(420px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 16, 32, 0.94);
  border: 1px solid rgba(255, 186, 220, 0.35);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.friend-push-banner p { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.friend-push-banner-actions { display: flex; gap: 8px; }
.friend-invite-list { display: flex; flex-direction: column; gap: 8px; }
.friend-invite-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}
