/* IRONWAKE menu "corruption" (part 3, Jesse 11-15: RED SEAMS is the core from the first win to the end, the current enemy
   only tints it at k / 3, and at the end the seams break open and DARK MATTER comes through; k runs 0..2). Every rule needs an .mfx*
   element (or the #mfxChip test-door chip), and menu-fx.js only adds those when the save (or ?fx) calls for an effect: a
   clean save adds nothing. Menus only: layers live inside #home .intro and #overlay .panel, never #flight. No layout: every
   element is absolute, pointer-events:none, behind the copy (z-index:-1 inside the host's isolation) except the 150 ms tear.
   Independent of the panel's own border art: no rule touches the host or its pseudo-elements.
   Strength: menu-fx.js sets on each layer --k (0..1.3) and its dials: --ko layer opacity, --r reach, --tm time multiplier
   (bigger = rarer), --ka line alpha, --hot brightness past k 1, data-lv 1..3 = how many pieces show. A residue layer (the
   enemy before) is the same effect at k / 3. */
.mfx,.mfx-top{position:absolute;inset:-1px;border-radius:18px;pointer-events:none;z-index:-1}
.mfx{opacity:var(--ko,1);filter:brightness(var(--hot,1))}
.mfx-top{z-index:6;overflow:hidden}
.mfx i,.mfx-top i{position:absolute;display:block;pointer-events:none}
:root{--mfx-red:#ff3b3b;--mfx-hot:#ffd3c4;--mfx-glow:#ff1f2e}

/* RED SEAMS (rock fleet): cracks of red light fill corner seams like magma, grow, fade; from k 1.2 two or three corners at
   once, each up to about a quarter of the edge; a crack never takes a corner another one holds twice.
   Tune note: peak x0.7 at k 1. */
.mfx-seams .mfx-crack{width:calc(150px*var(--r,1));height:calc(110px*var(--r,1));top:6px;left:6px;transform-origin:50% 50%;opacity:.62}
.mfx-seams .mfx-crack[data-c=tr]{left:auto;right:6px;scale:-1 1}
.mfx-seams .mfx-crack[data-c=br]{left:auto;top:auto;right:6px;bottom:6px;scale:-1 -1}
.mfx-seams .mfx-crack[data-c=bl]{top:auto;bottom:6px;scale:1 -1}
.mfx-seams .mfx-crack i{--g:0 0 2px .5px var(--sg1,#ff3a3ad0),0 0 7px 1px var(--sg2,#ff1f2e70);box-shadow:var(--g);animation-duration:calc(12s*var(--tm,1))!important;animation-delay:calc(var(--cd,0s) + var(--kd,0s))!important}
.mfx-seams .mfx-arc{left:0;top:0;width:13px;height:13px;border-top-left-radius:12px;border:solid var(--mfx-red);border-width:1.5px 0 0 1.5px;box-shadow:-1px -1px 6px -1px var(--sg3,#ff1f2e99)!important;animation:mfx-arc 12s ease-in-out infinite}
.mfx-seams .mfx-h{left:12px;top:0;width:calc(118px*var(--r,1));height:1.5px;background:linear-gradient(90deg,var(--mfx-hot) 0,var(--mfx-red) 18%,#ff3b3bb0 70%,transparent);transform-origin:0 50%;animation:mfx-run 12s cubic-bezier(.3,.1,.3,1) infinite}
.mfx-seams .mfx-v{left:0;top:12px;width:1.5px;height:calc(84px*var(--r,1));background:linear-gradient(180deg,var(--mfx-hot) 0,var(--mfx-red) 22%,#ff3b3bb0 70%,transparent);transform-origin:50% 0;animation:mfx-runv 12s cubic-bezier(.3,.1,.3,1) infinite}
.mfx-seams .mfx-k{opacity:0;height:1px;background:linear-gradient(90deg,var(--sk,#ff5a4ae0),transparent);transform-origin:0 50%;animation:mfx-twig 12s ease-out infinite}
.mfx-seams .mfx-k1{left:calc(52px*var(--r,1));top:0;width:15px;rotate:28deg}
.mfx-seams .mfx-k2{left:0;top:calc(46px*var(--r,1));width:12px;rotate:62deg;--kd:.25s}
.mfx-seams .mfx-k3{left:calc(86px*var(--r,1));top:0;width:9px;rotate:-24deg;--kd:.5s}
.mfx-seams .mfx-k3b{left:calc(93px*var(--r,1));top:-4px;width:7px;rotate:40deg;--kd:.6s}
.mfx-seams[data-lv="1"] .mfx-k,.mfx-seams[data-lv="2"] :is(.mfx-k3,.mfx-k3b){display:none!important}
/* Part 3 growth of the core (menu-fx.js seamDials): hair-thin below k 0.4; secondary corners smaller and dimmer than the
   lead crack (the lead crack at k 1 is the old ?fx=1 crack exactly). */
.mfx-seams[data-thin] .mfx-h{height:1px}.mfx-seams[data-thin] .mfx-v{width:1px}.mfx-seams[data-thin] .mfx-arc{border-width:1px 0 0 1px}
.mfx-seams .mfx-crack.mfx-c2{opacity:.5}
/* k 1.1+: the cracks branch INTO the card behind the copy (hairlines with a glow); the points where they meet pulse. */
.mfx-seams .mfx-net{inset:1px;border-radius:17px;overflow:hidden}
.mfx-seams .mfx-netsvg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.mfx-seams .mfx-netsvg path{vector-effect:non-scaling-stroke}
.mfx-seams .mfx-nm{stroke:var(--nc,#ff4a3a);stroke-width:1px;opacity:var(--na,.5);filter:drop-shadow(0 0 1.5px var(--ng,#ff2a2a)) drop-shadow(0 0 4px var(--ng2,#ff1f2e88));animation:mfx-netb 7s ease-in-out infinite}
.mfx-seams .mfx-nf{stroke:var(--nc,#ff4a3a);stroke-width:1px;opacity:calc(var(--na,.5)*.2)}
.mfx-seams .mfx-hid{display:none!important}
.mfx-seams .mfx-nm .mfx-nb{stroke-opacity:.7}
.mfx-seams .mfx-node{width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:50%;background:radial-gradient(closest-side,var(--mfx-hot),var(--nc,#ff4a3a) 60%,transparent);box-shadow:0 0 6px 1px var(--ng2,#ff1f2e88);opacity:var(--na,.5);animation:mfx-node 3.6s ease-in-out infinite var(--o,0s)}
.mfx-seams .mfx-node2{animation-duration:4.6s}
@keyframes mfx-netb{0%,100%{opacity:calc(var(--na,.5)*.7)}50%{opacity:var(--na,.5)}}
@keyframes mfx-node{0%,100%{opacity:calc(var(--na,.5)*.45);transform:scale(.7)}50%{opacity:calc(var(--na,.5)*1.7);transform:scale(1.3)}}
/* k 1.15+: the corner brackets look fractured (the arc split on its diagonal, one half stepped out of line). */
.mfx-seams .mfx-brk{left:6px;top:6px;width:14px;height:14px;opacity:var(--brk,0)}
.mfx-seams .mfx-brk[data-c=tr]{left:auto;right:6px;scale:-1 1}
.mfx-seams .mfx-brk[data-c=br]{left:auto;top:auto;right:6px;bottom:6px;scale:-1 -1}
.mfx-seams .mfx-brk[data-c=bl]{top:auto;bottom:6px;scale:1 -1}
.mfx-seams .mfx-brk i{inset:0;border:solid var(--mfx-red);border-width:1.5px 0 0 1.5px;border-top-left-radius:12px;box-shadow:-1px -1px 5px -1px var(--sg3,#ff1f2e99)}
.mfx-seams .mfx-brk .mfx-ba{clip-path:polygon(0 0,0 100%,100% 100%)}
.mfx-seams .mfx-brk .mfx-bb{clip-path:polygon(0 0,100% 0,100% 100%);translate:2.5px 1.5px;border-color:var(--mfx-hot)}
/* k 1.45-1.65: the tips of the longest cracks turn violet, a few dark motes leak out. The end is starting to show. */
.mfx-seams .mfx-nt{stroke:#c39bff;stroke-width:1.3px;opacity:calc(var(--vt,0)*.95);filter:drop-shadow(0 0 2px #a070ff) drop-shadow(0 0 6px #7a4dffaa)}
.mfx-seams .mfx-dm{width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:50%;background:#14051f;box-shadow:0 0 0 1px #7a4dc0aa,0 0 9px 3px #4a1f8aaa;opacity:0;animation:mfx-dm 14s ease-in-out infinite var(--o,0s)}
@keyframes mfx-dm{0%{opacity:0;transform:translate(0,0)}20%{opacity:var(--vt,1)}70%{opacity:calc(var(--vt,1)*.8)}100%{opacity:0;transform:translate(var(--dx,10px),var(--dy,10px))}}
/* The Torrak: the seams run hot (orange-white cores, like magma). */
.mfx-seams.mfx-hotseam{--mfx-red:#ff7a2a;--mfx-hot:#fff3cf;--sg1:#ff9a3ae8;--sg2:#ff5a1a88;--sg3:#ff6a1aaa;--sk:#ffb070e8;--nc:#ff9040;--ng:#ff6a1a;--ng2:#ff4a1a99}
/* The end (k 1.7+): the seams are open. Fracture lines turn violet-white; the red is now the hot edge of each one. */
.mfx-seams.mfx-dark{--mfx-red:#d2b4ff;--mfx-hot:#fdfaff;--sg1:#ff2a3ae8;--sg2:#ff1f2eaa;--sg3:#ff1f2ec8;--sk:#e6d2ffe8;--nc:#efe2ff;--ng:#ff2a3a;--ng2:#ff1f2ecc}
/* DARK MATTER: violet-black blooms out of every meeting point, a slow 9 s tide, motes in a slow swirl; at 1.85+ the frame
   breaks open on the right (the rift) and the void spills out behind it; at 2.0 motes cross the card. */
.mfx-void .mfx-vin{inset:1px;border-radius:17px;overflow:hidden}
.mfx-void .mfx-vb{width:var(--sz,80px);height:var(--sz,80px);margin:calc(var(--sz,80px)/-2) 0 0 calc(var(--sz,80px)/-2);border-radius:50%;
 background:radial-gradient(closest-side at 44% 46%,#000000f6 0,#020007e8 38%,#05010e90 62%,transparent 84%),radial-gradient(closest-side at 60% 58%,#010004e0 0,#04010cb0 46%,transparent 80%),radial-gradient(closest-side,#00000080 40%,#12052c90 58%,#4a2a8a70 68%,#7a4dc05a 74%,#3a1a6a26 84%,transparent 94%);border-radius:46% 54% 50% 50% / 52% 46% 54% 48%;animation:mfx-tide 9s ease-in-out infinite var(--o,0s)}
.mfx-void .mfx-vbr{background:radial-gradient(closest-side at 54% 50%,#000000fc 0,#010004f0 42%,#06011a90 66%,transparent 86%),radial-gradient(closest-side,#00000080 40%,#12052c90 58%,#5a32a066 72%,#2a104e1c 86%,transparent)}
@keyframes mfx-tide{0%,100%{opacity:.72;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}
.mfx-void .mfx-breath{inset:0;border-radius:inherit;box-shadow:inset 0 0 calc(16px + 34px*var(--vs,0)) calc(4px*var(--vs,0)) #010004b0,inset 0 0 0 1px #6a3fb030;animation:mfx-breath 9s ease-in-out infinite}
@keyframes mfx-breath{0%,100%{opacity:.3}50%{opacity:1}}
.mfx-void .mfx-spill{right:calc(-40px - 140px*var(--rf,0));top:14%;width:calc(90px + 240px*var(--rf,0));height:72%;border-radius:50%;opacity:calc(.3 + .7*var(--rf,0));
 background:radial-gradient(closest-side,#000000f0 0,#020006e0 40%,#0a0220c0 58%,#4a2a8a55 70%,#2a104e1c 84%,transparent);animation:mfx-swell 9s ease-in-out infinite}
.mfx-void .mfx-spill2{right:auto;left:calc(-30px - 70px*var(--rf,0));top:52%;width:calc(60px + 120px*var(--rf,0));height:40%;animation-delay:-3s}
@keyframes mfx-swell{0%,100%{transform:scale(.88)}50%{transform:scale(1.06)}}
.mfx-void .mfx-orb{width:0;height:0;animation:mfx-swirl var(--d,40s) linear infinite var(--o,0s)}
.mfx-void .mfx-orb.mfx-ccw{animation-direction:reverse}
.mfx-void .mfx-orb i{left:var(--rad,20px);top:-1px;width:2px;height:2px;border-radius:50%;background:#b9a0e8;box-shadow:0 0 4px 1px #7a4dc099;opacity:.6}
@keyframes mfx-swirl{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.mfx-void .mfx-cross{left:0;width:100%;height:6px;margin-top:-3px;background:radial-gradient(2px 2px at 3px 50%,#d8c8f8,#8a5ce088 60%,transparent);opacity:.7;animation:mfx-cross var(--d,26s) linear infinite var(--o,0s)}
@keyframes mfx-cross{0%{transform:translateX(100%);opacity:0}8%,90%{opacity:.6}100%{transform:translateX(-1%);opacity:0}}
.mfx-top.mfx-rift{overflow:visible}
.mfx-rift .mfx-rg{right:calc(-6px - 10px*var(--rf,0));top:22%;height:50%;width:calc(4px + 22px*var(--rf,0));opacity:var(--rf,0);filter:drop-shadow(0 0 1.5px #ff3a3a) drop-shadow(0 0 3px #ff1f2e) drop-shadow(0 0 12px #8a4dffcc);animation:mfx-rift 9s ease-in-out infinite}
.mfx-rift .mfx-gap{inset:0;background:radial-gradient(60% 50% at 50% 50%,#2a0f52,#05000b 70%);clip-path:polygon(50% 0,62% 7%,47% 15%,72% 26%,52% 35%,80% 47%,57% 57%,74% 69%,50% 79%,64% 90%,50% 100%,37% 91%,46% 80%,24% 68%,42% 58%,18% 46%,45% 36%,28% 26%,51% 16%,36% 7%)}
.mfx-rift.mfx-rin .mfx-rg{right:1px;width:calc(3px + 12px*var(--rf,0))}
@media (max-width:600px){.mfx-void .mfx-spill,.mfx-rift .mfx-rgl{display:none}.mfx-top.mfx-rift{overflow:hidden}.mfx-rift .mfx-rg{right:1px;width:calc(3px + 12px*var(--rf,0))}}
.mfx-rift .mfx-rgl{right:auto;left:calc(-5px - 6px*var(--rf,0));top:58%;height:24%;width:calc(3px + 12px*var(--rf,0));animation-delay:-3s}
.mfx-rift.mfx-rin .mfx-rgl{display:none}
@keyframes mfx-rift{0%,100%{scale:.94 .97}50%{scale:1.12 1.03}}
.mfx-rift .mfx-rm{right:-4px;top:40%;width:3px;height:3px;border-radius:50%;background:#e4d4ff;box-shadow:0 0 5px 1px #9b6bffcc;opacity:0;animation:mfx-rm 9s ease-out infinite}
.mfx-rift .mfx-rm2{top:58%;animation-delay:-4.1s}
@keyframes mfx-rm{0%{opacity:0;transform:translate(0,0)}25%{opacity:calc(.9*var(--rf,0))}100%{opacity:0;transform:translate(46px,-14px)}}
@keyframes mfx-arc{0%,4%{opacity:0}12%{opacity:1}62%{opacity:1}88%,100%{opacity:0}}
@keyframes mfx-run{0%,6%{opacity:0;transform:scaleX(.02)}14%{opacity:1}48%{transform:scaleX(1)}62%{opacity:1;transform:scaleX(1)}88%,100%{opacity:0;transform:scaleX(1)}}
@keyframes mfx-runv{0%,8%{opacity:0;transform:scaleY(.02)}16%{opacity:1}50%{transform:scaleY(1)}62%{opacity:1;transform:scaleY(1)}88%,100%{opacity:0;transform:scaleY(1)}}
@keyframes mfx-twig{0%,30%{opacity:0;transform:scaleX(0)}46%{opacity:1}62%{opacity:.9}84%,100%{opacity:0;transform:scaleX(1)}}

/* EMBER ROT (Cinder Directorate): stretches of the border rust through and glow from inside; more of them, and longer, as k
   rises (built by menu-fx.js in a fixed order); each bleeds a warm glow 12-24 px inward BEHIND the copy; a hot pit breathes
   in each; the rail trim heats (a halo behind it, the rail art itself is untouched) and is plainly hot from k 0.8; embers lift
   from the stretches, more often as k rises. Tune note: 20 % hotter at k 1 than the ?fx=2 preview. */
.mfx-ember .mfx-heat{inset:0;border-radius:inherit;opacity:.45;animation:mfx-ember 7s ease-in-out infinite;
 background:radial-gradient(calc(130px*var(--r,1)) 34px at 82% 0,#ff5a1f3a,transparent 70%),radial-gradient(34px calc(130px*var(--r,1)) at 0 72%,#ff5a1f34,transparent 70%)}
.mfx-ember .mfx-rail{left:11px;top:17px;bottom:17px;width:var(--helm-rail,6px);border-radius:8px;opacity:calc(.12 + .65*var(--rail,0));animation:mfx-rail 7s ease-in-out infinite;
 background:#ff7a2a;box-shadow:0 0 4px 1px #ffb060,0 0 12px 3px #ff6a2acc,0 0 26px 8px #ff4a1a66}
.mfx-st{--fl2:var(--fl,.4);animation:mfx-st var(--d,7s) ease-in-out infinite var(--o,0s)}
.mfx-st-t,.mfx-st-b{left:var(--p);width:var(--len);height:0;translate:-50% 0}
.mfx-st-t{top:0}.mfx-st-b{bottom:0}
.mfx-st-l,.mfx-st-r{top:var(--p);height:var(--len);width:0;translate:0 -50%}
.mfx-st-l{left:0}.mfx-st-r{right:0}
.mfx-st .mfx-rs{filter:drop-shadow(0 0 2px #ff6a2a) drop-shadow(0 0 5px #ff4a1a99)}
.mfx-st-t .mfx-rs,.mfx-st-b .mfx-rs{left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#7a2a12aa 10%,#d8561e 28%,#ff8a3a 42%,#ffd59a 50%,#ff8a3a 58%,#d8561e 72%,#7a2a12aa 90%,transparent)}
.mfx-st-t .mfx-rs{top:0}.mfx-st-b .mfx-rs{bottom:0}
.mfx-st-l .mfx-rs,.mfx-st-r .mfx-rs{top:0;bottom:0;width:2px;background:linear-gradient(180deg,transparent,#7a2a12aa 10%,#d8561e 28%,#ff8a3a 42%,#ffd59a 50%,#ff8a3a 58%,#d8561e 72%,#7a2a12aa 90%,transparent)}
.mfx-st-l .mfx-rs{left:0}.mfx-st-r .mfx-rs{right:0}
.mfx-st .mfx-gl{opacity:.85}
.mfx-st-t .mfx-gl{left:-15%;width:130%;top:2px;height:var(--dep,12px);background:radial-gradient(50% 100% at 50% 0,#ff6a2a60,#ff5a1f24 55%,transparent)}
.mfx-st-b .mfx-gl{left:-15%;width:130%;bottom:2px;height:var(--dep,12px);background:radial-gradient(50% 100% at 50% 100%,#ff6a2a60,#ff5a1f24 55%,transparent)}
.mfx-st-l .mfx-gl{top:-15%;height:130%;left:2px;width:var(--dep,12px);background:radial-gradient(100% 50% at 0 50%,#ff6a2a60,#ff5a1f24 55%,transparent)}
.mfx-st-r .mfx-gl{top:-15%;height:130%;right:2px;width:var(--dep,12px);background:radial-gradient(100% 50% at 100% 50%,#ff6a2a60,#ff5a1f24 55%,transparent)}
.mfx-st .mfx-pt{width:3px;height:3px;border-radius:1px;background:#ffeac4;box-shadow:0 0 3px 1px #ff7a2ae0,0 0 10px 2px #ff4a1a66}
.mfx-st-t .mfx-pt{left:50%;top:0;margin:-1px 0 0 -1.5px}.mfx-st-b .mfx-pt{left:50%;bottom:0;margin:0 0 -1px -1.5px}
.mfx-st-l .mfx-pt{top:50%;left:0;margin:-1.5px 0 0 -1px}.mfx-st-r .mfx-pt{top:50%;right:0;margin:-1.5px -1px 0 0}
.mfx-ember .mfx-fleck{width:2px;height:2px;background:#ffc88a;box-shadow:0 0 3px 1px #ff6a2ae0;opacity:0;animation:mfx-fleck calc(var(--d,11s)*var(--tm,1)) linear infinite var(--o,0s)}
.mfx-st-t .mfx-fleck{left:50%;top:2px}.mfx-st-l .mfx-fleck{left:3px;top:50%}.mfx-st-r .mfx-fleck{right:3px;top:50%}
@keyframes mfx-breathe{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes mfx-ember{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes mfx-st{0%,100%{opacity:var(--fl2,.4)}50%{opacity:1}}
@keyframes mfx-rail{0%,100%{filter:brightness(.8)}50%{filter:brightness(1.15)}}
@keyframes mfx-fleck{0%,38%{opacity:0;transform:translate(0,0)}42%{opacity:1}50%{opacity:.95;transform:translate(calc(var(--x)*.5),-16px)}60%{opacity:0;transform:translate(var(--x),-34px)}100%{opacity:0;transform:translate(var(--x),-34px)}}

/* VOID BLOOM (violet, the cause) and HIVE BLOOM (acid green #a8e04a family, motes read as spores): a stain seeps out from
   behind the top-right corner, spreads and pulls back. */
.mfx-bloom{--s0:#07020cf0;--s1:#0d0418d8;--s2:#170828a8;--s3:#24103c66;--s4:#2a124a26;--sb:#0e041aa0;--sb2:#2a124a40;--sc:#10051ca0;--sc2:#3a1a6a30;
 --rim0:#c9a2ff;--rim1:#8a55f0b0;--rim2:#5a2fb040;--mote:#c4a6ff;--mglow:#9b6bffaa;--i0:#22104088;--i1:#2a145238;--i2:#1a0a3200;--vein:#a77cff}
.mfx-hive{--s0:#040a02ec;--s1:#081606d4;--s2:#10260aa4;--s3:#2a4a1066;--s4:#4a6a1a22;--sb:#0a1a04a0;--sb2:#3a5a1440;--sc:#0c1e06a0;--sc2:#5a8a2030;
 --rim0:#e4ffae;--rim1:#a8e04ab8;--rim2:#6a9a2a44;--mote:#c8f070;--mglow:#a8e04acc;--i0:#0e2406a0;--i1:#16300a48;--i2:#0a180400;--vein:#a8e04a}
.mfx-bloom .mfx-stain{right:calc(-200px*var(--r,1));top:calc(-200px*var(--r,1));width:calc(400px*var(--r,1));height:calc(400px*var(--r,1));border-radius:50%;opacity:.95}
.mfx-bloom .mfx-b{inset:0;border-radius:50%;transform-origin:50% 50%}
.mfx-bloom .mfx-b1{background:radial-gradient(closest-side,var(--s0) 0,var(--s1) 24%,var(--s2) 42%,var(--s3) 58%,var(--s4) 74%,transparent 92%);animation:mfx-seep calc(19s*var(--tm,1)) ease-in-out infinite}
.mfx-bloom .mfx-b2{inset:8% 22% 30% 4%;background:radial-gradient(closest-side,var(--sb),var(--sb2) 60%,transparent);animation:mfx-seep calc(23s*var(--tm,1)) ease-in-out infinite -7s}
.mfx-bloom .mfx-b3{inset:26% 2% 4% 30%;background:radial-gradient(closest-side,var(--sc),var(--sc2) 64%,transparent);animation:mfx-seep calc(16s*var(--tm,1)) ease-in-out infinite -11s}
.mfx-bloom .mfx-rim{inset:0;border-radius:inherit;padding:1.5px;background:radial-gradient(calc(280px*var(--r,1)) circle at 100% 0,var(--rim0) 0,var(--rim1) 22%,var(--rim2) 50%,transparent 72%);
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);opacity:.75;animation:mfx-rim calc(19s*var(--tm,1)) ease-in-out infinite}
.mfx-bloom .mfx-mote{width:2px;height:2px;border-radius:50%;background:var(--mote);box-shadow:0 0 4px var(--mglow);opacity:.5;animation:mfx-mote calc(var(--d,13s)*var(--tm,1)) ease-in-out infinite var(--o,0s)}
.mfx-bloom .mfx-m1{right:calc(46px*var(--r,1));top:38px;--d:13s}
.mfx-bloom .mfx-m2{right:calc(92px*var(--r,1));top:20px;--d:17s;--o:-5s}
.mfx-bloom .mfx-m3{right:22px;top:calc(84px*var(--r,1));--d:15s;--o:-9s}
.mfx-bloom .mfx-m4{right:calc(130px*var(--r,1));top:58px;--d:21s;--o:-3s}
.mfx-bloom .mfx-m5{right:calc(64px*var(--r,1));top:calc(110px*var(--r,1));--d:19s;--o:-13s}
.mfx-bloom .mfx-m6{right:calc(160px*var(--r,1));top:26px;--d:18s;--o:-8s}
.mfx-bloom .mfx-m7{right:calc(30px*var(--r,1));top:calc(140px*var(--r,1));--d:22s;--o:-15s}
.mfx-bloom[data-lv="1"] :is(.mfx-m3,.mfx-m4,.mfx-m5,.mfx-m6,.mfx-m7),.mfx-bloom[data-lv="2"] :is(.mfx-m6,.mfx-m7){display:none!important}
.mfx-hive .mfx-mote{width:3px;height:3px;box-shadow:0 0 5px 1px var(--mglow);animation-name:mfx-spore}
.mfx-bloom .mfx-inner{inset:1px;border-radius:17px;overflow:hidden}
.mfx-bloom .mfx-in-c{right:0;top:0;width:calc(62%*var(--g,0));height:calc(52%*var(--g,0));background:radial-gradient(100% 100% at 100% 0,var(--i0) 0,var(--i1) 45%,var(--i2) 100%);animation:mfx-creep calc(19s*var(--tm,1)) ease-in-out infinite}
.mfx-bloom .mfx-in-t{left:0;right:0;top:0;height:calc(34px*var(--g,0));background:linear-gradient(var(--i1),var(--i2));-webkit-mask:linear-gradient(90deg,transparent 10%,#000 70%);mask:linear-gradient(90deg,transparent 10%,#000 70%)}
.mfx-bloom .mfx-in-r{top:0;bottom:0;right:0;width:calc(34px*var(--g,0));background:linear-gradient(270deg,var(--i1),var(--i2));-webkit-mask:linear-gradient(#000 10%,transparent 78%);mask:linear-gradient(#000 10%,transparent 78%)}
.mfx-bloom .mfx-veins{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:var(--vein);stroke-width:1px;stroke-linecap:round;opacity:calc(.2 + .1*var(--g,0));filter:drop-shadow(0 0 1.5px var(--vein))}
.mfx-bloom .mfx-veins path{vector-effect:non-scaling-stroke;stroke-linejoin:round}
.mfx-bloom .mfx-veins{animation:mfx-vein calc(13s*var(--tm,1)) ease-in-out infinite}
.mfx-bloom .mfx-veins path.mfx-vb{stroke-opacity:.7}
@keyframes mfx-creep{0%,100%{scale:.92}50%{scale:1.04}}
@keyframes mfx-vein{0%,100%{opacity:calc(.14 + .08*var(--g,0))}50%{opacity:calc(.24 + .12*var(--g,0))}}
@keyframes mfx-seep{0%,100%{transform:scale(.78) rotate(0deg)}50%{transform:scale(1.06) rotate(9deg)}}
@keyframes mfx-rim{0%,100%{opacity:.4}50%{opacity:.95}}
@keyframes mfx-mote{0%,100%{opacity:.15;transform:translate(0,0)}25%{opacity:.6}50%{opacity:.85;transform:translate(-14px,18px)}75%{opacity:.4;transform:translate(-4px,30px)}}
@keyframes mfx-spore{0%,100%{opacity:.1;transform:translate(0,14px) scale(.7)}30%{opacity:.7}50%{opacity:.9;transform:translate(-9px,-6px) scale(1)}80%{opacity:.35;transform:translate(-16px,-20px) scale(.85)}}

/* GHOST SIGNAL (pirates): normal, then a 150 ms tear crosses one band and one eyebrow letter becomes an unknown glyph. Its
   timing lives in menu-fx.js (about 60 s apart at k 0.15, 20 s at k 1). No opacity on .mfx-top (it would cut the backdrop). */
.mfx-signal .mfx-tear{left:1px;right:1px;height:calc(3px + 4px*var(--r,1));top:var(--y,40%);opacity:0;visibility:hidden}
.mfx-signal .mfx-tear:before,.mfx-signal .mfx-tear:after{content:"";position:absolute;left:0;right:0;height:1px;opacity:var(--ka,1)}
.mfx-signal .mfx-tear:before{top:0;background:linear-gradient(90deg,transparent,#ff3b4e 14%,#ff3b4e9c 60%,transparent 92%);translate:calc(7px*var(--r,1)) 0}
.mfx-signal .mfx-tear:after{bottom:0;background:linear-gradient(90deg,transparent 6%,#4ff3e0a8 30%,#4ff3e0 78%,transparent);translate:calc(-7px*var(--r,1)) 0}
.mfx-signal .mfx-tear i{inset:1px 0;opacity:var(--ka,1);background:repeating-linear-gradient(90deg,#d8fff514 0 2px,transparent 2px 7px,#ff4a5a14 7px 8px,transparent 8px 13px);-webkit-backdrop-filter:brightness(calc(1 + .22*var(--k,1))) hue-rotate(calc(-24deg*var(--k,1))) saturate(calc(1 + .5*var(--k,1)));backdrop-filter:brightness(calc(1 + .22*var(--k,1))) hue-rotate(calc(-24deg*var(--k,1))) saturate(calc(1 + .5*var(--k,1)))}
.mfx-signal .mfx-tear.on{visibility:visible;animation:mfx-tear .15s steps(3,end) 1 forwards}
.mfx-signal .mfx-after{left:1px;right:1px;top:calc(var(--y,40%) + 3px);height:1px;background:linear-gradient(90deg,transparent,#ff3b4e66 30%,#4ff3e055 70%,transparent);opacity:0}
.mfx-signal .mfx-after.on{animation:mfx-after 1.1s ease-out 1 forwards}
.mfx-signal .mfx-glyph{display:none!important;line-height:1;text-align:center;color:#ff8a8a;background:#07111c;text-shadow:-.7px 0 #ff3b4ecc,.7px 0 #4ff3e0aa;white-space:pre;opacity:var(--ka,1)}
.mfx-signal .mfx-glyph.on{display:block!important}
.mfx-signal .mfx-scar{display:none;left:1px;right:1px;top:38%;height:1px;background:linear-gradient(90deg,transparent 4%,#ff3b4e2e 24%,#4ff3e026 60%,transparent 92%)}
/* From k ~0.2 one permanent static seam on the right panel edge (1 px, low alpha), full by k 0.35. */
.mfx-signal .mfx-seam{right:7px;top:22%;width:1px;height:34%;opacity:calc(.6*var(--scar,0));background:linear-gradient(180deg,transparent,#ff3b4e88 18%,#4ff3e070 52%,#ff3b4e66 80%,transparent)}
.mfx-signal .mfx-seam:after{content:"";position:absolute;left:-3px;top:46%;width:4px;height:1px;background:#4ff3e070}
.mfx-still .mfx-signal .mfx-scar{display:block}
@keyframes mfx-tear{0%{opacity:1;transform:translateX(calc(-9px*var(--r,1)))}50%{opacity:1;transform:translateX(calc(6px*var(--r,1)))}100%{opacity:0;transform:translateX(0)}}
@keyframes mfx-after{0%{opacity:var(--ka,1)}100%{opacity:0}}

/* THE WATCHER (the Wardens): one dim red point travels the inner seam, pauses, drifts to the button you are on, waits. */
.mfx-watcher .mfx-eye{left:0;top:0;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;translate:var(--ex,40px) var(--ey,7px);scale:var(--r,1);
 background:radial-gradient(closest-side,#ffe2d8 0 7%,#ff4433 16%,#ff1f2e66 38%,#ff1f2e1c 66%,transparent);opacity:.62;transition:opacity .8s}
.mfx-watcher .mfx-eye:after{content:"";position:absolute;left:50%;top:50%;width:90px;height:90px;margin:-45px 0 0 -45px;border-radius:50%;background:radial-gradient(closest-side,#ff2a2a12,transparent)}
.mfx-watcher .mfx-eye.near{opacity:.95}
.mfx-watcher .mfx-eye.near:after{background:radial-gradient(closest-side,#ff2a2a22,transparent)}

/* ALL THEMES (?fx=all, display only: the end game with every theme at once). Composed, not stacked: each theme owns a
   place and a window of one shared 16 s clock (menu-fx.js ALL_P), so one thing peaks at a time.
   RED SEAMS + DARK MATTER: the card edges, the fracture junctions and the rift (tide peaks at 8 s; split at 8 s) ·
   HOT SEAMS: the corner seams run orange-white while the inner fractures stay violet-white · EMBER ROT: the low edge only
   (flares 3.5-7.5 s, a ripple along the rail) · HIVE BLOOM: the corners, top right and bottom left (grows 0-4 s) ·
   GHOST SIGNAL: the title and the labels (a scan scar under the eyebrow; 150 ms tears at 3.4 s and 10.4 s) ·
   THE WATCHER: the background behind the card (a slit eye in the dark, opens 10.5-15 s, turns to your button). */
.mfx-seams.mfx-all .mfx-crack i{animation-duration:16s!important}
.mfx-seams.mfx-dark.mfx-hotseam :is(.mfx-crack,.mfx-brk){--mfx-red:#ff7a2a;--mfx-hot:#fff3cf;--sg1:#ff9a3ae8;--sg2:#ff5a1a88;--sg3:#ff6a1aaa;--sk:#ffb070e8}
.mfx-void.mfx-all .mfx-vb{animation:mfx-A-tide 16s ease-in-out infinite var(--o,0s)}
.mfx-void.mfx-all .mfx-breath{animation:mfx-A-breath 16s ease-in-out infinite}
.mfx-void.mfx-all .mfx-spill{animation:mfx-A-swell 16s ease-in-out infinite}
.mfx-rift.mfx-all .mfx-rg{animation:mfx-A-rift 16s ease-in-out infinite}
.mfx-rift.mfx-all .mfx-rm{animation-duration:16s;animation-delay:-8.6s}.mfx-rift.mfx-all .mfx-rm2{animation-delay:-7.9s}
@keyframes mfx-A-tide{0%,34%,68%,100%{opacity:.7;transform:scale(.86)}50%{opacity:1;transform:scale(1.12)}}
@keyframes mfx-A-breath{0%,34%,68%,100%{opacity:.4}50%{opacity:1}}
@keyframes mfx-A-swell{0%,34%,68%,100%{transform:scale(.9)}50%{transform:scale(1.08)}}
@keyframes mfx-A-rift{0%,34%,68%,100%{scale:.95 .97}50%{scale:1.16 1.05}}
.mfx-ember.mfx-all .mfx-heat{opacity:.5;background:radial-gradient(60% 26px at 50% 100%,#ff5a1f55,transparent 80%),linear-gradient(0deg,#ff5a1f22,transparent 20px);animation:mfx-A-heat 16s ease-in-out infinite}
.mfx-ember.mfx-all .mfx-st{animation-name:mfx-A-st}
.mfx-ember.mfx-all .mfx-st-b .mfx-fleck{left:50%;bottom:3px}
@keyframes mfx-A-heat{0%,20%,50%,100%{opacity:.5}34%{opacity:1}}
@keyframes mfx-A-st{0%,20%,50%,100%{opacity:var(--fl2,.4)}34%{opacity:1}}
.mfx-bloom.mfx-all :is(.mfx-b1,.mfx-b2,.mfx-b3){animation:mfx-A-seep 16s ease-in-out infinite}
.mfx-bloom.mfx-all .mfx-b2{animation-delay:.3s}.mfx-bloom.mfx-all .mfx-b3{animation-delay:.6s}
.mfx-bloom.mfx-all .mfx-rim{animation:mfx-A-rim 16s ease-in-out infinite;padding:2px;background:radial-gradient(calc(300px*var(--r,1)) circle at 100% 0,var(--rim0) 0,var(--rim1) 22%,var(--rim2) 50%,transparent 72%),radial-gradient(calc(220px*var(--r,1)) circle at 0 100%,var(--rim0) 0,var(--rim1) 22%,var(--rim2) 50%,transparent 72%)}
.mfx-bloom.mfx-all .mfx-in-c{animation:mfx-A-creep 16s ease-in-out infinite}
.mfx-bloom.mfx-all .mfx-veins{animation:mfx-A-vein 16s ease-in-out infinite}
.mfx-hive.mfx-all>.mfx-stain{--r:.62}
.mfx-hive.mfx-all .mfx-mote{width:3.5px;height:3.5px;background:#d8ff80;box-shadow:0 0 6px 2px #a8e04acc}
.mfx-hive.mfx-all .mfx-veins{stroke-width:1.2px}
.mfx-hive.mfx-all{--s2:#0a1a06b0;--s3:#10220870;--s4:#18300a22;--sb2:#16280a40;--sc2:#1e340c30}
.mfx-bloom.mfx-all .mfx-stain2{right:auto;top:auto;left:calc(-140px*var(--r,1));bottom:calc(-140px*var(--r,1));width:calc(280px*var(--r,1));height:calc(280px*var(--r,1))}
@keyframes mfx-A-seep{0%,100%{transform:scale(.86) rotate(0deg)}12.5%{transform:scale(1.1) rotate(7deg)}30%{transform:scale(.86) rotate(0deg)}}
@keyframes mfx-A-rim{0%,30%,100%{opacity:.55;filter:none}12.5%{opacity:1;filter:brightness(1.5)}}
@keyframes mfx-A-creep{0%,30%,100%{scale:.9}12.5%{scale:1.12}}
@keyframes mfx-A-vein{0%,30%,100%{opacity:calc(.16 + .08*var(--g,0))}12.5%{opacity:calc(.5 + .25*var(--g,0))}}
.mfx-signal.mfx-all .mfx-scar{display:block;left:5%;right:5%;top:10%;height:1px;background:linear-gradient(90deg,transparent,#ff3b4e99 12%,#ff3b4e40 38%,#4ff3e070 60%,#4ff3e030 78%,transparent 92%)}
.mfx-signal.mfx-all .mfx-scar:before,.mfx-signal.mfx-all .mfx-scar:after{content:"";position:absolute;height:1px;top:-2px;left:58%;width:9%;background:#4ff3e06a}
.mfx-signal.mfx-all .mfx-scar:after{top:2px;left:66%;width:5%;background:#ff3b4e70}
.mfx-gaze{overflow:visible}
.mfx-gaze .mfx-gz{--gs:250px;left:calc(100% + 26px);top:24%;width:var(--gs);height:var(--gs);margin-top:calc(var(--gs)/-2)}
.mfx-gaze .mfx-gw{inset:0;filter:drop-shadow(0 0 1.2px #ff6a4a) drop-shadow(0 0 7px #ff2a2a99)}
.mfx-gaze .mfx-gh{inset:-40%;border-radius:50%;background:radial-gradient(closest-side,#000000ee 0,#03010ad8 36%,#0c0314a8 56%,#22061a40 76%,transparent);animation:mfx-A-glare 16s ease-in-out infinite}
.mfx-gaze .mfx-ga{left:0;top:27%;width:100%;height:46%;overflow:hidden;clip-path:polygon(0.0% 50.0%,6.2% 42.4%,12.5% 33.4%,18.8% 24.6%,25.0% 16.4%,31.2% 9.6%,37.5% 4.4%,43.8% 1.1%,50.0% 0.0%,56.2% 1.1%,62.5% 4.4%,68.8% 9.6%,75.0% 16.4%,81.2% 24.6%,87.5% 33.4%,93.8% 42.4%,100.0% 50.0%,93.8% 57.6%,87.5% 66.6%,81.2% 75.4%,75.0% 83.6%,68.8% 90.4%,62.5% 95.6%,56.2% 98.9%,50.0% 100.0%,43.8% 98.9%,37.5% 95.6%,31.2% 90.4%,25.0% 83.6%,18.8% 75.4%,12.5% 66.6%,6.2% 57.6%);background:radial-gradient(closest-side,#2a0306 0,#10010a 62%,#05010a);scale:1 .42;animation:mfx-A-lid 16s cubic-bezier(.5,0,.3,1) infinite}
.mfx-gaze .mfx-gt{inset:0;translate:calc(var(--lx,0)*24%) calc(var(--ly,0)*40%);transition:translate 1.1s cubic-bezier(.3,0,.2,1)}
.mfx-gaze .mfx-gi{left:50%;top:50%;width:44%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;animation:mfx-A-look 16s ease-in-out infinite;
 background:radial-gradient(closest-side,#000 0 12%,#ffd0a0 17%,#ff5a2a 24%,#e0281e 42%,#8a0c16 70%,#3a0208 90%,transparent 100%),repeating-conic-gradient(#ffffff12 0 3deg,transparent 3deg 11deg)}
.mfx-gaze .mfx-gz.mfx-fix .mfx-gi{animation-play-state:paused}
.mfx-gaze .mfx-gp{left:50%;top:6%;width:11%;height:88%;margin-left:-5.5%;border-radius:50%;background:#000;box-shadow:0 0 5px 1px #ff3a2a99;animation:mfx-A-pupil 16s ease-in-out infinite}
.mfx-gaze .mfx-gg{left:30%;top:24%;width:7%;height:7%;border-radius:50%;background:#ffe8e0;box-shadow:0 0 4px #ffb0a0;opacity:.8}
.mfx-gaze.mfx-gin{overflow:hidden;inset:1px;border-radius:17px}
.mfx-gaze.mfx-gin .mfx-gz{--gs:150px;left:auto;right:3%;top:20%;opacity:.7}
.mfx-gaze.mfx-gin .mfx-gh{inset:-18%;background:radial-gradient(closest-side,#000000a0 0,#04010a70 40%,#1a041230 66%,transparent)}
@keyframes mfx-A-lid{0%,64%,95%,100%{scale:1 .42}73%,87%{scale:1 1}}
@keyframes mfx-A-glare{0%,64%,95%,100%{opacity:.75}78%{opacity:1}}
@keyframes mfx-A-look{0%,66%{translate:-50% -50%}75%{translate:-88% -42%}85%{translate:-80% -46%}95%,100%{translate:-50% -50%}}
@keyframes mfx-A-pupil{0%,66%,95%,100%{scale:1 1}76%,86%{scale:1.7 1}}
@media (max-width:900px){.mfx-gaze:not(.mfx-gin) .mfx-gz{--gs:170px;left:calc(100% + 12px)}}
@media (max-width:600px){.mfx-hive.mfx-all .mfx-stain2{width:170px;height:170px;left:-85px;bottom:-85px}.mfx-hive.mfx-all :is(.mfx-m5,.mfx-m6,.mfx-m7){display:none}.mfx-gaze.mfx-gin .mfx-gz{--gs:120px}}
.mfx-still .mfx-gaze .mfx-ga{scale:1 .62} /* scale, not transform: the site's reduced-motion rule zeroes transforms */

/* Reduced motion (OS, site setting or ?motion=off): the same tinge, perfectly still. */
.mfx-still .mfx *,.mfx-still .mfx-top *{animation:none!important;transition:none!important}
.mfx-still .mfx-seams .mfx-crack i{opacity:.7}.mfx-still .mfx-seams .mfx-k1{opacity:.6}.mfx-still .mfx-seams .mfx-h{width:calc(52px*var(--r,1))}.mfx-still .mfx-seams .mfx-v{height:calc(36px*var(--r,1))}.mfx-still .mfx-seams :is(.mfx-k2,.mfx-k3,.mfx-k3b){display:none}
.mfx-still .mfx-ember .mfx-st{opacity:.85}.mfx-still .mfx-ember .mfx-heat{opacity:.7}.mfx-still .mfx-ember .mfx-fleck{display:none}
.mfx-still .mfx-bloom .mfx-b{transform:scale(.92)}
.mfx-still .mfx-watcher .mfx-eye{opacity:.6}
.mfx-still .mfx-seams .mfx-crack.mfx-c2 i{opacity:.5}
.mfx-still .mfx-seams .mfx-node{opacity:calc(var(--na,.5)*1.2)}
.mfx-still .mfx-seams .mfx-dm{opacity:calc(var(--vt,1)*.7);transform:translate(calc(var(--dx,10px)*.4),calc(var(--dy,10px)*.4))}
.mfx-still .mfx-void .mfx-vb{opacity:.9;transform:scale(1)}
.mfx-still .mfx-void .mfx-breath{opacity:.7}
.mfx-still .mfx-void .mfx-cross{transform:translateX(55%);opacity:.7}
.mfx-still .mfx-rift .mfx-rm{opacity:calc(.6*var(--rf,0));transform:translate(18px,-6px)}
@media (prefers-reduced-motion:reduce){.mfx *,.mfx-top *{animation:none!important;transition:none!important}}

/* Test-door chip (only while ?fx is set; hidden in flight). */
#mfxChip{position:fixed;right:calc(10px + env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom));z-index:80;display:flex;align-items:center;gap:2px;padding:3px 3px 3px 10px;max-width:calc(100vw - 20px);
 font:600 11px/1 ui-monospace,Menlo,monospace;letter-spacing:.08em;color:#ffb2a8;background:#07111ceb;border:1px solid #ff4a3a55;border-radius:14px 4px 4px 14px;box-shadow:0 6px 20px #0008}
#mfxChip[hidden]{display:none}
#mfxChip span{padding-right:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#mfxChip button{flex:none;min-width:34px;height:34px;padding:0 8px;border:1px solid #3a525e;border-radius:4px;background:#122431;color:#e0ece8;font:13px/1 system-ui,sans-serif;cursor:pointer}
#mfxChip button:hover,#mfxChip button:focus-visible{border-color:#ff6a5a;outline:none}
body.touch #mfxChip button{min-width:44px;height:44px}
