/* No atlas clipping: preserve helmets, weapons and feet. Sizes use arena pixels. */
.game.chapter-mode .chapter-actor{left:var(--enc-x);top:var(--enc-top);width:var(--enc-size);height:var(--enc-size);max-width:none;max-height:none}
.game.chapter-mode .chapter-body{clip-path:none;mask:none;background-size:400% 200%}
.game.chapter-mode .chapter-hud{left:50%;top:6px;width:min(270px,88%);transform:translateX(-50%)}
.game.chapter-mode .enemy{max-height:var(--enc-qh);overflow-y:auto;scrollbar-width:thin}
.game.chapter-mode .enemy p{display:block;-webkit-line-clamp:unset}
.game.chapter-mode.chapter-pushed .base{left:var(--enc-avatarX);top:var(--enc-baseY);width:var(--enc-avatarH);height:var(--enc-avatarH);bottom:auto}
.game.chapter-mode .encounter-split .chapter-hud{left:12px;transform:none;width:var(--enc-qw)}
.base-avatar{position:absolute;z-index:2;left:50%;top:29%;width:42%;height:62%;transform:translateX(-50%);overflow:hidden;border-radius:0;background:none;box-shadow:none;pointer-events:none}
.base-avatar svg{width:100%;height:100%;display:block;transform:scale(1.1);transform-origin:50% 100%}
.base-avatar:after{content:none}
.base.firing .base-avatar{animation:avatarBaseCheer .3s}.base-avatar.hit{animation:avatarFlinch .5s}
@keyframes avatarBaseCheer{50%{translate:0 -4px}}
.game.boss-mode #bossActor{left:var(--enc-x);top:var(--enc-top);width:var(--enc-size);height:var(--enc-size);max-width:none;max-height:none}
.game.boss-mode .candidates.player-candidate{left:var(--enc-avatarX);bottom:var(--enc-avatarBottom);width:calc(var(--enc-avatarH)*.72);height:var(--enc-avatarH);mix-blend-mode:normal;opacity:1}
.game.boss-mode .player-candidate .candidate.custom-avatar{inset:0;width:100%;height:100%;filter:none;clip-path:none;mask:none;background:none;opacity:1}
.game.boss-mode .player-candidate .illustrated-avatar{display:block;width:100%;height:100%;overflow:visible}
.game.boss-mode .boss-choice,.game.boss-mode .boss-choice:nth-child(n){left:calc(var(--enc-qx) - var(--enc-qw)/2);top:calc(var(--enc-qy) - var(--enc-qh)/2);width:var(--enc-qw);max-width:none;max-height:var(--enc-qh);overflow-y:auto;animation:none;padding:8px}
.game.boss-mode .boss-timer,.game.boss-mode .phase-3 .boss-timer{left:50%;top:6px;bottom:auto;right:auto;transform:translateX(-50%);width:min(270px,88%)}
.game.boss-mode .encounter-split .boss-timer{left:12px;transform:none;width:var(--enc-qw)}
.game.boss-mode .phase-3 .history-orb,.game.boss-mode .scene-gather .history-orb{left:var(--enc-x);top:var(--enc-orbTop);width:var(--enc-orbSize);height:var(--enc-orbSize)}
.game.boss-mode .boss-speech{font-size:clamp(11px,2vw,16px);max-width:85%}
@media(max-height:650px){
 .choice-play .answer-choices{grid-auto-rows:44px;min-height:95px}.choice-play .answer-choices button{height:44px;min-height:44px;font-size:12px}
 .choice-play .target-line{height:42px;min-height:42px}.choice-play .target-line #targetClue{max-height:40px}
 .choice-play .choice-status{height:16px;min-height:16px}
}
@media(max-height:500px) and (min-width:600px){.choice-play .answer-choices{min-height:44px}.choice-play .target-line{height:28px;min-height:28px}}

@media(max-height:580px){.game.boss-mode .arena-layout{grid-template-columns:minmax(0,1fr)}}


/* Keep the battle wide; missed answers remain in a small nonblocking tray. */
@media(max-width:1100px){.game.chapter-mode .arena-layout,.game.boss-mode .arena-layout{display:block;position:relative}.game.chapter-mode .arena,.game.boss-mode .arena{width:100%;height:100%}.game.chapter-mode .miss-tray,.game.boss-mode .miss-tray{position:absolute;left:0;bottom:0;max-height:42px;width:100%;z-index:7;background:none;border:0;padding:0 5px;pointer-events:none}.game.chapter-mode .miss-tray h3,.game.boss-mode .miss-tray h3{display:none}.game.chapter-mode #missList,.game.boss-mode #missList{display:flex;gap:5px}.game.chapter-mode .miss-card,.game.boss-mode .miss-card{max-width:160px;flex:none;font-size:9px;padding:3px 6px}.game.chapter-mode .miss-card p,.game.boss-mode .miss-card p{display:none}}

