/* The result stays inside the visible play area; only its contents scroll. */
body.battle-result-mode{overflow:hidden;padding-bottom:0}
.battle-result-mode #app{padding:7px 10px;max-width:940px}
.game-focus.battle-summary{box-sizing:border-box;max-width:700px;margin:0 auto;min-height:160px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid #b99a5c;border-radius:18px;background:radial-gradient(ellipse at 50% 0,#57512c80,transparent 65%),linear-gradient(155deg,#24382ff5,#101b1afc);box-shadow:inset 0 0 35px #040a0980,0 10px 40px #0006;animation:summary-rise .45s ease-out}
.battle-summary>header{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #d5af5a44}
.battle-summary>header small{color:#d6c8a5;font-size:11px}.battle-summary h1{font-size:clamp(22px,6vw,34px);line-height:1.1;margin:4px 0;overflow-wrap:anywhere}.battle-summary h2{font-size:17px;margin:6px 0 12px}
.result-seal{width:66px;height:66px;flex:none;fill:none;stroke:#f4d38b;stroke-width:2;filter:drop-shadow(0 0 9px #e6b65b60)}.result-seal path{stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.battle-summary-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px 16px;scrollbar-width:thin;scrollbar-color:#88754f #18251f}
.battle-summary-body>.result-line{margin:0 0 12px;font-size:14px;color:#e3d8bd}.battle-summary-body p{font-size:13px}.battle-summary-body .loot{margin:4px 0 12px}.battle-summary-body .reward{max-width:100%}
.battle-summary:focus{outline:none}.battle-summary .pending-loot{padding:10px;margin:10px 0}.battle-summary .pending-loot>.journey-art{height:48px;min-height:48px;margin-bottom:9px}.battle-summary .pending-loot>h3{font-size:18px;margin:8px 0}.battle-summary .pending-piece{padding:10px 0}
.battle-summary>footer .ready-portraits{margin:0 0 8px;gap:10px;flex-wrap:nowrap}.battle-summary>footer .ready-person .portrait{width:34px;height:34px}.battle-summary>footer .ready-check{width:18px;height:18px;font-size:12px;line-height:15px}
.battle-summary>footer{padding:8px 14px 12px;border-top:1px solid #d5af5a44;background:#14221f;box-shadow:0 -5px 18px #0004}.battle-summary>footer button{min-height:44px;margin:0}
.result-blocked{display:block;color:#ebce88;font-size:11px;margin-top:8px}.summary-defeat{border-color:#927a76!important;background:radial-gradient(ellipse at 50% 0,#69404460,transparent 70%),linear-gradient(155deg,#292930f5,#151d20fc)!important}.summary-defeat .result-seal{stroke:#dba9a4;filter:drop-shadow(0 0 9px #ad646450)}.summary-defeat>header,.summary-defeat>footer{border-color:#9e727455}.summary-defeat>footer{background:#20242a}
.fallen-company{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:18px 0}.fallen-company .portrait{width:55px;height:55px;filter:saturate(.45);border-color:#a48677;margin:0}
.result-last-action{padding:10px;margin:12px 0;border:1px solid #9d8c6344;border-radius:8px;background:#090f122e}.result-last-action summary{cursor:pointer;font-size:12px;color:#d7bf99}.result-last-action p{font-size:12px;line-height:1.5;margin:8px 0 0}
.battle-ending .battle-stage{pointer-events:none}.battle-verdict{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;background:radial-gradient(ellipse,#151c17e8,transparent 75%);animation:verdict-reveal 1.55s ease-out both;text-align:center;color:#ffe4a0;text-shadow:0 2px 4px #000,0 0 28px #cf9e45}
.battle-verdict>span{font-size:76px;line-height:1.1;filter:drop-shadow(0 0 22px #dcaf61)}.battle-verdict strong{font-family:Georgia,serif;font-size:clamp(32px,10vw,64px);letter-spacing:.14em;margin:6px 0}.battle-verdict small{font-size:13px;padding:0 20px;color:#f0dfba}.battle-verdict.defeat{color:#e9b8b4;background:radial-gradient(ellipse,#271d27ed,transparent 80%);text-shadow:0 2px 4px #000,0 0 25px #9f4f5c}.battle-verdict.defeat>span{filter:drop-shadow(0 0 20px #a85f73)}
/* Symbols remain readable at the smallest combat-card size. */
.battle-layout .compact-status{display:flex;flex-flow:row wrap;gap:2px;justify-content:center;align-items:center;margin:1px 0 0;min-height:0}
.battle-layout .compact-status:empty{display:none}
.battle-layout .compact-status .status-symbol{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px!important;min-width:18px;padding:1px!important;border:1px solid #b9bda04d;border-radius:5px;background:#101c22e6;color:#e5d8b4;box-shadow:inset 0 0 5px currentColor;line-height:0;font-size:0;overflow:hidden}
.status-symbol svg{width:14px;height:14px;display:block;filter:drop-shadow(0 0 2px currentColor)}
.figure-info-line>span>svg{width:23px;height:23px}.figure-info-line.info-status>span{color:inherit}
.battle-layout .status-burn{color:#ffac5b!important}.battle-layout .status-poison{color:#b4dc71!important}.battle-layout .status-bleed,.battle-layout .status-rage{color:#fa8b94!important}.battle-layout .status-shield,.battle-layout .ward-chip,.battle-layout .status-steadfast{color:#a3d9ff!important}.battle-layout .status-stun,.battle-layout .status-confused,.battle-layout .charge-chip{color:#e7bdff!important}.battle-layout .status-regen,.battle-layout .status-bless{color:#9aebb8!important}.battle-layout .status-slow,.battle-layout .status-resist_ice{color:#b8efff!important}.battle-layout .status-weak,.battle-layout .status-exposed,.battle-layout .status-armorbreak{color:#e9af87!important}
.figure-art{display:inline-block;position:relative;flex:none;line-height:0;isolation:isolate}.figure-art .portrait{display:block}.companion-card .figure-art{grid-row:1/4}.status-aura{position:absolute;inset:-5px;pointer-events:none;z-index:2}.status-aura>*{position:absolute;inset:0;display:block}
.compact-card[data-side="enemy"]>.figure-art{width:min(100%,84px);aspect-ratio:1}.battle-layout:has(.action-preview) .compact-card[data-side="enemy"]>.figure-art{max-width:60px}
.aura-runes{width:100%;height:100%;fill:none;stroke:#e7d9a0;stroke-width:1.7;opacity:.75;filter:drop-shadow(0 0 3px #d9b76a);animation:rune-orbit 11s linear infinite}.aura-runes.verdant{stroke:#95edbe;filter:drop-shadow(0 0 3px #70ba8c)}.aura-runes.fury{stroke:#f4a58b;animation-duration:6s}
.aura-barrier{border:1px solid #9cdafaa0;border-radius:38% 38% 45% 45%;box-shadow:inset 0 0 7px #75bce84d,0 0 5px #79b9d94d;animation:barrier-breathe 2.8s ease-in-out infinite}.aura-barrier:after{content:'';position:absolute;inset:-3px;border:1px solid transparent;border-left-color:#d1f1ffb0;border-right-color:#d1f1ffb0;border-radius:50%;animation:rune-orbit 5s linear infinite}
.aura-embers{background:radial-gradient(ellipse at 50% 100%,#fa963a55,transparent 65%)}.aura-embers:before,.aura-embers:after{content:'';position:absolute;left:18%;bottom:3%;width:3px;height:5px;border-radius:50%;background:#ffbd63;box-shadow:12px 4px #fa7a3d,25px -2px #ffce7d,7px -9px #fcaa53;animation:embers-rise 1.6s ease-out infinite}.aura-embers:after{left:27%;animation-delay:-.8s;transform:scale(.6)}
.aura-drops{--drop:#b5d86e}.aura-drops.blood{--drop:#ed6d7f}.aura-drops:after{content:'';position:absolute;left:10%;top:12%;width:3px;height:5px;background:var(--drop);border-radius:60% 60% 40% 40%;box-shadow:22px -3px var(--drop),34px 9px var(--drop);animation:aura-drip 2.8s ease-in infinite;filter:drop-shadow(0 0 2px var(--drop))}
.aura-stars{inset:0 -4px!important;border-top:1px solid #f4cbf980;border-radius:50%;animation:stars-sway 2.6s ease-in-out infinite}.aura-stars:after{content:'✦';position:absolute;left:0;top:-5px;color:#f1d4ff;font-size:13px;text-shadow:25px 1px #e0bbf2,12px -4px #e8caef,0 0 7px #ce9ce9}
.battle-layout .state-slow .figure-art:after{content:'';position:absolute;inset:0;border-radius:9px;box-shadow:inset 0 0 9px #b6e2ed;pointer-events:none}.battle-layout .state-hidden .figure-art .portrait{opacity:.6;filter:drop-shadow(0 0 5px #957cc2)}
@keyframes summary-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes verdict-reveal{0%{opacity:0;transform:scale(.9)}20%,85%{opacity:1;transform:scale(1)}100%{opacity:.85;transform:scale(1.025)}}
@keyframes rune-orbit{to{transform:rotate(360deg)}}
@keyframes barrier-breathe{50%{opacity:.5;box-shadow:inset 0 0 10px #75bce865,0 0 8px #79b9d965}}
@keyframes embers-rise{0%{opacity:0;transform:translateY(0)}25%{opacity:.9}100%{opacity:0;transform:translateY(-38px) translateX(4px)}}
@keyframes aura-drip{0%,20%{opacity:0;transform:translateY(0)}35%{opacity:.9}100%{opacity:0;transform:translateY(30px)}}
@keyframes stars-sway{50%{transform:rotate(-12deg) translateY(-2px)}}
@media(max-height:600px){.battle-summary>header{padding:8px 12px;gap:9px}.result-seal{width:42px;height:42px}.battle-summary h1{font-size:23px}.battle-summary>footer{padding:5px 10px 8px}.battle-summary-body{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.battle-summary,.battle-verdict,.status-aura *{animation:none!important}}
.reduce-motion .battle-summary,.reduce-motion .battle-verdict,.reduce-motion .status-aura *{animation:none!important}
