/* Eagle Match 5.3.0 — map vote search/random + social/profile/community refresh */
:root{
  --em-panel:rgba(12,17,25,.88);
  --em-panel-soft:rgba(17,23,33,.82);
  --em-border:rgba(142,163,189,.19);
  --em-muted:#9ba9bb;
  --em-red:#ff536b;
  --em-gold:#e6c48d;
  --em-blue:#8ac9f3;
}

/* Map vote tools */
#emMapVoteOverlay{font-family:Inter,"Segoe UI",Tahoma,Arial,sans-serif!important;color:#f3f6fa!important}
#emMapVoteOverlay>div{background-image:radial-gradient(ellipse at 50% 0,rgba(255,52,77,.16),transparent 45%),linear-gradient(135deg,#070c13,#090a10 52%,#100b10)!important}
#emMapVoteOverlay .em-map-vote-tools{display:flex;align-items:center;justify-content:center;gap:10px;max-width:820px;margin:26px auto 0}
#emMapVoteOverlay .em-map-search-wrap{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:0 14px;border:1px solid rgba(132,157,184,.24);border-radius:13px;background:rgba(12,18,27,.88);box-shadow:0 10px 25px rgba(0,0,0,.2)}
#emMapVoteOverlay .em-map-search-wrap>span{font-size:24px;color:#93a9bf;line-height:1}
#emMapVoteOverlay .em-map-search-wrap input{width:100%;min-width:0;height:48px;border:0;outline:0;background:transparent;color:#f4f7fb;font:600 13px Inter,"Segoe UI",sans-serif}
#emMapVoteOverlay .em-map-search-wrap input::placeholder{color:#718196}
#emMapVoteOverlay .em-random-map-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 17px;border:1px solid rgba(229,190,126,.43);border-radius:13px;background:linear-gradient(130deg,rgba(120,79,38,.34),rgba(39,28,23,.88));color:#f1d5a6;font:900 10px Inter,"Segoe UI",sans-serif;letter-spacing:1px;cursor:pointer;white-space:nowrap;transition:transform .16s,border-color .16s,box-shadow .16s}
#emMapVoteOverlay .em-random-map-btn:hover{transform:translateY(-2px);border-color:#e9c98e;box-shadow:0 10px 26px rgba(198,146,73,.15)}
#emMapVoteOverlay .em-random-map-btn span{font-size:19px;line-height:1}
#emMapVoteOverlay .em-map-vote-hint{margin:10px 0 0;text-align:center;color:#8393a8;font-size:11px;letter-spacing:.25px}
#emMapVoteOverlay .em-map-vote-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:15px;margin-top:22px}
#emMapVoteOverlay .em-vote-map-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;padding:0;overflow:hidden;border:1px solid rgba(120,147,174,.24);border-radius:17px;background:linear-gradient(180deg,#121a25,#0a1018);color:#fff;text-align:left;cursor:pointer;box-shadow:0 14px 38px rgba(0,0,0,.25);transition:transform .18s,border-color .18s,box-shadow .18s}
#emMapVoteOverlay .em-vote-map-card:hover{transform:translateY(-4px);border-color:rgba(130,190,232,.65);box-shadow:0 18px 42px rgba(0,0,0,.32)}
#emMapVoteOverlay .em-vote-map-card.is-selected{border-color:#ff536b;box-shadow:0 0 0 1px rgba(255,83,107,.35),0 18px 48px rgba(255,48,79,.13)}
#emMapVoteOverlay .em-vote-map-art{position:relative;display:block;height:clamp(112px,15vw,166px);overflow:hidden;background:linear-gradient(135deg,#1a2633,#0b111a)}
#emMapVoteOverlay .em-vote-map-art:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(180deg,transparent,rgba(4,7,11,.88));pointer-events:none}
#emMapVoteOverlay .em-vote-map-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}
#emMapVoteOverlay .em-vote-map-card:hover .em-vote-map-art img{transform:scale(1.055)}
#emMapVoteOverlay .em-vote-map-art i{position:absolute;z-index:1;left:12px;bottom:10px;color:#d8e3ee;font-size:8px;font-weight:900;letter-spacing:1.4px;font-style:normal;text-shadow:0 2px 5px #000}
#emMapVoteOverlay .em-vote-map-info{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px}
#emMapVoteOverlay .em-vote-map-info>span{display:flex;flex-direction:column;gap:6px;min-width:0}
#emMapVoteOverlay .em-vote-map-info b{font-size:13px;letter-spacing:.75px;color:#f5f7fa}
#emMapVoteOverlay .em-vote-map-info small{color:#8292a5;font-size:8px;letter-spacing:.7px;overflow-wrap:anywhere}
#emMapVoteOverlay .em-vote-map-info em{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:50px;min-height:48px;border:1px solid rgba(124,148,173,.24);border-radius:11px;background:rgba(5,9,15,.5);color:#e8eef5;font-size:16px;font-style:normal;font-weight:1000;font-variant-numeric:tabular-nums}
#emMapVoteOverlay .em-vote-map-info em small{margin-top:2px;color:#8392a5;font-size:7px}
#emMapVoteOverlay .em-map-no-results{grid-column:1/-1;padding:38px 18px;border:1px dashed rgba(132,157,184,.26);border-radius:15px;color:#9aabbf;text-align:center;background:rgba(13,20,30,.65)}
#emMapVoteOverlay #emVoteStatus{max-width:min(760px,94vw);line-height:1.6;text-align:center}
#emMapVoteOverlay .em-map-wheel{position:relative;width:100%;height:100%;border-radius:50%;border:10px solid #1b2633;box-shadow:0 0 0 2px #ff536b,0 0 60px rgba(255,20,40,.18);position:relative;overflow:hidden;transform:rotate(0deg);transition-property:transform;transition-timing-function:cubic-bezier(.12,.72,.18,1)}
#emMapVoteOverlay .em-wheel-label{position:absolute;top:50%;left:50%;display:flex;flex-direction:column;align-items:center;gap:4px;width:112px;max-width:40%;color:#fff;text-align:center;pointer-events:none;text-shadow:0 2px 5px rgba(0,0,0,.9)}
#emMapVoteOverlay .em-wheel-label img{width:49px;height:29px;object-fit:cover;border:1px solid rgba(255,255,255,.55);border-radius:5px;box-shadow:0 3px 9px rgba(0,0,0,.4)}
#emMapVoteOverlay .em-wheel-label b{font-size:8px;line-height:1.15;letter-spacing:.45px;font-weight:1000}

