/* Emerald and gold profile; only the existing profile dialog is affected. */
html body #profileDialog#profileDialog{width:min(1200px,calc(100vw - 18px))!important;max-width:1200px!important;background:radial-gradient(ellipse at 0 0,#74502088,transparent 65%),#041f15!important;color:#ffedbc!important;border:2px solid #d5b264!important;border-radius:18px!important;padding:0!important;box-shadow:0 0 0 2px #61431f,0 15px 60px #000b!important}
html body #profileDialog#profileDialog>.menu-scroll-content{padding:16px!important;max-height:calc(var(--app-height,100dvh) - 110px)!important;background:linear-gradient(#00180dc9,#00180deb),url('assets/table-scene-night.webp') center/cover!important}
html body #profileDialog#profileDialog .sheet-heading{justify-content:center;margin:0 0 18px!important;padding:0!important;background:none!important;border:0!important}
html body #profileDialog#profileDialog .sheet-heading h2{font:bold clamp(28px,4vw,48px)/1.1 Georgia,serif!important;color:#ffe3a0!important;text-align:center;text-shadow:0 3px 2px #6d3d10;margin:0!important}
html body #profileDialog#profileDialog .panel-toolbar{background:linear-gradient(#063620,#001a10)!important;border-bottom:1px solid #b6974f!important;padding:9px 12px!important}
html body #profileDialog#profileDialog button,html body #profileDialog#profileDialog .panel-home{border:1px solid #d1ae5d!important;background:linear-gradient(#25963d,#08732b 55%,#03451d)!important;color:#fff1c7!important;border-radius:9px!important;box-shadow:inset 0 1px #d8f99f66,0 3px 5px #0005!important;text-shadow:0 1px #003614;font-size:13px!important;min-height:40px!important;padding:8px 12px!important}
html body #profileDialog#profileDialog button:disabled{opacity:.55}
html body #profileDialog#profileDialog button[hidden]{display:none!important}
html body #profileDialog#profileDialog :is(p,label){color:#d9e5d5!important;font-size:13px!important;line-height:1.4}
.profile-ref-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr);gap:18px;align-items:start}
.profile-ref-identity{min-width:0}
html body #profileDialog#profileDialog .profile-player-card{background:radial-gradient(ellipse at 50% 25%,#22573299,#002115ee),url('assets/table-scene-night.webp') center/cover!important;border:2px solid #e5bf6c!important;border-radius:18px!important;padding:20px 16px!important;box-shadow:inset 0 0 0 2px #76552b,0 6px 15px #0007!important;margin:0!important;text-align:center}
html body #profileDialog#profileDialog .profile-card-top{display:flex!important;flex-direction:column;gap:12px!important}
html body #profileDialog#profileDialog #profileCardAvatar{width:132px!important;height:132px!important;flex:0 0 132px!important;border:4px solid #e9c777!important;border-radius:50%!important;background:linear-gradient(145deg,#375c36,#06331c)!important;box-shadow:0 0 0 3px #62471d,0 0 24px #ead27844;font-size:48px!important;overflow:hidden}
html body #profileDialog#profileDialog #profileCardAvatar img{width:100%!important;height:100%!important;object-fit:cover!important}
html body #profileDialog#profileDialog .profile-card-top>div{align-items:center;gap:8px!important;width:100%}
html body #profileDialog#profileDialog #profileCardName{font:bold 34px/1.1 Georgia,serif!important;color:#ffe7a8!important;text-shadow:0 2px #71471c;max-width:100%;overflow-wrap:anywhere}
html body #profileDialog#profileDialog #profileCardRank{font-size:15px!important;color:#ffe8a8!important;justify-content:center}
html body #profileDialog#profileDialog #profileCardWins{display:none}
html body #profileDialog#profileDialog .profile-card-experience{margin-top:14px;gap:7px}
html body #profileDialog#profileDialog #profileCardXp{font-size:13px!important;color:#ffe4a0!important}
html body #profileDialog#profileDialog #profileCardNext{font-size:11px!important;color:#dce9ce!important}
html body #profileDialog#profileDialog .profile-card-track{height:12px!important;background:#00140d!important;border:1px solid #ba9e55!important;border-radius:8px;overflow:hidden}
html body #profileDialog#profileDialog #profileCardProgress{background:linear-gradient(#a6ed6c,#08a32d 60%,#047622)!important;height:100%;display:block}
html body #profileDialog#profileDialog .profile-photo-controls{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0!important}
html body #profileDialog#profileDialog .profile-photo-controls button{flex:1;padding:6px!important;font-size:11px!important}
html body #profileDialog#profileDialog .profile-photo-controls small{flex-basis:100%;font-size:10px!important;color:#b9c9aa!important;text-align:center}
.profile-ref-main{min-width:0}.profile-ref-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:12px}
.profile-ref-stat{display:flex;align-items:center;justify-content:center;gap:10px;padding:15px 8px;border:2px solid #d6ae5d;border-radius:12px;background:radial-gradient(ellipse at top,#17492a,#002014);box-shadow:inset 0 0 0 2px #695024}
.profile-ref-stat-icon{font-size:32px;color:#f8d271}.profile-ref-stat small{font-size:11px;text-transform:uppercase;color:#efdf9d;display:block}.profile-ref-stat strong{display:block;font:bold 32px Georgia,serif;color:#ffe6a0}
.profile-ref-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
html body #profileDialog#profileDialog .profile-ref-link{display:flex;align-items:center;gap:10px;background:linear-gradient(110deg,#064127,#001f14)!important;border:2px solid #cda95b!important;text-align:left;padding:7px!important;min-height:74px!important;box-shadow:inset 0 0 0 1px #6c4c21,0 3px 5px #0005!important}
.profile-ref-link-icon{display:grid;place-items:center;width:45px;min-width:45px;height:48px;border-radius:7px;background:linear-gradient(#145f2a,#00381d);font-size:30px;color:#ffda7c}.profile-ref-link b{display:block;font-size:12px;color:#fff0c8}.profile-ref-link small{display:block;font-size:10px;color:#bacfb8;margin-top:4px}.profile-ref-chevron{margin-left:auto;font-size:26px;color:#ffebb8}
.profile-ref-badges,.profile-ref-editor,.profile-ref-account{border:2px solid #cfa95c;border-radius:14px;background:linear-gradient(120deg,#063b24,#001d12);padding:14px;margin-top:14px;box-shadow:inset 0 0 0 1px #6b4e24}
.profile-ref-badges h3{font:bold 20px Georgia,serif;color:#ffdfa0;margin:0 0 12px}
.profile-ref-badge-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;text-align:center}.profile-ref-badge img{display:block;width:60px;height:70px;margin:0 auto 6px}.profile-ref-badge span{display:block;color:#ffe4a4;font-size:12px}.profile-ref-badge small{display:block;font-size:10px;color:#a8c49c;margin-top:4px}.profile-ref-badge.is-locked img{filter:grayscale(1);opacity:.45}
html body #profileDialog#profileDialog .rank-guide{background:transparent!important;border:0!important;border-top:1px solid #8f793c!important;margin:12px 0 0!important;padding:10px 0 0!important;border-radius:0!important}
html body #profileDialog#profileDialog summary{color:#ffe3a0!important;font-size:14px!important;cursor:pointer}
html body #profileDialog#profileDialog .rank-guide>div{background:#002014!important;color:#e5e6cc!important;border-color:#677447!important}
html body #profileDialog#profileDialog input:not([type=file]){background:#001d12!important;color:#fff1ca!important;border:1px solid #9b844a!important;border-radius:8px!important;font-size:14px!important;padding:10px!important;min-height:42px!important}
html body #profileDialog#profileDialog #profileForm{margin-top:14px}
html body #profileDialog#profileDialog #profileAccount{background:#001b10!important;padding:10px!important;border-radius:8px}
@media(max-width:650px){
 html body #profileDialog#profileDialog{width:calc(100vw - 12px)!important;border-radius:13px!important}
 html body #profileDialog#profileDialog>.menu-scroll-content{padding:12px!important}
 html body #profileDialog#profileDialog .panel-toolbar{padding:7px!important}
 html body #profileDialog#profileDialog .panel-home{font-size:12px!important;min-height:36px!important}
 html body #profileDialog#profileDialog .sheet-heading{margin:0 0 12px!important}
 .profile-ref-layout{grid-template-columns:1fr;gap:10px}
 html body #profileDialog#profileDialog .profile-player-card{padding:15px 12px!important}
 html body #profileDialog#profileDialog .profile-card-top{flex-direction:row!important;text-align:left;gap:14px!important}
 html body #profileDialog#profileDialog #profileCardAvatar{width:96px!important;height:96px!important;flex:0 0 96px!important;font-size:36px!important}
 html body #profileDialog#profileDialog .profile-card-top>div{align-items:flex-start}
 html body #profileDialog#profileDialog #profileCardName{font-size:29px!important}
 html body #profileDialog#profileDialog #profileCardRank{font-size:12px!important;justify-content:flex-start}
 html body #profileDialog#profileDialog .profile-card-experience{margin-top:12px}
 .profile-ref-stat{padding:10px 4px;gap:4px}.profile-ref-stat-icon{font-size:23px}.profile-ref-stat small{font-size:9px}.profile-ref-stat strong{font-size:26px}
 .profile-ref-stats{gap:6px;margin-bottom:10px}
 .profile-ref-links{gap:7px}
 html body #profileDialog#profileDialog .profile-ref-link{gap:6px;padding:6px!important;min-height:68px!important}
 .profile-ref-link-icon{width:29px;min-width:29px;height:38px;font-size:23px}.profile-ref-link b{font-size:10px}.profile-ref-link small{font-size:9px;line-height:1.3}.profile-ref-chevron{font-size:20px}
 .profile-ref-badges{padding:12px}.profile-ref-badge-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-ref-badge img{width:48px;height:56px}.profile-ref-badge span{font-size:11px}
}
