/* Light social panel, matching the park's warm palette. */
#cat-friends-open{position:absolute;top:170px;left:max(20px,env(safe-area-inset-left));z-index:7;display:flex;align-items:center;gap:7px;min-height:48px;padding:10px 12px;border:1px solid #c49a6263;border-radius:12px;background:#fff5e7f2;color:#67472c;box-shadow:var(--ui-shadow);font-size:12px;touch-action:manipulation}
#cat-friends-open.has-party-entry{left:calc(max(20px,env(safe-area-inset-left)) + 174px)}
#cat-friends-open svg{width:21px;height:21px;color:#a87342}#cat-friends-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:19px;height:19px;border-radius:50%;background:#bd7854;color:#fff8ed;font-size:10px;border:2px solid #fff5e7}
#cat-friends-open[hidden],#cat-friends-badge[hidden],#cat-friends-dialog [hidden],#cat-friends-menu[hidden]{display:none!important}.photo-mode #cat-friends-open{display:none!important}
#cat-friends-dialog{width:min(535px,94vw);max-height:90dvh;padding:22px;overflow-y:auto;border:1px solid #c49b6860;border-radius:19px;background:#fff8ec;color:#604631;box-shadow:0 12px 36px #67432635;touch-action:pan-y}
#cat-friends-dialog .dialog-head{position:sticky;top:0;z-index:2;margin:0 0 14px;padding:4px 0 10px;background:#fff8ec}#cat-friends-dialog .dialog-head h2{font-size:24px}#cat-friends-dialog .dialog-head small{font-size:10px;color:#a3896b;letter-spacing:1px}#cat-friends-dialog .dialog-head>div{flex:1}
#cat-friends-dialog button{touch-action:manipulation}#cat-friends-dialog button:disabled{opacity:.48}#cat-friends-dialog input,#cat-friends-dialog select{font:inherit;touch-action:manipulation}
.cat-friends-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:4px;border:1px solid #e5d4bb;border-radius:11px;background:#f5ecde;margin-bottom:13px}.cat-friends-tabs button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:39px;border:0;border-radius:8px;background:transparent;color:#9a7c61;font-size:12px;white-space:nowrap}.cat-friends-tabs button.is-selected{background:#fffdf6;color:#7c5533;box-shadow:0 1px 5px #9b76521a;font-weight:650}#cat-friends-request-count:not(:empty){display:inline-grid;place-items:center;min-width:15px;height:15px;border-radius:5px;background:#ecd5bf;color:#a56844;font-size:9px}
.cat-friends-search{display:flex;gap:7px;margin-bottom:10px}.cat-friends-search input{flex:1;width:0;min-width:0;min-height:41px;padding:9px 11px;border:1px solid #dbc4a4;border-radius:9px;background:#fffdf6;color:#684c35;font-size:12px}#cat-friends-refresh{flex:none;min-width:43px;padding:8px;border:1px solid #dbc4a4;border-radius:9px;background:#f6ead7;color:#96704c;font-size:11px}
#cat-friends-invite-controls{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center;margin:10px 0 11px}#cat-friends-invite-kind,#cat-friends-size{width:100%;min-height:37px;min-width:0;padding:7px 8px;border:1px solid #dbc4a4;border-radius:8px;background:#fffdf6;color:#7b5c41;font-size:11px}#cat-friends-size{width:65px}#cat-friends-party-open,#cat-friends-chat-create{padding:7px 9px;min-height:37px;border:1px solid #d1b38b;border-radius:8px;background:#f1e3cd;color:#896440;font-size:11px}#cat-friends-invite-help{grid-column:1/-1;font-size:10px;line-height:1.5;margin:1px 0 0;color:#a58a6c}
#cat-friends-list{display:grid;gap:7px;min-height:100px}.cat-friend-row{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #e6d7c0;border-radius:10px;background:#fffdf6}.cat-friend-row>img{width:37px;height:37px;object-fit:cover;flex:none;border-radius:9px;background:#eee2cd}.cat-friend-copy{flex:1;min-width:0}.cat-friend-copy strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#755437}.cat-friend-copy small{display:block;margin-top:5px;font-size:10px;color:#b09b84}.cat-friend-copy small.is-online{color:#84915f}.cat-friend-actions{display:flex;gap:5px;align-items:center;flex:none}.cat-friend-actions button{min-height:34px;min-width:42px;padding:6px 8px;border:1px solid #d9c2a4;border-radius:7px;background:#f7efe2;color:#957553;font-size:10px;white-space:nowrap}.cat-friend-actions .cat-friends-primary{border-color:#c3a072;background:#f1dfc3;color:#8a6137}.cat-friend-actions .cat-friends-subtle{background:transparent;border-color:#e7d9c7;color:#ad9680}.cat-friends-tag{font-size:10px;padding:5px;color:#a78b6a}.cat-friends-empty{margin:17px 9px;text-align:center;font-size:12px;line-height:1.8;color:#ab9278}.cat-friends-list-label{margin:7px 1px 0;font-size:11px;color:#9a795a;font-weight:600}
#cat-friends-pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin:12px 0}#cat-friends-pagination button{min-width:34px;min-height:34px;border:1px solid #ddc8ab;border-radius:7px;background:#f7eedd;color:#a0805f;font-size:18px}#cat-friends-page-label{font-size:10px;color:#a0886e;font-variant-numeric:tabular-nums}
#cat-friends-add-form{display:flex;gap:7px;padding-top:12px;margin-top:13px;border-top:1px solid #e7d6bd}#cat-friends-add-name{flex:1;width:0;min-width:0;min-height:39px;padding:9px 10px;border:1px solid #ddc8ab;border-radius:8px;background:#fffdf6;color:#684c35;font-size:11px}#cat-friends-add-submit{min-height:39px;padding:7px 12px;flex:none;border:1px solid #d1b38b;border-radius:8px;background:#f1e3cd;color:#896440;font-size:11px}
#cat-friends-chat-description{font-size:11px;color:#a1886c;line-height:1.6;margin:4px 0 12px}#cat-friends-chat-messages{height:280px;max-height:40dvh;overflow-y:auto;overscroll-behavior:contain;padding:9px;border:1px solid #e5d5bf;border-radius:11px;background:#f7efdf}.cat-chat-message{max-width:87%;padding:8px 10px;margin:0 0 9px;border:1px solid #e5d8c4;border-radius:9px 9px 9px 2px;background:#fffdf6}.cat-chat-message.is-mine{margin-left:auto;border-color:#dac298;background:#f2e4c9;border-radius:9px 9px 2px 9px}.cat-chat-message-head{display:flex;align-items:center;gap:10px;justify-content:space-between}.cat-chat-message-head strong{font-size:10px;color:#97764c;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cat-chat-message-head time{flex:none;font-size:9px;color:#b79e7d;font-variant-numeric:tabular-nums}.cat-chat-message p{margin:5px 0 0!important;font-size:12px;color:#785b3d;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
#cat-friends-chat-form{display:flex;align-items:stretch;gap:7px;margin-top:10px}#cat-friends-chat-input{flex:1;min-width:0;width:0;min-height:42px;border:1px solid #d5bd98;border-radius:9px;padding:9px 10px;background:#fffdf6;color:#684c35;font-size:12px}#cat-friends-chat-send{flex:none;min-height:42px;padding:9px 15px;border:1px solid #b98d59;border-radius:9px;background:#bf8b50;color:#fff8e9;font-size:12px}#cat-friends-chat-create{margin-top:10px;width:100%}
#cat-friends-notice,#cat-friends-error{font-size:11px;line-height:1.6;margin:8px 0 0;min-height:0}#cat-friends-notice:empty,#cat-friends-error:empty{display:none}#cat-friends-notice{color:#5e8c45;font-weight:700}#cat-friends-error{color:#b24b3a;font-weight:700}#cat-friends-loading{min-height:13px;font-size:9px;color:#ad967a;text-align:right;margin-top:7px}
/* 我的昵称 & 一键分享加好友名片条 */
.cat-friends-self-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:11px;border-radius:13px;background:linear-gradient(110deg,#fff4d4,#ffe5b3);border:2px solid #cfa56e;box-shadow:0 2px 0 rgba(90,60,40,.18)}
.cf-self-info{min-width:0}.cf-self-info small{display:block;font-size:10px;color:#8c6336;font-weight:700}.cf-self-info strong{display:block;font-size:15px;color:#462e1f;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cf-self-actions{display:flex;gap:6px;flex:none}
.cf-pill-btn{min-height:33px;padding:0 11px;border-radius:999px;border:1.5px solid #b88b52;border-bottom:3px solid #8f6532;background:#fffbf0;color:#5a3c28;font-size:11px;font-weight:800;white-space:nowrap}
.cf-pill-btn.is-gold{background:linear-gradient(180deg,#ffe694,#ffd054);border-color:#5a3c28;border-bottom-color:#bd8818;color:#3d2204;font-weight:900}
.cat-friends-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.cat-friend-actions .cat-friends-accept{background:linear-gradient(180deg,#82dc92,#5ec472)!important;border-color:#368749!important;border-bottom:2.5px solid #2a6e39!important;color:#14381b!important;font-weight:900}
.cat-friend-actions .cat-friends-add{background:linear-gradient(180deg,#fff3d4,#ffe09e)!important;border-color:#b8843b!important;color:#59330a!important;font-weight:800}
.cat-friend-actions .cat-friends-duel{background:#fff3ec!important;border-color:#d89c7e!important;color:#8c3e1c!important;font-weight:800}
.cat-friends-tag.is-friend{background:#e7f7e9;color:#2c6e38;border-radius:999px;padding:3px 8px;font-weight:800}
.cat-friends-tag.is-teammate{background:#fff1cc;color:#8a4f0e;border-radius:999px;padding:3px 8px;font-weight:800}
/* 全局悬浮好友申请 / 联机邀请快捷卡片 */
#social-quick-stack{position:fixed;top:66px;right:14px;z-index:42;display:grid;gap:8px;width:min(320px,calc(100vw - 24px));pointer-events:none}
.social-quick-card{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:15px;background:linear-gradient(180deg,#fffdf6,#fff2d6);border:2.5px solid #5a3c28;border-bottom:4.5px solid #b85d19;box-shadow:0 10px 26px rgba(34,20,12,.38);color:#462e1f;animation:sq-slide .22s cubic-bezier(.22,1,.36,1) both}
.social-quick-card.is-party{border-bottom-color:#368749;background:linear-gradient(180deg,#fffdf8,#eefbeb)}
.sq-copy{min-width:0;flex:1}.sq-copy strong{display:block;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sq-copy small{display:block;margin-top:2px;font-size:11px;color:#6e4f3a;font-weight:700}
.sq-actions{display:flex;gap:5px;flex:none}
.sq-btn{min-height:32px;padding:0 10px;border-radius:9px;border:1.5px solid #b89468;background:#fff4df;color:#5a3c28;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.sq-btn.is-primary{background:linear-gradient(180deg,#82dc92,#5ec472);border-color:#2c6e38;border-bottom:2.5px solid #245c2f;color:#123618;font-weight:900}
@keyframes sq-slide{from{opacity:0;transform:translateY(-10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
/* 休闲区点击其他真人猫咪弹出的快捷社交浮层 */
#cat-quick-card{position:fixed;z-index:35;width:222px;padding:10px;border-radius:15px;background:linear-gradient(180deg,#fffdf7,#fff2d9);border:2.5px solid #5a3c28;box-shadow:0 8px 22px rgba(36,22,12,.35);color:#462e1f;animation:sq-slide .16s ease both}
#cat-quick-card[hidden]{display:none!important}
.cqc-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.cqc-head img{width:36px;height:36px;border-radius:9px;object-fit:cover;border:1.5px solid #5a3c28;background:#f6e4c6;flex:none}
.cqc-head>div{flex:1;min-width:0}.cqc-head strong{display:block;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cqc-head small{display:block;font-size:10px;color:#8c6b50;font-weight:700}
.cqc-close{width:24px;height:24px;border-radius:7px;border:1.5px solid #cfa97c;background:#f6e4c6;color:#5a3c28;font-size:15px;line-height:1;font-weight:900;flex:none}
.cqc-actions{display:flex;gap:5px}
.cqc-btn{flex:1;min-height:32px;padding:0 6px;border-radius:9px;border:1.5px solid #b89468;border-bottom:2.5px solid #8f6b43;background:#fff8ea;color:#462e1f;font-size:11px;font-weight:800;white-space:nowrap}
.cqc-btn.is-add{background:linear-gradient(180deg,#ffe694,#ffd45c);border-color:#5a3c28;border-bottom-color:#bd8818}
.cqc-btn.is-accept{background:linear-gradient(180deg,#82dc92,#5ec472);border-color:#2c6e38;color:#123618}
.cqc-btn.is-team{background:linear-gradient(180deg,#ffb266,#f49442);border-color:#5a3c28;border-bottom-color:#b85d19;color:#3d1d06}
@media(max-width:680px){.cat-friends-self-card{flex-direction:column;align-items:stretch}.cf-self-actions{display:grid;grid-template-columns:1fr 1fr}#social-quick-stack{top:58px;right:10px;width:calc(100vw - 20px)}}
@media(max-width:950px){#cat-friends-open{top:148px;left:max(12px,env(safe-area-inset-left));padding:8px 10px;min-height:47px}#cat-friends-open.has-party-entry{left:calc(max(12px,env(safe-area-inset-left)) + 160px)}#cat-friends-dialog{padding:17px}.cat-friends-tabs button{font-size:11px}}
@media(orientation:portrait){#cat-friends-open{top:147px}#cat-friends-dialog{max-height:92dvh}.cat-friend-row{gap:7px;padding:8px}.cat-friend-row>img{width:32px;height:32px}.cat-friend-actions{gap:4px}.cat-friend-actions button{padding:6px;min-width:37px}.cat-friend-copy strong{font-size:11px}.cat-friend-copy small{font-size:9px}.cat-friends-tabs{gap:3px}.cat-friends-tabs button{font-size:10px}#cat-friends-chat-messages{height:300px;max-height:43dvh}}
@media(max-height:500px) and (orientation:landscape){#cat-friends-open{top:149px}#cat-friends-dialog{max-height:92dvh;padding:14px}#cat-friends-dialog .dialog-head{margin-bottom:5px}.cat-friends-tabs{margin-bottom:8px}.cat-friends-tabs button{min-height:33px}#cat-friends-chat-messages{height:140px;max-height:34dvh}.cat-friends-search{margin-bottom:6px}#cat-friends-invite-controls{margin:7px 0}.cat-friend-row{padding:7px}#cat-friends-add-form{padding-top:9px;margin-top:9px}}