/* Compact jade-and-gold social UI alongside the existing classic chat. */
#worldChat #gameSocialButton{display:inline-flex;align-items:center;gap:4px}
#gameSocialButton svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;flex:none}
.social-count{display:inline-flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;padding:0 3px;border:1px solid #b49355;border-radius:8px;background:#4a3720;color:#fff0b1;font:10px/1.3 var(--font);font-weight:600}
.social-count[hidden]{display:none!important}#gameSocialCollapsedBadge{margin-left:5px;background:#274634;border-color:#7baf84;color:#e0f0c7}
#gameSocialDialog{box-sizing:border-box;width:min(510px,calc(100vw - 16px));max-height:calc(100dvh - 16px);margin:auto;padding:12px;color:#dddac0;overflow:auto;border:1px solid #7e8056;background:linear-gradient(145deg,#17251df5,#0b160ffb),url('../ui/classic/pbg.png') center/cover;box-shadow:0 16px 70px #000b,inset 0 0 0 3px #283629;font:12px/1.5 var(--font)}
#gameSocialDialog::backdrop{background:#0008}#gameSocialDialog [hidden]{display:none!important}
#gameSocialDialog button{font:inherit;color:#dcd3a3;min-height:32px;padding:4px 9px;border:1px solid #667151;border-radius:2px;background:linear-gradient(#34422d,#1b2a1c);box-shadow:inset 0 1px #e4d18a13;cursor:pointer;text-shadow:none}
#gameSocialDialog button:hover{border-color:#c2ad68;background:#35452e;color:#fff0b6}#gameSocialDialog button:disabled{opacity:.5;cursor:default}
#gameSocialDialog button:focus-visible,#gameSocialDialog textarea:focus-visible{outline:2px solid #ddc57c;outline-offset:2px}
.social-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #4d5b40;padding-bottom:8px}.social-heading small{font-size:9px;letter-spacing:2px;color:#a69d6a}.social-heading h2{font-size:18px;font-weight:500;color:#ecdb9a;margin:0}
#gameSocialClose{font-size:23px!important;width:32px;padding:0!important;flex:none}
#gameSocialStatus{font-size:12px;color:#e1c57e;margin:6px 0;overflow-wrap:anywhere}#gameSocialStatus:empty{display:none}
.social-tabs{display:flex;gap:4px;padding:10px 0 8px}.social-tabs button{flex:1;padding:5px!important;white-space:nowrap}.social-tabs button[aria-pressed=true]{border-color:#bba263!important;background:linear-gradient(#6c5c34,#3a321d)!important;color:#ffeba5!important}
.social-list{min-height:150px;max-height:55dvh;overflow:auto}.social-row{display:flex;align-items:center;flex-wrap:wrap;gap:5px;border-bottom:1px solid #34472f;padding:7px 0;min-width:0}
#gameSocialDialog .social-person-button{flex:1 1 140px;min-width:0;text-align:left;padding:0;border:0;background:none;box-shadow:none}
.social-person{display:flex;align-items:center;gap:9px;min-width:0}.social-person-copy{display:flex;flex:1;min-width:0;flex-direction:column}.social-person-copy strong{font-size:13px;font-weight:500;color:#e5d392;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-person-copy small{font-size:11px;color:#9cad95;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.social-seal{display:grid;place-items:center;flex:none;width:36px;height:40px;border:1px solid #7e8958;background:radial-gradient(ellipse,#3b5235,#12271b 75%);color:#d7c789;font-size:13px;font-weight:600;box-shadow:inset 0 0 0 3px #1a2e20,inset 0 0 0 4px #53633a}
.social-presence{font-size:10px!important;color:#9bada0!important}.social-presence::before,.social-presence-notice::before{content:'';display:inline-block;width:6px;height:6px;border:1px solid #8b9990;border-radius:50%;background:#63726a;margin-right:5px;vertical-align:1px}.social-presence-online{color:#a3d49b!important}.social-presence-online::before,.social-presence-notice::before{border-color:#9ec98b;background:#6dbb73}
.social-presence-notice{box-sizing:border-box;margin:7px 0;padding:6px 9px;border:1px solid #61754b;border-radius:3px;background:#1c3025f5;color:#deebc2;font:11px/1.5 var(--font);overflow-wrap:anywhere;pointer-events:none}.social-presence-notice[hidden]{display:none!important}#gameSocialPresenceNotice{position:fixed;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:min(340px,calc(100vw - 24px));z-index:90;box-shadow:0 4px 18px #0009}
.social-small{font-size:11px!important;padding:3px 7px!important;min-height:28px!important}.social-unread{color:#fde5a0;font-size:11px;min-width:20px;text-align:center}
.social-empty{text-align:center;color:#a5b097;padding:28px 8px;margin:0;font-size:12px}.social-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px}.social-footer small{font-size:10px;color:#94a38b;text-align:right}
#gameSocialDialog .social-text{background:none;box-shadow:none;border-color:transparent;font-size:11px;color:#bdc8ac;padding:2px 5px;min-height:26px}
.social-thread-heading{display:flex;align-items:center;gap:8px;margin-top:9px;min-width:0}.social-thread-heading>button{flex:none}.social-peer-copy{min-width:0;flex:1}.social-peer-copy h3{font-size:15px;font-weight:500;color:#ead799;margin:0;overflow-wrap:anywhere}.social-peer-copy small{display:block;font-size:10px;color:#a6b496}#gameSocialRelation{color:#c0b77c}
.social-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap;margin:5px 0}
.social-messages{height:290px;max-height:42dvh;min-height:100px;overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid #354a32;background:#06110ac9;scrollbar-width:thin;box-sizing:border-box}
.social-message{width:fit-content;max-width:87%;padding:6px 9px;margin:0 0 7px;border:1px solid #40573b;border-radius:2px;background:#223120}.social-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#e2e0c6;font-size:12px;line-height:1.5}.social-message time{display:block;text-align:right;font-size:9px;color:#8ea185;margin-top:2px}.social-mine{margin-left:auto;background:#3b3a20;border-color:#736c3e}.social-mine time{color:#b4a879}
.social-input-label{display:block;color:#bbbd96;font-size:10px;margin:7px 0 3px}.social-compose{display:flex;align-items:stretch;gap:6px}.social-compose textarea{box-sizing:border-box;min-width:0;width:100%;resize:vertical;min-height:54px;max-height:120px;border:1px solid #687354;border-radius:2px;background:#06120b;color:#e4e4cc;padding:7px;font:12px/1.4 var(--font)}.social-compose textarea:read-only{color:#bec6a9}.social-compose>button{flex:none;min-width:50px}.social-compose-note{display:flex;justify-content:space-between;gap:8px;margin-top:3px;color:#889d80;font-size:10px}
@media(max-width:380px){#worldChat .wc-header-right{flex-wrap:wrap;overflow-x:visible}#worldChat #gameSocialButton{padding:3px 4px;gap:3px}.social-heading h2{font-size:16px}#gameSocialDialog{padding:9px}.social-seal{width:31px;height:35px}.social-small{padding:3px 5px!important}.social-person{gap:6px}}
@media(max-height:500px){#gameSocialDialog{padding:8px}.social-heading{padding-bottom:3px}.social-heading small{display:none}.social-heading h2{font-size:15px}.social-thread-heading{margin-top:5px}.social-peer-copy h3{font-size:13px}.social-actions{margin:3px 0}.social-messages{height:120px;max-height:29dvh;min-height:60px}.social-compose textarea{min-height:44px;max-height:65px}.social-list{min-height:95px;max-height:48dvh}}
