/* Scoped to character profiles: native sprites and compact, predictable blocks. */
.character-profile{color:#493322;font-size:13px;line-height:1.45;min-width:0}
.character-profile table{border-collapse:collapse;border-spacing:0;max-width:100%}
.character-profile td{padding:7px 10px;vertical-align:middle;border:1px solid #c3ad85}
.character-profile td.white,.character-profile h3{background:linear-gradient(#59452f,#3b2d21)!important;color:#f6e3b4!important;font-size:13px;letter-spacing:.3px;text-shadow:0 1px #21170e}
.character-profile td.white{padding:9px 12px}
.character-profile>table{width:100%;margin:16px 0 0!important}
.profile-intro{display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:16px;align-items:stretch}
.profile-info{min-width:0}.character-profile .profile-facts{width:100%;margin:0!important}.profile-facts td:first-child{width:112px;white-space:nowrap}
.profile-portrait{box-sizing:border-box;border:1px solid #987246;box-shadow:inset 0 0 0 3px #e2cda4;background:linear-gradient(#dbc394,#bfa477);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 10px;gap:7px;text-align:center;min-width:0}
.profile-portrait-title{font:700 11px Georgia,serif;letter-spacing:2px;color:#614520}
.profile-portrait img{display:block!important;position:static!important;flex:none;width:128px!important;height:128px!important;max-width:128px!important;margin:0!important;object-fit:contain;image-rendering:pixelated}
.profile-portrait strong{font:700 15px Georgia,serif;overflow-wrap:anywhere}.profile-portrait>span:last-child{font-size:11px;color:#624d34}
.profile-columns{display:grid;grid-template-columns:minmax(170px,1fr) minmax(200px,1.3fr);gap:16px;align-items:start;margin:16px 0}
.profile-columns>section{min-width:0}.profile-columns table{width:100%;margin:0!important}.profile-quests{grid-column:1/-1}
.profile-equipment{border:1px solid #bfa77e;background:#e8d5b2;min-height:272px;box-sizing:border-box}
.character-profile h3{margin:0!important;padding:9px 12px!important;font-weight:700;line-height:19px}
.equipment-board{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(4,44px);gap:6px;width:max-content;margin:16px auto}
.equipment-slot{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #796044;box-shadow:inset 0 1px 2px #0005;background:linear-gradient(#39352d,#27241e)}
.equipment-slot img{display:block;width:32px!important;height:32px!important;max-width:none;object-fit:contain;image-rendering:pixelated;position:static;margin:0!important}
.profile-skull{display:block;margin:0 auto 8px}.profile-signature img{display:block;max-width:100%;height:auto;margin:8px auto 12px}
.profile-signature input{max-width:100%;box-sizing:border-box}.profile-view{display:inline-block;padding:5px 12px;border:1px solid #866331;background:linear-gradient(#655037,#453221);color:#fff0cd!important;text-decoration:none!important;border-radius:2px;font-weight:700;white-space:nowrap}
.profile-view:hover{background:#705736}.profile-search{margin-top:18px}
@media(max-width:700px){.profile-intro{grid-template-columns:minmax(0,1fr) 144px;gap:10px}.profile-portrait{padding:10px 4px}.profile-columns{gap:10px}.character-profile td{padding:6px 8px}.profile-facts td:first-child{width:auto}}
@media(max-width:480px){.profile-intro,.profile-columns{grid-template-columns:1fr}.profile-portrait{grid-row:1}.profile-portrait img{width:112px!important;height:112px!important}.profile-quests{grid-column:auto}}
