/* Online social: painel de amigos e frases rápidas. Os elementos de HUD só aparecem com body.online-social (sala Online ativa). */
#socialStrip,#socialInvite,#socialPhraseBtn,#socialWheel{display:none}
body.online-social #socialStrip:not([hidden]){display:flex;flex-direction:column;gap:3px;position:fixed;left:12px;bottom:118px;z-index:23;max-width:min(46vw,320px);pointer-events:none}
#socialStrip div{background:#102b3dd9;border:1px solid #91aba780;border-radius:8px;padding:5px 9px;color:#f0e6c9;font:600 13px/1.25 system-ui;text-shadow:0 1px 0 #06131c}
#socialStrip b{color:#f2c66d;margin-right:4px}
body.online-social #socialPhraseBtn{display:block;position:fixed;left:12px;bottom:72px;z-index:24;min-width:76px;min-height:42px;border:1px solid #91aba7;border-radius:10px;background:#254654;color:#f0d18b;font:800 12px system-ui;letter-spacing:.4px;cursor:pointer;touch-action:manipulation}
body.online-social #socialPhraseBtn:active,#socialPhraseBtn[aria-expanded="true"]{background:#4e747d}
#socialPhraseBtn.cooling{opacity:.55}
body.online-social #socialWheel:not([hidden]){display:flex;flex-direction:column;align-items:center;gap:10px;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:40;width:min(92vw,560px);padding:12px;background:#0e2635f2;border:1px solid #91aba7;border-radius:14px;box-shadow:0 8px 0 #06131c80;touch-action:manipulation}
.social-wheel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}
.social-wheel-grid button,.social-wheel-close{min-height:44px;border:1px solid #527482;border-radius:9px;background:#1c3b49;color:#f0e6c9;font:700 13px/1.15 system-ui;padding:6px;cursor:pointer;touch-action:manipulation}
.social-wheel-grid button:active,.social-wheel-close:active{background:#f2c66d;color:#152f3b}
.social-wheel-close{min-width:120px;color:#f0d18b}
body.online-social #socialInvite:not([hidden]){display:flex;align-items:center;gap:8px;position:fixed;left:50%;top:64px;transform:translateX(-50%);z-index:30;max-width:min(94vw,560px);padding:7px 8px 7px 12px;background:#102b3df2;border:1px solid #f2c66d;border-radius:12px;color:#f0e6c9;font:600 13px/1.3 system-ui}
#socialInvite .btn{margin:0;min-height:40px;padding:6px 12px;width:auto}
.ui-open #socialStrip,.ui-open #socialPhraseBtn,.ui-open #socialWheel,.ui-open #socialInvite,.map-mode #socialStrip,.map-mode #socialPhraseBtn,.map-mode #socialWheel,.map-mode #socialInvite{display:none!important}
.social-panel h3{margin:14px 0 8px}
.social-card h3{margin:0 0 4px;overflow-wrap:anywhere}
.social-card h3 small{font-size:12px;font-weight:600;color:#f2c66d}
.social-card p{margin:3px 0}
.social-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.social-actions .btn{flex:1 1 auto;width:auto;margin:0;min-height:44px}
.social-status::before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#7d8b8f}
.social-status[data-state="menu"]::before{background:#f2c66d}
.social-status[data-state="room"]::before{background:#71e8a1}
.social-me{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #527482;border-radius:10px;background:#16323f}
.social-me .btn{width:auto;margin:0}
.social-add{display:flex;align-items:flex-end;gap:8px}
.social-add .setting{flex:1;margin:0}
.social-add .btn{width:auto;margin:0;min-height:44px}
.social-hint{font-size:13px;opacity:.85}
.social-check{display:flex;align-items:center;gap:8px}
.social-check input{width:22px;height:22px}
.social-inbox:empty{display:none}
.social-invite-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;margin:6px 0;border:1px solid #f2c66d;border-radius:10px;background:#16323f}
.social-invite-row span{flex:1 1 180px}
.social-invite-row .btn{width:auto;margin:0;min-height:44px}
@media (max-width:640px){.social-wheel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-add{flex-direction:column;align-items:stretch}}
.mobile-play.online-social #socialPhraseBtn{left:auto;right:calc(var(--edge-right,12px) + 112px);bottom:auto;top:calc(var(--edge-top,12px) + 56px);min-width:64px;min-height:44px}
.mobile-play.online-social #socialStrip:not([hidden]){left:var(--edge-left,12px);bottom:auto;top:calc(var(--edge-top,12px) + 162px);max-width:34vw}
.mobile-play #socialStrip div{font-size:11px;padding:4px 8px}
.mobile-play.online-social #socialInvite:not([hidden]){top:auto;bottom:calc(var(--edge-bottom,12px) + 6px);max-width:46vw;flex-wrap:wrap;justify-content:center;font-size:12px;padding:6px 8px}
.mobile-play #socialInvite span{flex:1 1 100%;text-align:center}
@media (max-height:430px){.social-wheel-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.social-wheel-grid button,.social-wheel-close{min-height:44px;font-size:12px}}
#socialName{min-height:44px;padding:0 12px;border:1.5px solid #6b8d99;border-radius:10px;background:#0f2430;color:#f4ecd6;font:600 14px/1 system-ui,sans-serif;outline:none}
#socialName:focus{border-color:#f4cb74;box-shadow:0 0 0 2px #f4cb7444}
