.character-grid .paper-stage {
 height:clamp(290px,27vw,372px);
 isolation:isolate;
 background:linear-gradient(90deg,#10202a 0%,#162c32ed 31%,#243b3482 65%,#1a303229),url('./wood.webp?v=11') 57% 52%/cover;
 border:1px solid #6d7d6d;
 border-radius:12px;
 image-rendering:auto;
}
.paper-stage .portrait-scene {
 inset:0 0 0 34%;
 display:block;
 overflow:hidden;
 background:#17232b;
}
.paper-stage .portrait-scene::before {display:none}
.paper-stage .portrait-scene::after {
 content:"";
 position:absolute;
 inset:0;
 pointer-events:none;
 background:linear-gradient(90deg,#17232b,transparent 25%),linear-gradient(0deg,#17232b,transparent 18%);
}
.paper-stage .portrait-caption {
 left:clamp(15px,3.2%,26px);
 top:clamp(23px,13%,46px);
 max-width:43%;
 z-index:1;
 text-shadow:0 2px 6px #122027;
}
.portrait-caption .eyebrow {color:#e0bf8b;letter-spacing:.12em;font-size:11px}
.portrait-caption h2 {font-size:clamp(26px,3.3vw,42px);letter-spacing:-.045em;color:#fff1d6}
.portrait-caption .portrait-level {margin:6px 0 15px;color:#f3d5a2;font-size:17px}
.portrait-caption .xpbar {height:5px;min-width:85px;margin:0 0 5px}
.portrait-caption>small {font-size:12px;color:#dae3d9}
.paperdoll {aspect-ratio:484/621;filter:drop-shadow(0 2px 3px #09181c66)}
.paperdoll img,.body-slot .piece-icon,.item-choice .piece-icon {image-rendering:auto}
.body-slot .empty-icon svg {width:25px;height:25px}
.body-slot .empty-icon {color:#98b2a7}
.character-grid .body-slot {border-radius:8px;overflow-wrap:anywhere}
.character-grid .set-preview>.mini {height:96px}
.field-outfit>.mini {height:44px;width:42px;aspect-ratio:auto;overflow:hidden;border-radius:7px;background:linear-gradient(135deg,#716950,#223f40)}
.field-outfit>.mini img {width:104px;height:auto;max-width:none;left:-31px;top:-8px}
@media(max-width:580px) {
 .character-grid .paper-stage {height:clamp(250px,68vw,305px)}
 .paper-stage .portrait-caption {top:23px;left:14px;max-width:44%}
 .portrait-caption h2 {font-size:clamp(23px,6vw,30px)}
 .character-grid .slot-grid {gap:4px}
}

.field-outfit>.mini{height:60px;width:auto;aspect-ratio:484/621}
.field-outfit>.mini img{width:100%;height:100%;inset:0;object-fit:cover}
.character-grid .field-outfit>.mini{min-width:0}
.set-preview>div{min-width:0}
.set-panel h4{font-size:14px;margin:13px 0 0}
.set-panel .set-items{margin-top:7px}
.set-panel .set-help{font-size:14px;margin:12px 0 0}
.set-items .clear-set-slot{min-height:44px;align-items:center}
.worn-title{margin:12px 0 6px;font-size:18px}
#wornChoices{scroll-margin-block:12px 65px}
@media(min-width:841px){
 .character-grid>.set-panel{grid-column:2;grid-row:1/3}
 .character-grid>.wardrobe{grid-column:1;grid-row:2}
}
@media(max-width:580px){
 .character-grid>.set-panel{grid-row:auto}
 .set-panel .body-slot small{font-size:11px}
}

.character-class{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;margin-bottom:10px}
.character-class>.piece-icon{width:36px;height:36px;flex:none}
.character-class>div{flex:1 1 auto;min-width:0}
.character-class h2{margin:0;color:var(--gold);font-size:14px;line-height:1.3}
.character-class strong{display:block;margin:2px 0;color:#fff1d6;font-size:20px;overflow-wrap:anywhere}
.character-class span{display:block;color:var(--muted);font-size:14px}
.character-class button{min-height:44px}

.role-portrait{aspect-ratio:288/352;overflow:hidden;background:#17232b}
.role-portrait>img{width:100%;height:100%;inset:0;object-fit:cover;object-position:center 24%}
.paper-stage .role-portrait,.overview-character .overview-live-avatar .role-portrait{
 height:100%;width:100%;aspect-ratio:auto
}
.paper-stage .role-portrait>img{object-position:center 25%}
.character-grid .set-preview>.role-portrait{height:clamp(7rem,18vw,10rem);flex:none}
.field-outfit>.role-portrait{aspect-ratio:288/352}
.class-summary .role-portrait{height:clamp(5rem,15vw,8.5rem);flex:none}
.character-grid .set-preview>.role-portrait,.class-summary .role-portrait{
 border:1px solid #8a7455;border-radius:.28rem
}
.overview-character .overview-live-avatar{padding:0}
.overview-live-avatar .role-portrait img{object-fit:cover}
@media(max-width:580px){
 .paper-stage .portrait-scene{left:36%}
 .paper-stage .role-portrait>img{object-position:center 20%}
}
