/* Homepage tabs: Leaderboards, Friend Requests, Options. */
#wdHomeFriends[hidden]{display:none!important}
#wdHomeFriends{
 position:fixed!important;z-index:75!important;
 top:calc(clamp(34px,5.5dvh,72px) + 54px)!important;
 right:clamp(15px,2.7vw,58px)!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:clamp(162px,12.2vw,210px)!important;min-height:40px!important;
 margin:0!important;padding:7px 10px!important;
 border:2px solid #efc76a!important;border-radius:7px!important;
 background:linear-gradient(180deg,#123b87,#072860 59%,#061a42)!important;
 color:#ffe6a5!important;text-shadow:0 1px 2px #000b!important;
 text-decoration:none!important;font:700 clamp(13px,.96vw,16px)/1.1 Georgia,serif!important;
 box-shadow:inset 0 0 0 1px #865016,0 3px 10px #0009!important;
 cursor:pointer!important;
}
#wdHomeFriends:hover,#wdHomeFriends:focus-visible{outline:2px solid #fff0af!important;outline-offset:2px!important;filter:brightness(1.13)!important}
@media(max-width:1150px){
 #wdHomeFriends{top:61px!important;right:12px!important;width:164px!important;min-height:38px!important}
 }
@media(max-width:450px){
 #wdHomeFriends{top:58px!important;width:143px!important;min-height:36px!important;padding:6px 7px!important;font-size:12px!important}
 }
/* Member-only Friends page. Independent of homepage and game layout. */
body.wd-friends-page{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 0,#163d80,#061b48 55%,#030b22);color:#f8ecd4;font:16px/1.45 Georgia,'Times New Roman',serif}
.wd-friends-page *{box-sizing:border-box}
.wd-friends-shell{max-width:1040px;margin:auto;padding:20px clamp(15px,4vw,42px) 55px}
.wd-friends-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.wd-friends-back,.wd-friends-reload,.wd-friends-send,.wd-friends-actions button{
 border:1px solid #efd086;border-radius:7px;background:linear-gradient(#1a57a0,#0b2c68);color:#fff0ba;
 padding:10px 15px;font:700 14px Georgia,serif;text-decoration:none;cursor:pointer
}
.wd-friends-back:hover,.wd-friends-reload:hover,.wd-friends-send:hover,.wd-friends-actions button:hover{filter:brightness(1.2)}
.wd-friends-logo{width:180px;max-width:40vw;height:104px;object-fit:contain;display:block;margin:auto}
.wd-friends-title{text-align:center;color:#ffdf8b;font:800 clamp(28px,4vw,42px)/1.15 Georgia,serif;margin:0 0 8px}
.wd-friends-subtitle{text-align:center;max-width:750px;margin:0 auto 20px;color:#d9d9e7}
.wd-friends-message{min-height:24px;margin:12px auto;text-align:center;color:#bce9cf}
.wd-friends-error{color:#ffb8a8!important}
.wd-friends-card{border:2px solid #d8a741;border-radius:11px;overflow:hidden;background:linear-gradient(160deg,#12366f,#07193b);box-shadow:inset 0 0 0 2px #7b521d88,0 8px 23px #0008}
.wd-friends-card h2{margin:0;padding:12px 16px;border-bottom:1px solid #cba151;background:linear-gradient(90deg,#4b2d08,#102f68 25%,#183e80 75%,#51320c);color:#ffe3a0;text-align:center;font:800 clamp(18px,2vw,23px) Georgia,serif}
.wd-friends-compose{padding:15px 20px 20px}
.wd-friends-compose label{display:block;margin-bottom:10px;color:#ffe6bd}
.wd-friends-inputs{display:flex;gap:12px;align-items:center}
.wd-friends-inputs input{flex:1;min-width:0;padding:11px 12px;border:2px solid #b99556;border-radius:6px;background:#f6efdf;color:#172648;font:700 16px Georgia,serif}
.wd-friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px;margin-top:18px}
.wd-friends-list{padding:4px 16px;max-height:440px;overflow-y:auto}
.wd-friends-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:57px;padding:12px 1px;border-bottom:1px solid #ffffff22}
.wd-friends-row:last-child{border-bottom:0}
.wd-friends-row strong{color:#fff7e2;font-size:17px;overflow-wrap:anywhere}
.wd-friends-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:end}
.wd-friends-actions button{padding:7px 10px;font-size:13px}
.wd-friends-actions .wd-friend-deny{background:linear-gradient(#443451,#1c2245)}
.wd-friends-pending{font:700 13px Georgia,serif;color:#fce09b;text-align:right}
.wd-friends-confirmed{font:700 13px Georgia,serif;color:#a5e8b5}
.wd-friends-empty{text-align:center;padding:16px 8px;color:#b9cbe4}
.wd-friends-note{text-align:center;margin:19px auto;max-width:760px;color:#c3d0e6;font-size:14px}
[hidden]{display:none!important}
@media(max-width:700px){.wd-friends-grid{grid-template-columns:1fr}.wd-friends-inputs{flex-wrap:wrap}.wd-friends-send{width:100%}}


/* Small unread-style request counters outside the Friends controls. */
.wd-friends-notification[hidden]{display:none!important}
.wd-friends-notification{
 position:absolute!important;top:-9px!important;right:-9px!important;z-index:110!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:auto!important;min-width:23px!important;height:23px!important;
 padding:0 5px!important;border:2px solid #ffdb82!important;border-radius:999px!important;
 background:#b52532!important;color:#fff!important;
 box-shadow:0 2px 7px #000a!important;text-shadow:none!important;
 font:800 12px/1 Arial,sans-serif!important;white-space:nowrap!important;
 pointer-events:none!important;
}
/* The ornamental menu fabric clips its children; mount the counter at root. */
#wdOptionsBanner>.wd-friends-banner-notification{right:-9px!important;top:auto;}
#wdOptionsMobileToggle{position:fixed!important;}
.wd-friends-card:has(#wdFriendsIncomingTitle){position:relative;overflow:visible;}
.wd-friends-card:has(#wdFriendsIncomingTitle)>h2{border-radius:9px 9px 0 0;}
