/* =====================================================================
   CHARACTER — the reference athlete + muscle highlighting
   Every view image shares one aspect ratio, so the figure box is sized to
   the artwork exactly and the original studio backdrop is shown seamlessly.
   ===================================================================== */
.char-fig{position:relative;height:100%;max-height:100%;aspect-ratio:238/662;max-width:100%;margin:0 auto;border-radius:18px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 18px 40px -22px rgba(0,0,0,.9)}
.char-svg{display:block;width:100%;height:100%}
.char-fig.swap .char-svg{animation:charIn .3s var(--ease)}
@keyframes charIn{from{opacity:.2}to{opacity:1}}

/* "color" blend: the red takes the figure's own light and shadow, so muscle
   striation and highlights stay visible. Primary = clear red, secondary = soft red. */
.char-svg .hl-tint{mix-blend-mode:color}
.char-svg .hl-p path{fill:var(--mus-p);fill-opacity:.92}
.char-svg .hl-s path{fill:var(--mus-p);fill-opacity:.4}
/* depth for primaries on highlights (applied before the colour layer) */
.char-svg .hl-deep{mix-blend-mode:multiply}
.char-svg .hl-deep path{fill:#ff5a4c;fill-opacity:.38}
/* a faint luminous edge, echoing the glow in the original artwork */
.char-svg .hl-glow{mix-blend-mode:screen}
.char-svg .hl-glow path{fill:#ff4a3a;fill-opacity:.13}

/* stage = figure + labelled view switcher underneath (never covering the body) */
.char-stage{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:0}
.char-stage .char-box{flex:1;min-height:0;width:100%;display:flex;justify-content:center}
.char-side{display:flex;flex-direction:column;align-items:center;gap:10px}
.view-seg{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:var(--bg2);border:1px solid var(--line2)}
.view-seg button{min-width:64px;height:40px;padding:0 12px;border-radius:10px;font-size:14px;font-weight:700;color:var(--muted)}
.view-seg button[aria-pressed="true"]{background:var(--text);color:var(--ink)}

/* muscle key */
.mus-key{display:flex;gap:14px;font-size:13px;color:var(--muted);flex-wrap:wrap;align-items:center}
.mus-key span{display:inline-flex;align-items:center;gap:6px}
.mus-key i{width:12px;height:12px;border-radius:50%;background:var(--mus-p)}
.mus-key i.s{opacity:.45}

/* thumbnails reuse the same renderer with a focused crop */
.thumb{width:56px;height:56px;flex:none;border-radius:12px;overflow:hidden;background:#232b32}
.thumb .char-svg{width:100%;height:100%}
