.br-sprite { --br-sprite-size:112px; position:relative; display:flex; width:var(--br-sprite-size); max-width:100%; height:var(--br-sprite-size); margin:0 auto; align-items:flex-end; justify-content:center; isolation:isolate; overflow:visible; }
.br-sprite-frame { position:relative; display:none; flex:none; overflow:hidden; background-repeat:no-repeat; image-rendering:auto; transform-origin:50% 100%; }
.br-sprite-crop { position:absolute; background-repeat:no-repeat; image-rendering:auto; }
.br-sprite-crop[hidden] { display:none; }
.br-sprite-ready .br-sprite-frame { display:block; }
.br-sprite-fallback { width:calc(var(--br-sprite-size) * .66); height:calc(var(--br-sprite-size) * .75); display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:18px 18px 6px 6px; background:rgba(255,255,255,.07); border:1px solid rgba(245,205,132,.2); color:#f5d99f; font:bold 28px Georgia,serif; }
.br-sprite-fallback img { width:100%; height:100%; object-fit:contain; }
.br-sprite-ready .br-sprite-fallback { display:none; }
/* A saved crew colour/pin is a labelled cosmetic capsule, never a skin/clothing tint. */
.br-sprite-has-caption { height:calc(var(--br-sprite-size) + 18px); padding-bottom:18px; box-sizing:border-box; }
.br-sprite-caption { position:absolute; bottom:0; left:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:4px; max-width:100%; height:16px; padding:1px 5px; border-radius:5px; border:1px solid #b8a38155; background:#201b19e8; color:#f4e4c7; font:600 8px/1.2 Segoe UI,sans-serif; white-space:nowrap; }
.br-sprite-caption[hidden] { display:none; }
.br-sprite-caption-text { overflow:hidden; text-overflow:ellipsis; }
.br-sprite-accent { position:relative; flex:none; width:7px; height:7px; border:1px solid rgba(255,255,255,.75); border-radius:50%; box-shadow:0 1px 3px #0008; }
.br-sprite-accent[hidden] { display:none; }
.br-sprite-accent[data-badge="hop"], .br-sprite-accent[data-badge="star"], .br-sprite-accent[data-badge="bolt"] { width:11px; height:11px; border-radius:3px; }
.br-sprite-accent[data-badge="star"]::before { content:''; position:absolute; inset:1px; background:#fff5d5; clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%); }
.br-sprite-accent[data-badge="bolt"]::before { content:''; position:absolute; inset:1px; background:#fff5d5; clip-path:polygon(52% 0,9% 55%,44% 55%,31% 100%,92% 36%,58% 36%,76% 0); }
.br-sprite-accent[data-badge="hop"]::before { content:''; position:absolute; width:5px; height:7px; left:3px; top:1px; border-radius:70% 30% 70% 30%; transform:rotate(-25deg); background:#fff5d5; }
.br-sprite-accent[data-badge="hop"]::after { content:''; position:absolute; width:1px; height:6px; left:5px; top:3px; transform:rotate(20deg); background:#624124; }
.br-sprite[data-state="downed"] .br-sprite-fallback { opacity:.65; }
@media (prefers-reduced-motion:reduce) { .br-sprite *, .br-sprite::before, .br-sprite::after { animation:none!important; transition:none!important; } }
