/* Marcos uniformes: recorte visual, originales conservados. */
.character-grid-detailed .character-portrait-card{display:block!important;position:relative;aspect-ratio:3/4;overflow:hidden;min-height:0;isolation:isolate}
.character-grid-detailed .character-portrait-card .portrait-tile{position:absolute!important;inset:0;height:100%!important;aspect-ratio:auto!important}
.character-portrait-card .portrait-tile img{width:100%;height:100%;object-fit:cover}
.character-portrait-card .person-card-body{position:absolute!important;bottom:0;inset-inline:0;z-index:1;padding:55px 18px 18px!important;background:linear-gradient(transparent,rgba(10,9,13,.87) 35%,#0c0b10);color:#f7edda}
.character-portrait-card h4{font-size:1.5rem;margin:5px 0!important}.character-portrait-card p,.character-portrait-card small{display:block;margin:3px 0;color:#e3d9c8}.character-portrait-card .card-foot{margin-top:9px;gap:8px}.character-portrait-card .stage-label{color:#e6c582}.fallen-status{color:#ff777b!important}
.character-grid-detailed.group-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),350px))!important;align-items:stretch}
.group-card-grid .group-list-card{display:flex!important;flex-direction:column;grid-template-rows:none!important;overflow:hidden}.group-card-grid .group-list-card .portrait-tile{height:auto!important;flex:none;aspect-ratio:3/2!important}.group-list-card .person-card-body{display:flex;flex-direction:column;flex:1;min-height:210px}.group-list-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}.group-card-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;min-height:4.5em}.group-list-card .card-foot{margin-top:auto;padding-top:18px}
.world-live-card{display:flex;flex-direction:column}.world-live-card>img,.world-live-card.is-portrait>img,.world-live-card.is-emblem>img{width:100%;height:auto!important;aspect-ratio:3/2!important;object-fit:cover}.world-live-card.is-emblem>img{object-fit:contain;background:#121116}.world-live-card>div{flex:1}.world-live-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.world-live-card:not(:has(>img))::before{content:'◇';display:grid;place-items:center;aspect-ratio:3/2;background:#17151c;color:#a58a58;font-size:3rem}
.profile-gallery img,.mini-gallery img,.place-gallery img,.chronicle-gallery img{width:100%;height:auto!important;aspect-ratio:3/2!important;object-fit:cover!important}
.chronicle-campaign-card .chronicle-card-cover{display:block;aspect-ratio:3/2;overflow:hidden}.chronicle-campaign-card .chronicle-card-cover img{width:100%;height:100%;object-fit:cover}.chronicle-campaign-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.world-live-card img,.world-live-card.is-portrait img,.world-live-card.is-emblem img,.world-live-card .world-neutral{display:block;width:100%;height:auto!important;aspect-ratio:3/2!important;object-fit:cover}.world-live-card.is-emblem img{object-fit:contain;background:#121116}.world-live-card:not(:has(>img))::before{display:none}.world-live-card .world-neutral{display:grid;place-items:center;background:#17151c;font-size:3rem}.world-live-card h3{min-height:2.5em}.world-live-card .world-card-summary{min-height:4.5em;line-height:1.5}
.character-grid-detailed .person-card[hidden]{display:none!important}.chronicle-campaign-card:not(:has(.chronicle-card-cover))::before{content:'◇';display:grid;place-items:center;aspect-ratio:3/2;background:#17151c;color:#a58a58;font-size:3rem}
.chronicle-brief img,.chronicle-brief .chronicle-neutral{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}.chronicle-brief .chronicle-neutral{display:grid;place-items:center;min-height:0}.chronicle-brief>div h2,.chronicle-brief>div h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chronicle-brief>div p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.character-portrait-card .person-card-body h4{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.1;overflow-wrap:anywhere}.character-portrait-card .person-card-body>p,.character-portrait-card .person-card-body>small,.character-portrait-card .card-foot>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.character-portrait-card .card-foot>span{min-width:0}.character-portrait-card .card-foot>strong{flex-shrink:0;white-space:nowrap}.group-list-card h3,.group-card-summary{overflow-wrap:anywhere}

/* v190 (relevamiento, punto 12): images that declare width and height. Where a rule above sets the image's width,
   the height comes from those numbers, so its place is kept before it arrives (no jump); where nothing sets it, the
   image keeps its natural size, as before. Zero weight: any specific rule above still wins. */
:where(img[width][height]){width:auto;height:auto}
