/* Keep both looks on the same baseline; crop only the supplied sprite sheets. */
/* Paint a local backdrop before blending the white studio sheets. On iOS the
   scrolling rail can isolate overflow above a card from its cream background. */
.cast-section .cast-photo .cast-approved-frame,.profile-portrait .cast-approved-frame{background:#f4f2ec;mix-blend-mode:normal;isolation:isolate}
.cast-section .cast-photo .cast-approved-frame img,.profile-portrait .cast-approved-frame img{mix-blend-mode:multiply}
.cast-section .cast-photo .cast-sprite-frame,.profile-portrait .cast-sprite-frame{aspect-ratio:var(--portrait-ratio)}
.cast-section .cast-card[data-character] .cast-sprite-frame img,.profile-portrait .cast-sprite-frame img{width:var(--portrait-width);left:var(--portrait-left);top:var(--portrait-top);height:auto;max-width:none;object-fit:initial}
.cast-look--halloween{opacity:0}
.cast-section .cast-photo .cast-approved-frame{transition:transform .18s cubic-bezier(.2,.65,.3,1),opacity .2s ease}
.cast-section #cast-carousel{padding-top:74px}
.cast-section .cast-card:has(.cast-profile-trigger:focus-visible) .cast-look--everyday,.cast-section.is-halloween .cast-look--everyday,body.cast-halloween-on .character-dialog .cast-look--everyday{opacity:0}
.cast-section .cast-card:has(.cast-profile-trigger:focus-visible) .cast-look--halloween,.cast-section.is-halloween .cast-look--halloween,body.cast-halloween-on .character-dialog .cast-look--halloween{opacity:1}
@media(any-hover:hover) and (any-pointer:fine){
 .cast-section .cast-card:hover .cast-look--everyday{opacity:0}
 .cast-section .cast-card:hover .cast-look--halloween{opacity:1}
}
.cast-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.cast-toolbar .cast-dock-label{margin:0}
.cast-costume-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border:1px solid #b8c8cb;border-radius:30px;padding:10px 16px;background:#fff;color:#102b40;font:inherit;font-size:12px;font-weight:750;cursor:pointer;transition:background .18s,border-color .18s}
.cast-costume-toggle[hidden]{display:none}
.cast-costume-toggle>span:first-child{font-size:19px}
.cast-toggle-state{padding:4px 8px;border-radius:12px;background:#e7efed;font-size:10px;min-width:34px;text-align:center}
.cast-costume-toggle[aria-pressed=true]{background:#102b40;border-color:#102b40;color:#fff}
.cast-costume-toggle[aria-pressed=true] .cast-toggle-state{background:#ffbd77;color:#102b40}
.cast-costume-toggle:hover{border-color:#126078}
.cast-costume-toggle:focus-visible{outline:3px solid #126078;outline-offset:4px}
@media(max-width:520px){.cast-toolbar{align-items:flex-start;gap:12px;margin-bottom:14px}.cast-costume-toggle{padding:9px 12px;font-size:11px;gap:7px}.cast-section #cast-carousel{padding-top:24px}.cast-swipe-hint{max-width:225px}}
@media(prefers-reduced-motion:reduce){.cast-section .cast-photo .cast-approved-frame,.cast-costume-toggle{transition:none}}

