/* ===== Starborn social: friends, party, profiles, update wall ===== */
.sfig { position: relative; display: inline-block; flex: none; }
.sfig img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 100%; animation: breathe 2.4s ease-in-out infinite; }
.sfig.sm { width: 50px; height: 50px; }
.sfig.mid { width: 64px; height: 64px; }
.sfig.big { width: 112px; height: 112px; display: block; margin: 4px auto 10px; }

.soc-add { display: flex; gap: 8px; margin: 2px 0 10px; }
.soc-input { flex: 1; min-width: 0; width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: #f3e6d0; background: #0d0609;
  border: 1px solid var(--bone-d, rgba(217,199,184,.28)); border-radius: 8px; outline: none; box-sizing: border-box; }
.soc-input:focus { border-color: #ffd36b; box-shadow: 0 0 0 2px rgba(255,211,107,.18); }
textarea.soc-input { resize: none; margin: 6px 0; }

.soc-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 4px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(90deg, rgba(255,211,107,.10), rgba(255,211,107,.02)); border: 1px solid rgba(255,211,107,.35); }
.soc-me-fig .hero-fig { width: 50px; height: 50px; }
.soc-chev { font-size: 26px; color: #ffd36b; padding: 0 4px; }

.soc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 6px 0; cursor: pointer; border-radius: 10px;
  background: linear-gradient(90deg, #1d0c12, #140910); border: 1px solid rgba(217,199,184,.16); transition: border-color .2s; }
.soc-row.online { border-color: rgba(118,255,145,.35); box-shadow: inset 3px 0 0 #3ddc6a; }
.soc-row:active { transform: scale(.99); }
.soc-name { display: flex; align-items: center; gap: 6px; font-family: Cinzel, serif; font-weight: 700; font-size: 15px; color: #f3e6d0; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-sub { font-size: 12px; color: #bfa99f; margin-top: 1px; }
.soc-seen { font-size: 11px; color: #8d7a73; margin-top: 2px; }
.soc-seen.on { color: #76ff91; font-weight: 600; }
.soc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5a4a46; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.soc-dot.on { background: #3ddc6a; box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 0 8px #3ddc6a; animation: socPulse 1.8s ease-in-out infinite; }
@keyframes socPulse { 50% { box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 0 14px #3ddc6a; } }
.soc-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px;
  border-radius: 6px; color: #d9c7b8; background: rgba(217,199,184,.08); border: 1px solid rgba(217,199,184,.25); white-space: nowrap; }
.soc-tag.prem { color: #ffd36b; border-color: rgba(255,211,107,.55); background: rgba(255,211,107,.10); }
.soc-tag.sup { color: #e7b98a; border-color: rgba(231,185,138,.5); }
.soc-tag.lead { color: #ffd36b; border-color: rgba(255,211,107,.55); }
.soc-tag.ok { color: #76ff91; border-color: rgba(118,255,145,.5); background: rgba(118,255,145,.08); }
.soc-tag.warn { color: #ff9a8a; border-color: rgba(255,120,100,.5); }
.soc-ptags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.soc-ptags.center { justify-content: center; margin-top: 8px; }
.soc-plus { flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: #ffd36b; background: #241418; border: 1px solid rgba(255,211,107,.5); }
.soc-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.soc-btns .btn { min-width: 92px; }
.soc-count { font-family: inherit; font-size: 12px; color: #76ff91; letter-spacing: 0; text-transform: none; margin-left: 8px; }
.soc-empty { padding: 12px; margin: 6px 0; font-size: 13px; line-height: 1.45; color: #bfa99f; text-align: center; background: rgba(255,255,255,.03); border: 1px dashed rgba(217,199,184,.22); border-radius: 10px; }
.soc-rules { font-size: 12px; line-height: 1.5; color: #cdb9ae; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: rgba(255,211,107,.05); border: 1px solid rgba(255,211,107,.25); }
.soc-rules b { display: block; color: #ffd36b; font-family: Cinzel, serif; letter-spacing: .06em; margin-bottom: 2px; }
.soc-split { font-size: 12px; color: #cdb9ae; padding: 8px 10px; border-radius: 8px; background: #12080c; border: 1px solid rgba(217,199,184,.18); margin-bottom: 6px; }
.soc-split b { color: #f3e6d0; } .soc-split .on { color: #76ff91; font-weight: 600; }
.soc-pop-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.soc-pop-head .pop-t { margin: 0; text-align: left; }
.soc-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.soc-item-head .stone { margin: 0; }

.soc-banner { text-align: center; padding: 12px 10px 14px; margin-bottom: 10px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 30%, rgba(176,107,255,.16), transparent 65%), linear-gradient(180deg, #1d0c12, #120709); border: 1px solid rgba(217,199,184,.2); }
.soc-banner.prem { border-color: rgba(255,211,107,.5); box-shadow: 0 0 18px rgba(255,211,107,.12) inset; }
.soc-pname { font-family: Cinzel, serif; font-weight: 900; font-size: 22px; letter-spacing: .06em; color: #fff; text-shadow: 0 0 12px rgba(176,107,255,.55), 0 2px 0 #000; }
.soc-pcls { font-size: 13px; color: #cdb9ae; margin-top: 2px; }
.soc-plvl { font-family: 'Pixelify Sans', monospace; font-size: 16px; color: #ffd36b; margin-top: 2px; }
.soc-pstate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8d7a73; margin-top: 6px; }
.soc-pstate.on { color: #76ff91; font-weight: 600; }
.soc-bio { position: relative; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: #12080c; border: 1px solid rgba(217,199,184,.18); }
.soc-bio-t { font-family: Cinzel, serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd36b; margin-bottom: 4px; }
.soc-bio-x { font-size: 14px; line-height: 1.45; color: #f3e6d0; white-space: pre-wrap; word-break: break-word; font-style: italic; }
.soc-bio .btn { position: absolute; right: 8px; top: 6px; }
.soc-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.soc-acts .btn { flex: 1; min-width: 140px; }

#left-col em.soc-alert { color: #ffd36b; animation: socPulse2 1.4s ease-in-out infinite; }
@keyframes socPulse2 { 50% { transform: scale(1.25); } }

/* ---------- update wall ---------- */
#upd-wall { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 35%, rgba(70,30,110,.55), rgba(8,4,14,.97) 70%); backdrop-filter: blur(3px); }
.upd-box { width: 100%; max-width: 380px; text-align: center; padding: 26px 20px 20px; border-radius: 16px;
  background: linear-gradient(180deg, #1d0c12, #0f0609); border: 1px solid rgba(255,211,107,.45); box-shadow: 0 10px 40px rgba(0,0,0,.7), 0 0 30px rgba(176,107,255,.18); }
.upd-logo { font-family: Cinzel, serif; font-weight: 900; font-size: 34px; letter-spacing: 5px; color: #fff; text-shadow: 0 0 20px #b06bff, 0 0 35px rgba(176,107,255,.6), 0 4px 0 #3b1d7a; }
.upd-t { font-family: Cinzel, serif; font-weight: 700; font-size: 18px; color: #ffd36b; margin-top: 14px; letter-spacing: .06em; }
.upd-v { font-family: 'Pixelify Sans', monospace; color: #cdb9ae; margin-top: 2px; }
.upd-p { font-size: 14px; line-height: 1.5; color: #e6d6c8; margin: 12px 0 8px; }
.upd-notes { font-size: 12px; line-height: 1.45; color: #bfa99f; white-space: pre-wrap; margin: 0 0 12px; }
.upd-go { margin-top: 6px; }
.upd-bar { height: 8px; margin-top: 12px; border-radius: 6px; background: #12080c; border: 1px solid rgba(217,199,184,.25); overflow: hidden; display: none; }
.upd-bar.on { display: block; }
.upd-bar i { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, #b06bff, #ffd36b); transition: width .3s; }
.upd-status { font-size: 12px; color: #cdb9ae; margin-top: 8px; min-height: 16px; }
