.friends-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px;border:1px solid #53656c;background:#24353d;color:#eef0e9;font:700 12px Manrope,sans-serif;cursor:pointer}
.friends-open .icon{width:18px;height:18px}.friends-badge{display:inline-grid;place-items:center;min-width:20px;min-height:20px;padding:0 4px;background:#ffb340;color:#171c1f;font-size:10px;font-weight:800}.friends-badge[hidden]{display:none}
.friends-dialog{width:min(920px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;background:#1a2a32;border:1px solid #66777b;color:#edf0e9;box-shadow:0 24px 90px #0009}
.friends-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.friends-dialog>.dialog-heading{flex:none;padding:26px 28px;border-bottom:1px solid #53636b;background:linear-gradient(112deg,#35464b,#24333b 65%)}
.friends-dialog .dialog-heading h2{font-size:clamp(28px,4vw,36px);line-height:1.15;text-transform:none}
.friends-layout{display:grid;grid-template-columns:204px minmax(0,1fr);height:min(520px,65dvh);min-height:0;overflow:hidden}.friends-tabs{padding:18px 12px;display:flex;flex-direction:column;gap:5px;border-right:1px solid #495d65;background:#17252c;overflow-y:auto}
.friends-tab {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  min-height:46px;
  padding:8px 10px 8px 12px;
  border:1px solid transparent;
  border-radius:3px;
  background:transparent;
  color:#d5dfe2;
  font:700 13px/1.26 Manrope,sans-serif;
  text-align:left;
  cursor:pointer;
}
.friends-tab:hover { background:#293c44; color:#fff }
.friends-tab.selected { border-color:#647982; background:#263b45; color:#fff0d6; box-shadow:inset 3px 0 #ffb340 }
.friends-tab-label { min-width:0; overflow-wrap:anywhere }
.friends-tab-count {
  display:inline-grid;
  place-items:center;
  flex:none;
  min-width:24px;
  height:21px;
  padding:0 6px;
  border:1px solid #536a74;
  border-radius:4px;
  background:#243741;
  color:#d0dfe5;
  font:800 12px/1 Manrope,sans-serif;
  font-variant-numeric:tabular-nums;
}
.friends-tab-count.is-pending { border-color:#ffc36a; background:#ffb95a; color:#251a0d }
.friends-content{display:flex;flex-direction:column;min-width:0;min-height:0}.friends-content-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:20px 24px 14px;flex:none}.friends-content-heading h3{margin:0;font:600 19px Oswald,sans-serif}.friends-connection{font-size:10px;color:#a6c8b7}.friends-page{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 24px 24px}
.friends-list,.friend-invites{list-style:none;padding:0;margin:0}.friend-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid #40565f;min-width:0}.friend-avatar{position:relative;display:grid;place-items:center;width:44px;height:48px;background:#30454b;border:1px solid #64716b;color:#e3c18a;font:600 24px Oswald,sans-serif;clip-path:polygon(0 0,100% 0,100% 86%,84% 100%,0 100%)}
.friend-avatar:after{content:'';position:absolute;right:4px;bottom:4px;width:7px;height:7px;border-radius:50%;background:#73828a}.friend-row:not([data-presence=offline]) .friend-avatar:after{background:#83d9a8}.friend-row[data-presence=playing] .friend-avatar:after{background:#ffbc53}.friend-info{min-width:0;display:grid;gap:3px}.friend-name{border:0;padding:0;background:none;color:#eef0e9;text-align:left;font:800 13px Manrope,sans-serif;cursor:pointer;overflow-wrap:anywhere;line-height:1.5}.friend-name:hover{color:#ffd082}.friend-login{font-size:10px;color:#a5b9c3;overflow-wrap:anywhere}.friend-presence{font-size:10px;color:#a8cbbb}.friend-row[data-presence=offline] .friend-presence{color:#a1acb2}.friend-row[data-presence=playing] .friend-presence{color:#edc27a}.friend-location{font-size:10px;color:#afbdc3;overflow-wrap:anywhere}
.friend-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.friend-actions>.hot,.friend-actions>.secondary,.friend-actions>.text-button{min-height:42px;padding:10px 12px;font-size:11px;white-space:normal}.friend-actions button:disabled{opacity:.5;cursor:default}.friend-note{font-size:11px;color:#afbec5;line-height:1.7}.friend-more{font-size:10px;max-width:170px}.friend-more>summary{cursor:pointer;min-height:42px;display:flex;align-items:center;padding:8px;color:#c5cfd0}.friend-more[open]{display:grid;gap:6px}.friend-more .text-button{text-align:left;min-height:42px;font-size:10px;white-space:normal}.friend-join{grid-column:2/-1;justify-self:start;min-height:36px;font-size:11px}
.friends-empty{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:280px;padding:20px 8px;max-width:400px}.friends-empty h4{font:500 27px Oswald,sans-serif;margin:0 0 12px}.friends-empty p{color:#b4c3ca;font-size:12px;line-height:1.9;margin:0 0 24px}.friends-empty button{font-size:12px;min-height:46px}.friends-group-title{font:700 11px Manrope,sans-serif;color:#c4cbbd;margin:20px 0 2px}.friends-group-title:first-child{margin-top:0}
.friend-invitation{padding:20px 18px;margin:0 0 12px;border:1px solid #736d53;border-left:3px solid #ffb340;background:#2c3a3b}.friend-invitation h4{margin:0 0 10px;font-size:12px}.friend-invitation p{font-size:11px;color:#c0c9c7;line-height:1.7}.friend-invitation .friend-actions{justify-content:flex-start}.friends-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:6px 0 12px}.friends-search label{display:grid;gap:8px;font-size:11px;color:#c5cfcd}.friends-search input{width:100%;min-width:0;min-height:46px;padding:12px;border:1px solid #647981;border-radius:0;background:#14252d;color:#f4f3ea;font:14px Manrope,sans-serif;appearance:none}.friends-search .hot{min-height:46px;font-size:12px}.friends-search input:focus-visible{outline:2px solid #ffb340;outline-offset:2px}
.friends-status{flex:none;font-size:11px;line-height:1.7;padding:12px 24px;margin:0;border-top:1px solid #51616a;background:#22333b;color:#c6d6c3}.friends-status:empty{display:none}.friends-status.error{color:#ffc49d}.friends-profile-actions{padding:14px 0;margin:10px 0 4px;border-top:1px solid #4f6570;border-bottom:1px solid #4f6570}.friends-profile-actions .friend-actions{justify-content:flex-start}.friends-profile-actions .friend-note{margin:0}
.friends-open:focus-visible,.friends-tab:focus-visible,.friend-name:focus-visible,.friend-more>summary:focus-visible{outline:2px solid #ffbc53;outline-offset:3px}
@media(max-width:700px){
 .friends-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.friends-dialog>.dialog-heading{padding:14px 16px}.friends-layout{display:flex;flex-direction:column;height:min(650px,72dvh)}
 .friends-tabs {
   display:grid;
   grid-template-columns:repeat(6,minmax(0,1fr));
   flex:none;
   gap:6px;
   padding:10px 12px;
   border-right:0;
   border-bottom:1px solid #495d65;
 }
 .friends-tab { grid-column:span 2; min-height:44px; padding:7px 8px; border-color:#3b4f59; font-size:12px }
 .friends-tab:is([data-tab=search],[data-tab=blocked]) { grid-column:span 3 }
 .friends-tab.selected { box-shadow:inset 0 -3px #ffb340 }.friends-content{flex:1}.friends-content-heading{padding:16px 16px 10px}.friends-page{padding:0 16px 20px}.friends-content-heading h3{font-size:18px}.friend-row{grid-template-columns:40px minmax(0,1fr);gap:10px;padding:15px 0}.friend-avatar{width:40px;height:46px}.friend-row>.friend-actions{grid-column:2/-1;justify-content:flex-start}.friend-actions>.hot,.friend-actions>.secondary,.friend-actions>.text-button{min-height:46px;font-size:12px}.friend-name{font-size:14px;min-height:30px}.friend-more>summary{min-height:46px}.friend-login,.friend-presence,.friend-location{font-size:11px}.friend-join{min-height:44px}.friends-empty{min-height:230px}.friends-status{padding:12px 16px}.friends-open{min-height:44px;font-size:11px;padding:8px 10px}.friends-open .icon{width:16px;height:16px}.friends-search{gap:8px}.friend-invitation{padding:16px 12px}
}
@media(max-width:480px) {
  .friends-tab:is([data-tab=friends],[data-tab=requests],[data-tab=invites]) {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto 21px;
    justify-items:center;
    align-content:center;
    gap:4px;
    min-height:58px;
    padding:6px 3px;
    text-align:center;
  }
}
@media(max-width:360px) {
  .friends-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .friends-tabs .friends-tab { grid-column:auto;white-space:nowrap }
  .friends-tabs .friends-tab:last-child:nth-child(odd) { grid-column:1/-1 }
}
@media(max-height:520px) and (orientation:landscape){.friends-dialog{max-height:calc(100dvh - 12px)}.friends-dialog>.dialog-heading{padding:10px 16px}.friends-dialog .dialog-heading h2{font-size:25px}.friends-layout{height:calc(100dvh - 105px);min-height:140px}.friends-empty{min-height:150px}.friends-content-heading{padding-top:10px}.friends-tabs{padding:5px 10px}.friends-tab{min-height:40px}}
