/* Arctic presentation is scoped to Battle chrome. Player card rarity colors remain intact. */
body.magic-battle-active{background-color:#061b28;background-image:linear-gradient(180deg,#071e2b66,#06131ee0),url('/assets/magic-battlefield.webp');background-color:#35bed5;background-blend-mode:normal,luminosity;background-size:cover;background-position:center top;background-attachment:fixed}
body.magic-battle-active #app>.page{max-width:none;padding-inline:clamp(10px,1.5vw,28px)}
body .combat-arena{--combat-aqua:#85f9f0;--combat-muted:#c9e8ee;--combat-purple:#85dcec;color:#fffafa;border-color:#35bed59e;background-color:#164c60;background-image:linear-gradient(180deg,#071d2b72,#061c2b96),url('/assets/magic-battlefield.webp');background-blend-mode:normal,luminosity;background-position:center top;background-size:cover;box-shadow:inset 0 1px #85f9f02b,0 0 45px #35bed518}
body .combat-battlefield{background-color:#215465;background-image:linear-gradient(180deg,#071b2663,#071b267a),url('/assets/magic-battlefield.webp');background-blend-mode:normal,luminosity;background-position:center;background-size:cover;border-color:#85f9f059;box-shadow:inset 0 0 70px #06141c5c,0 12px 50px #02080e40}
body.magic-view #modal.combat-draft-dialog{background:#081f2d;border-color:#35bed5}
body #modal.combat-draft-dialog .modal-body{background:transparent}
body .combat-arena .eyebrow{color:#a8f6f5}
body .combat-arena :is(.combat-arena-heading p,.combat-section-heading p,.combat-redraw-state,.combat-redraw-note,.combat-team-meters small,.combat-team-meters>div>span,.combat-turn-pill,.combat-field-team-heading>span,.combat-side-spell p){color:#d6edf2}
body .combat-arena :is(.combat-team-panel,.combat-team-panel.enemy,.combat-round-mark,.combat-lock-bar,.combat-auto-squad,.combat-draft-footer,.combat-command-deck,.combat-match-scores,.combat-command-description,.combat-active-spell,.combat-no-spell){background:linear-gradient(130deg,#153d4eea,#0c2637ed);border-color:#66d6e068}
body .combat-arena :is(.combat-round-mark>strong,.combat-round-mark>span,.combat-round-mark small,.combat-selection-count,.combat-team-meters>div:nth-child(2)>strong){color:#a1eaff}
body .combat-arena .combat-team-title h3,body .combat-arena .combat-field-team-heading h3{color:#fffafa}
body .combat-arena :is(.combat-team-meters,.combat-spell-meta,.combat-field-team-heading,.combat-lock-bar){border-color:#85f9f033}
body .combat-arena .btn.combat-primary{background:linear-gradient(110deg,#85f9f0,#35bed5)!important;border-color:#b6fffa;color:#072d3a!important;box-shadow:0 0 24px #35bed532,inset 0 1px #efffff8a;font-weight:850}
body .combat-arena .btn.combat-primary:hover:not(:disabled){background:linear-gradient(110deg,#b3fff8,#65dbe9)!important}
body .combat-arena .btn.secondary{background:linear-gradient(120deg,#164453,#102d40);border-color:#60bdcd;color:#f5ffff}
body .combat-arena .btn.secondary:hover:not(:disabled){background:#1b5869;border-color:#85f9f0}
body .combat-arena :is(.combat-rail-toggle,.combat-side-fields .combat-lane.retreat,.combat-side-spell,.combat-compact-resource){background:linear-gradient(140deg,#134557ee,#0c263bed);border-color:#35bed5a3;color:#eaffff;box-shadow:inset 0 1px #85f9f02b}
body .combat-arena .combat-rail-toggle{min-height:48px}
body .combat-arena .combat-rail-toggle>small{color:#caedf3}
body .combat-arena .combat-rail-toggle:hover{background:#1c6174}
body .combat-arena .rail-collapsed .combat-rail-toggle{min-height:170px}
/* Current live HUD and sideline use their own panels, separate from player cards. */
body .combat-arena .combat-hud-team,body .combat-arena .combat-hud-team.enemy,body .combat-arena .combat-side-status{background:linear-gradient(120deg,#123e50f5,#0a2536f5);border-color:#35bed59e;box-shadow:inset 0 1px #85f9f02b,0 6px 20px #020d1833}
body .combat-arena .combat-hud-team.on-turn,body .combat-arena .combat-side-status.on-turn{border-color:#85f9f0;box-shadow:inset 0 0 0 1px #85f9f03b,0 0 22px #35bed526}
body .combat-arena .combat-hud-identity>span:first-child{color:#b3f7f5}
body .combat-arena .combat-hud-identity h3.combat-command-team,body .combat-arena .combat-side-status h4{color:#fffafa}
body .combat-arena .combat-hud-turn{background:#071d2bcc;color:#d4ebf1}
body .combat-arena .combat-hud-turn.active{background:#85f9f0;color:#072d3a}
body .combat-arena .combat-hud-stats dt,body .combat-arena .combat-side-status dt{color:#e8faff}
body .combat-arena .combat-hud-stats dd small,body .combat-arena .combat-side-status dd small,body .combat-arena .combat-side-turn{color:#c6e7ee}
body .combat-arena .combat-hud-stats .armor dd strong,body .combat-arena .combat-side-status dl>div:not(.health):not(.energy) dd{color:#a1eaff}
body .combat-arena .combat-hud-health-track{background:#061a27}
body .combat-arena .combat-hud-health-track>i{background:linear-gradient(90deg,#35bed5,#85f9f0)}
body .combat-arena .combat-hud-navigation .btn,body.magic-battle-active .battle-match-navigation>.btn.secondary{background:linear-gradient(115deg,#174759,#0e2d40);border-color:#64bdce;color:#fffafa;box-shadow:inset 0 1px #c4ffff21,0 3px 12px #03131c44}
body .combat-arena .combat-hud-navigation .btn:hover:not(:disabled),body.magic-battle-active .battle-match-navigation>.btn.secondary:hover:not(:disabled){background:linear-gradient(115deg,#1b596b,#144154);border-color:#85f9f0;color:#fff;filter:none}
body .combat-arena .combat-hud-navigation .btn:focus-visible,body.magic-battle-active .battle-match-navigation>.btn.secondary:focus-visible{outline:2px solid #85f9f0;outline-offset:3px}
body .combat-arena .combat-spell-details>summary>small,body .combat-arena .combat-side-no-spell{color:#c6e7ee}
body .combat-arena .combat-spell-detail-panel p{color:#fffafa}
body .combat-arena :is(.combat-lane.active,.combat-lane.retreat,.combat-auto-player,.combat-auto-portrait){border-color:#85f9f05c}
body .combat-arena .combat-field-team.enemy .combat-field-team-heading>span{color:#ffd0db}
body .combat-arena .combat-spell-choice,body .combat-arena .combat-spell{background:linear-gradient(145deg,#174354f5,#0b2638f5);border-color:#72dbe7a3;box-shadow:inset 0 1px #c8ffff26,0 8px 25px #020b1340;color:#fffafa}
body .combat-arena .combat-spell-choice:hover:not(:disabled),body .combat-arena .combat-spell-choice:focus-visible,body .combat-arena .combat-spell.selected{border-color:#85f9f0;box-shadow:inset 0 0 0 1px #85f9f0,0 0 28px #35bed544}
body .combat-arena .combat-spell-choice>strong,body .combat-arena .combat-spell h4{color:#fff5d4}
body .combat-arena :is(.combat-spell>p,.combat-spell-bullets,.combat-spell-bullets>li,.combat-spell-bullets>li>span,.combat-spell-secondary,.combat-spell-details p,.combat-active-spell p){color:#fffafa;text-shadow:0 1px 1px #0006}
body .combat-arena .combat-spell-bullets>li:first-child{background:#071f2eb8;border-color:#85f9f059;color:#fffafa}
body .combat-arena .combat-spell-secondary{border-color:#85f9f033}
body .combat-arena .combat-detail-dash{color:#85f9f0}
body .combat-arena .combat-spell-choice-confirm{color:#85f9f0;border-color:#85f9f04d}
body .combat-arena .combat-spell-choice-confirm>small{color:#ffe39a}
body .combat-arena .ability-token.is-term{color:#d4f3ff}
body .combat-arena .ability-token.is-health{color:#8dffca}
body .combat-arena .ability-token.is-shield,body .combat-arena .ability-token.is-personal-shield{color:#8edbff}
body .combat-arena .ability-token.is-energy{color:#ffe28f}
body .combat-arena .ability-token.is-strength{color:#ffcc94}
body .combat-arena .ability-token.is-frozen{color:#9beeff}
body .combat-arena .ability-token.is-mvp{color:#edb8ff}
body .combat-arena .ability-token.is-gain{color:#9effce}
body .combat-arena .ability-token.is-loss{color:var(--combat-negative,#ff9fba)}
body .combat-arena [data-combat-popover],body .combat-arena [data-combat-popover]>div:first-child{background:linear-gradient(120deg,#123c4ffc,#081e2ffc);border-color:#7ed9e395;color:#fffafa}
body .combat-arena [data-combat-popover]>p{color:#ecf9fc}
/* The main action keeps its width and uses the former two-button height. */
body .team-ready-actions .team-mode-actions>.team-play-now,body.magic-view .team-ready-actions .team-mode-actions>.team-play-now{min-height:132px;padding:24px 18px;font-size:clamp(25px,2.3vw,36px);font-weight:900;background:linear-gradient(115deg,#a2fff5,#85f9f0 30%,#35bed5)!important;border-color:#c4fff7;color:#062b38!important;box-shadow:inset 0 1px #fff,0 0 30px #35bed53b;letter-spacing:.02em}
body .team-ready-actions>.team-mode-actions{grid-template-columns:1fr}
.team-view-tools{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin:8px 0 14px}
body .lineup-counts>.magic-toggle,body .team-view-tools>.magic-toggle{width:clamp(190px,24vw,330px);min-height:49px;padding:10px 22px;font-size:22px;flex:none;margin:0}
body .team-view-tools>.powerup-jump{padding:12px 20px;min-height:49px;display:flex;align-items:center;justify-content:center;font-size:16px}
body.magic-view .lineup-overview{margin-bottom:10px;padding-bottom:0}
body .magic-deck-builder .magic-deck-tabs{margin-top:0;margin-bottom:12px}
body .magic-deck-builder .magic-deck-expanded-selection{margin-top:10px}
/* Art fills each entry naturally; the helmet is contained, never enlarged past its frame. */
#modal.gameday-launch-dialog .gameday-mode[data-id="computer"]::before{background-size:auto 100%;background-position:right center;opacity:.96;filter:none}
#modal.gameday-launch-dialog .gameday-mode[data-id="computer"]::after{background:linear-gradient(90deg,#0e2935f7,#0e2935e6 36%,#0e293568 62%,#0e293510 100%)}
#modal.gameday-launch-dialog .gameday-mode[data-id="computer"]{background:#0e2935!important;border-color:#65cddd}
#modal.gameday-launch-dialog .gameday-mode[data-id="matchmaking"]::before{background-image:url('/assets/spells/deep-strike.webp');background-size:cover;background-position:80% 42%;opacity:.76}
#modal.gameday-launch-dialog .gameday-mode[data-id="matchmaking"]::after{background:linear-gradient(90deg,#0b2936fa,#0b2936db 44%,#0b29362b)}
#modal.gameday-launch-dialog .gameday-matchmaking[data-id="friend"]::before{background-image:url('/assets/spells/iron-huddle.webp');background-size:cover;background-position:75% 42%;opacity:.67}
#modal.gameday-launch-dialog .gameday-matchmaking[data-id="friend"]::after{background:linear-gradient(90deg,#0a2b35fa,#0a2b35d9 48%,#0a2b3533)}
#modal.gameday-launch-dialog .gameday-matchmaking[data-id="two-player"]::before{background-image:url('/assets/spells/goal-line-stand.webp');background-size:cover;background-position:75% 45%;opacity:.6}
#modal.gameday-launch-dialog .gameday-matchmaking[data-id="two-player"]::after{background:linear-gradient(90deg,#102c40f5,#102c40c9 55%,#102c4044)}
#modal.gameday-launch-dialog .frenzy-mode::before{background-image:url('/assets/v41-kick-entry.svg');background-size:cover;background-position:70% 44%;opacity:.7}
#modal.gameday-launch-dialog .frenzy-mode::after{background:linear-gradient(90deg,#082b38f5,#082b38ce 58%,#082b3860)}
#modal.gameday-launch-dialog .battle-practice-mode::before{background-color:#35bed5;background-blend-mode:luminosity}
#modal.gameday-launch-dialog .battle-practice-mode::after{background:linear-gradient(90deg,#0c2e3cf0,#0c2e3caa 52%,#0c2e3c33)}
body .franchise-computer-tile>img{object-fit:contain;object-position:right center;background:#0c2532}
body .franchise-computer-tile:after{background:linear-gradient(90deg,#0a1f2dd9,#0a1f2d73 55%,#0a1f2d22),linear-gradient(0deg,#081b2eea,transparent 80%)}
.franchise-computer-arrow{font-size:28px!important;line-height:1}
.saved-device-results{margin-top:26px;padding-top:22px;border-top:1px solid #85f9f033}.saved-device-results>h3{margin:0 0 18px;font-size:28px;color:#e9ffff}.saved-device-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media(max-width:650px){.saved-device-results-grid{grid-template-columns:1fr}}
@media(max-width:800px){body .team-ready-actions .team-mode-actions>.team-play-now,body.magic-view .team-ready-actions .team-mode-actions>.team-play-now{min-height:95px;font-size:29px}.team-view-tools{justify-content:stretch}.team-view-tools>.powerup-jump{flex:1}body .team-view-tools>.magic-toggle{width:auto;flex:1}body .franchise-launch>.franchise-quick-resume{grid-column:auto;display:flex;flex-direction:column}body .franchise-launch>.franchise-quick-coaches{grid-column:1/-1}}
@media(max-width:480px){body .franchise-launch>.franchise-quick-resume{grid-column:1/-1}.first-run-guide{padding-top:22px}body .lineup-counts>.magic-toggle{flex:1;width:auto;min-width:170px}body.magic-battle-active{background-attachment:scroll}}
@media(prefers-reduced-motion:reduce){body.magic-battle-active{background-attachment:scroll}}
