/* feature:mega-evolution (Work-ID 20260930-mega-evolution-0547; Trello "Cidades", zenux 2026-09-30: "faça da mega evolução").
   Loaded after move-power.css and before hover-geometry.css.

   Work-ID 20261022-mega-fix (zenux, 2026-10-22: "the Mega evolution button must appear on the battle's initial screen, in the bottom-left corner, above the dialog box"): the Mega Evolution toggle is a child of the
   battle scene (.battle-stage), in its bottom-left corner, right above the dialog box, on the first screen and on the Fight menu. Its box is authored once (this file's first rule) and never depends on a pointer,
   focus or selection state: "On" is paint only (an inset outline and glow), so mouse, keyboard, pad and touch all leave its getBoundingClientRect() as it was (AGENTS.md "Absolute UI hover geometry"). */
/* Work-ID 20261106-mega-symbol-switch-8d2c (zenux 11-06 13:03: "Nao precisa vir escrito Mega Evolucao... somente o simbolo, em um tamanho maior"): the button is ONLY the Mega symbol (a ring, the double helix, the Key Stone);
   the words live in its aria-label and tooltip. Its box is authored here once; on / hover / focus only repaint. */
#battle-dialog .battle-stage>.battle-mega-button{position:absolute;left:10px;bottom:10px;z-index:7;box-sizing:border-box;display:grid;place-items:center;width:68px;height:68px;min-width:0;margin:0;padding:0;
 border:2px solid #b98cff;border-radius:50%;background:rgba(21,28,44,.93);color:#fff;cursor:pointer;pointer-events:auto;overflow:hidden;--type-color:#b98cff;transform:none}
#battle-dialog .battle-stage>.battle-mega-button>.mega-sym{display:block;width:48px;height:48px;color:#fff;pointer-events:none}
#battle-dialog .battle-stage>.battle-mega-button>.mega-sym>svg{display:block;width:48px;height:48px}
#battle-dialog .battle-stage>.battle-mega-button.active>.mega-sym{color:#ffd93d;filter:drop-shadow(0 0 4px rgba(255,217,61,.8))}
#battle-dialog .battle-stage>.battle-mega-button:is(:hover:not(:disabled),:focus-visible){filter:brightness(1.22)}
#battle-dialog .battle-stage>.battle-mega-button.active{
 box-shadow:inset 0 0 0 2px #ffd93d,inset 0 0 16px rgba(185,140,255,.6);background-color:rgba(43,54,80,.96)
}
body.mobile-web #battle-dialog .battle-stage>.battle-mega-button{left:6px;bottom:6px;width:52px;height:52px}
body.mobile-web #battle-dialog .battle-stage>.battle-mega-button>.mega-sym,body.mobile-web #battle-dialog .battle-stage>.battle-mega-button>.mega-sym>svg{width:38px;height:38px}
/* the float-up word and the flash of the `mega` event (Client/app/mega_evolution.js) */
#battle-dialog .battle-float.mega>strong{color:#fff;text-shadow:0 0 6px #b98cff,0 0 14px #ffd93d}
#battle-dialog .fx.mega-ring{border-radius:50%;border:3px solid var(--fx);box-shadow:0 0 12px var(--fx);background:transparent;width:54px;height:54px;margin:-27px 0 0 -27px}
#battle-dialog .fx.mega-flash{background:radial-gradient(circle at 50% 55%,#fff 0,rgba(255,255,255,.85) 35%,rgba(185,140,255,.35) 70%,transparent 100%)}
