/* r13: the existing leader column owns this representative portrait. */
.r7-arena .representative,.battle-v05 .r7-arena .representative{display:block;width:var(--leader-card,96px);min-width:0;height:auto;aspect-ratio:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;text-align:center}
.representative .representative-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:auto;min-width:0;min-height:44px;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#f8ecd5;box-shadow:none;line-height:1.3;cursor:zoom-in;touch-action:manipulation;user-select:none}
.representative .representative-button:hover{background:transparent;box-shadow:none;filter:brightness(1.06)}
.representative .representative-button:focus-visible{outline:2px solid #f5dd98;outline-offset:3px;border-radius:12px}
.representative .representative-art,.representative-detail .representative-art{display:block;position:relative;isolation:isolate;flex:none;width:100%;height:calc(var(--leader-card,96px)*.95);min-height:62px;overflow:visible;border:0;border-radius:0;background:transparent}
.representative-art:before{content:'';position:absolute;z-index:-1;left:5%;right:5%;bottom:4%;height:68%;background:radial-gradient(ellipse,#d8bb6a35,transparent 70%);pointer-events:none}
.representative-art:after{content:'';position:absolute;left:0;right:0;bottom:0;height:28%;background:linear-gradient(transparent,#173c39 50%);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);pointer-events:none}
.representative-art img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;pointer-events:none;user-select:none;filter:drop-shadow(0 3px 4px #0008)}
.representative .representative-side,.representative-detail .representative-side{display:block;font:700 10px/1.4 system-ui,sans-serif;letter-spacing:0;white-space:normal;color:#dcf6df}
.representative[data-side="enemy"] .representative-side,.representative-detail[data-side="enemy"] .representative-side{color:#f4dfb4}
.representative .representative-name{display:block;width:100%;font:700 11px/1.35 system-ui,sans-serif;white-space:normal;overflow-wrap:anywhere;text-shadow:0 1px 3px #000}
.representative .representative-read{font:500 9px/1.3 system-ui,sans-serif;color:#cbd4c4;white-space:normal}
.representative-detail{display:grid;grid-template-columns:minmax(90px,170px) minmax(0,1fr);align-items:center;gap:14px;margin:8px 0 12px}
.representative-detail .representative-art{height:150px;min-height:0}
.representative-detail h3{font-size:20px;line-height:1.4;margin:4px 0}
.representative-detail p{font-size:12px;line-height:1.5}
.representative-ability{margin:12px 0;line-height:1.7}.representative-ability h3{font-size:16px;margin-bottom:6px}
@media(max-width:440px){.representative-detail{grid-template-columns:100px minmax(0,1fr);gap:10px}.representative-detail .representative-art{height:120px}.representative-detail h3{font-size:17px}}
