/* Secondary battle information stays available on demand in short campaign views. */
.solo-status-shelf{display:contents}.solo-status-shelf-heading,.solo-battle-toolbar [data-solo="battle-states"]{display:none}
.solo-panel-tabs .solo-tab-short{display:none}
body:has(.solo-status-shelf.is-open) .combat-status-reader{z-index:100}
/* Ordinary saved battles also fit the smallest supported landscape phone. */
@media(min-width:568px) and (max-width:599px) and (max-height:480px){
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-stage{grid-template-rows:minmax(0,1fr)}
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-status{display:none}
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle{min-height:0}
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-viewport{min-height:0}
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar{position:fixed;bottom:calc(5px + var(--safe-bottom));height:48px;z-index:6;box-sizing:border-box;margin:0;padding:2px 5px;border:0;border-radius:9px}
}
@media(min-width:568px) and (max-width:920px) and (max-height:480px){
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide){grid-template-rows:48px minmax(0,1fr);padding:4px;gap:4px;position:relative}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar{display:flex;justify-content:space-between;height:48px;min-height:44px;padding:1px 8px;gap:4px}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar-context{width:108px;align-self:end;padding-bottom:5px}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar-context :is(.eyebrow,.solo-topbar-energy){display:none}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-compact-vitals{font-size:10px;line-height:12px;display:block;white-space:nowrap}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-round-label{position:absolute;left:13px;top:10px;display:block}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-round-label b{font-size:13px;line-height:16px}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-round-label small{display:none}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar nav{gap:4px}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar nav [data-desktop-rewards]{display:none}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-panel-tabs{position:absolute;top:6px;right:205px;width:calc(100% - 335px);height:44px;min-height:44px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:0;border:0;background:none;box-shadow:none;z-index:5}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-panel-tabs button{height:44px;min-height:44px;flex-direction:row;gap:2px;padding:2px;font-size:10px;line-height:12px}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-panel-tabs :is(.solo-tab-icon,.solo-tab-caption){display:none}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-panel-tabs small{min-height:12px;font-size:9px;line-height:12px;padding:0 2px}
 html .solo-game:not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar [data-solo="battle-states"]{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap}
 html .solo-game:not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-status-shelf{display:none}
 html .solo-game:not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-status-shelf.is-open{display:block;position:fixed;z-index:80;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c9ae6b;border-radius:14px;padding:10px;background:#0a2531;box-shadow:0 12px 60px #000c}
 html .solo-game:not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-status-shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
 html .solo-game .solo-status-shelf-heading h2{font-size:17px;margin:0;color:#f0d99c}
 html .solo-game .solo-status-shelf-heading button{width:44px;min-height:44px;font-size:22px;padding:4px}
 html .solo-game .solo-status-shelf.is-open .combat-status-dock{position:static;display:grid;inset:auto;gap:12px;padding:0;pointer-events:auto}
 html .solo-game .solo-status-shelf.is-open .fighter-status-panel{width:100%;grid-template-columns:repeat(5,minmax(44px,1fr));gap:3px;min-height:0;max-height:calc(100dvh - 108px);overflow:auto;align-content:start}
 html .solo-game .solo-status-shelf.is-open .fighter-status-panel::before{content:attr(aria-label);grid-column:1/-1;min-height:22px;font:700 12px/1.4 Manrope,sans-serif;color:#decfa8;overflow-wrap:anywhere}
 /* Reading replaces the covered list, using the already paused inspection area. */
 html .solo-game .solo-status-shelf.is-open:has(.fighter-status[aria-expanded="true"]){height:calc(100dvh - 24px)}
 html .solo-game .solo-status-shelf.is-open:has(.fighter-status[aria-expanded="true"]) .combat-status-dock{visibility:hidden}
 body:has(.solo-status-shelf.is-open) .combat-status-reader{
  left:50%!important;top:80px!important;transform:translateX(-50%);
  width:min(696px,calc(100vw - 48px))!important;height:calc(100dvh - 104px)!important;
  padding:10px;gap:6px;
 }
}

.solo-guide-copy>small{font-size:10px;letter-spacing:.07em;font-weight:800;color:#f4d08b}
.solo-guide-copy:focus-visible{outline:2px solid #a4e8dd;outline-offset:-3px}
@media(min-width:600px) and (max-width:920px) and (max-height:480px){
 html .solo-game.solo-short-guide .solo-arena-panel{display:grid;grid-template-columns:clamp(220px,30vw,280px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px;overflow:hidden}
 html .solo-game.solo-short-guide .solo-arena-panel>.solo-guide-slot:has(.solo-guide-layer[data-layout=battle]){grid-column:1;grid-row:1;height:100%;max-height:none;min-height:0;margin:0;overflow:hidden}
 html .solo-game.solo-short-guide .solo-arena-panel>.solo-battle{grid-column:2;grid-row:1;min-height:0;height:100%;min-width:0}
 html .solo-game.solo-short-guide .solo-battle-viewport{min-height:0}
 html .solo-game.solo-short-guide .solo-guide-layer[data-layout=battle]{height:100%;min-height:0;z-index:auto}
 .solo-guide-layer[data-layout=battle]>.solo-guide-shade,.solo-guide-layer[data-layout=battle]>.solo-guide-outline{display:none}
 .solo-guide-layer[data-layout=battle][data-guide-step=battle-bars]>.solo-guide-outline:not([hidden]){display:block}
 html .solo-game.solo-short-guide .solo-guide-layer[data-layout=battle]>.solo-guide-card{position:relative;inset:auto;display:grid;grid-template-rows:minmax(0,1fr) auto auto;width:100%;height:100%;max-height:100%;padding:0;overflow:hidden;z-index:auto;box-shadow:none;border-radius:10px}
 html .solo-game.solo-short-guide .solo-guide-copy{min-height:0;overflow:auto;padding:12px;scrollbar-width:thin;overscroll-behavior:contain}
 html .solo-game.solo-short-guide .solo-guide-card h2{font-size:18px;line-height:1.3;margin:8px 0}
 html .solo-game.solo-short-guide .solo-guide-card p{font-size:13px;line-height:1.5;margin:8px 0}
 html .solo-game.solo-short-guide .solo-guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;border-top:1px solid #64765d;background:#0c252c}
 html .solo-game.solo-short-guide .solo-guide-actions>button{min-width:0;min-height:44px;padding:5px;font-size:12px;line-height:1.3;white-space:normal}
 html .solo-game.solo-short-guide .solo-guide-options{margin-top:10px;padding-top:4px}
 html .solo-game.solo-short-guide .solo-guide-options>div{display:grid;grid-template-columns:1fr;gap:6px}
 html .solo-game.solo-short-guide .solo-guide-options:not([open])>div{display:none}
 html .solo-game.solo-short-guide .solo-guide-options button{width:100%;min-height:44px}
 html .solo-game.solo-short-guide .solo-guide-busy:not(:empty){padding:4px 8px}
 html .solo-game.solo-short-guide .solo-battle-toolbar{height:44px;min-height:44px;padding:3px 8px;flex-wrap:nowrap;align-items:center}
 html .solo-game.solo-short-guide .solo-battle-toolbar>.solo-button{display:none}
 html .solo-game.solo-short-guide #solo-playback-time{width:auto;margin:0;font-size:12px;white-space:nowrap}
 html .solo-game.solo-short-guide #solo-playback-time::before{content:'Бой на паузе · ';color:#efd49b}
 html .solo-game.solo-short-guide .combat-status-dock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;inset:auto 0 0;padding:3px;max-width:100%}
 html .solo-game.solo-short-guide .fighter-status-panel{display:flex;flex-wrap:nowrap;min-width:0;min-height:48px;gap:3px;padding:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior:contain;scroll-padding-inline:4px}
 html .solo-game.solo-short-guide .fighter-status{flex:0 0 44px;min-width:44px;min-height:44px;height:44px}
 html .solo-game.solo-short-guide:has([data-guide-step=battle-bars]) .combat-status-dock{display:none}
}

/* v394: readiness text must not increase the bottom-anchored vitals height. */
@media(min-width:568px) and (max-width:920px) and (max-height:480px){
html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide):has(>.solo-topbar>.solo-appearance-status:not([hidden])){grid-template-rows:auto minmax(0,1fr)}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar:has(>.solo-appearance-status:not([hidden])){height:auto;flex-wrap:wrap;row-gap:0}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar-context{flex:none}
 html .solo-game:has(#solo-arena):is(:not(.solo-battle-guidance):not(:has(.solo-guide-card)),.solo-short-guide) .solo-topbar>.solo-appearance-status:not([hidden]){display:block;flex:0 0 100%;width:100%;padding:4px 0 5px;margin:2px 0 0;border-top:1px solid #315156;font-size:12px;line-height:16px;white-space:normal;overflow-wrap:anywhere}
}
@media(min-width:568px) and (max-width:680px) and (max-height:480px){
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar{left:5px}
}

/* A reversible viewing mode: controls occupy their own row, never the scene. */
.solo-battle-toolbar [data-solo="expand-battle"]{display:none}
@media(min-width:568px) and (max-width:920px) and (max-height:480px){
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-panel-tabs button{flex-direction:column;gap:0;padding:2px 0;font-size:11px;line-height:13px}
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 60px;gap:4px;align-items:stretch;left:auto;right:5px;width:min(620px,calc(100vw - 10px))}
 html .solo-game:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar>.solo-button{min-width:0;min-height:44px;padding:3px 4px;font-size:13px;line-height:1.2;white-space:normal}
 html .solo-game:not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar [data-solo="expand-battle"]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
 html .solo-game .solo-battle-toolbar [data-expanded-context]{font-size:12px;line-height:14px;white-space:nowrap;color:#b8d7cf}
 html .solo-game .solo-battle-toolbar [data-expanded-context][hidden]{display:none}
 html .solo-game .solo-battle-toolbar [data-solo="expand-battle"] span{margin:0}
 html .solo-game:not(.solo-battle-guidance):not(:has(.solo-guide-card)) #solo-playback-time{grid-column:6;align-self:center;min-width:0;margin:0;font-size:12px;line-height:14px;white-space:normal;overflow-wrap:anywhere;text-align:center}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)){grid-template-rows:auto minmax(0,1fr);row-gap:0}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card))>.solo-topbar{display:none}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card))>.solo-topbar:has(>.solo-appearance-status:not([hidden])){display:block;height:auto;min-height:0;padding:0 8px;border:0;background:none}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card))>.solo-topbar>:not(.solo-appearance-status){display:none}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card))>.solo-topbar>.solo-appearance-status:not([hidden]){margin:0;padding:4px 0;border:0}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card))>.solo-layout{grid-row:2}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card))>.solo-panel-tabs{display:none}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle{display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-height:0}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-viewport{grid-row:1;min-height:0;height:auto}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar{grid-row:3;position:static;inset:auto;width:auto;height:auto;min-height:48px;margin:0;padding:2px 5px;border-radius:0}
 html .solo-game.solo-expanded-battle[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar [data-solo="expand-battle"]{border-color:#bda568;background:#243d39;color:#f2ddac}
}
@media(min-width:568px) and (max-width:599px) and (max-height:480px){
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-panel-tabs .solo-tab-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-panel-tabs .solo-tab-short{display:inline}
}
/* A finished battle gives its copy the available height; its action never scrolls. */
@media(min-width:568px) and (max-width:920px) and (max-height:480px){
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-result:not([hidden]){
  display:grid;grid-template-columns:minmax(0,1fr) clamp(172px,28vw,216px);grid-template-rows:minmax(0,1fr);
  top:6px;bottom:58px;left:12px;right:12px;max-height:none;min-height:0;padding:10px;gap:12px;
 }
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-result-actions{
  display:flex;align-items:center;min-width:0;padding:0 0 0 12px;border-top:0;border-left:1px solid #657b6a;
 }
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-result-actions>.solo-button{padding:8px 6px;font-size:13px;line-height:1.3}
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-result-rewards{margin:8px 0;gap:8px}
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-result-rewards span{padding:6px 8px}
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-result-rewards b{font-size:18px}
}
@media(min-width:568px) and (max-width:920px) and (max-height:480px){
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar[data-finished=true]{grid-template-columns:repeat(3,minmax(0,1fr)) 120px}
 html .solo-game[data-panel=arena]:has(#solo-arena):not(.solo-battle-guidance):not(:has(.solo-guide-card)) .solo-battle-toolbar[data-finished=true] #solo-playback-time{grid-column:4}
}
