/* Both combat pages occupy the same closed slot, including their borders. */
#battle-root .spell-panel-battle .battle-console{--combat-action-height:105px}
#battle-root .spell-panel-battle .battle-console .combat-action-panel,
#battle-root .spell-panel-battle .battle-console.journal-expanded .combat-action-panel{min-height:var(--combat-action-height)}
#battle-root .spell-panel-battle .battle-console #battle-actions,
#battle-root .spell-panel-battle .battle-console.journal-expanded #battle-actions{min-height:var(--combat-action-height);padding:0}
#battle-root .spell-panel-battle .battle-console #skills-root{height:var(--combat-action-height);min-height:var(--combat-action-height);max-height:var(--combat-action-height)}
/* Loading remains one surface through asset decode, account restore and resume. */
#app>.loading{position:absolute;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 43%,#fffef7 0,#faf5e8 52%,#eee5d1 100%);overflow:hidden;transition:opacity .28s ease;isolation:isolate}
#app>.loading[hidden]{display:none!important}
.loading-center{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(310px,88%);transform:translateY(-20px)}
#loading .loading-emblem{position:relative;width:170px;height:170px;display:grid;place-items:center;margin:0 0 26px}
#loading .loading-emblem>img{position:absolute;inset:18px;width:134px;height:134px;object-fit:contain;margin:0;transition:opacity .18s}
#loading canvas{display:block;position:relative;width:170px;height:170px;opacity:0;transition:opacity .18s;filter:drop-shadow(0 9px 8px #173f3b16)}
#loading canvas.painted{opacity:1}
#loading .loading-emblem:has(canvas.painted)>img{opacity:0}
#loading .loading-name{font-size:16px;line-height:22px;letter-spacing:4px;color:#315d55;font-weight:800;margin-left:4px}
#loading .loading-caption{font-size:8px;letter-spacing:3px;line-height:18px;color:#a28b63;margin:4px 0 25px}
#loading .loading-phrase{width:100%;min-height:42px;margin:0;text-align:center;font-size:12px;line-height:21px;color:#7e806c;text-wrap:balance}
.loading-phrase:after{content:'';display:inline-block;vertical-align:-2px;width:1px;height:13px;margin-left:3px;background:#a58c5b;animation:loading-caret 1s steps(1) infinite}
.loading-version{position:absolute;left:0;right:0;bottom:max(26px,env(safe-area-inset-bottom));font-size:9px;line-height:16px;letter-spacing:2px;text-align:center;color:#a08f71}
@keyframes loading-caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){#loading canvas,#loading .loading-emblem>img,.loading-phrase:after{animation:none;transition:none}}

.victory-modal .victory-section>h3{font-size:12px}
.victory-modal .victory-saved{display:flex!important}
/* 05.11.2026: подпись внизу экрана загрузки */
#loading .loading-version{font:600 11px/16px Interface,sans-serif;letter-spacing:.08em;color:#8f7f5e;font-variant-numeric:lining-nums}
