/* v2.5.2: separate official mugshot framing and uncropped pose presentation. */
.character-card .character-portrait{width:84px;height:84px;flex:0 0 84px;overflow:hidden;border-radius:14px;background:#e8f4ef}
.character-card .character-portrait img,.character-card.klu-card .character-portrait img{width:100%;height:100%;object-fit:contain;object-position:center;transform:none}
.character-card.character-selected{border-color:#0b6e7b;background:#e8f6f2;box-shadow:inset 0 0 0 2px #f7b239}
.character-detail>.character-pose-preview{position:relative;display:block;width:100%;height:300px;margin:0 0 18px;padding:10px;border:1px solid #c4dadc;background:linear-gradient(145deg,#e5f4ef,#fff7e8);border-radius:16px}
.character-pose-preview img{display:block;width:100%;height:100%;object-fit:contain;transform:none}
.character-pose-preview>span{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#0f2d4a;color:#fff;font-size:25px}
.character-pose-preview:hover{box-shadow:inset 0 0 0 2px #f7b239}
.character-showcase{width:min(960px,calc(100% - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:3px solid #0b6e7b;border-radius:24px;background:#fffaf0;color:#0f2d4a;overflow:hidden;box-shadow:0 24px 70px #061d3080}
.character-showcase::backdrop{background:#052334bd}
.character-showcase-scroll{max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);overflow:auto;overscroll-behavior:contain;padding:22px}
.character-showcase-close{position:sticky;top:0;display:block;margin-left:auto;z-index:2;min-height:48px;background:#fffdf6;border:2px solid #0b6e7b}
.character-showcase h2{margin:0 0 12px;font-size:clamp(25px,4vw,38px);overflow-wrap:anywhere}
.character-showcase-content{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;align-items:center}
.character-showcase-content>img{width:100%;height:min(65vh,660px);height:min(65dvh,660px);object-fit:contain;animation:character-pose-enter .25s ease-out both}
.character-speech{position:relative;padding:24px;border:2px solid #f7b239;border-radius:24px;background:#fff;box-shadow:0 6px 0 #f7b23925;animation:character-pose-enter .25s .12s ease-out both}
.character-speech:before{content:'';position:absolute;left:-12px;top:42%;width:20px;height:20px;transform:rotate(45deg);border-left:2px solid #f7b239;border-bottom:2px solid #f7b239;background:#fff}
.character-speech p{font-size:clamp(18px,2vw,24px);line-height:1.55;margin:10px 0 0;overflow-wrap:anywhere}
.character-showcase :focus-visible{outline:3px solid #0f2d4a;outline-offset:3px;box-shadow:0 0 0 6px #f7b239}
@keyframes character-pose-enter{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:650px){.character-showcase{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:18px}.character-showcase-scroll{max-height:calc(100dvh - 22px);padding:14px}.character-showcase-content{grid-template-columns:1fr;gap:14px}.character-showcase-content>img{height:min(48dvh,440px)}.character-speech{padding:18px}.character-speech:before{left:45%;top:-12px;transform:rotate(135deg)}.character-detail>.character-pose-preview{height:290px}}
@media(max-height:500px) and (min-width:651px){.character-showcase-scroll{padding:12px 20px}.character-showcase-content>img{height:56dvh}.character-showcase h2{font-size:25px;margin-top:-36px;margin-right:110px}.character-speech{padding:16px}}
@media(prefers-reduced-motion:reduce){.character-showcase-content>img,.character-speech{animation:none}}
