/* The portrait and the text share one explicit grid; no overlapping width overrides. */
#profile .box{box-sizing:border-box;width:min(1080px,94vw);padding:26px;font:13px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}
#profile .head{grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:start;padding-right:16px}
#profile #pCanvas{width:160px;height:160px;max-width:100%;image-rendering:auto;box-sizing:border-box;border-radius:9px}
#profile .head .info{min-width:0;padding:0}#profile #pName{font:700 25px/1.25 Georgia,serif;letter-spacing:.3px;margin:8px 0 9px}
#profile #pAbility{line-height:1.65;font-size:13px}#profile #pOcc{color:#b9c5b0;line-height:1.65}#profile #pBio{margin-top:10px}
.identitySeal{color:#e7cd88;text-transform:uppercase;letter-spacing:1.2px;font:600 10px/1.6 system-ui}
.characterRoleIcon{display:inline-block;min-width:1.3em;text-align:center;color:#eed18a;font-size:1.1em;line-height:1.25;vertical-align:baseline}
#profile #pBars{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;padding:18px 0}#profile .bar{margin:0}
#profile #pRec{font-size:12px;line-height:1.9}#profile .x{padding:6px;z-index:2}
.achievementSection{margin-top:20px;padding:18px;background:linear-gradient(130deg,#26392d,#16241e);border:1px solid #617156;border-radius:9px}
#profile .achievementSection h3{font:700 17px/1.4 Georgia,serif;letter-spacing:.4px;margin:0;color:#edddb4}
.achievementSection>p{margin:5px 0 14px;color:#a9bba7;font-size:11px}.achievementGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.achievementEmblem{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #655f40;border-radius:7px;background:#192921}
.emblemMedal{flex:0 0 40px;display:grid;place-items:center;width:40px;height:46px;clip-path:polygon(50% 0,95% 20%,88% 76%,50% 100%,12% 76%,5% 20%);background:linear-gradient(140deg,#eddba1,#796632);color:#20332a;font:700 25px/1 Georgia}
.achievementEmblem b{display:block;color:#ecd69d;font-size:12px}.achievementEmblem div>span{display:block;color:#b7c5b1;font-size:10px;line-height:1.5}
.achievementEmpty{grid-column:1/-1;font-size:12px;color:#b7c5b1;margin:0}.achievementSection details{font-size:11px;color:#aabcab;margin-top:13px}.achievementSection summary{cursor:pointer;color:#dac893}.achievementSection details p{margin:5px 0}
@media(max-width:720px){.achievementGrid{grid-template-columns:repeat(2,minmax(0,1fr))}#profile .box{padding:20px}#profile .head{grid-template-columns:128px minmax(0,1fr);gap:18px}#profile #pCanvas{width:128px;height:128px}#profile #pName{font-size:21px}}
@media(max-width:520px){#profile .head{grid-template-columns:1fr;padding-right:0}#profile #pCanvas{width:128px;height:128px}#profile #pBars{grid-template-columns:1fr}.achievementGrid{grid-template-columns:1fr}.achievementSection{padding:14px}#profile .box{padding:18px}.equipment-preview{grid-template-columns:1fr!important}.equipment-preview canvas{max-width:100%}}
