.social-dock{position:absolute;z-index:3;right:clamp(15px,3.2vw,55px);top:68px;display:flex;align-items:flex-end;flex-direction:column;gap:6px}
.social-dock button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 12px;color:#fff2d8;background:#203531ed;border:1px solid #cbb58a99;border-radius:4px;font-size:13px;font-weight:600;box-shadow:0 2px 8px #0d1b1838}
.social-dock #artisan-talk{color:#f8dfae;background:#493722eb;border-color:#b99a64}
.social-mark{width:15px;height:11px;display:block;position:relative;border:1.5px solid currentColor;border-radius:4px}
.social-mark:after{content:"";position:absolute;left:2px;bottom:-3px;width:4px;height:4px;background:#283c34;border-right:1.5px solid;border-bottom:1.5px solid;transform:skewY(25deg) rotate(20deg)}
#game.quiet-view .social-dock:not(:hover):not(:focus-within){opacity:.34}
#game.photo .social-dock,#game.photo #social-panel{display:none}
#social-panel{position:absolute;z-index:5;top:68px;right:clamp(15px,3.2vw,55px);width:min(354px,calc(100% - 28px));max-height:calc(100% - 90px);display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;color:#342b21;background:#f2e6cf;border:1px solid #b69c70;border-radius:5px;box-shadow:0 7px 30px #0e15196e;font-size:14px;line-height:1.45}
#social-panel header{display:flex;align-items:center;justify-content:space-between;flex:none;padding:12px 16px 10px;background:#263a32;color:#ffedc8;border-bottom:3px double #b39a72}
#social-panel h2{margin:0;font:600 21px/1.3 var(--serif);letter-spacing:-.045em}
.social-close{color:inherit;font-size:26px;line-height:1;width:32px;height:32px}
#social-panel nav{display:grid;grid-template-columns:1fr 1fr;flex:none;padding:8px 13px 0;gap:5px}
#social-panel nav button{padding:8px 4px;color:#6c5942;border-bottom:2px solid #cdbd9e;font-weight:550}
#social-panel nav [aria-pressed=true]{color:#294334;border-color:#42634b;font-weight:750}
.social-scope{font-size:12px;color:#635741;margin:10px 15px;flex:none}
.social-rooms:empty{display:none}
.social-rooms,.social-create,.social-compose{padding:0 14px 12px;flex:none}
.social-create label{display:block;font-size:12px;font-weight:650;margin:0 0 5px}
.social-fields{display:flex;gap:6px}
.social-fields input{width:0;min-width:0;flex:1;color:#302c23;background:#fff9ec;padding:9px 10px;border:1px solid #b4a589;border-radius:3px;font:inherit}
.social-fields input::placeholder{color:#7c715d}
.social-fields button,.social-room button,.social-rooms>button{padding:7px 12px;background:#34513f;color:#fff1d2;border:1px solid #344c3c;border-radius:3px;font-size:13px;line-height:1.35;font-weight:650;white-space:nowrap}
.social-fields button:hover,.social-room button:hover,.social-rooms>button:hover{background:#42634c}
.social-room{display:flex;align-items:center;gap:8px;padding:5px 0}
.social-room strong{flex:1;overflow-wrap:anywhere;font-weight:650}
.social-room small{white-space:nowrap;color:#695b45}
.social-history{margin:0 14px 12px;padding:5px 0;max-height:220px;min-height:38px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#a39272 transparent;border-block:1px solid #c9b99a}
.social-history p{margin:3px 0;display:flex;gap:7px;padding:2px 0;align-items:baseline;word-break:break-word;overflow-wrap:anywhere}
.social-history b{font-size:12px;color:#675339;flex:none;max-width:40%}
.social-history .mine b{color:#345b43}
.social-status{color:#843929;font-size:12px;margin:0 14px 12px}
.social-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#social-panel :focus-visible{outline:2px solid #886119;outline-offset:2px}
@media(pointer:coarse){.social-dock button,.social-fields button,.social-close,#social-panel nav button,.social-room button,.social-rooms>button{min-height:44px}.social-fields input{font-size:16px}}
@media(max-width:580px){.social-dock{top:62px;right:12px;gap:4px}.social-dock button{padding:5px 9px;font-size:12px}#social-panel{top:auto;bottom:max(8px,env(safe-area-inset-bottom));left:8px;right:8px;width:auto;max-height:calc(100dvh - 70px)}.social-history{max-height:min(170px,26dvh)}}
@media(max-height:520px){#social-panel{top:8px;bottom:auto;max-height:calc(100% - 16px)}.social-history{max-height:22dvh}}
