/* Short in-game scenes. No video downloads or changes to rule resolution. */
.die.won{transform:scale(1.22);z-index:2;filter:drop-shadow(0 0 6px #e4ffe8)}.die.defender.won{filter:drop-shadow(0 0 6px #ffcf7d)}.die.won::before{filter:brightness(1.18) drop-shadow(0 0 5px #ffeeb688)}
.rolling .die{transform:none}.rolling .die::before{animation:d20Tumble calc(.8s / var(--fx-rate,1)) linear infinite;animation-direction:normal!important}.rolling .die-value{font-size:inherit}
.battle-overlay{width:min(640px,calc(100% - 18px))}.battle-overlay #battleRoute{margin:2px 0 5px}.battle-overlay .speed-buttons{margin-bottom:5px}.battle-overlay h2{font-size:21px;margin:4px 0}.battle-overlay #battleSummary{min-height:0;margin:6px 0;font-size:11px;line-height:1.35}
#battleCinema{margin:5px 0 7px}.fx-scene{height:116px;display:grid;grid-template-columns:1fr 62px 1fr;gap:12px;align-items:center;background:radial-gradient(ellipse at center,#294748,#0a1b26 75%);border:1px solid #486b72;border-radius:10px;position:relative;overflow:hidden;padding:7px 10px}.fx-side> b{font-size:9px;display:block;text-align:center;font-weight:600;color:#d8e8e7;margin-bottom:5px}.fx-formation{display:flex;justify-content:center;gap:7px}.fx-fighter{margin:0;width:49px;min-width:0;position:relative}.fx-fighter img,.fx-shield{width:100%;height:74px;object-fit:cover;display:block;border:1px solid #d2e4e9;border-radius:6px}.fx-fighter[data-team=ai] img{border-color:#f26565}.fx-shield{display:grid;place-items:center;font-size:35px;background:#283f44;color:#d2dcc8;border-color:#82918b}.fx-fighter figcaption{font-size:7px;text-align:center;white-space:nowrap;margin-top:3px;color:#e2e9e5}.fx-fighter.pair-win img,.fx-fighter.pair-win .fx-shield{border-color:#ffde76;box-shadow:0 0 7px #ffe477a0}.fx-air{position:relative;height:100%;display:grid;place-items:center}.fx-versus{font-size:12px;letter-spacing:2px;color:#d5bf85}.fx-drone{margin:0;position:relative;z-index:2;width:52px}.fx-drone img{width:52px;height:62px;object-fit:cover;display:block;border:1px solid #d6e5e7;border-radius:7px}.fx-drone[data-team=ai] img{border-color:#ef6565}.fx-drone figcaption{font-size:8px;color:#ffe593;text-align:center;margin-top:3px}.fx-drone-beam{display:none;position:absolute;top:55%;left:50%;width:90px;height:3px;background:linear-gradient(90deg,#83dfff,#f1ffde,transparent);box-shadow:0 0 10px #8de9fa;transform-origin:left;z-index:3}.fx-impact{display:none;position:absolute;right:-15px;top:37%;font-size:27px;color:#ffe88e;text-shadow:0 0 12px #ffd866;z-index:4}
[data-phase=advance] .fx-attack .fx-fighter{animation:cardEnterLeft .7s ease-out both}[data-phase=advance] .fx-defend .fx-fighter{animation:cardEnterRight .7s ease-out both}[data-phase=duel] .fx-attack .fx-fighter{animation:cardStrike calc(.9s / var(--fx-rate,1)) ease-in-out infinite}[data-phase=duel] .fx-defend .fx-fighter{animation:cardBlock calc(.9s / var(--fx-rate,1)) ease-in-out infinite}[data-phase=duel] .fx-fighter:nth-child(2){animation-delay:-.3s}[data-phase=duel] .fx-fighter:nth-child(3){animation-delay:-.6s}[data-phase=duel] .fx-drone{animation:dronePass calc(1.2s / var(--fx-rate,1)) ease-in-out infinite}[data-phase=duel] .fx-drone-beam{display:block;animation:droneBeam calc(.9s / var(--fx-rate,1)) ease-in-out infinite}[data-phase=duel] .fx-impact{display:block;animation:impactFlash calc(.9s / var(--fx-rate,1)) steps(2) infinite}
.battle-duel{margin:5px 0;padding:8px;gap:7px}.battle-duel>div{grid-template-columns:52px 1fr;gap:2px 6px}.battle-duel .die{width:48px;height:51px;grid-row:2/4}.battle-duel strong{grid-column:2;grid-row:2;font-size:22px}.battle-duel small{grid-column:2;grid-row:3;font-size:8px;line-height:1.2}.battle-duel .fighter-label{min-height:17px;font-size:10px}.battle-duel .die-value{font-size:inherit}
.ai-advance{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:9px;padding:6px 0;color:#d6dfe6}.ai-advance label{display:flex;align-items:center;gap:5px}.ai-advance input{accent-color:#91dfbe;width:15px;height:15px}.ai-advance span{color:#ffe397;white-space:nowrap;font-weight:700}
.drone-choice{width:28px;height:35px;object-fit:cover;border:1px solid #7c9c94;border-radius:4px}.drone-switch:has(input:checked) .drone-choice{border-color:#e8de83;box-shadow:0 0 7px #ead67c66}.context-menu #actionHelp{display:grid;grid-template-columns:1fr 1fr;gap:6px}.context-menu #actionHelp>div{border:1px solid #426b5d;border-radius:6px;padding:6px;background:#0a2024}.context-menu #actionHelp b,.context-menu #actionHelp span,.context-menu #actionHelp small{display:block}.context-menu #actionHelp b{font-size:10px;color:#c7f3da;margin-bottom:3px}.context-menu #actionHelp span{font-size:9px;line-height:1.4}.context-menu #actionHelp small{font-size:9px;color:#f0dc9b;margin-top:3px}.context-menu #actionHelp p{grid-column:1/-1;font-size:9px;line-height:1.2;margin:0}.context-menu .drone-switch{gap:5px}
.support-scene{position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);width:min(390px,calc(100% - 20px));display:grid;grid-template-columns:82px 1fr;gap:12px;padding:12px;background:#10282ef2;border:1px solid #8adeb8;border-radius:12px;box-shadow:0 12px 32px #0009;pointer-events:none;overflow:hidden}.support-scene .support-portrait{width:82px;height:113px;object-fit:cover;border:1px solid #8ca69d;border-radius:7px}.support-scene b{font-size:12px;color:#c6f2d9}.support-scene p{font-size:10px;line-height:1.4;margin:6px 0}.support-scene strong{font-size:13px;color:#edf7e9}.support-scene em{font-style:normal;color:#a7efba}.support-scene small{display:block;font-size:9px;margin-top:7px;color:#d8ca97}.support-progress{height:4px;background:#355356;margin-top:10px;border-radius:6px}.support-progress i{height:100%;width:var(--support-progress,0%);display:block;background:#a3f1c0;border-radius:6px}.support-scan{display:none}.support-scene[data-type=cr] .support-scan{display:block;position:absolute;left:12px;top:50%;width:82px;height:2px;background:#bdf8d9;box-shadow:0 0 14px #a0edc9;animation:repairScan calc(.8s / var(--fx-rate,1)) ease-in-out infinite}.support-scene[data-type=reinforce] .support-portrait{animation:reinforcementArrives calc(1s / var(--fx-rate,1)) ease-out infinite}
@keyframes cardEnterLeft{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}@keyframes cardEnterRight{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:none}}
@keyframes cardStrike{0%,100%{transform:none}35%{transform:translateX(10px) scale(1.05)}60%{transform:translateX(3px)}}@keyframes cardBlock{0%,100%{transform:none}45%{transform:translateX(5px);filter:brightness(1.3)}65%{transform:translateX(-2px)}}@keyframes dronePass{0%,100%{transform:translate(-6px,-4px)}50%{transform:translate(9px,4px)}}@keyframes droneBeam{0%,20%,80%,100%{opacity:0;transform:scaleX(.2) rotate(8deg)}35%,65%{opacity:1;transform:scaleX(1) rotate(8deg)}}@keyframes impactFlash{0%,30%,80%,100%{opacity:0;transform:scale(.5)}45%,65%{opacity:1;transform:scale(1)}}@keyframes repairScan{0%,100%{transform:translateY(-40px);opacity:.4}50%{transform:translateY(40px);opacity:1}}@keyframes reinforcementArrives{from{opacity:.3;transform:translateX(-14px)}to{opacity:1;transform:none}}
@media(max-width:700px){.battle-overlay{padding:12px}.fx-scene{height:99px;grid-template-columns:1fr 48px 1fr;gap:8px;padding:6px}.fx-formation{gap:5px}.fx-fighter{width:42px}.fx-fighter img,.fx-shield{height:61px}.fx-side>b{font-size:8px}.fx-drone{width:40px}.fx-drone img{width:40px;height:48px}.fx-drone-beam{width:65px}.battle-duel>div{grid-template-columns:45px 1fr;gap:2px 5px}.battle-duel .die{width:40px;height:43px}.battle-duel strong{font-size:19px}.battle-duel small{font-size:7px;line-height:1.2}.battle-duel .fighter-label{font-size:8px;min-height:15px}.battle-duel{padding:6px;margin:5px 0}.battle-overlay #battleSummary{font-size:10px}.battle-overlay #closeBattle{min-height:35px}.ai-advance{font-size:8px}.context-menu #actionHelp span{font-size:8px}}
@media(max-height:640px){.battle-overlay{padding:9px}.battle-overlay>small{font-size:7px;margin-top:3px}.battle-overlay h2{font-size:17px}.battle-overlay .eyebrow{font-size:8px}.battle-overlay #battleRoute{font-size:10px;margin:1px 0 3px}.battle-overlay .speed-buttons button{min-height:26px;font-size:9px;padding:3px 7px}.battle-overlay .speed-buttons{margin-bottom:3px}#battleCinema{margin:3px 0}.fx-scene{height:80px}.fx-side>b{font-size:7px;margin-bottom:2px}.fx-fighter{width:35px}.fx-fighter img,.fx-shield{height:47px}.fx-fighter figcaption{font-size:6px}.fx-drone img{height:40px}.fx-drone figcaption{font-size:7px}.battle-duel{margin:4px 0;padding:5px}.battle-duel strong{font-size:18px}.battle-overlay #battleSummary{margin:4px 0;font-size:9px;line-height:1.3}.battle-duel .fighter-label{min-height:12px}.battle-duel .fighter-label img{width:11px;height:12px}.battle-overlay .ai-advance{padding:3px 0;font-size:7px}}
@media(max-width:360px){.battle-duel>div{grid-template-columns:39px 1fr}.battle-duel .die{width:34px;height:38px}.battle-duel{grid-template-columns:1fr 16px 1fr;gap:5px}.battle-duel .die{font-size:19px}.fx-fighter{width:32px}.fx-formation{gap:3px}.fx-scene{grid-template-columns:1fr 38px 1fr;gap:5px}.fx-drone,.fx-drone img{width:32px}.fx-drone-beam{width:50px}.context-menu #actionHelp b{font-size:9px}.context-menu #actionHelp div{padding:5px}.context-menu #actionHelp small{font-size:8px}.support-scene{grid-template-columns:60px 1fr;gap:8px;padding:9px}.support-scene .support-portrait{width:60px;height:90px}.support-scene b{font-size:10px}.support-scene p{font-size:9px;margin:4px 0}.support-scene strong{font-size:11px}.support-scene small{font-size:8px}.support-scene[data-type=cr] .support-scan{left:9px;width:60px}}
@media(max-height:500px) and (min-width:700px){.battle-overlay{width:820px}#battleCinema{float:left;width:36%;margin-right:10px}.fx-scene{height:123px;grid-template-columns:1fr 36px 1fr;gap:5px}.fx-fighter{width:30px}.fx-fighter img,.fx-shield{height:52px}.battle-overlay #battleRows{display:flex}.battle-duel>div{display:flex;gap:3px}.battle-duel small{min-height:25px}.battle-overlay #battleSummary{clear:both;padding-top:4px}.ai-advance{padding:3px 0}.battle-overlay .speed-buttons{margin-bottom:2px}}
@media(prefers-reduced-motion:reduce){.fx-scene *, .support-scene *, .die::before{animation:none!important}.die.won{transform:scale(1.12)}}

