.friends-dialog{border:0;padding:0;width:min(760px,calc(100vw - 28px));max-height:min(90vh,900px);border-radius:26px;background:transparent;color:#fff;overflow:visible;box-shadow:0 18px 60px #001138b8}
.friends-dialog::backdrop{background:#06183cce;backdrop-filter:blur(5px)}
.friends-card{max-height:min(90vh,900px);display:flex;flex-direction:column;overflow:hidden;border:3px solid #69ccff;border-radius:26px;background:linear-gradient(165deg,#174caa,#102d79 72%);box-shadow:inset 0 2px #ffffff55,0 8px #081b52;font-family:inherit}
.friends-header{position:relative;padding:26px 78px 16px 28px;background:radial-gradient(circle at 10% 20%,#38c8ef99,transparent 36%),linear-gradient(110deg,#1b6bd0,#5838c7)}
.friends-header h2{font-size:clamp(27px,4vw,40px);line-height:1.05;margin:4px 0 8px;font-weight:900;color:#fff;text-shadow:0 3px #102d79}
.friends-header p{margin:0;color:#e3f6ff;font-size:16px;line-height:1.35}.friends-eyebrow{font-size:13px;font-weight:900;color:#ffdf62}
.friends-close{position:absolute;right:20px;top:20px;width:46px;height:46px;border:2px solid #9beaff;border-radius:15px;background:#123d90;color:#fff;font-size:32px;line-height:1;cursor:pointer}
.friends-tabs{display:flex;gap:10px;padding:14px 24px 0}.friends-tabs button{flex:1;min-height:48px;border:2px solid #5b9fee;border-radius:14px;background:#123879;color:#dff5ff;font-family:inherit;font-size:16px;font-weight:900;cursor:pointer}.friends-tabs button[aria-pressed="true"]{border-color:#ffe581;background:#ffd73f;color:#103478;box-shadow:0 4px #aa6816}.friends-tabs button span:not(:empty){display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 3px;border-radius:99px;background:#ed2871;color:#fff;font-size:12px}
.friends-body{padding:12px 24px 28px;overflow:auto;overscroll-behavior:contain}.friends-message{min-height:22px;margin:0 0 8px;color:#ffe68e;font-size:14px;font-weight:800}.friends-message:empty{display:none}
.friends-search,.friends-section,.friends-section-head{margin:0 0 18px}.friends-search{padding:20px;border:2px solid #77ccff;border-radius:18px;background:#1d65c4}.friends-search label,.friends-section h3,.friends-section-head h3{display:block;margin:0;color:#fff;font-size:21px;font-weight:900;line-height:1.15}.friends-search p,.friends-section-head p{margin:6px 0 12px;color:#cce8ff;font-size:14px;line-height:1.4}.friends-search-row{display:flex;gap:8px}.friends-search input{min-width:0;flex:1;height:48px;padding:0 14px;border:2px solid #b5eaff;border-radius:12px;color:#103575;background:#fff;font-family:inherit;font-size:17px;font-weight:700}.friends-search input:focus-visible,.friends-dialog button:focus-visible{outline:3px solid #fff37b;outline-offset:3px}
.friends-action{min-height:42px;padding:8px 14px;border:2px solid #95deff;border-radius:12px;background:#2768bd;color:#fff;font-family:inherit;font-size:14px;font-weight:900;cursor:pointer}.friends-action--primary{border-color:#ffe783;background:linear-gradient(#ffe254,#ffb900);box-shadow:0 4px #ad7214;color:#123675}.friends-action--quiet{background:#173c80}.friends-dialog button:disabled{opacity:.55;cursor:default}.friends-action:hover:not(:disabled){filter:brightness(1.08)}
.friends-list{display:grid;gap:9px;list-style:none;margin:0;padding:0}.friends-person{display:flex;align-items:center;gap:12px;min-height:66px;padding:10px 12px;border:2px solid #5ba9f0;border-radius:15px;background:#1a509c}.friends-person.incoming{background:#6343ad;border-color:#c796ff}.friends-avatar{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:2px solid #fff5a5;border-radius:14px;background:#ffce35;color:#17386e;font-size:22px;font-weight:900}.friends-person-name{min-width:0;flex:1}.friends-person-name strong,.friends-person-name small{display:block;overflow-wrap:anywhere}.friends-person-name strong{font-size:17px}.friends-person-name small{margin-top:3px;color:#c8e5fa;font-size:12px}.friends-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.friends-section h3 span{display:inline-block;margin-left:5px;color:#ffdf62}.friends-empty{padding:24px 15px;border:2px dashed #6db5e6;border-radius:16px;text-align:center;background:#123979}.friends-empty span,.friends-empty strong{display:block}.friends-empty span{font-size:30px}.friends-empty strong{margin-top:5px;font-size:17px}.friends-empty p,.friends-search-hint{margin:6px 0 0;color:#cbe6fa;font-size:14px}.friends-search-result{margin:-7px 0 18px}.friends-search-result .friends-person{list-style:none}
@media(max-width:540px){.friends-dialog{width:calc(100vw - 16px);max-height:92vh}.friends-card{max-height:92vh;border-radius:20px}.friends-header{padding:20px 65px 14px 18px}.friends-header p{font-size:14px}.friends-close{right:14px;top:14px}.friends-tabs{padding:12px 14px 0;gap:7px}.friends-tabs button{font-size:14px}.friends-body{padding:12px 14px 24px}.friends-search{padding:15px}.friends-person{flex-wrap:wrap}.friends-person-name{min-width:100px}.friends-actions{width:100%;justify-content:stretch}.friends-actions .friends-action{flex:1}}

/* Feedback is a small in-game card, with the same information available to
   assistive technology through the existing live region. */
.friends-message:not(:empty),.friends-search-hint{display:flex;align-items:center;gap:12px;margin:0 0 15px;padding:12px 14px;border:2px solid #77cfff;border-radius:16px;background:linear-gradient(120deg,#235aba,#173e8e);box-shadow:0 4px #09265c;color:#fff;font-size:15px;font-weight:800;line-height:1.35}
.friends-message:not(:empty)::before,.friends-notice-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:2px solid #b4e9ff;border-radius:12px;background:#277fd2;font-size:20px;line-height:1}
.friends-message[data-kind="loading"]::before{content:'⏳'}
.friends-message[data-kind="success"]{border-color:#76e6bd;background:linear-gradient(120deg,#147f78,#176c7c)}
.friends-message[data-kind="success"]::before{content:'✓';border-color:#b5ffdf;background:#32bd88;color:#083b39;font-weight:900}
.friends-message[data-kind="error"],.friends-message[data-kind="warning"]{border-color:#ffcb73;background:linear-gradient(120deg,#b84f5e,#81416e)}
.friends-message[data-kind="error"]::before,.friends-message[data-kind="warning"]::before{content:'!';border-color:#ffe6a8;background:#ffcc53;color:#532942;font-size:25px;font-weight:900}
.friends-message[data-kind="info"]::before{content:'✦'}
.friends-search-hint{margin:-6px 0 18px;border-color:#ffdc83;background:linear-gradient(115deg,#6c4bb1,#32549f)}
.friends-search-hint .friends-notice-icon{border-color:#ffe798;background:#ffce46}
.friends-search-hint strong{display:block;color:#fff;font-size:16px;font-weight:900}
.friends-search-hint p{margin:3px 0 0;color:#eaf5ff;font-size:14px;font-weight:500;line-height:1.35}
@media(max-width:540px){.friends-message:not(:empty),.friends-search-hint{padding:10px 11px;gap:10px}.friends-message:not(:empty)::before,.friends-notice-icon{width:36px;height:36px;flex-basis:36px}}
