/* Approved A layout; scoped to the three sky heroes, preserving ground/guard scenes. */
body[data-combat=sky]>.topbar{display:none}
body[data-combat=sky]{overflow:hidden}
body[data-combat=sky] #sky.sky-battle.sky-layout-a{position:fixed;inset:0;left:0;top:0;transform:none;width:100%;max-width:1480px;height:100dvh;margin:0 auto;padding:12px 20px;display:flex;flex-direction:column;gap:8px;background:#faf5e8;z-index:40;overflow:auto;box-sizing:border-box}
#sky.sky-layout-a .sky-heading{margin:0;min-height:44px;flex:none}
#sky.sky-layout-a .sky-heading h2{font-size:22px;margin:0}
#sky.sky-layout-a .sky-heading .eyebrow{font-size:12px}
#sky.sky-layout-a #skyModeBadge{display:inline-block;margin-left:9px;font-size:11px;color:#826c75}
#sky.sky-layout-a .sky-phase-track{margin:0;flex:none;gap:6px}
#sky.sky-layout-a .sky-phase-track span{padding:5px 8px;font-size:12px}
body[data-combat=sky] #sky.sky-layout-a>.sky-combat-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:14px;flex:1 0 530px;min-height:530px;align-items:stretch}
body[data-combat=sky] #sky.sky-layout-a #skyStage{flex:none;min-height:0;max-height:none;height:100%;width:100%;aspect-ratio:auto;margin:0;background-size:cover;background-position:66% center;border-radius:18px}
#sky.sky-layout-a .sky-hero{top:auto;left:3%;bottom:23%;width:26%;height:48%}
#sky.sky-layout-a .sky-boss{top:auto;left:auto;right:1%;bottom:23%;width:30%;height:52%}
#sky.sky-layout-a .sky-player-sprite,#sky.sky-layout-a .sky-player-sprite>.hero-sprite{width:100%;height:100%;position:relative;inset:auto;transform:none}
#sky.sky-layout-a .sky-boss-body{position:absolute;inset:0;transform:none;width:100%;height:100%}
#sky.sky-layout-a .sky-boss-form{position:absolute;inset:0;width:100%;height:100%}
#sky.sky-layout-a .sky-boss-form>img,#sky.sky-layout-a .sky-boss-form[data-form="3"]>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;max-width:100%}
#sky.sky-layout-a .sky-hero>span{font-size:11px;padding:3px;position:absolute;top:100%;left:0;right:0}
#sky.sky-layout-a .sky-player-vital,#sky.sky-layout-a .sky-stage>.sky-boss-vital{position:absolute;top:14px;bottom:auto;left:14px;right:auto;width:calc(44% - 14px);max-width:260px;background:#fffaf2ef;border:1px solid #e0d8bf;border-radius:10px;padding:8px 11px;z-index:10;font-size:12px;color:#57454f;box-sizing:border-box}
#sky.sky-layout-a .sky-stage>.sky-boss-vital{left:auto;right:14px}
#sky.sky-layout-a .sky-player-vital strong{float:right}
#sky.sky-layout-a .sky-player-vital progress,#sky.sky-layout-a .sky-boss-vital progress{display:block;width:100%;height:7px;margin-top:4px;accent-color:#72a080}
#sky.sky-layout-a .sky-boss-vital span{white-space:normal}
#sky.sky-layout-a .boss-opening{top:75px;width:min(420px,60%);z-index:11}
#sky.sky-layout-a .sky-play-console{min-width:0;padding:15px;background:#fffaf1;border:1px solid #dfd1ba;border-radius:16px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
#sky.sky-layout-a .sky-question-clock{display:flex;flex-direction:column-reverse;gap:7px}
body[data-combat=sky] #sky.sky-layout-a #skyQuestion.duel-question-dock{position:relative;inset:auto;width:100%;display:block;min-height:0;margin:0;padding:10px 0;border:0;background:transparent;border-radius:0;box-shadow:none;transform:none;text-align:center}
#sky.sky-layout-a #skyQuestion.duel-question-dock>b{font-size:32px;line-height:1.35;margin:5px 0;word-break:normal;overflow-wrap:anywhere}
#sky.sky-layout-a #skyQuestion.duel-question-dock>span{font-size:16px;line-height:1.4}
#sky.sky-layout-a #skyQuestion.duel-question-dock>#skyHangul{font-size:12px}
#sky.sky-layout-a #skyClock{align-self:flex-end;font-size:16px;font-weight:700;color:#975741;line-height:1.4}
#sky.sky-layout-a .sky-console-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;font-size:11px;line-height:1.5}
#sky.sky-layout-a #skyCount{margin-right:auto;color:#776276;font-size:12px}
#sky.sky-layout-a .sky-info-disclosure{position:relative;font-size:11px}
#sky.sky-layout-a .sky-info-disclosure summary{cursor:pointer;color:#796859;white-space:nowrap}
#sky.sky-layout-a .sky-info-disclosure>div{position:absolute;z-index:20;top:100%;right:0;width:260px;background:#fffaf2;padding:12px;border:1px solid #cdb797;border-radius:10px;box-shadow:0 5px 20px #46352c30;font-size:13px;line-height:1.6}
body[data-combat=sky] #sky.sky-layout-a #skyChoiceDock{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;border:0;background:none;border-radius:0;min-width:0}
#sky.sky-layout-a #skyChoiceDock>p{display:none}
body[data-combat=sky] #sky.sky-layout-a #skyChoices{order:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
#sky.sky-layout-a #skyChoices>button{font-size:16px;min-height:62px;padding:10px 8px;word-break:keep-all;overflow-wrap:anywhere}
body[data-combat=sky] #sky.sky-layout-a #skyChoiceDock>.choice-feedback{order:1;flex:none;width:100%;height:auto;min-height:92px;max-height:none;margin:0;padding:10px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;overflow:visible;box-sizing:border-box}
#sky.sky-layout-a .choice-feedback-verdict{font-size:18px;max-width:none}
#sky.sky-layout-a .choice-feedback-meaning{font-size:21px;word-break:keep-all}
#sky.sky-layout-a .choice-feedback-word{font-size:13px}
#sky.sky-layout-a .choice-feedback-answer small{font-size:11px}
#sky.sky-layout-a .choice-feedback-hint{font-size:14px}
#sky.sky-layout-a #skySkipChoice{order:2;margin:0;min-height:34px}
body[data-combat=sky] #sky.sky-layout-a #skyAnswerForm{padding:10px;margin:0;min-width:0}
#sky.sky-layout-a #skyAnswerForm>div{flex-wrap:wrap}
#sky.sky-layout-a #skyAnswer{width:100%;flex:1 1 150px;font-size:16px;padding:10px}
#sky.sky-layout-a #skyAnswerForm button{font-size:15px;min-width:60px;padding:10px}
body[data-combat=sky] #sky.sky-layout-a #skyFeedback{height:auto;min-height:36px;overflow:visible;font-size:15px;line-height:1.5;margin:0;padding:8px 0}
#sky.sky-layout-a #skyQuestion .sky-mirage-status{font-size:11px;margin:0 0 4px;padding:3px}
/* Portrait phone: enlarged stage followed by compact controls. Touch targets stay 48px. */
@media(max-width:800px){
 body[data-combat=sky] #sky.sky-battle.sky-layout-a{top:var(--combat-top,0px);height:var(--combat-height,100dvh);padding:6px 8px;gap:5px;width:100%;max-width:none}
 #sky.sky-layout-a .sky-heading{gap:8px;min-height:40px;align-items:center}
 body[data-combat=sky] #sky.sky-layout-a .sky-heading h2{font-size:17px;line-height:1.2}
 #sky.sky-layout-a .sky-heading .eyebrow{font-size:10px}
 #sky.sky-layout-a #skyModeBadge{font-size:9px;margin-left:5px}
 #sky.sky-layout-a .sky-controls{flex-direction:row;gap:4px}
 #sky.sky-layout-a .sky-controls button{padding:6px 8px;font-size:11px;min-height:40px}
 #sky.sky-layout-a .sky-phase-track{gap:4px}
 #sky.sky-layout-a .sky-phase-track span{font-size:10px;line-height:1.25;padding:4px 2px}
 body[data-combat=sky] #sky.sky-layout-a>.sky-combat-grid{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:6px}
 body[data-combat=sky] #sky.sky-layout-a #skyStage{height:auto;flex:1 0 210px;min-height:210px;max-height:520px;border-radius:12px;background-size:auto 100%;background-position:68% center}
 #sky.sky-layout-a .sky-hero{left:0;bottom:24%;width:43%;height:60%}
 #sky.sky-layout-a .sky-boss{right:-1%;left:auto;bottom:24%;width:49%;height:67%}
 #sky.sky-layout-a .sky-hero>span{font-size:9px;line-height:1.3;padding:2px}
 #sky.sky-layout-a .sky-player-vital,#sky.sky-layout-a .sky-stage>.sky-boss-vital{top:7px;left:7px;right:auto;width:44%;font-size:10px;line-height:1.4;padding:5px 7px;border-radius:8px}
 #sky.sky-layout-a .sky-stage>.sky-boss-vital{left:auto;right:7px}
 #sky.sky-layout-a .sky-player-vital progress,#sky.sky-layout-a .sky-boss-vital progress{height:5px;margin-top:3px}
 #sky.sky-layout-a .boss-opening{top:58px;left:8px;width:76%;padding:7px 10px}
 #sky.sky-layout-a .boss-opening p{font-size:13px;line-height:1.35}
 #sky.sky-layout-a .sky-play-console{flex:none;padding:8px 10px;gap:5px;border-radius:12px}
 #sky.sky-layout-a .sky-question-clock{display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:8px}
 body[data-combat=sky] #sky.sky-layout-a #skyQuestion.duel-question-dock{padding:0;text-align:left;display:block;min-height:0}
 #sky.sky-layout-a #skyQuestion.duel-question-dock>small{display:none}
 #sky.sky-layout-a #skyQuestion.duel-question-dock>b{font-size:23px;line-height:1.25;margin:1px 0}
 #sky.sky-layout-a #skyQuestion.duel-question-dock>span{font-size:12px;line-height:1.3}
 #sky.sky-layout-a #skyQuestion.duel-question-dock>#skyHangul{font-size:10px}
 #sky.sky-layout-a #skyClock{font-size:12px;text-align:right;align-self:center;line-height:1.4}
 #sky.sky-layout-a #skyCount{font-size:10px}
 #sky.sky-layout-a .sky-console-meta{gap:4px 6px;font-size:10px;line-height:1.3}
 #sky.sky-layout-a .sky-info-disclosure{font-size:10px}
 body[data-combat=sky] #sky.sky-layout-a #skyChoiceDock{gap:6px}
 body[data-combat=sky] #sky.sky-layout-a #skyChoices{gap:6px}
 #sky.sky-layout-a #skyChoices>button{font-size:14px;line-height:1.3;min-height:48px;padding:6px}
 body[data-combat=sky] #sky.sky-layout-a #skyChoiceDock>.choice-feedback{min-height:64px;flex-direction:row;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;overflow:visible}
 #sky.sky-layout-a .choice-feedback-verdict{font-size:13px;max-width:58px}
 #sky.sky-layout-a .choice-feedback-meaning{font-size:15px;line-height:1.3}
 #sky.sky-layout-a .choice-feedback-word{font-size:11px;line-height:1.3}
 #sky.sky-layout-a .choice-feedback-answer{gap:1px}
 #sky.sky-layout-a .choice-feedback-answer small{font-size:10px}
 #sky.sky-layout-a .choice-feedback-hint{font-size:12px}
 #sky.sky-layout-a .sky-transform-caption{top:24%;left:5%;width:90%;padding:9px 12px}
 #sky.sky-layout-a .sky-transform-caption strong{font-size:22px}
 body[data-combat=sky][data-input-mode=typing].short-combat #sky.sky-layout-a #skyStage{height:150px;min-height:150px;flex:0 0 150px}
}
/* Short landscape view keeps the PC split and allows scrolling for keyboard access. */
@media(min-width:801px) and (max-height:600px){
 body[data-combat=sky] #sky.sky-layout-a>.sky-combat-grid{min-height:420px;flex-basis:420px}
}

body[data-combat=sky][data-input-mode=choice] #sky.sky-layout-a #skyFeedback{display:none}

/* Phase artwork uses body landmarks, not the square effect canvas. */
#sky.sky-layout-a .sky-boss-form>svg.sky-phase-art{width:100%;height:100%;overflow:visible;transform:none}
/* All three forms share the same body box and baseline. */
#sky.sky-layout-a .sky-boss-form>svg.sky-phase-art{translate:-8% 0}
@media(max-width:800px){#sky.sky-layout-a .sky-boss-form>svg.sky-phase-art{translate:-12% 0}}
