/* Radial electrical threads appear only after a server-confirmed POWER event. */
.elm-plasma-burst {
  --plasma-center:#fbfaff;--plasma-current:#8acfff;
  --plasma-edge:#a184eb;--plasma-tip:#ec8be0;
  position:fixed;z-index:10004;display:block;pointer-events:none;
  border-radius:50%;mix-blend-mode:screen;
  filter:drop-shadow(0 0 9px rgba(101,144,245,.38));
}
.elm-plasma-burst.is-stage-0 { --plasma-current:#a4d6ff;--plasma-edge:#92a5f9;--plasma-tip:#c4a9f5;filter:drop-shadow(0 0 6px rgba(106,157,232,.40)); }
.elm-plasma-burst.is-stage-2 { --plasma-current:#8de8ff;--plasma-edge:#499ae7;--plasma-tip:#ba87f4;filter:drop-shadow(0 0 12px rgba(68,170,239,.50)); }
.elm-plasma-burst.is-stage-3 { --plasma-current:#88eaff;--plasma-edge:#648bfa;--plasma-tip:#ef8fd7;filter:drop-shadow(0 0 16px rgba(94,144,239,.55)); }
.elm-plasma-burst.is-stage-4 { --plasma-center:#fffbea;--plasma-current:#a2fae0;--plasma-edge:#47d6c4;--plasma-tip:#f7cd83;filter:drop-shadow(0 0 19px rgba(100,227,186,.58)); }
.elm-plasma-burst svg { display:block;width:100%;height:100%;overflow:visible; }
.elm-plasma-dome { fill:rgba(30,36,78,.055);stroke:var(--plasma-current);stroke-width:1.15;stroke-dasharray:21 3 37 1.5 11 3 24 2;opacity:.57;filter:drop-shadow(0 0 6px var(--plasma-edge)); }
.elm-plasma-ray { fill:none;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 2.5px var(--plasma-edge));animation:elmPlasmaFlicker 390ms ease-in-out infinite alternate; }
.elm-plasma-fork { fill:none;stroke-width:.66;stroke-linejoin:round;stroke-linecap:round;opacity:.58;filter:drop-shadow(0 0 2px var(--plasma-current));animation:elmPlasmaFlicker 490ms ease-in-out infinite alternate-reverse; }
.elm-plasma-burst.is-stage-0 .elm-plasma-ray,.elm-plasma-burst.is-stage-1 .elm-plasma-ray { stroke-width:1.25; }
.elm-plasma-burst.is-stage-4 .elm-plasma-ray { stroke-width:1.52; }
.elm-plasma-tip { fill:var(--plasma-tip);opacity:.75;filter:drop-shadow(0 0 3px var(--plasma-tip));animation:elmPlasmaFlicker 350ms ease-in-out infinite alternate-reverse; }
.elm-plasma-nucleus { opacity:.95;filter:drop-shadow(0 0 7px var(--plasma-current)); }
@keyframes elmPlasmaFlicker { from{opacity:.42}to{opacity:1} }
.elm-power-wave,.elm-power-arrival{position:fixed;z-index:10002;box-sizing:border-box;border-radius:50%;pointer-events:none}
.elm-power-wave{width:44px;height:44px;border:1px solid rgba(131,195,249,.40);background:radial-gradient(circle,rgba(62,153,237,.13),transparent 65%);box-shadow:0 0 14px rgba(89,151,226,.21)}
.elm-power-wave.is-stage-0{width:30px;height:30px;border-color:rgba(141,182,252,.36);box-shadow:0 0 9px rgba(106,157,232,.17)}
.elm-power-wave.is-stage-2{width:60px;height:60px;border-color:rgba(135,222,252,.55)}
.elm-power-wave.is-stage-3{width:80px;height:80px;border-color:rgba(181,184,250,.59);box-shadow:0 0 16px rgba(118,121,231,.28)}
.elm-power-wave.is-stage-4{width:104px;height:104px;border-color:rgba(229,195,112,.68);box-shadow:0 0 20px rgba(212,168,67,.29),inset 0 0 12px rgba(76,208,190,.19)}
.elm-power-seed{position:fixed;z-index:10003;width:13px;height:13px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,#fff 0 8%,#99e3ff 27%,rgba(72,149,248,.35) 54%,transparent 78%);box-shadow:0 0 12px rgba(93,181,245,.65),0 0 27px rgba(95,138,242,.26)}
.elm-power-seed.is-stage-0{width:8px;height:8px;box-shadow:0 0 6px rgba(93,181,245,.43)}
.elm-power-seed.is-stage-1{width:10px;height:10px;box-shadow:0 0 8px rgba(93,181,245,.50)}
.elm-power-seed.is-stage-3{width:18px;height:18px;box-shadow:0 0 16px rgba(100,166,255,.75),0 0 31px rgba(174,115,241,.31)}
.elm-power-seed.is-stage-4{width:23px;height:23px;background:radial-gradient(circle,#fff 0 7%,#eaffcf 26%,rgba(76,223,193,.42) 56%,transparent 80%);box-shadow:0 0 18px rgba(92,223,201,.82),0 0 36px rgba(219,183,105,.35)}
.elm-power-arrival{width:27px;height:27px;border:1px solid rgba(125,219,249,.65);background:radial-gradient(circle,rgba(185,234,255,.36),rgba(74,171,244,.12) 42%,transparent 74%);box-shadow:0 0 14px rgba(91,205,231,.38)}
.elm-power-arrival.is-stage-0{width:18px;height:18px;border-color:rgba(141,182,252,.56);box-shadow:0 0 9px rgba(106,157,232,.29)}
.elm-power-arrival.is-stage-2{width:38px;height:38px}
.elm-power-arrival.is-stage-3{width:48px;height:48px;border-color:rgba(190,197,250,.87);box-shadow:0 0 19px rgba(120,155,247,.45)}
.elm-power-arrival.is-stage-4{width:58px;height:58px;border-color:rgba(229,195,112,.94);background:radial-gradient(circle,rgba(240,246,204,.38),rgba(64,206,170,.16) 42%,transparent 74%);box-shadow:0 0 24px rgba(212,168,67,.36),inset 0 0 14px rgba(76,208,190,.27)}
/* APEX: a confined charge, one discharge and a directed wallet transfer. */
.elm-apex-charge{position:fixed;z-index:10004;pointer-events:none;transform:translate(-50%,-50%);border-radius:50%;--charge:0;--turn:0deg;opacity:calc(.22 + var(--charge)*.78)}
.elm-apex-charge i{position:absolute;display:block;inset:0;border-radius:50%;box-sizing:border-box}
.elm-apex-halo{background:radial-gradient(circle,transparent 38%,rgba(96,234,208,.12) 52%,rgba(220,190,112,.09) 62%,transparent 72%);transform:scale(calc(1.15 - var(--charge)*.16));filter:drop-shadow(0 0 8px rgba(103,227,198,.45))}
.elm-apex-orbit{border:1px solid rgba(213,198,145,.36);border-top:2px solid #fff0bc;border-right:2px solid #76ead4;box-shadow:0 0 12px rgba(111,233,204,.27),inset 0 0 8px rgba(215,187,103,.13);transform:rotate(var(--turn)) scale(calc(1.1 - var(--charge)*.14))}
.elm-apex-orbit::after{content:'';position:absolute;top:12%;right:12%;width:5px;height:5px;border-radius:50%;background:#fff3c5;box-shadow:0 0 9px #76ead4}
.elm-apex-orbit.is-inner{inset:10px;border-style:dashed;border-width:1px;border-color:rgba(139,240,213,.64);transform:rotate(calc(var(--turn)*-1)) scale(calc(.95 + var(--charge)*.05));box-shadow:none}
.elm-apex-lens{inset:20%!important;background:radial-gradient(circle,rgba(255,245,198,.32),rgba(116,235,207,.12) 24%,transparent 68%);opacity:calc(var(--charge)*var(--charge));transform:scale(calc(.45 + var(--charge)*.65))}
.elm-apex-shockwave,.elm-apex-flare{position:fixed;z-index:10004;pointer-events:none;border-radius:50%;width:112px;height:112px;box-sizing:border-box}
.elm-apex-shockwave{border:1px solid rgba(248,220,154,.9);box-shadow:0 0 22px rgba(128,236,204,.4),inset 0 0 14px rgba(248,220,154,.22);background:radial-gradient(circle,transparent 48%,rgba(121,231,204,.14) 70%,transparent 73%)}
.elm-apex-flare{background:radial-gradient(ellipse,#fff8d9 0%,rgba(178,255,226,.9) 8%,rgba(122,226,202,.2) 31%,transparent 66%);filter:drop-shadow(0 0 14px rgba(122,226,202,.5))}
.elm-apex-projectile{width:26px;height:26px}.elm-apex-projectile.is-trail-1{width:19px;height:19px}.elm-apex-projectile.is-trail-2{width:13px;height:13px}
.elm-apex-arrival{width:64px;height:64px}
/* Reduced-motion gating happens before any animated nodes are created. */

/* v77.68: fixed-position feedback above both responsive wallet surfaces. */
.elm-plasma-burst,.elm-apex-charge,.elm-apex-shockwave,.elm-power-wave,.elm-power-seed,.elm-power-arrival,.elm-core-receipt{z-index:2147483000}
.elm-power-seed,.elm-power-arrival{z-index:2147483001}
.elm-core-receipt{transform-origin:center;z-index:2147483002}
.elm-rank-receipt{border-color:#b6dfff;color:#e7f6ff;background:#081523}
.elm-rank-up{filter:drop-shadow(0 0 9px #91d9ff)!important}
@media(max-width:768px){
 .aka-wallet-rank-drawer .aka-power-core-caption small{display:none}
 .aka-wallet-rank-drawer .aka-power-core-caption b{font-size:12px;line-height:1;max-width:32px;margin:0;letter-spacing:-.05em;color:#e4f6ff}
 .aka-wallet-rank-drawer .aka-power-core.is-dev-surge .aka-power-core-caption b{font-size:21px;letter-spacing:0}
 .aka-wallet-rank-drawer .aka-power-core-diamond,.aka-wallet-rank-drawer .aka-power-core-node{opacity:0}
 .elm-core-receipt{font-size:10px;max-width:175px}
 .elm-core-receipt::after{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.elm-rank-up{filter:none!important}}

/* v77.69 mobile-only polish. Desktop selectors and artwork stay unchanged. */
@media(max-width:768px){
 .aka-wallet-rank-drawer .aka-power-core.is-dev-surge .aka-power-core-caption{transform:none;gap:0}
 .aka-wallet-rank-drawer .aka-power-core.is-dev-surge .aka-power-core-caption b{display:grid;place-items:center;width:26px;max-width:26px;height:15px;margin:0;overflow:visible;color:#e4f6ff}
 .elm-core-infinity{display:block;width:26px;height:13px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
 #navbar .aka-mobile-nav-actions .aka-wallet-power-orbit.is-power-receiving .aka-wallet-power-orbit-surge{opacity:0!important}
 html.elm-mobile-utility-open [inert],html.elm-mobile-utility-open [inert] *,html.elm-mobile-utility-open [inert] *::before,html.elm-mobile-utility-open [inert] *::after{animation-play-state:paused!important}
 .elm-apex-charge.is-mobile-effect{will-change:opacity}
 .elm-apex-charge.is-mobile-effect .elm-apex-orbit,.elm-apex-charge.is-mobile-effect .elm-apex-lens,.elm-apex-charge.is-mobile-effect .elm-apex-halo{will-change:transform,opacity}
}

/* Confirmed POWER uses the blue fill. The legacy pale surge made a detached arc. */
#navbar .aka-topbar-actions .aka-wallet-power-orbit.is-power-receiving .aka-wallet-power-orbit-surge,
#navbar .aka-mobile-nav-actions .aka-wallet-power-orbit.is-power-receiving .aka-wallet-power-orbit-surge,
.aka-mobile-wallet-power-frame.is-power-receiving .aka-mobile-wallet-power-frame-surge{opacity:0!important;animation:none!important}

/* Rank ascension follows the arrival, with a clear preview label for ERO DEV. */
.elm-rank-cinema{position:fixed;inset:0;z-index:2147483003;pointer-events:none;display:grid;place-items:center;isolation:isolate;background:radial-gradient(ellipse 260px 170px at 50% 50%,rgba(12,51,79,.38),rgba(2,8,18,.28) 74%,transparent 100%);animation:elmRankScene 3.9s ease-out both}
.elm-rank-cinema::before,.elm-rank-cinema::after{content:'';position:absolute;left:50%;top:50%;width:min(370px,84vw);height:1px;transform:translate(-50%,-50%);background:linear-gradient(90deg,transparent,rgba(122,224,255,.7),transparent);animation:elmRankLine 3.9s ease-out both}
.elm-rank-cinema::after{transform:translate(-50%,-50%) rotate(90deg);opacity:.36}
.elm-rank-cinema-seal{position:absolute;left:50%;top:50%;width:min(295px,68vw);aspect-ratio:1;border:1px solid rgba(150,222,245,.3);border-radius:50%;box-shadow:0 0 0 12px rgba(72,173,232,.025),inset 0 0 25px rgba(68,179,225,.09),0 0 50px rgba(75,184,242,.12);animation:elmRankSeal 3.9s cubic-bezier(.16,.76,.25,1) both}
.elm-rank-cinema-seal::before{content:'';position:absolute;inset:12px;border-radius:50%;border:1px solid rgba(204,177,108,.36);border-left-color:transparent;border-right-color:transparent;transform:rotate(28deg)}
.elm-rank-cinema-copy{position:relative;display:grid;justify-items:center;gap:10px;min-width:min(280px,80vw);text-align:center;text-shadow:0 2px 14px rgba(1,10,20,.85);animation:elmRankCopy 3.9s ease-out both}
.elm-rank-cinema-copy span{font:700 10px/1.35 'Space Grotesk',sans-serif;letter-spacing:.23em;color:#b9def0}
.elm-rank-cinema-copy span:last-child{color:#e8c680;letter-spacing:.16em}
.elm-rank-cinema-copy strong{font:700 clamp(66px,13vw,100px)/.9 'Space Grotesk',sans-serif;letter-spacing:-.07em;color:#edf9ff;text-shadow:0 0 16px rgba(93,217,255,.65),0 0 38px rgba(71,168,232,.38)}
@keyframes elmRankScene{0%,100%{opacity:0}10%,77%{opacity:1}90%{opacity:.6}}
@keyframes elmRankLine{0%,7%{width:0;opacity:0}20%,68%{width:min(370px,84vw);opacity:1}94%,100%{opacity:0}}
@keyframes elmRankSeal{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(-36deg)}22%{opacity:1;transform:translate(-50%,-50%) scale(1.08) rotate(8deg)}38%,72%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.16) rotate(14deg)}}
@keyframes elmRankCopy{0%,11%{opacity:0;transform:translateY(14px) scale(.9)}28%,76%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-9px) scale(1.05)}}
@media(max-width:768px){.elm-rank-cinema{background:radial-gradient(ellipse 160px 150px at 50% 50%,rgba(12,51,79,.39),rgba(2,8,18,.18) 76%,transparent)}.elm-rank-cinema-seal{width:min(230px,62vw)}.elm-rank-cinema-copy{gap:8px}.elm-rank-cinema-copy span{font-size:8px;letter-spacing:.15em}.elm-rank-cinema-copy strong{font-size:66px}}
@media(prefers-reduced-motion:reduce){.elm-rank-cinema,.elm-rank-cinema::before,.elm-rank-cinema::after,.elm-rank-cinema-seal,.elm-rank-cinema-copy{animation:none!important}.elm-rank-cinema{background:rgba(2,8,18,.75)}.elm-rank-cinema-seal{transform:translate(-50%,-50%)}}
