/* v0.22 — social : amis, héros de soutien, discussion générale */

/* ---------- Écran Social ---------- */
#social .craft-body { max-width: 860px; margin: 0 auto; width: 100%; }
.so-tabs { padding: 0; justify-content: center; }
.so-tabs button { position: relative; min-width: 120px; }
.so-count:empty { display: none; }
.so-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--c-red); color: #fff; font-style: normal; font-size: 11px; line-height: 18px; }
.so-box { padding: 12px; display: grid; gap: 8px; }
.so-box .section-h.small { margin: 0; }
.so-sup { display: flex; align-items: center; gap: 10px; }
.so-sup .btn-small { margin-left: auto; }
.so-face { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 8px;
  background: rgba(244, 236, 216, .08); border: 1px solid rgba(200, 160, 74, .35); }
.so-face.big { width: 58px; height: 58px; }
.so-fi { display: grid; gap: 1px; min-width: 0; }
.so-fi b { color: #f7e3a8; }
.so-fn { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.so-fs { font-size: 12px; color: var(--muted); }
.so-role { color: var(--muted); white-space: nowrap; }
.so-role .role-ic svg { width: 12px; height: 12px; vertical-align: -2px; }
.so-points { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.so-points b { color: #ffb4d0; }
.so-add { display: flex; gap: 6px; flex-wrap: wrap; }
.so-add input { flex: 1 1 200px; min-width: 0; }
.so-add input::placeholder { text-transform: none; letter-spacing: 0; }
.so-req { border-color: var(--c-red); box-shadow: 0 0 0 1px rgba(216, 69, 46, .45); }
.so-friend { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.so-friend:last-child { border-bottom: 0; }
.so-friend .so-fi { flex: 1; }
.so-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.so-cd { display: inline-block; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); color: #ffcf8a; font-size: 11px; font-weight: 800; }
.so-cd.ok { color: #9fe3a8; }
.so-gain { color: #ffb4d0; font-weight: 800; }
#soTop { color: #ffb4d0; font-weight: 800; }

/* Discussion générale */
.so-chat .so-log { max-height: none; height: min(58vh, 520px); padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, .18); align-content: start; }
.so-log > div { line-height: 1.35; overflow-wrap: anywhere; }
.so-log .me b { color: #ffcf8a; }
.so-log .sys { color: #ffb4d0; font-style: italic; }
.so-chat .chat-form input { flex: 1; min-width: 0; }

/* ---------- Choix du héros de soutien (fenêtre de choix) ---------- */
#pickTitle .sup-sub { display: block; margin-top: 4px; font-family: inherit; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pick-row.sup-row { padding: 8px 10px; }
.pick-row.sup-none { justify-content: center; text-align: center; display: block; }
.sup-card { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.sup-face { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: rgba(244, 236, 216, .08); border: 1px solid rgba(200, 160, 74, .35); }
.sup-txt { display: grid; gap: 2px; min-width: 0; }
.sup-txt b { color: #f7e3a8; }
.sup-txt .dot { width: 7px; height: 7px; margin-right: 4px; }

/* ---------- Invocation d'amitié ---------- */
.sum-tab.friend { font-weight: 900; }
.sum-banner.friend { --ec: #ff9ac1; }
.sum-banner.friend::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 78% 50%, rgba(255, 154, 193, .35), transparent 55%); }
.sum-fp { color: #ffb4d0; font-size: 16px; }
.sum-card.spirit { border-style: dashed; }

@media (max-width: 760px) {
  .so-friend { flex-wrap: wrap; }
  .so-act { width: 100%; justify-content: flex-start; padding-left: 54px; }
  .so-tabs button { min-width: 0; flex: 1; }
  .so-add .btn-primary { flex: 1 1 100%; }
  .so-chat .so-log { height: 52vh; }
}

/* ---------- v0.31 : envoi de points d'amitié ---------- */
.so-giftbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px;
  background: rgba(255, 154, 193, .08); border: 1px solid rgba(255, 154, 193, .35); }
.so-gtxt { display: grid; gap: 1px; flex: 1 1 220px; min-width: 0; font-size: 13px; }
.so-gtxt b { color: #ffb4d0; font-size: 15px; }
.so-gpips { display: inline-flex; gap: 4px; }
.so-gpips i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ff9ac1; background: transparent; }
.so-gpips i.on { background: #ff9ac1; }
.so-gift { color: #ffb4d0; border-color: rgba(255, 154, 193, .55); }
.so-gstate { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 800;
  background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; }
.so-gstate.sent { color: #9fe3a8; background: rgba(120, 200, 130, .12); }
.so-got { color: #ffb4d0; font-weight: 800; }
@media (max-width: 760px) {
  .so-giftbar .btn-primary { flex: 1 1 100%; }
}
.sum-to-social { color: #ffb4d0 !important; font-weight: 800; text-decoration: underline; padding: 0; margin-top: 4px; }
