[hidden]{display:none!important}.account-link,.account-panel button{color:#ffe0a0!important;border:1px solid #b98a46;background:linear-gradient(145deg,#39204e,#1b1028);padding:10px 15px;border-radius:4px;cursor:pointer;font:inherit;text-decoration:none}.account-link:hover,.account-panel button:hover{box-shadow:0 0 16px #a86aff66}.account-main{min-height:75vh;padding:120px 20px 70px;display:grid;place-items:center}.account-panel{width:min(100%,520px);padding:clamp(20px,5vw,45px);background:#160c24ee;border:1px solid #b98a46;box-shadow:0 0 45px #7925a844;color:#f4eaff;border-radius:8px}.account-panel h1,.account-panel h2{color:#edc77e}.account-panel form,.account-panel label{display:grid;gap:12px}.account-panel form{gap:20px;margin-top:24px}.account-panel input{width:100%;padding:12px;background:#10091e;color:white;border:1px solid #74508e;border-radius:4px;font:inherit}.account-panel input:focus{outline:2px solid #c99aff}.account-tabs{display:flex;gap:10px;flex-wrap:wrap}.account-panel dd{margin:0 0 16px;overflow-wrap:anywhere}.account-panel dt{color:#cbb6df;font-size:12px}.account-panel #account-status{min-height:1.5em;color:#edc77e}.account-link{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}@media(max-width:850px){.topbar .actions{gap:6px}.topbar .actions .outline{display:none}.account-link{padding:8px;max-width:95px}}
/* Stage 3.8.1 — character dashboard */
.account-panel:has(#profile:not([hidden])){width:min(100%,1080px);padding:clamp(18px,4vw,40px)}
.rpg-identity{display:flex;align-items:center;gap:22px;margin:12px 0 24px;min-width:0}.rpg-identity img{image-rendering:pixelated;border:2px solid #d5aa62;box-shadow:0 0 20px #a36aef55;flex-shrink:0}.rpg-identity h2{margin:12px 0}.rpg-role{color:#c9a1f2}.rpg-notice{border-left:3px solid #a477d8;background:#2c1940;padding:12px 16px;color:#dac5ee;margin-bottom:18px}.rpg-grid,.rpg-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.rpg-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rpg-stat,.rpg-section{background:linear-gradient(145deg,#2c1a40,#190e29);border:1px solid #79568d;padding:18px;min-width:0}.rpg-grid .rpg-stat{display:grid;gap:10px}.rpg-symbol{color:#eac16b;font-size:23px}.rpg-stat strong{color:#edc77e;font-size:21px}.rpg-stat span:not(.rpg-symbol){color:#d9c6eb;overflow-wrap:anywhere}.rpg-section h3{margin:0 0 16px;color:#edc77e}.rpg-section .rpg-stat{display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid #59406c;background:none;padding:10px 0}.rpg-section .rpg-stat strong{margin-left:auto}.rpg-xp{border:1px solid #79568d;padding:15px;background:#1a102a}.rpg-xp>div:first-child{display:flex;justify-content:space-between;gap:10px}.rpg-track{height:12px;margin-top:12px;background:repeating-linear-gradient(90deg,#39264c 0 14px,#21142f 14px 17px);border:1px solid #8e6ab1}.rpg-section summary{cursor:pointer;color:#edc77e;font-weight:700}.rpg-section dl{margin-top:20px}.rpg-section p{color:#bfa9d1;font-size:13px}.rpg-section dt{overflow-wrap:anywhere}.rpg-section dd{overflow-wrap:anywhere}#logout{margin-top:10px}@media(max-width:700px){.rpg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rpg-columns{grid-template-columns:1fr}.rpg-identity{gap:12px}.rpg-identity img{width:64px;height:64px}.rpg-stat{padding:12px}}
.account-link{display:inline-flex;align-items:center;gap:7px}.header-avatar{width:24px;height:24px;object-fit:cover;border:1px solid #d5aa62;flex-shrink:0}.rpg-identity img{object-fit:cover}.avatar-editor{display:grid;gap:10px;margin-top:16px}.avatar-editor img{object-fit:cover;border:1px solid #d5aa62}.avatar-editor button:disabled{opacity:.5;cursor:default}

/* Stage 3.8.2.1 */
.header-profile{position:relative;min-width:0;flex-shrink:1}.fantasy .topbar .actions .profile-trigger{display:flex;align-items:center;gap:10px;padding:5px 10px;max-width:245px;min-width:0;overflow:visible;line-height:1.4;text-align:left}.profile-trigger .header-avatar{width:36px;height:36px;border:2px solid #d5aa62;box-shadow:0 0 8px #c38aef55;flex:none}.header-profile-info{display:flex;flex-direction:column;gap:5px;min-width:0}.header-profile-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px}.header-profile-sub{font-family:Manrope,Arial,sans-serif;font-size:11px;color:#c9a1f2;white-space:nowrap}.header-profile-arrow{flex:none;color:#edc77e}.header-profile-menu{position:absolute;right:0;top:calc(100% + 9px);width:225px;max-width:90vw;background:#20132e;border:1px solid #b98a46;box-shadow:0 8px 24px #0009;padding:6px;z-index:50}.fantasy .topbar .actions .header-profile-menu a,.fantasy .topbar .actions .header-profile-menu button{display:block;width:100%;padding:12px 9px;text-align:left;background:transparent;border:0;color:#ffe0a0;font-family:Manrope,Arial,sans-serif;font-size:13px;cursor:pointer;white-space:normal}.header-profile-menu a:hover,.header-profile-menu button:hover{background:#39204e!important}.profile-trigger:focus-visible,.header-profile-menu a:focus-visible,.header-profile-menu button:focus-visible{outline:2px solid #edc77e;outline-offset:2px}@media(max-width:850px){.fantasy .topbar .actions .profile-trigger{max-width:180px;gap:6px;padding:4px 7px}.header-profile-name{max-width:100px}.header-profile-sub{font-size:10px}}@media(max-width:650px){.fantasy .topbar .actions .profile-trigger{max-width:120px}.header-profile-sub{display:none}.profile-trigger .header-avatar{width:30px;height:30px}.header-profile-name{max-width:55px}.header-profile-arrow{display:none}}
.group-vip{--group-color:#ebc55d}.group-premium{--group-color:#c17aff}.group-moderator{--group-color:#55cc88}.group-admin{--group-color:#ff6262}.group-founder{--group-color:#ffaa33}
.header-profile-name,#player-name,#player-role{color:var(--group-color,#eac16b)}
.header-avatar,.rpg-identity img{border-color:var(--group-color,#b68b48)}
