.shared-wizard-profile{min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px;color:#fff0ca}
.shared-wizard-profile .guild-stat-hero{margin:10px 0;overflow:visible}
.shared-wizard-profile .shared-profile-portrait{cursor:pointer;touch-action:manipulation;border-radius:20px;object-fit:contain}
.shared-profile-portrait:focus-visible{outline:3px solid #fde6a9;outline-offset:3px}
.profile-celebration-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:20;border-radius:inherit}
.shared-wizard-profile .guild-tabs{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.shared-wizard-profile .guild-tabs .guild-button{flex:1;min-height:36px}
.shared-wizard-profile .guild-stats{margin:12px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
.shared-wizard-profile .guild-stats>div{min-width:0}
.shared-wizard-profile .guild-stat-hero .match-user-action{display:flex;justify-content:center}
#world-chat .shared-wizard-profile .guild-button{background:linear-gradient(#806192,#493958);border:2px solid #ba9bd7;border-bottom:4px solid #35223f;border-radius:13px;color:#fff0c9;padding:9px 12px;font-weight:800}
#world-chat .shared-wizard-profile .guild-button[aria-pressed=true]{background:linear-gradient(#f9e7b4,#dac382);color:#41362c}
#match-user-dialog.guild-dialog{width:min(900px,94vw);height:min(800px,94dvh);max-height:94dvh;display:flex;flex-direction:column;padding:16px;overflow:hidden}
/* Full-screen guild-dialog rules set inset:0;margin:0; auto margins keep this smaller card centred. */
#match-user-dialog.guild-dialog[open]{margin:auto}
#match-user-dialog .shared-wizard-profile{flex:1}
#match-user-dialog .shared-wizard-profile>h3+.guild-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
#match-user-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;width:100%;height:auto;max-width:none;margin:0 0 10px;padding:0 4px;box-sizing:border-box}
@media(max-width:760px),(pointer:coarse) and (max-width:1366px){.shared-wizard-profile .guild-stats{gap:7px}.shared-wizard-profile .guild-stats>div{padding:10px 5px}.shared-wizard-profile .guild-stats strong{font-size:21px}.shared-wizard-profile .guild-stat-hero .wizard-portrait{width:180px;height:145px}.shared-wizard-profile .guild-tabs .guild-button{font-size:11px;padding:7px!important}}
@media(max-height:550px){#match-user-dialog.guild-dialog{height:96dvh;max-height:96dvh;padding:9px}#match-user-dialog>header{gap:10px}#match-user-dialog>header h2{margin:0}#match-user-dialog .shared-wizard-profile{padding:4px 8px 8px}#match-user-dialog .shared-wizard-profile .guild-stat-hero{margin:6px 0;padding:10px 12px!important}#match-user-dialog .shared-wizard-profile>h3{margin:4px 0}#match-user-dialog .shared-wizard-profile .guild-stats{margin:6px 0;grid-template-columns:repeat(4,minmax(0,1fr))}.shared-wizard-profile .guild-stat-hero{display:grid;grid-template-columns:160px 1fr;column-gap:12px;padding:0 5px!important;text-align:left;justify-items:start}.shared-wizard-profile .guild-stat-hero .wizard-portrait{grid-column:1;grid-row:1/7;width:160px;height:135px!important}.shared-wizard-profile .guild-stat-hero:before{display:none}.shared-wizard-profile .guild-stat-hero h3{font-size:20px}.shared-wizard-profile .guild-tabs .guild-button{min-height:30px;padding:5px 8px!important}.shared-wizard-profile .guild-stats>div{padding:9px 5px}.shared-wizard-profile .guild-stats strong{font-size:20px}}

/* Friends share the Academy chronicle's parchment-gold, purple and illustrated seals. */
.guild-dialog.has-friend-profile{background:radial-gradient(ellipse at 50% 0,#57416655,transparent 65%),linear-gradient(#211a32ed,#181322f5),url('art/academy-honors.svg') center/cover!important;color:#eee0c8;box-shadow:inset 0 0 0 2px #b49a6866,inset 0 0 0 6px #d1b98618}
.guild-dialog.has-friend-profile .guild-header{border-bottom:1px solid #bda47755}
.guild-dialog.has-friend-profile :is(h2,h3){font-family:Georgia,serif!important;color:#f0d8a4;text-shadow:0 2px 3px #140b24}
.guild-dialog .academy-friend-profile{padding:12px;display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,2fr);gap:12px 20px;align-content:start}
.academy-friend-profile>*{grid-column:2;min-width:0}
.academy-friend-profile>.guild-button:first-child{grid-column:1/-1;justify-self:start}
.guild-dialog .academy-friend-profile .guild-stat-hero{grid-column:1;grid-row:2/span 9;align-self:start;margin:0;padding:18px 12px!important;border-radius:22px 22px 12px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.academy-friend-profile :is(.guild-stat-hero,.guild-stats>div,.guild-league){border:1px solid #b49a68;border-bottom:4px solid #665039;background:linear-gradient(#30253cc9,#211a32e8),url('art/academy-honors.svg') center/100% 100%;box-shadow:inset 0 0 0 3px #1c172880,inset 0 0 0 4px #d1b98633,0 4px 12px #100a2255;color:#eee0c8;border-radius:16px}
.academy-friend-profile .guild-stat-hero:before{border-color:#d8ba7766;animation:none}
.academy-friend-profile .guild-stat-hero .wizard-portrait{width:100%;max-width:240px;height:185px!important}
.academy-friend-profile .guild-profile-kicker{color:#dbc18d}
.academy-friend-profile .guild-player-id{max-width:100%;overflow-wrap:anywhere;color:#dacbb0}
.academy-friend-profile .guild-stats{gap:10px;margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.academy-friend-profile .guild-stats>div{display:grid;justify-items:center;align-content:center;gap:5px;padding:13px 7px;animation:none}
.academy-friend-profile .guild-stats strong{font:700 27px Georgia,serif;color:#ffe6a7;text-shadow:0 1px 4px #140b24}
.academy-friend-profile .guild-stats small{font-family:Georgia,serif;color:#e4d4ba;text-align:center}
.academy-friend-stat-icon{display:block;width:44px;height:44px;object-fit:contain}
.academy-friend-profile .guild-stats>.academy-friend-healing{background:radial-gradient(ellipse at top,#427b6555,transparent 85%),#192e30;border-color:#8bc9aa88}
.academy-friend-profile .guild-tabs{margin:0!important}
.guild-dialog.has-friend-profile .guild-button{border:1px solid #b49a68!important;border-bottom:4px solid #665039!important;background:linear-gradient(#4a3856,#2c233b)!important;color:#f0d8a4!important;font-family:Georgia,serif!important;box-shadow:inset 0 0 0 2px #d1b98622,0 3px 8px #100a2255!important}
.guild-dialog .academy-friend-profile .guild-tabs button[aria-pressed=true]{background:linear-gradient(#ead4a1,#bd9960)!important;color:#302139!important;border-color:#f2dca7!important}
.academy-friend-profile .guild-fine{margin:0;color:#cbbbce}
.academy-friend-profile .guild-league{margin:0;padding:12px}
.guild-dialog.has-friend-profile button:focus-visible{outline:2px solid #ffe2a6;outline-offset:3px}
@media(max-height:550px){.guild-dialog .academy-friend-profile{grid-template-columns:minmax(150px,.65fr) minmax(0,2fr);gap:8px 12px;padding:8px}.guild-dialog .academy-friend-profile .guild-stat-hero{padding:10px!important}.academy-friend-profile .guild-stat-hero .wizard-portrait{height:120px!important}.academy-friend-profile .guild-stats>div{padding:8px 5px;gap:3px}.academy-friend-stat-icon{width:30px;height:30px}.academy-friend-profile .guild-stats strong{font-size:22px}}
@media(max-width:540px) and (min-height:551px){.guild-dialog .academy-friend-profile{grid-template-columns:1fr}.academy-friend-profile>*{grid-column:1}.guild-dialog .academy-friend-profile .guild-stat-hero{grid-row:auto}.academy-friend-profile .guild-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.academy-friend-profile .guild-league span{color:#edcf94}
.academy-friend-profile .guild-league progress{accent-color:#d6b777}
.academy-friend-profile .guild-league progress::-webkit-progress-bar{background:#20172e;border:1px solid #b49a6866;border-radius:8px}
.academy-friend-profile .guild-league progress::-webkit-progress-value{background:linear-gradient(90deg,#9a764c,#efd5a0);border-radius:8px}
.academy-friend-profile .guild-league progress::-moz-progress-bar{background:linear-gradient(90deg,#9a764c,#efd5a0)}
.academy-friend-profile{scrollbar-width:thin;scrollbar-color:#b49a68 #211a32}

.shared-wizard-profile .guild-stat-hero .profile-season-honor{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;box-sizing:border-box;margin:6px auto;padding:4px 12px;border:1px solid #e5cb83;border-radius:999px;background:radial-gradient(ellipse at 50% 0,#96725066,transparent 85%),#352641;color:#ffe5a0;font:700 14px/1.2 Georgia;text-align:center;box-shadow:0 0 12px #e5bb4822}.profile-season-honor img{width:34px;height:34px;object-fit:contain;flex-shrink:0}@media(max-height:550px){.shared-wizard-profile .guild-stat-hero .profile-season-honor{grid-column:2;margin:3px 0;font-size:12px;padding:3px 8px}.profile-season-honor img{width:26px;height:26px}}
