/* Compact command rails leave the complete battlefield as the main attraction. */
@media (orientation:landscape) {
 body.combat-edge{--combat-left:92px;--combat-right:144px;--combat-gap:4px}
 body.combat-edge .battle-head{grid-template-rows:44px 54px 76px 44px;gap:4px}
 body.combat-edge .combat-menu-button{font-size:18px}
 body.combat-edge .audio-launch::before{font-size:17px}
 body.combat-edge .compact-speed{font-size:15px}
 body.combat-edge #pause::before{font-size:19px}
 body.combat-edge .wallet-ribbon{height:54px;min-height:54px;grid-template-rows:24px 24px;padding:2px 4px!important}
 body.combat-edge .wallet-ribbon .noah-balance,body.combat-edge .wallet-ribbon .noah-market{height:24px}
 body.combat-edge .wallet-ribbon .noah-amount>b{font-size:15px}
 body.combat-edge .wallet-ribbon .noah-market>b{font-size:8px}
 body.combat-edge .battle-head>.arena-top{height:76px;grid-template-rows:44px 28px}
 body.combat-edge .battle-head .wave-box{height:44px;max-height:44px;gap:1px}
 body.combat-edge .battle-head .wave-box strong{font-size:16px;line-height:1}
 body.combat-edge .wave-box .combat-mode-label{font-size:7px;line-height:1.1}
 body.combat-edge .arena-top>.life-chip{height:44px;font-size:14px}
 body.combat-edge .battle-head .battle-stats{height:28px}
 body.combat-edge .battle-head .battle-stat b{font-size:19px}
 body.combat-edge .battle-head .battle-stat small{font-size:7px}
 body.combat-edge .combat-palette{grid-template-rows:92px 108px 44px;gap:4px}
 body.combat-edge .combat-palette .tactic-card{height:44px;grid-template-columns:24px minmax(0,1fr);padding:2px;gap:0 2px}
 body.combat-edge .combat-palette .tactic-card .spell-art{width:24px;height:28px}
 body.combat-edge .combat-palette .tactic-card b{font-size:9px}
 body.combat-edge .combat-palette .tactic-card::after{font-size:7px}
 body.combat-edge .combat-palette>.build-dock,body.combat-edge.heist-mode .combat-palette>.build-dock{grid-template-rows:52px 52px}
 body.combat-edge .combat-palette .tower-card{height:52px}
 body.combat-edge .combat-palette .tower-card .tower-art{width:24px;min-width:24px;height:24px;min-height:24px}
 body.combat-edge .combat-palette .tower-card strong{font-size:10px}
 body.combat-edge .combat-palette .tower-card small{font-size:9px}
 body.combat-edge .combat-palette .tower-card.unaffordable small{font-size:7px}
 body.combat-edge .mobile-tactics>#scan-button{height:44px}
 body.combat-edge .mobile-tactics>#scan-button::before{font-size:11px}
 body.combat-edge .mobile-combat-tools>.wave-button{height:44px;font-size:10px}
 /* The boss panel grows only as much as its actual counter text needs. */
 body.combat-edge .combat-stage>.boss-duel{display:grid;grid-template-columns:minmax(0,1fr) 64px 64px;grid-template-rows:auto 2px auto;column-gap:5px;row-gap:2px;height:auto;min-height:54px;padding:4px 6px;overflow:visible}
 body.combat-edge .combat-stage>.boss-duel .duel-heading{grid-column:1;grid-row:1;height:auto;min-height:11px;font-size:10px;line-height:1.1}
 body.combat-edge .combat-stage>.boss-duel .duel-heading>b{font-size:9px}
 body.combat-edge .combat-stage>.boss-duel .duel-health{grid-column:1;grid-row:2;height:2px;margin:0}
 body.combat-edge .combat-stage>.boss-duel .duel-command{display:contents;height:auto}
 body.combat-edge .combat-stage>.boss-duel .duel-command>div{grid-column:1;grid-row:3;gap:1px;justify-content:center}
 body.combat-edge .combat-stage>.boss-duel #duel-cast{font-size:10px;line-height:1.15}
 body.combat-edge .combat-stage>.boss-duel #duel-counter{font-size:9px;line-height:1.15}
 body.combat-edge .combat-stage>.boss-duel #boss-guard,body.combat-edge .combat-stage>.boss-duel #world-power{grid-column:2;grid-row:1/4;width:64px;max-width:64px;height:44px;align-self:center;font-size:9px;padding:3px}
 body.combat-edge .combat-stage>.boss-duel #world-power{grid-column:3}
 body.combat-edge .combat-stage:has(>.boss-duel:not([hidden]))>.arena{top:calc(var(--combat-boss-height,64px) + 8px);height:calc(100% - var(--combat-boss-height,64px) - 8px)}
}
@media (orientation:landscape) and (min-width:1101px) {
 body.combat-edge{--combat-left:112px;--combat-right:184px;--combat-gap:6px}
 body.combat-edge .battle-head{grid-template-rows:44px 54px 84px 44px;gap:5px}
 body.combat-edge .combat-menu-button,body.combat-edge .audio-launch,body.combat-edge .compact-speed,body.combat-edge #pause{height:44px}
 body.combat-edge .wallet-ribbon{height:54px;min-height:54px;grid-template-rows:24px 24px}
 body.combat-edge .wallet-ribbon .noah-amount>b{font-size:17px}
 body.combat-edge .wallet-ribbon .noah-market>b{font-size:9px}
 body.combat-edge .battle-head>.arena-top{height:84px;grid-template-rows:44px 36px}
 body.combat-edge .battle-head .battle-stats{height:36px}
 body.combat-edge .battle-head .battle-stat b{font-size:21px}
 body.combat-edge .battle-head .battle-stat small{font-size:8px}
 body.combat-edge .combat-palette{grid-template-rows:100px 124px 44px;gap:6px}
 body.combat-edge .combat-palette>.mobile-tactics{grid-template-rows:48px 48px}
 body.combat-edge .combat-palette .tactic-card,body.combat-edge .mobile-tactics>#scan-button{height:48px}
 body.combat-edge .combat-palette .tactic-card{grid-template-columns:28px minmax(0,1fr)}
 body.combat-edge .combat-palette .tactic-card .spell-art{width:28px;height:32px}
 body.combat-edge .combat-palette .tactic-card b{font-size:10px}
 body.combat-edge .combat-palette>.build-dock,body.combat-edge.heist-mode .combat-palette>.build-dock{grid-template-rows:60px 60px}
 body.combat-edge .combat-palette .tower-card{height:60px}
 body.combat-edge .combat-palette .tower-card .tower-art{width:30px;min-width:30px;height:30px;min-height:30px}
 body.combat-edge .combat-palette .tower-card strong{font-size:11px}
 body.combat-edge .combat-palette .tower-card small{font-size:10px}
 body.combat-edge .mobile-combat-tools>.wave-button{font-size:11px}
 body.combat-edge .combat-stage>.boss-duel{grid-template-columns:minmax(0,1fr) 76px 76px;column-gap:6px;padding:5px 8px;min-height:56px}
 body.combat-edge .combat-stage>.boss-duel .duel-heading{font-size:11px}
 body.combat-edge .combat-stage>.boss-duel #duel-cast{font-size:11px}
 body.combat-edge .combat-stage>.boss-duel #duel-counter{font-size:10px}
 body.combat-edge .combat-stage>.boss-duel #boss-guard,body.combat-edge .combat-stage>.boss-duel #world-power{width:76px;max-width:76px;font-size:10px}
}
@media (orientation:landscape) and (max-height:275px) {
 body.combat-edge .combat-palette{grid-template-rows:91px 99px 44px;gap:3px}
 body.combat-edge .combat-palette>.mobile-tactics{grid-template-rows:44px 44px;gap:3px}
 body.combat-edge .combat-palette>.build-dock,body.combat-edge.heist-mode .combat-palette>.build-dock{grid-template-rows:48px 48px;gap:3px}
 body.combat-edge .combat-palette .tower-card{height:48px}
 body.combat-edge .combat-palette .tower-card .tower-art{width:22px;min-width:22px;height:22px;min-height:22px}
}

.tower-sell{min-height:44px;padding:6px 10px;border:1px solid #967453;border-radius:8px;background:#35282b;color:#ffdeb0;font:700 12px/1.2 var(--body);white-space:nowrap}
.tower-sell:hover{background:#51372d;border-color:#ffca88}
.tower-sell:focus-visible{outline:2px solid #ffca88;outline-offset:2px}
.quick-evolve>.tower-sell{flex-shrink:0}
.tower-sale-dialog .modal-actions button{min-height:44px}
.tower-sale-dialog p strong{color:#dcff76}
body.combat-focus .combat-selection>.quick-evolve{padding-right:67px;gap:4px}
body.combat-focus .combat-selection .quick-evolve>div{max-width:none;overflow:hidden}
body.combat-focus .combat-selection .quick-evolve b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.combat-focus .combat-selection .quick-evolve .primary{flex:0 0 76px;width:76px;min-width:76px;font-size:10px}
body.combat-focus .combat-selection .quick-evolve .tower-sell{padding:4px 6px;font-size:11px}
body.combat-focus .combat-selection-close{width:62px!important}
