/* One landscape screen: army shelf at rest, craft choices only when available. */
.battle049{--skill-width048:clamp(106px,17.5vw,238px);--draw-width048:clamp(94px,15vw,205px);--dock-header049:38px;--card-name049:23px;--card-info049:19px}
.battle049 #controls:before{box-sizing:border-box;border:12px solid transparent;border-image:url('assets/dock-frame049.png') 160 stretch;background:#081e2b;box-shadow:none}
.battle049 #combo{height:calc(var(--dock048) - 12px);padding:0 5px;background:transparent}
.battle049 #combo header{height:var(--dock-header049);gap:5px}
.battle049 #recipeMaterials{overflow-x:auto;overflow-y:hidden;touch-action:pan-x;gap:4px}
.battle049 .material048{height:32px;font-size:12px;padding:0 5px;border:1px solid #3d6574;background:#112e3c}
.battle049 .material048 img{width:25px;height:28px}
.battle049 .material-plus049{font-size:16px;color:#dbc584;flex:none}
.battle049 #combo .combo-tools{gap:3px}
.battle049 #combo .combo-tools button{height:32px;min-height:32px;font-size:12px;padding:2px 5px;white-space:nowrap}
.battle049 .combo-book049{background:#183c4e;border:1px solid #ac9255;color:#f2db9f}
.battle049 #nextRecipe:disabled{opacity:.55}
.battle049 #choices,.battle049 #choices[data-wide039="true"]{height:calc(100% - var(--dock-header049));gap:8px!important;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;scroll-snap-type:x proximity;grid-auto-flow:column;grid-auto-columns:calc((100% - 16px)/3);grid-template-columns:none!important}
.battle049 #choices .choice,.battle049 #choices[data-wide039="true"] .choice,.battle049 .army-card049{position:relative;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr) var(--card-name049) var(--card-info049)!important;gap:0!important;padding:7px 7px 8px!important;border:0!important;border-radius:0;box-shadow:none!important;background:#142d3b url('assets/webp-20261109/merge-panels049.webp') 100% 93.94%/300% 206.45%;text-align:center;overflow:hidden;scroll-snap-align:start;min-height:0}
.battle049 [data-theme=fire]{background-position:0 0!important}.battle049 [data-theme=ice]{background-position:50% 0!important}.battle049 [data-theme=arcane]{background-position:100% 0!important}.battle049 [data-theme=nature]{background-position:0 93.94%!important}.battle049 [data-theme=blood]{background-position:50% 93.94%!important}.battle049 [data-theme=royal]{background-position:100% 93.94%!important}
.battle049 #choices .choice img,.battle049 #choices[data-wide039="true"] .choice img,.battle049 .army-card049 img{width:100%!important;height:100%!important;min-height:0;max-height:128px;object-fit:contain;align-self:stretch;image-rendering:pixelated;filter:drop-shadow(1px 2px #08141c)}
.battle049 #choices .choice strong,.battle049 #choices[data-wide039="true"] .choice strong,.battle049 .army-card049 strong{width:100%;max-width:100%;font-size:16px!important;line-height:var(--card-name049)!important;font-weight:700;white-space:nowrap;color:#fff2cc;background:#081626de;text-shadow:1px 1px #000;overflow:visible}
.battle049 #choices .choice .combo-synergy{width:100%;display:flex!important;align-items:center;justify-content:center;gap:7px;line-height:var(--card-info049)!important;font-size:12px!important;white-space:nowrap;overflow:visible;background:#081626de;color:#c8dae2}
.battle049 .choice-delta049.gain{color:#b7efab}.battle049 .choice-delta049.loss{color:#ffc6aa}
.battle049 #choices .choice:active,.battle049 .army-card049:active{filter:brightness(1.3);transform:translateY(1px)}
.battle049 #choices .choice:focus-visible,.battle049 .army-card049:focus-visible{outline:2px solid #ffe19d;outline-offset:-3px}
.battle049 .army-shelf049{height:calc(var(--dock048) - 12px);padding:0 5px}
.battle049 .army-shelf049>header{height:var(--dock-header049);font-size:13px;color:#e7dbb5}
.battle049 .army-cards049{height:calc(100% - var(--dock-header049));display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:clamp(112px,18vw,166px);gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:thin}
.battle049 .army-card049 small{font-size:12px;line-height:var(--card-info049);color:#c6dce4;white-space:nowrap;background:#081626de;width:100%}
.battle049 .army-empty049{grid-column:1/4;align-self:center;font-size:13px;color:#b8d2d9;white-space:nowrap}
.battle049 #comboBadge{bottom:calc(var(--safe-b) + var(--dock048) - 43px);height:32px;min-height:32px;font-size:12px;border-color:#e0bb73;background:#493e29}
.battle049:has(#combo:not(.hidden)) #comboBadge{display:none}
.battle049 .recipe-book048{left:calc(var(--safe-l) + var(--skill-width048) + 116px);bottom:calc(var(--safe-b) + var(--dock048) - 43px);height:32px;min-height:32px;font-size:12px}
.battle049 .skill-controls{left:calc(var(--safe-l) + 9px);bottom:calc(var(--safe-b) + 29px);width:calc(var(--skill-width048) - 18px);gap:8px}
.battle049 .skill-controls .skill{width:calc((var(--skill-width048) - 26px)/2);height:calc(var(--dock048) - 66px);max-height:142px;background:#123749;border-color:#8bd0df}
.battle049 .skill svg{width:70%;height:70%;max-width:80px;max-height:80px}
.battle049 .skill .button-name{font-size:13px;line-height:17px;bottom:-20px;color:#fff1c9}
.battle049 .skill .charges{font-size:18px;padding:3px 6px;right:2px;top:-17px}
.battle049 #summon{right:calc(var(--safe-r) + 9px);bottom:calc(var(--safe-b) + 16px);width:calc(var(--draw-width048) - 18px);height:calc(var(--dock048) - 32px);background-size:100% 145%;background-color:transparent;border:0;box-shadow:none}
.battle049 #summon canvas{height:min(57%,calc(100% - 50px));width:86%;top:3px;left:7%;transform:none;object-fit:contain}
.battle049 #summon strong{bottom:29px;font-size:24px;line-height:28px}.battle049 #summon .plus{font-size:28px;right:10px;top:16px}.battle049 #summon .tickets{bottom:-5px;font-size:21px;line-height:27px;min-width:70%;border:1px solid #e9c586}.battle049 #summon .recharge{bottom:-9px}
.battle049 .flow-node048{min-height:52px;gap:5px;padding:4px}.battle049 .flow-node048 strong{font-size:13px}.battle049 .flow-node048 small{font-size:11px}.battle049 .flow-hero048>img{width:80px;height:76px}.battle049 .flow-name048{font-size:16px}.battle049 .flow-skill048{font-size:11px}.battle049 .flow-hero048 button{min-height:42px;font-size:13px}
@media(max-height:450px){
.battle049{--dock-header049:34px;--card-name049:17px;--card-info049:13px}
.battle049 .material048{font-size:11px;height:30px;gap:2px;padding:0 3px}.battle049 .material048 img{width:20px;height:25px}
.battle049 #combo .combo-tools button{font-size:10px;height:30px;min-height:30px;padding:2px 3px}.battle049 #combo .combo-tools{gap:2px}
.battle049 #choices,.battle049 #choices[data-wide039="true"]{gap:5px!important;grid-auto-columns:calc((100% - 10px)/3)}
.battle049 #choices .choice,.battle049 #choices[data-wide039="true"] .choice,.battle049 .army-card049{padding:4px 5px 5px!important}
.battle049 #choices .choice strong,.battle049 #choices[data-wide039="true"] .choice strong{font-size:13px!important}
.battle049 .army-card049 strong{font-size:11px!important}
.battle049 #choices .choice .combo-synergy{font-size:10px!important;gap:5px}.battle049 .army-card049 small{font-size:11px}
.battle049 .army-shelf049>header{font-size:11px}.battle049 .army-cards049{gap:5px}
.battle049 #comboBadge,.battle049 .recipe-book048{bottom:calc(var(--safe-b) + var(--dock048) - 39px);height:30px;min-height:30px;font-size:11px}
.battle049 .recipe-book048{left:calc(var(--safe-l) + var(--skill-width048) + 120px)}
.battle049 .skill-controls{left:calc(var(--safe-l) + 7px);bottom:calc(var(--safe-b) + 28px);width:calc(var(--skill-width048) - 14px);gap:5px}.battle049 .skill-controls .skill{width:calc((var(--skill-width048) - 19px)/2);height:calc(var(--dock048) - 54px)}
.battle049 .skill .button-name{font-size:10px;bottom:-18px}.battle049 .skill .charges{font-size:15px;top:-14px;right:-1px}
.battle049 #summon{right:calc(var(--safe-r) + 7px);bottom:calc(var(--safe-b) + 15px);width:calc(var(--draw-width048) - 14px);height:calc(var(--dock048) - 29px)}.battle049 #summon strong{font-size:18px;line-height:21px;bottom:23px}.battle049 #summon .plus{font-size:23px;top:10px;right:5px}.battle049 #summon .tickets{font-size:17px;line-height:23px}
.battle049 .flow-hero048>img{width:65px;height:57px}.battle049 .flow-name048{font-size:14px}.battle049 .flow-node048 strong{font-size:12px}.battle049 .flow-node048 img{width:35px;height:38px}
}

/* Product collections page sideways within the fixed landscape shell. */
.battle049 .shop-products,.battle049 .chest-inventory044{grid-template-columns:none;grid-template-rows:minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:minmax(176px,1fr);align-content:stretch;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;touch-action:pan-x;overscroll-behavior-x:contain}
.battle049 .shop-products .product044,.battle049 .chest-inventory044 .product044{scroll-snap-align:start;min-height:0;justify-content:center}
.battle049 .loot-cards{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(112px,1fr);grid-template-rows:minmax(0,1fr);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;touch-action:pan-x}
.battle049 .loot-card{scroll-snap-align:start}
.battle049 .pass-days{overflow-x:auto;overflow-y:hidden;touch-action:pan-x;overscroll-behavior-x:contain}

.battle049 .skill-art049{width:84%;height:84%;max-width:92px;max-height:92px;object-fit:contain;image-rendering:pixelated;pointer-events:none}
.battle049 .shop-nav{min-height:0;display:grid;grid-template-rows:repeat(6,minmax(0,1fr));gap:5px;overflow:hidden}
.battle049 .shop-nav button{min-height:0!important;height:100%;padding:3px 4px!important;white-space:nowrap}

.battle049 .skill-controls .skill{padding:0!important}
