/* Keep the September 23 carried-question battlefield; feedback shares the answer dock. */
@media(min-width:801px) and (min-height:551px){
 body[data-combat=game]>.topbar,body[data-combat=sky]>.topbar,body[data-combat=gate]>.topbar{display:none}
 body[data-combat=sky] #skyStage{height:clamp(340px,calc(100dvh - 440px),560px);min-height:340px;aspect-ratio:auto}
 body[data-combat=gate] .gate-arena{height:clamp(340px,calc(100dvh - 395px),540px)}
 body[data-combat=game] .choice-dock,body[data-combat=gate] .choice-dock,body[data-combat=sky] .choice-dock{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,32%);column-gap:16px;row-gap:5px;padding:10px 14px;margin:10px 0 0;align-items:stretch}
 body[data-combat=gate] .choice-dock>p,body[data-combat=game] .choice-dock>p,body[data-combat=sky] .choice-dock>p{grid-column:1;grid-row:1;margin:0;min-height:0}
 body[data-combat=gate] .choice-dock>.answer-choices,body[data-combat=game] .choice-dock>.answer-choices,body[data-combat=sky] .choice-dock>.answer-choices{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-combat=gate] .choice-dock>.choice-feedback,body[data-combat=game] .choice-dock>.choice-feedback,body[data-combat=sky] .choice-dock>.choice-feedback{grid-column:2;grid-row:1/3;height:auto;min-height:0;max-height:145px;margin:0;padding:10px 12px;gap:8px;flex-direction:column;align-items:flex-start;justify-content:center}
 .choice-feedback-verdict{font-size:21px;max-width:none}.choice-feedback-meaning{font-size:25px}.choice-feedback-answer small{font-size:12px}.choice-feedback-word{font-size:16px}
 body[data-combat=game] #feedback,body[data-combat=sky] #skyFeedback{margin:5px 0;font-size:15px;line-height:1.4}
 body[data-combat=game] #heroTrait{font-size:12px}
 body[data-combat=game]:has(#arena.duel) #battleProgress,body[data-combat=game]:has(#arena.duel) #expeditionStatus{display:none}
}
/* The bubble travels with its soldier, always in front of other bodies. */
.marching:not(.duel) .marching-actor .enemy{z-index:10}
.marching:not(.duel) .marching-actor .word-panel{min-height:0;overflow-wrap:anywhere}
.marching:not(.duel) .marching-actor.word-selected .word-panel{border:2px solid #2c7766;background:#f3fff3;box-shadow:0 0 0 3px #d7eee4aa}
@media(min-width:801px){
 .marching:not(.duel) .hero-anchor{width:clamp(130px,15%,170px);height:32%}
 .marching:not(.duel) .marching-actor{width:clamp(85px,11%,115px);height:19%}
 .marching:not(.duel) .marching-actor .enemy{width:clamp(155px,15vw,185px)}
 .marching:not(.duel) .marching-actor .word-panel{padding:7px 10px}
 .marching:not(.duel) .marching-actor .enemy b{font-size:25px;line-height:1.25}
 .marching:not(.duel) .marching-actor .enemy .kana{font-size:17px}
 .marching:not(.duel) .marching-actor .enemy .hangul{font-size:12px}
 .marching:not(.duel) .marching-actor .enemy .timer{font-size:12px}
}
/* Preserve character scale on laptops by trimming chrome, not shrinking the battlefield. */
@media(min-width:801px) and (min-height:551px){
 body[data-combat=game]>.topbar,body[data-combat=sky]>.topbar,body[data-combat=gate]>.topbar{display:none}
 body[data-combat=game]{overflow:hidden}
 body[data-combat=game] #game{position:fixed;left:50%;top:0;transform:translateX(-50%);height:100dvh;width:min(1184px,100%);max-width:100%;margin:0;padding:10px 24px 12px;box-sizing:border-box;display:flex;flex-direction:column;gap:5px;background:#faf5e8;z-index:40}
 body[data-combat=game] #game .battle-header{margin:0;min-height:45px;flex:none}
 body[data-combat=game] #game .battle-header h2{font-size:22px;margin:3px 0}
 body[data-combat=game] #game .battle-header .eyebrow{font-size:11px}
 body[data-combat=game] #game .battle-stats{margin:0;padding:7px 14px;min-height:54px;flex:none}
 body[data-combat=game] #heroTrait{margin:0;padding:4px 10px;min-height:22px;line-height:1.2;box-sizing:border-box;flex:none}
 body[data-combat=game] #battleProgress{margin:0;padding:3px 0;min-height:22px;line-height:1.2;flex:none}
 body[data-combat=game] #expeditionStatus{display:none}
 body[data-combat=game] #arena:not(.duel),body[data-combat=game] #arena.duel{height:auto;min-height:330px;max-height:none;flex:1 1 0;width:100%;margin:0;aspect-ratio:auto}
 body[data-combat=game] .choice-dock,body[data-combat=game] #answerForm{flex:none;margin:0}
 body[data-combat=game][data-input-mode=choice] #feedback{display:none}
 body[data-combat=game] #feedback{margin:0;padding:0;height:24px;min-height:24px;overflow:auto;flex:none}
 .marching:not(.duel) .hero-anchor{height:150px;max-height:36%;width:150px}
 .marching:not(.duel) .marching-actor{height:90px;width:100px}
 .marching:not(.duel) [data-lane="0"]{--start-x:12%;--move-x:5%;--start-y:46%;--move-y:0%}
 .marching:not(.duel) [data-lane="2"]{--start-x:88%;--move-x:-5%;--start-y:46%;--move-y:0%}
 .marching:not(.duel) [data-lane="3"]{--start-x:30%;--move-x:4%;--start-y:96%;--move-y:-1%}
 .marching:not(.duel) [data-lane="1"]{--start-x:70%;--move-x:-4%;--start-y:96%;--move-y:-1%}
}@media(min-width:801px) and (min-height:551px){
 .marching:not(.duel) [data-lane="0"],.marching:not(.duel) [data-lane="2"]{top:max(var(--start-y),calc(90px + var(--question-height,120px) + 16px))}
}@media(min-width:801px) and (min-height:551px){
 body[data-combat=game] #arena.duel{min-height:260px}
 body[data-combat=sky],body[data-combat=gate]{overflow:hidden}
 body[data-combat=sky] #sky.sky-battle,body[data-combat=gate] #gate{position:fixed;left:50%;top:0;transform:translateX(-50%);height:100dvh;width:min(1184px,100%);max-width:100%;margin:0;padding:10px 24px 12px;box-sizing:border-box;display:flex;flex-direction:column;gap:5px;background:#faf5e8;z-index:40;overflow:auto}
 body[data-combat=sky] #sky.sky-battle>*,body[data-combat=gate] #gate>*{flex:none}
 body[data-combat=sky] #sky .sky-heading,body[data-combat=gate] #gate .battle-header{margin:0;min-height:45px}
 body[data-combat=sky] #sky .sky-heading h2,body[data-combat=gate] #gate .battle-header h2{font-size:22px;margin:3px 0}
 body[data-combat=sky] .sky-phase-track{margin:0}
 body[data-combat=sky] .sky-phase-track span{padding:6px}
 body[data-combat=sky] .sky-hud,body[data-combat=gate] .gate-hud{margin:0;padding:4px 0}
 body[data-combat=sky] #sky.sky-battle #skyStage,body[data-combat=gate] #gate .gate-arena{flex:1 1 0;min-height:260px;height:auto;max-height:none;margin:0;aspect-ratio:auto}
 body[data-combat=sky] #skyQuestion,body[data-combat=gate] #gateQuestionDock{margin:0}
 body[data-combat=sky] .sky-phase-bottom{margin:0;font-size:12px;line-height:1.3}
 body[data-combat=gate] #gateAbility,body[data-combat=gate] #gate>.small-note{margin:0;padding:3px 8px;font-size:12px;line-height:1.4}
 body[data-combat=sky] .choice-dock,body[data-combat=gate] .choice-dock,body[data-combat=sky] #skyAnswerForm,body[data-combat=gate] #gateForm{margin:0}
 body[data-combat=sky] #skyFeedback,body[data-combat=gate] #gateFeedback{margin:0;height:24px;min-height:24px;overflow:auto;font-size:14px;line-height:1.4}
 body[data-combat=sky][data-input-mode=choice] #skyFeedback,body[data-combat=gate][data-input-mode=choice] #gateFeedback{display:none}
 body[data-combat=gate] #gate .gate-hero,body[data-combat=gate] #gate .gate-foe{height:min(230px,60%);width:min(230px,25%)}
}@media(min-width:801px) and (min-height:551px){
 body[data-combat=game] #arena.duel .hero-anchor,body[data-combat=game] #arena.duel .marching-actor{height:min(210px,56%);width:min(210px,25%)}
}@media(min-width:801px) and (min-height:551px){
 body[data-combat=game] #arena.duel .guardian-vital{top:auto;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);width:210px;max-width:none}
}
/* Preview: the word still belongs to its moving soldier, on the outside of the approach. */
@media(min-width:801px) and (min-height:551px){
 body[data-combat=game] #arena.approaching-wave .marching-actor{left:var(--march-x);top:var(--march-y);bottom:auto;transform:translate(-50%,-50%);transition:none}
 body[data-combat=game] #arena.approaching-wave .marching-actor .enemy{left:var(--bubble-x);top:var(--bubble-y);bottom:auto;transform:none;width:185px}
 body[data-combat=game] #arena.approaching-wave .marching-actor .enemy.long-expression{width:235px}
 body[data-combat=game] #arena.approaching-wave .word-panel:after{top:50%;bottom:auto;left:auto;right:-7px;transform:translateY(-50%) rotate(-90deg)}
 body[data-combat=game] #arena.approaching-wave [data-bubble-side=right] .word-panel:after{left:-7px;right:auto;transform:translateY(-50%) rotate(90deg)}
 /* Only the recently added correction notice changes size. Questions stay unchanged. */
 .choice-feedback-verdict{font-size:20px}.choice-feedback-meaning{font-size:23px}.choice-feedback-word{font-size:15px}
}
@media(min-width:801px) and (min-height:551px){
 body[data-combat=game] #arena.approaching-wave.compact-march-labels .word-panel{padding:2px 8px}
}