/* Shared page intro banners */
.em-page-intro{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:116px;margin:0 0 16px;padding:22px 25px;overflow:hidden;border:1px solid var(--em-border);border-radius:19px;background:radial-gradient(ellipse at 85% 0,rgba(112,165,205,.13),transparent 45%),linear-gradient(120deg,rgba(18,29,42,.94),rgba(12,15,23,.96));box-shadow:0 16px 38px rgba(0,0,0,.19)}
.em-page-intro:after{content:"";position:absolute;inset:auto 0 0;height:2px;background:linear-gradient(90deg,transparent,rgba(125,184,224,.58),rgba(255,83,107,.6),transparent)}
.em-page-intro>div:first-child{position:relative;z-index:1;min-width:0}
.em-page-intro h2{margin:7px 0 4px;color:#f5f7fb;font-size:clamp(18px,2.3vw,26px);letter-spacing:.15px;line-height:1.25}
.em-page-intro p{margin:0;color:#9aabbd;font-size:11px;line-height:1.6}
.em-intro-mark{display:grid;place-items:center;flex:0 0 68px;width:68px;height:68px;border:1px solid rgba(127,179,215,.32);border-radius:19px;background:linear-gradient(145deg,rgba(52,83,110,.45),rgba(14,20,30,.78));box-shadow:inset 0 1px rgba(255,255,255,.08),0 10px 26px rgba(0,0,0,.2);color:#c7e4f7;font-size:25px;font-weight:1000;letter-spacing:-1px}
.em-friends-intro .em-intro-mark{color:#e8c58b;border-color:rgba(232,197,139,.33);background:linear-gradient(145deg,rgba(109,78,38,.36),rgba(17,19,26,.88))}
.em-community-intro .em-intro-mark{color:#8ed4b6;border-color:rgba(111,211,166,.3)}

/* Profile — stronger competitive identity and cleaner editor */
#profilePage .profile-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr)!important;gap:16px!important;align-items:stretch}
#profilePage .profile-showcase{position:relative;min-height:305px;padding:24px!important;border:1px solid rgba(127,163,194,.25)!important;border-radius:20px!important;background:radial-gradient(ellipse at 90% 5%,rgba(77,132,174,.17),transparent 42%),linear-gradient(145deg,rgba(17,28,42,.96),rgba(10,14,22,.97))!important;box-shadow:0 20px 48px rgba(0,0,0,.24)!important}
#profilePage .profile-showcase:before{width:4px;background:linear-gradient(180deg,#85c9ef,#e9c48b,transparent)!important}
#profilePage .profile-showcase:after{content:"EAGLE MATCH / PLAYER CARD";position:absolute;right:18px;top:16px;color:rgba(176,204,227,.28);font-size:8px;font-weight:900;letter-spacing:1.5px}
#profilePage .profile-hero{gap:19px;padding:9px 0 21px;border-color:rgba(143,170,196,.17)}
#profilePage .profile-avatar-ring{width:106px!important;height:106px!important;flex:0 0 106px!important;padding:4px!important;background:conic-gradient(from 160deg,#75bde6,#e5bd83,#536f93,#75bde6)!important;box-shadow:0 0 0 7px rgba(103,161,204,.07),0 0 35px rgba(94,164,211,.17)!important}
#profilePage .profile-avatar-ring .avatar.big{border-color:#111c29!important;background-color:#192535!important;font-size:33px!important}
#profilePage .profile-copy h3{font-size:clamp(22px,3vw,31px)!important;letter-spacing:.2px}
#profilePage .profile-rank-line{gap:9px;flex-wrap:wrap;font-size:10px;color:#9caec0}
#profilePage .profile-rank-line span:first-child{padding:5px 9px;border:1px solid rgba(229,190,126,.3);border-radius:999px;background:rgba(102,75,37,.2);color:#f0d5a7!important}
#profilePage .profile-xp{padding:18px 0 9px}
#profilePage .profile-xp-head{color:#aab9c8}
#profilePage .profile-xp-head b{color:#f4f7fb}
#profilePage .profile-xp-track{height:10px!important;background:#08111b!important;border:1px solid rgba(132,171,203,.16)}
#profilePage .profile-xp-track i{background:linear-gradient(90deg,#4a9bcf,#9bcde9,#e8c18a)!important;box-shadow:0 0 16px rgba(107,185,230,.22)}
#profilePage .profile-xp-foot{color:#8298ad}
#profilePage .profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px!important}
#profilePage .profile-stats>div{display:grid;gap:6px;min-width:0;padding:13px 10px;border:1px solid rgba(126,158,187,.18);border-radius:12px;background:linear-gradient(145deg,rgba(31,48,66,.55),rgba(12,17,25,.78));text-align:center}
#profilePage .profile-stats b{color:#f4f7fb;font-size:21px;font-variant-numeric:tabular-nums}
#profilePage .profile-stats span{color:#879bad;font-size:8px;font-weight:900;letter-spacing:1px}
#profilePage .profile-editor{padding:23px!important;border:1px solid rgba(127,163,194,.23)!important;border-radius:20px!important;background:linear-gradient(150deg,rgba(18,26,38,.96),rgba(10,14,22,.97))!important}
#profilePage .profile-editor h3{margin:8px 0;color:#f2f6fa;font-size:21px}
#profilePage .profile-editor p{color:#98aabc;font-size:11px;line-height:1.7}
#profilePage #avatarInput{display:block;width:100%;margin:19px 0 14px;padding:12px;border:1px dashed rgba(130,174,208,.35);border-radius:12px;background:rgba(7,14,22,.58);color:#b7c9d8;font-size:10px}
#profilePage .profile-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
#profilePage .profile-tip{margin-top:18px;padding:12px 13px;border:1px solid rgba(128,172,207,.17);border-radius:11px;background:rgba(7,14,22,.48);color:#8fa4b8;font-size:10px;line-height:1.65}

/* Friends + private chat — proper two-pane social workspace */
#friendsPage .friends-layout{grid-template-columns:minmax(290px,.82fr) minmax(0,1.38fr)!important;gap:15px!important;align-items:stretch}
#friendsPage .friends-panel,#friendsPage .chat-panel{min-width:0;min-height:620px;padding:17px!important;border:1px solid rgba(129,160,189,.23)!important;border-radius:19px!important;background:linear-gradient(150deg,rgba(17,26,38,.96),rgba(10,14,22,.97))!important;box-shadow:0 18px 42px rgba(0,0,0,.2)!important}
#friendsPage .friends-panel{display:flex;flex-direction:column;gap:11px}
#friendsPage .panel-head{margin-bottom:2px}
#friendsPage .panel-head h3,#friendsPage .chat-head h3{margin:5px 0;color:#f0f5fa;font-size:20px}
#friendsPage .private-party-box{margin:0!important;padding:13px!important;border:1px solid rgba(224,185,124,.24)!important;border-radius:13px!important;background:linear-gradient(110deg,rgba(107,76,36,.2),rgba(14,20,28,.65))!important}
#friendsPage .private-party-box .btn{min-height:39px;font-size:10px;letter-spacing:.65px}
#friendsPage .private-hint{color:#a7a0a0;font-size:9px;line-height:1.5}
#friendsPage .friend-add-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}
#friendsPage .friend-add-row .social-input,#friendsPage .chat-compose .social-input{height:42px;border:1px solid rgba(125,156,187,.24)!important;border-radius:11px!important;background:rgba(5,11,18,.72)!important;color:#f0f5fa!important}
#friendsPage .friend-add-row .btn{min-width:78px}
#friendsPage .friends-panel>.eyebrow{margin:7px 0 0!important;color:#93a9bd!important;font-size:8px;letter-spacing:1.4px}
#friendsPage .social-list{gap:7px;max-height:230px;overflow:auto;padding:2px 3px 4px 0;scrollbar-width:thin;scrollbar-color:#53677d transparent}
#friendsPage .social-user{padding:10px!important;border:1px solid rgba(125,157,187,.16)!important;border-radius:12px!important;background:linear-gradient(110deg,rgba(26,39,54,.72),rgba(12,17,25,.78))!important;transition:transform .16s,border-color .16s}
#friendsPage .social-user:hover{transform:translateY(-1px);border-color:rgba(139,190,224,.42)!important}
#friendsPage .social-main>b{color:#edf4f9!important;font-size:11px}
#friendsPage .social-main>small{color:#94a7b9!important}
#friendsPage .social-actions .btn{padding:6px 8px!important;font-size:8px!important;border-radius:8px!important}
#friendsPage .chat-panel{display:flex;flex-direction:column;gap:13px}
#friendsPage .chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 2px 13px;border-bottom:1px solid rgba(132,163,191,.16)}
#friendsPage .chat-head .eyebrow{color:#e0bd87!important}
#friendsPage .chat-status{padding:6px 10px;border:1px solid rgba(133,156,179,.2);border-radius:99px;background:rgba(8,14,22,.65);color:#95a9bc;font-size:8px;font-weight:900;letter-spacing:1px}
#friendsPage .chat-status.online{border-color:rgba(65,206,149,.28);background:rgba(31,117,82,.12);color:#72dcae}
#friendsPage .chat-messages{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;height:auto!important;min-height:410px;max-height:540px;overflow:auto;padding:15px!important;border:1px solid rgba(129,160,189,.16)!important;border-radius:15px!important;background:radial-gradient(ellipse at 50% 0,rgba(61,108,148,.09),transparent 55%),rgba(5,10,17,.72)!important;scrollbar-width:thin;scrollbar-color:#40576d transparent}
#friendsPage .chat-history-list{display:flex;flex:1 0 auto;flex-direction:column;align-items:flex-start;gap:9px;min-height:100%;}
#friendsPage .chat-history-list .empty{margin:auto;max-width:300px;color:#8194a8;font-size:11px;line-height:1.7;text-align:center}
#friendsPage .chat-bubble{position:relative;max-width:min(78%,520px);padding:11px 13px 8px;border:1px solid rgba(119,155,188,.2);border-radius:14px 14px 14px 5px;background:linear-gradient(145deg,rgba(31,49,67,.92),rgba(17,27,39,.96));color:#e9f0f6;font-size:12px;line-height:1.65;overflow-wrap:anywhere;box-shadow:0 6px 17px rgba(0,0,0,.15)}
#friendsPage .chat-bubble.mine{align-self:flex-end;border-color:rgba(212,169,105,.25);border-radius:14px 14px 5px 14px;background:linear-gradient(145deg,rgba(87,62,36,.45),rgba(37,29,25,.92));color:#f8efe0}
#friendsPage .chat-meta{margin-top:5px;color:#8499ab;font-size:8px;text-align:right;letter-spacing:.3px}
#friendsPage .chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0!important;padding-top:2px}
#friendsPage .chat-compose .btn{min-width:86px;border-radius:11px!important}

/* Community browser — server cards, status and join actions */
#communityPage .community-grid-layout{grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr)!important;gap:15px!important;align-items:start}
#communityPage .community-grid-layout>.panel{padding:21px!important;border:1px solid rgba(129,160,189,.23)!important;border-radius:19px!important;background:linear-gradient(150deg,rgba(17,26,38,.96),rgba(10,14,22,.97))!important;box-shadow:0 18px 42px rgba(0,0,0,.2)!important}
#communityPage .community-grid-layout h3{margin:7px 0 8px;color:#f1f5f9;font-size:21px}
#communityPage .community-grid-layout p.muted{color:#98aabd;font-size:11px;line-height:1.75}
#communityPage .community-add-form{display:flex;flex-direction:column;gap:9px;margin-top:17px}
#communityPage .community-add-form .social-input{width:100%;height:43px;min-width:0;border:1px solid rgba(125,156,187,.24)!important;border-radius:11px!important;background:rgba(5,11,18,.72)!important;color:#eff4f8!important}
#communityPage #communityAdd{min-height:43px;margin-top:3px;border-radius:11px!important;font-size:10px;font-weight:900;letter-spacing:.7px}
#communityPage .community-server-list{gap:10px;margin-top:12px}
#communityPage .community-server-card{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:15px;border:1px solid rgba(128,160,190,.2);border-radius:14px;background:linear-gradient(120deg,rgba(26,40,56,.72),rgba(11,17,25,.88));transition:transform .16s,border-color .16s,box-shadow .16s}
#communityPage .community-server-card:hover{transform:translateY(-2px);border-color:rgba(130,189,226,.42);box-shadow:0 12px 25px rgba(0,0,0,.2)}
#communityPage .community-server-main{flex:1;min-width:0}
#communityPage .community-server-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#communityPage .community-server-title b{color:#eef5fa;font-size:13px;overflow-wrap:anywhere}
#communityPage .community-tag{padding:4px 7px;border:1px solid rgba(224,188,127,.24);border-radius:99px;background:rgba(117,82,39,.16);color:#e6c48e;font-size:7px;font-weight:900;letter-spacing:1px}
#communityPage .community-server-meta{display:flex;align-items:center;gap:8px 13px;flex-wrap:wrap;margin-top:10px;color:#91a4b6;font-size:9px}
#communityPage .community-server-meta>span{min-width:0;overflow-wrap:anywhere}
#communityPage .community-server-meta .online-text{color:#69d8a5;font-weight:900}
#communityPage .community-server-meta .offline-text{color:#ec8791;font-weight:900}
#communityPage .community-server-actions{display:flex;flex:none;gap:7px}
#communityPage .community-server-actions .btn{min-width:72px;padding:8px 10px!important;border-radius:9px!important;font-size:8px!important}
#communityPage .community-server-actions .btn:disabled{opacity:.4;cursor:not-allowed}

/* Persian layout and responsive behavior */
body.lang-fa #profilePage,body.lang-fa #friendsPage,body.lang-fa #communityPage{direction:rtl;text-align:right}
body.lang-fa #friendsPage .chat-bubble.mine{align-self:flex-start;border-radius:14px 14px 14px 5px}
body.lang-fa #friendsPage .chat-bubble:not(.mine){align-self:flex-end;border-radius:14px 14px 5px 14px}
body.lang-fa #friendsPage .chat-meta{text-align:left}
body.lang-fa #communityPage .community-server-actions{direction:ltr}
@media(max-width:1000px){
  #friendsPage .friends-layout,#communityPage .community-grid-layout{grid-template-columns:minmax(0,1fr)!important}
  #friendsPage .friends-panel{min-height:0}
  #friendsPage .social-list{max-height:260px}
  #friendsPage .chat-panel{min-height:560px}
  #profilePage .profile-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:620px){
  .em-page-intro{min-height:95px;padding:16px 17px;border-radius:15px}
  .em-intro-mark{flex-basis:48px;width:48px;height:48px;border-radius:13px;font-size:18px}
  #profilePage .profile-showcase,#profilePage .profile-editor{padding:16px!important}
  #profilePage .profile-avatar-ring{width:78px!important;height:78px!important;flex-basis:78px!important}
  #profilePage .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #friendsPage .friends-panel,#friendsPage .chat-panel{padding:13px!important;min-height:0}
  #friendsPage .chat-messages{min-height:330px;max-height:55vh}
  #friendsPage .chat-compose{grid-template-columns:minmax(0,1fr)!important}
  #friendsPage .chat-compose .btn{width:100%}
  #friendsPage .chat-bubble{max-width:92%}
  #communityPage .community-grid-layout>.panel{padding:15px!important}
  #communityPage .community-server-card{align-items:stretch;flex-direction:column}
  #communityPage .community-server-actions{justify-content:flex-start}
  #communityPage .community-server-actions .btn{flex:1}
  #emMapVoteOverlay .em-map-vote-tools{align-items:stretch;flex-direction:column;max-width:520px;margin-top:18px}
  #emMapVoteOverlay .em-random-map-btn{width:100%}
  #emMapVoteOverlay .em-map-vote-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #emMapVoteOverlay .em-vote-map-art{height:clamp(82px,26vw,125px)}
  #emMapVoteOverlay .em-vote-map-info{padding:10px;gap:5px}
  #emMapVoteOverlay .em-vote-map-info b{font-size:10px}
  #emMapVoteOverlay .em-vote-map-info em{min-width:38px;min-height:40px;font-size:13px}
}
@media(max-width:380px){#emMapVoteOverlay .em-map-vote-grid{grid-template-columns:minmax(0,1fr)}#profilePage .profile-hero{align-items:flex-start;gap:12px}}


/* Eagle Match 5.13.0 quality pass: visible profile covers, badges and read receipts. */
.profile-cover,.friend-profile-cover{
  position:relative;display:block;width:100%;aspect-ratio:1360/768;min-height:148px;max-height:250px;
  margin:0 0 18px;overflow:hidden;border:1px solid rgba(138,174,205,.2);border-radius:16px;
  background:radial-gradient(ellipse at 75% 10%,rgba(93,143,180,.22),transparent 48%),linear-gradient(135deg,#172432,#0a1019);
}
.profile-cover>span,.friend-profile-cover>span{position:absolute;inset:0;display:grid;place-items:center;color:rgba(183,205,225,.35);font-size:9px;font-weight:900;letter-spacing:1.4px}
.profile-cover-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.profile-cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,14,.42),transparent 72%),linear-gradient(0deg,rgba(5,8,13,.27),transparent 55%);pointer-events:none}
#profilePage .profile-showcase{padding:16px!important}
#profilePage .profile-cover{margin:-1px -1px 18px;width:calc(100% + 2px);max-width:none}
#profilePage .profile-cover.has-profile-background{border-color:rgba(116,187,226,.46);box-shadow:0 10px 30px rgba(0,0,0,.28)}
#profilePage .profile-customization-controls{display:grid;gap:10px;margin-top:16px;padding:14px;border:1px solid rgba(131,169,197,.18);border-radius:13px;background:rgba(9,15,23,.52)}
#profilePage .profile-customization-controls label{display:grid;gap:6px;color:#9fb1c3;font-size:8px;font-weight:950;letter-spacing:1px}
#profilePage .profile-customization-controls .social-input{min-height:40px}
#profilePage .profile-customization-controls button{min-height:40px}
.profile-name-tick{display:inline-block;width:16px;height:16px;max-width:16px;max-height:16px;margin-inline-start:6px;vertical-align:-2px;object-fit:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,.65))}
.friend-profile-name .profile-name-tick{width:19px;height:19px;max-width:19px;max-height:19px;vertical-align:-3px;margin-inline-start:7px}
.social-name{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social-name .social-name-tick{flex:0 0 15px;width:15px;height:15px;max-width:15px;max-height:15px;margin:0}
.chat-head #chatTitle{display:flex;align-items:center;gap:4px;min-width:0}
.chat-head #chatTitle .profile-name-tick{flex:0 0 15px;width:15px;height:15px;max-width:15px;max-height:15px;margin:0}
.em-private-member-copy .em-player-name{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;overflow:hidden;color:#e5edf2;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.em-private-member-copy .em-name-tick{flex:0 0 13px;width:13px;height:13px;max-width:13px;max-height:13px;margin:0}
#friendsPage .chat-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.chat-read-receipt{display:inline-flex;align-items:center;justify-content:flex-end;min-width:13px;color:#91a3b5;font-size:10px;font-weight:1000;letter-spacing:-2px;line-height:1;white-space:nowrap}
.chat-read-receipt.is-read{color:#58b9ee}


/* 5.13.0 profile polish: cover images, avatar and inventory art must stay visible. */
.friend-profile-cover{aspect-ratio:1360/768;min-height:160px;max-height:270px;background:linear-gradient(135deg,#172636,#0a1018);}
.friend-profile-avatar{position:relative;flex:0 0 92px;width:92px;height:92px;overflow:hidden;border:2px solid rgba(117,190,229,.52);border-radius:50%;background:#121e2a;box-shadow:0 8px 24px rgba(0,0,0,.32)}
.friend-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.friend-profile-head{display:flex;align-items:center;gap:16px;min-width:0}
.friend-profile-name{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.friend-profile-name .profile-name-tick{flex:0 0 18px}
.friend-inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px}
.friend-inventory-item{display:flex;align-items:center;gap:9px;min-width:0;min-height:60px;padding:8px;border:1px solid rgba(130,166,193,.18);border-radius:10px;background:rgba(8,14,21,.66)}
.friend-inventory-item>img,.friend-inventory-fallback{flex:0 0 42px;width:42px;height:42px;object-fit:contain;border-radius:7px;background:rgba(108,145,173,.11)}
.friend-inventory-fallback{display:grid;place-items:center;color:#8ba8bf;font-size:18px}
.friend-inventory-item>div{display:grid;gap:3px;min-width:0}
.friend-inventory-item>div b{overflow:hidden;color:#e7f0f6;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.friend-inventory-item>div small{color:#8194a6;font-size:7px;font-weight:900;letter-spacing:.5px}

/* Eagle Match 5.13.0 — two-choice matchmaking and layered player profile covers. */
#homePage .em-matchmaking-home{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,2fr);align-items:stretch;gap:18px;padding:18px;border:1px solid rgba(111,161,194,.2);border-radius:17px;background:linear-gradient(145deg,rgba(18,28,39,.97),rgba(8,13,20,.98));}
#homePage .em-matchmaking-home .queue-main{align-self:center;min-width:0;padding:12px;border:1px solid rgba(121,162,190,.14);border-radius:13px;background:rgba(4,9,15,.48);}
#homePage .em-matchmaking-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;}
#homePage .em-match-choice{display:flex;flex-direction:column;align-items:stretch;gap:11px;min-width:0;min-height:190px;padding:16px;border:1px solid rgba(108,161,197,.2);border-radius:13px;background:linear-gradient(155deg,rgba(20,39,54,.9),rgba(8,14,21,.98));color:#eaf4fb;box-shadow:0 10px 26px rgba(0,0,0,.2);}
#homePage .em-match-choice.private-card{border-color:rgba(190,145,92,.24);background:linear-gradient(155deg,rgba(49,37,28,.7),rgba(10,14,19,.98));}
.em-match-choice-heading{display:flex;align-items:center;gap:11px;min-height:40px;}
.em-match-choice-heading>div{display:grid;gap:4px;min-width:0;}
.em-match-choice-heading strong{color:#f0f6fb;font-size:13px;font-weight:1000;letter-spacing:.9px;}
.em-match-choice-heading small{color:#8fa6b9;font-size:9px;line-height:1.45;}
.em-match-mode-label{margin-top:2px;color:#91a8ba;font-size:8px;font-weight:1000;letter-spacing:1px;}
.em-match-mode-select{width:100%;min-height:38px;border:1px solid rgba(112,165,197,.24);border-radius:8px;background:#09131d;color:#e6f3fb;font-size:10px;}
.em-match-choice-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:auto;}
.em-match-choice-actions #findBtn{min-height:40px;margin:0!important;font-size:10px;font-weight:1000;letter-spacing:.8px;}
.em-match-choice-actions .em-map-search-open{min-height:36px;padding:0 9px;border:1px solid rgba(110,174,208,.22);border-radius:8px;background:rgba(35,84,111,.2);color:#c2e5f7;font-size:8px;font-weight:1000;letter-spacing:.4px;white-space:nowrap;}
.em-match-choice-actions .em-map-search-open:hover{border-color:rgba(110,190,226,.55);background:rgba(35,100,139,.3);}
.em-private-choice-copy{flex:1;display:flex;align-items:center;max-width:330px;color:#aebdca;font-size:10px;line-height:1.75;}
.em-private-home-button{min-height:40px;margin-top:auto!important;border-color:rgba(192,151,102,.34)!important;color:#f0d3a5!important;letter-spacing:.7px;}
#homePage .em-map-discovery{margin-top:14px;}
#homePage .em-map-discovery.hidden{display:none!important;}
#homePage .section-head{margin-bottom:12px;}
#homePage .em-matchmaking-home.searching .em-match-choice{opacity:.74;}
#homePage .em-matchmaking-home.searching #searchMatchMode{opacity:.7;}

/* The profile art is a true background layer behind the profile card content. */
#profilePage .profile-showcase{position:relative!important;isolation:isolate;overflow:hidden!important;background:linear-gradient(145deg,#17202b,#0d1219)!important;}
#profilePage .profile-showcase>.profile-cover{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;border:0!important;border-radius:inherit!important;aspect-ratio:auto!important;opacity:.92;pointer-events:none;}
#profilePage .profile-showcase>.profile-cover .profile-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
#profilePage .profile-showcase>.profile-cover .profile-cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,14,.72),rgba(4,8,14,.35) 60%,rgba(4,8,14,.52)),linear-gradient(0deg,rgba(5,8,13,.82),rgba(5,8,13,.12) 76%);}
#profilePage .profile-showcase>.profile-cover .profile-cover-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:rgba(187,210,227,.12);font-size:10px;font-weight:1000;letter-spacing:2px;}
#profilePage .profile-showcase>:not(.profile-cover){position:relative;z-index:1;}
#profilePage .profile-showcase .profile-hero{padding:26px 8px 17px;border-bottom-color:rgba(169,196,216,.18);background:transparent;}
#profilePage .profile-showcase .profile-xp{padding-inline:8px;}
#profilePage .profile-showcase .profile-stats{margin:12px 8px 8px;}
#profilePage .profile-showcase .profile-copy h3{text-shadow:0 3px 15px rgba(0,0,0,.9);}
#profilePage .profile-customization-controls{display:grid;gap:13px;margin-top:17px;padding:16px;border:1px solid rgba(116,168,198,.22);border-radius:14px;background:linear-gradient(145deg,rgba(12,24,35,.95),rgba(7,13,20,.95));box-shadow:0 12px 28px rgba(0,0,0,.2);}
.profile-customization-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.profile-customization-heading h4{margin:4px 0 3px;color:#edf5fa;font-size:15px;}
.profile-customization-heading p{margin:0;color:#8fa4b5;font-size:9px;line-height:1.6;}
.profile-customization-mark{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid rgba(106,182,219,.3);border-radius:11px;background:rgba(46,116,154,.18);color:#8bd0f2;font-size:19px;}
.profile-customization-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.profile-customization-fields label{display:grid;gap:6px;min-width:0;color:#9eb2c3;font-size:8px;font-weight:1000;letter-spacing:.8px;}
.profile-customization-fields .social-input{width:100%;min-height:40px;border:1px solid rgba(122,166,194,.23);border-radius:8px;background:#08121b;color:#e7f2f8;font-size:10px;}
.profile-customization-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:11px;border-top:1px solid rgba(120,162,190,.14);}
.profile-customization-footer .profile-tip{margin:0;color:#8da3b4;font-size:8px;line-height:1.5;}
.profile-customization-footer #saveProfileCustomization{min-width:132px;min-height:38px;font-size:9px;}

/* Other players' profile covers also sit behind their profile contents. */
.friend-profile-card{position:relative!important;isolation:isolate;overflow:auto!important;background:linear-gradient(145deg,#17202b,#0a1119)!important;}
.friend-profile-card>.friend-profile-cover{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;border:0!important;border-radius:inherit!important;opacity:.9;pointer-events:none;}
.friend-profile-card>.friend-profile-cover .profile-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.friend-profile-card>.friend-profile-cover .profile-cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,14,.72),rgba(4,8,14,.37)),linear-gradient(0deg,rgba(5,8,13,.86),rgba(5,8,13,.12) 78%);}
.friend-profile-card>:not(.friend-profile-cover){position:relative;z-index:1;}
.friend-profile-card .friend-profile-head,.friend-profile-card .friend-stats-grid,.friend-profile-card .friend-inventory-head,.friend-profile-card .friend-inventory-grid,.friend-profile-card .friend-profile-footer{background:rgba(8,14,21,.45);backdrop-filter:blur(5px);}
.friend-inventory-item>img,.friend-inventory-media{display:block;flex:0 0 42px;width:42px;height:42px;object-fit:cover;border-radius:7px;background:rgba(108,145,173,.11);}

.chat-private-invite .em-chat-invite-actions{justify-content:flex-end;}
.chat-private-invite .em-chat-invite-actions button[data-chat-invite-join]{min-width:66px;min-height:30px;border-color:rgba(96,188,151,.36);background:rgba(34,132,91,.2);color:#b8f2d8;font-size:8px;}
@media(max-width:850px){#homePage .em-matchmaking-home{grid-template-columns:1fr;}#homePage .em-matchmaking-home .queue-main{display:grid;grid-template-columns:auto 1fr;column-gap:13px;align-items:center;}#homePage .em-matchmaking-home .queue-main .queue-big{grid-column:1/-1;}}
@media(max-width:620px){#homePage .em-matchmaking-actions,.profile-customization-fields{grid-template-columns:1fr;}#homePage .em-match-choice{min-height:172px}.profile-customization-footer{align-items:stretch;flex-direction:column}.profile-customization-footer #saveProfileCustomization{width:100%;}.friend-profile-card>.friend-profile-cover{max-height:none!important;}}

/* Unified profile editor and richer admin asset controls */
#profilePage .profile-editor{padding:16px!important;border:0!important;background:transparent!important;box-shadow:none!important}
#profilePage .profile-customization-controls{margin-top:0;padding:20px;border:1px solid rgba(127,163,194,.23);border-radius:18px;background:linear-gradient(150deg,rgba(18,28,40,.98),rgba(8,14,22,.98));box-shadow:0 18px 42px rgba(0,0,0,.22)}
.profile-avatar-custom-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,1fr) auto;align-items:center;gap:10px;padding:12px;border:1px solid rgba(122,166,194,.16);border-radius:11px;background:rgba(5,11,18,.5)}
.profile-avatar-custom-row>div{display:grid;gap:4px}.profile-avatar-custom-row b{color:#dce9f2;font-size:9px;letter-spacing:.8px}.profile-avatar-custom-row small{color:#8097a9;font-size:8px;line-height:1.5}
.profile-avatar-custom-row input{min-width:0;width:100%;padding:8px;border:1px dashed rgba(122,166,194,.3);border-radius:8px;background:rgba(4,10,17,.7);color:#b6c8d7;font-size:8px}
.case-admin-rewards{display:grid;gap:6px;margin-top:8px}.case-admin-reward{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid rgba(125,155,181,.14);border-radius:9px;background:rgba(4,10,17,.42)}.case-admin-reward>span{display:grid;gap:3px;min-width:0}.case-admin-reward>span b{font-size:9px}.case-admin-reward>span small{color:#91a5b7;font-size:8px;line-height:1.5}.case-admin-reward .btn{flex:none;font-size:7px}
.case-reward-form .case-create-reward-fields{display:grid;gap:8px;padding:10px;border:1px solid rgba(124,160,188,.15);border-radius:10px;background:rgba(17,29,41,.56)}.case-field-caption{color:#9bb0c1;font-size:8px;font-weight:900;letter-spacing:.8px}.case-shop-toggle{display:flex;align-items:center;gap:8px;color:#b9c8d5;font-size:9px}.case-shop-toggle input{width:15px!important;min-width:15px;accent-color:#55a8d6}
.cosmetic-admin-builder{display:grid;gap:11px;margin-top:16px;padding:17px;border:1px solid rgba(107,166,204,.24);border-radius:15px;background:linear-gradient(145deg,rgba(31,66,91,.16),rgba(8,14,21,.8))}.cosmetic-admin-builder h3{margin:0;color:#e7f1f7;font-size:16px}.cosmetic-admin-builder>p{margin:0}.cosmetic-admin-form{display:grid;gap:10px}.cosmetic-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cosmetic-form-grid .social-input{min-width:0;width:100%;margin:0}.cosmetic-admin-form .sticker-file-label{display:grid;gap:7px;padding:11px;border:1px dashed rgba(128,174,203,.27);border-radius:10px;color:#9eb4c5;font-size:8px;font-weight:900}.cosmetic-admin-form input[type=file]{max-width:100%;font-size:9px}.cosmetic-admin-form>.btn{justify-self:start}.admin-shop-item-main .admin-item-preview{flex:0 0 56px}.admin-item-preview video{display:block;width:56px;height:56px;object-fit:cover;border-radius:9px}.admin-shop-item-actions .admin-image-upload{max-width:150px}
@media(max-width:700px){.profile-avatar-custom-row{grid-template-columns:minmax(0,1fr)}.profile-avatar-custom-row .btn{width:100%}.cosmetic-form-grid{grid-template-columns:minmax(0,1fr)}.case-admin-reward{align-items:flex-start;flex-direction:column}.case-admin-reward .btn{width:100%}}


/* 5.13.8 — 16:9 player profile background canvas and a separate, background-free inventory view. */
#profilePage .profile-showcase{aspect-ratio:1360 / 768;min-height:360px;height:auto;}
#profilePage .profile-showcase>.profile-cover{aspect-ratio:1360 / 768;}
.profile-cover,.friend-profile-cover{aspect-ratio:1360 / 768;}
.profile-cover-image{object-fit:cover!important;object-position:center!important;}
.profile-cover-image:is(video){object-fit:cover!important;}
.profile-card-actions{display:flex;justify-content:flex-start;margin:12px 8px 4px;}
.profile-card-actions .btn{min-height:36px;padding:8px 13px;font-size:8px;font-weight:950;letter-spacing:.8px;}
.friend-profile-modal{padding:3vh 2vw!important;}
.friend-profile-card{width:min(1120px,96vw)!important;max-width:1120px!important;max-height:min(90vh,790px)!important;aspect-ratio:1360 / 768!important;min-height:0!important;padding:0!important;overflow:hidden!important;border-radius:20px!important;}
.friend-profile-card>.friend-profile-cover{position:absolute!important;inset:0!important;z-index:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;border:0!important;border-radius:inherit!important;aspect-ratio:auto!important;opacity:1;pointer-events:none;}
.friend-profile-card>.friend-profile-cover .profile-cover-image{width:100%;height:100%;object-fit:cover;object-position:center;}
.friend-profile-card>.friend-profile-cover .profile-cover-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,7,12,.78),rgba(3,7,12,.43) 58%,rgba(3,7,12,.48)),linear-gradient(0deg,rgba(3,7,12,.86),rgba(3,7,12,.10) 80%);}
.friend-profile-card>.friend-profile-view{position:relative;z-index:1;width:100%;height:100%;min-height:0;overflow:auto;padding:34px 38px 28px;background:transparent;}
.friend-profile-card.show-inventory>.friend-profile-cover{display:none!important;}
.friend-profile-card.show-inventory{background:#0b121b!important;}
.friend-profile-card>.friend-profile-inventory-view{position:relative;z-index:2;display:flex;flex-direction:column;gap:18px;width:100%;height:100%;min-height:0;overflow:auto;padding:34px 38px 28px;background:linear-gradient(145deg,#111c28,#0a1119);}
.friend-profile-inventory-title{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid rgba(130,166,193,.18);}
.friend-profile-inventory-title h2{margin:4px 0 0;color:#f1f6fa;font-size:clamp(17px,2.5vw,26px);}
.friend-profile-inventory-title>span{padding:8px 12px;border:1px solid rgba(120,163,194,.23);border-radius:999px;color:#a9bfd0;font-size:9px;font-weight:950;letter-spacing:1px;white-space:nowrap;}
.friend-profile-inventory-view .friend-inventory-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));align-content:start;gap:12px;}
.friend-profile-inventory-view .friend-inventory-item{min-height:82px;padding:10px 12px;background:rgba(16,27,39,.9);border-color:rgba(130,166,193,.2);}
.friend-profile-inventory-view .friend-inventory-item>img,.friend-profile-inventory-view .friend-inventory-media,.friend-profile-inventory-view .friend-inventory-fallback{flex:0 0 58px;width:58px;height:58px;object-fit:contain;background:rgba(108,145,173,.10);}
.friend-profile-inventory-view .friend-inventory-item>div b{font-size:10px;white-space:normal;}
.friend-profile-inventory-view .friend-inventory-item>div small{font-size:8px;}
.friend-profile-card .friend-profile-footer{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:20px;padding-top:15px;border-top:1px solid rgba(130,166,193,.17);background:transparent;backdrop-filter:none;}
.friend-profile-card .friend-profile-footer .btn{min-height:38px;}
.friend-profile-card .friend-profile-footer #friendProfileInventoryOpen{margin-right:auto;}
.friend-profile-card .friend-profile-close{z-index:5;}
@media(max-width:720px){
  #profilePage .profile-showcase{aspect-ratio:auto;min-height:420px;}
  .friend-profile-modal{padding:10px!important;}
  .friend-profile-card{width:100%!important;max-height:calc(100dvh - 20px)!important;min-height:min(86dvh,620px)!important;aspect-ratio:auto!important;}
  .friend-profile-card>.friend-profile-view,.friend-profile-card>.friend-profile-inventory-view{padding:26px 17px 20px;}
  .friend-profile-card .friend-profile-footer #friendProfileInventoryOpen{margin-right:0;}
  .friend-profile-inventory-view .friend-inventory-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));}
}


/* 5.13.9: clear public/private matchmaking actions and editable profile background framing. */
#homePage .em-match-start-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;max-width:620px;width:100%;}
#homePage .em-match-start-actions .btn{min-width:0;min-height:68px;display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:11px;padding:12px 14px!important;}
#homePage .em-match-start-actions .btn>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0;text-align:left;}
#homePage .em-match-start-actions .btn b{font-size:10px;line-height:1.2;}
#homePage .em-match-start-actions .btn small{font-size:8px;line-height:1.35;white-space:normal;}
#homePage .em-private-start-button{border:1px solid rgba(128,174,205,.3)!important;background:linear-gradient(145deg,rgba(26,44,60,.9),rgba(11,18,27,.96))!important;color:#d9e9f4!important;}
#homePage .em-private-start-button .em-action-symbol{background:rgba(80,147,190,.16);color:#91c9e8;}
.profile-background-frame{display:grid;gap:11px;padding:14px;border:1px solid rgba(113,164,198,.2);border-radius:12px;background:rgba(4,10,17,.48);}
.profile-background-frame-head{display:grid;gap:4px;}
.profile-background-frame-head b{color:#d8e9f5;font-size:9px;letter-spacing:.9px;}
.profile-background-frame-head small,.profile-frame-help{color:#8da4b7;font-size:9px;line-height:1.55;}
.profile-background-frame label{display:grid;gap:6px;color:#adc2d3;font-size:8px;font-weight:950;letter-spacing:.55px;}
.profile-background-frame label span{display:flex;justify-content:space-between;gap:12px;}
.profile-background-frame output{color:#8fc9ec;font-variant-numeric:tabular-nums;}
.profile-background-frame input[type=range]{width:100%;accent-color:#65b5e5;}
@media(max-width:700px){#homePage .em-match-start-actions{grid-template-columns:1fr!important;max-width:none;}#homePage .em-match-start-actions .btn{min-height:58px;}}
