/* Heraldic player dossier: no new render loop, textures, or 3D canvases. */
body .player-profile-modal{width:min(570px,calc(100vw - 24px))}
body .player-sheet-identity{display:grid;grid-template-columns:94px minmax(0,1fr);gap:14px;align-items:center;margin-bottom:12px}
body .player-portrait-edit{position:relative;display:grid;place-items:center;width:94px;min-height:112px;padding:4px 4px 25px;background:#e9dfc6;color:#284f55;border:1px solid #ae8c4e;border-bottom:3px solid #90713f;border-radius:3px;cursor:pointer;transition:transform .18s}
body .player-portrait-edit>svg{width:82px;height:82px}
body .player-portrait-edit>span{display:flex;gap:3px;align-items:center;justify-content:center;position:absolute;bottom:5px;left:0;right:0}
body .player-portrait-edit small{font:800 10px/1.3 Nunito,sans-serif}
body .player-portrait-edit .icon{width:12px;height:12px}
body .player-nameplate{min-width:0;padding:13px 12px;background:linear-gradient(90deg,#e9dfc6,#f6eedb);border:1px solid #c1ac79;border-left:4px solid #a68244;box-shadow:inset 0 0 0 3px #f6eedb;color:#244a52}
body .player-name-label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:900;letter-spacing:.12em;color:#6b654d}
body .player-name-label .icon{width:13px;height:13px}
body .player-nameplate>strong{display:block;font:800 clamp(18px,4.6vw,23px)/1.2 Nunito,sans-serif;overflow-wrap:anywhere;margin:7px 0}
body .player-nameplate>small{display:block;font-size:11px;line-height:1.4;color:#626d64}
body .player-sheet-level{display:flex;justify-content:space-between;gap:12px;border-block:1px solid #d6c8a7;padding:10px 0;font-size:13px;color:#31565c}
body .player-sheet-title{font-size:14px!important;margin:0 0 10px;text-align:center;color:#7a5a2c!important;font-weight:900}
body .player-sheet h3{font:700 20px/1.25 Georgia,serif;margin:16px 0 10px;color:#244a52}
body .player-sheet .between{flex-wrap:wrap;gap:6px}
body .player-sheet-power{display:inline-flex;align-items:center;gap:4px;font-weight:900;font-size:18px;color:#215967}
body .player-sheet-power .icon{width:20px;height:20px}
body .player-sheet-power small{font-size:11px}
body .player-sheet .combat-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:8px 0 16px}
body .player-sheet .combat-stats>span{min-width:0;padding:9px 3px;background:#e9dfc6!important;border:0!important;box-shadow:inset 0 -2px #cbbb96}
body .player-sheet .combat-stats small{font-size:10px;line-height:1.3;white-space:normal}
body .player-sheet .combat-stats b{font-size:20px}
body .player-gear-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body .player-gear-slot{min-width:0;display:flex;gap:7px;align-items:center;text-align:left;padding:9px 7px;background:#eee4cd;color:#274d52;border:1px solid #cbbc95;border-left:3px solid var(--gear,#cbbc95);border-radius:2px;cursor:pointer;transition:transform .18s}
body .player-gear-slot.is-empty{cursor:default;opacity:.7}
body .player-gear-art{width:44px;flex:none;display:grid;place-items:center;color:var(--gear,#8b987e)}
body .player-gear-art svg{width:44px;height:52px}
body .player-gear-copy{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
body .player-gear-copy strong{font-size:12px;line-height:1.25}
body .player-gear-copy :is(small,span){font-size:10px;line-height:1.3}
body .player-title-menu{border-top:1px solid #cbbc95;margin-top:16px}
body .player-title-menu>summary{padding:14px 0;cursor:pointer;font-size:14px;font-weight:900;color:#244a52}
body .player-title-menu .title-picker{margin:0 0 6px}
body .player-avatar-menu .avatar-picker{margin:0;padding:0;border:0}
body .player-avatar-menu .avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .player-avatar-menu .avatar-choice{min-width:0}
body .player-avatar-menu .avatar-choice>span{background:#eee4cd;border-color:#cbbc95;color:#274d52}
body .player-avatar-menu .avatar-choice input:checked+span{background:#dae5cc;border-color:#769372;box-shadow:inset 0 0 0 2px #eaf0db}
body .player-avatar-menu .avatar-choice input:focus-visible+span{outline:3px solid #18758b;outline-offset:2px}
body .player-avatar-menu .avatar-choice small{font-size:11px;line-height:1.25}
body .player-avatar-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-24px;background:#f6eedb;padding:12px 0;margin-top:12px;border-top:1px solid #cbbc95}
body .player-sheet :is(button,summary):focus-visible{outline:3px solid #18758b;outline-offset:3px}
body .player-name-tag{max-width:min(180px,45vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(hover:hover){body .player-portrait-edit:hover,body button.player-gear-slot:hover{transform:translateY(-2px)}}
@media(max-width:360px){body .player-sheet-identity{grid-template-columns:78px minmax(0,1fr);gap:9px}body .player-portrait-edit{width:78px;min-height:98px}body .player-portrait-edit>svg{width:68px;height:68px}body .player-gear-grid{grid-template-columns:1fr}body .player-nameplate{padding:10px 8px}}
@media(prefers-reduced-motion:reduce){body .player-portrait-edit,body .player-gear-slot{transition:none;transform:none!important}}
