/* PagePop WOW M3: leaky funnel toy (#mirror). Scoped under html.wow; movement only inside prefers-reduced-motion:no-preference. */
html.wow .wow-funnel{position:relative;isolation:isolate;overflow:clip;margin-top:44px;padding:22px 18px 16px;
 border-radius:22px;border:1px solid rgba(167,173,204,.12);
 background:radial-gradient(90% 70% at 50% 0%,rgba(123,47,255,.10),transparent 70%),#11152e;
 box-shadow:0 30px 70px -40px rgba(0,0,0,.8)}
html.wow .wow-funnel::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;opacity:0;
 box-shadow:inset 0 0 0 1px rgba(16,185,129,.45),inset 0 -60px 90px -60px rgba(16,185,129,.28)}
html.wow .wow-funnel.wf-done::after{opacity:1}

html.wow .wf-cap{margin:0;font:700 17px/1.45 Rubik,system-ui,sans-serif;color:#f4eef9;text-wrap:balance}
html.wow .wf-done .wf-cap{color:#BFAEF4;font-size:22px}

html.wow .wf-stage{position:relative;height:300px;margin:10px -6px 0}
html.wow .wf-stage canvas,html.wow .wf-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:block;overflow:visible}

/* funnel drawing */
html.wow .wf-wall{stroke:rgba(191,174,244,.5);stroke-width:2;stroke-linecap:round;fill:none}
html.wow .wf-rim{fill:rgba(191,174,244,.05);stroke:rgba(191,174,244,.32);stroke-width:1.2}
html.wow .wf-crk{fill:none;stroke:rgba(191,174,244,.6);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
html.wow .wf-ping{fill:none;stroke:rgba(191,174,244,.55);stroke-width:1.2;transform-box:fill-box;transform-origin:50% 50%}
html.wow .wf-drip{fill:#4361EE;opacity:0}
html.wow .wf-still .wf-drip{opacity:.85}
html.wow .wf-still .wf-ping{opacity:0}
html.wow .wf-c.on .wf-ping,html.wow .wf-c.on .wf-drip,html.wow .wf-c.on .wf-crk{opacity:0}
html.wow .wf-pin{transform:scale(0);transform-box:fill-box;transform-origin:50% 50%}
html.wow .wf-c.on .wf-pin{transform:none}
html.wow .wf-bar{fill:#10B981}
html.wow .wf-halo{fill:rgba(16,185,129,.22)}
html.wow .wf-body{fill:#080b16;stroke:rgba(191,174,244,.6);stroke-width:1.4}
html.wow .wf-scr{fill:rgba(67,97,238,.18)}
html.wow .wf-tick{fill:none;stroke:#10B981;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:0}
html.wow .wf-glow{opacity:0}
html.wow .wf-done .wf-glow,html.wow .wf-done .wf-tick{opacity:1}
html.wow .wf-done .wf-body{stroke:#10B981}
html.wow .wf-done .wf-scr{fill:rgba(16,185,129,.22)}

/* crack buttons: label beside its crack, 44px targets, never drag */
html.wow .wf-crack{position:absolute;top:var(--y);z-index:2;transform:translateY(-50%);
 display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:7px 12px;margin:0;
 border-radius:14px;border:1px solid rgba(191,174,244,.34);background:rgba(8,11,22,.82);
 color:#f4eef9;font:600 14px/1.25 Rubik,system-ui,sans-serif;text-align:start;cursor:pointer;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
html.wow .wf-crack.wf-l{right:calc(100% - var(--x,0px) + 16px);max-width:calc(var(--x,200px) - 20px)}
html.wow .wf-crack.wf-r{left:calc(var(--x,0px) + 16px);max-width:calc(100% - var(--x,0px) - 20px)}
html.wow .wf-crack::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;box-sizing:border-box;
 border:1.5px dashed rgba(191,174,244,.8)}
html.wow .wf-crack::after{content:"";position:absolute;top:50%;width:14px;height:1px;background:rgba(191,174,244,.45)}
html.wow .wf-crack.wf-l::after{left:100%}
html.wow .wf-crack.wf-r::after{right:100%}
html.wow .wf-crack:hover{border-color:rgba(191,174,244,.7)}
html.wow .wf-crack[aria-pressed="true"]{border-color:rgba(16,185,129,.65);background:#0d2a2a}
html.wow .wf-crack[aria-pressed="true"]::before{border:0;background:#10B981;box-shadow:0 0 10px rgba(16,185,129,.8)}
html.wow .wf-crack[aria-pressed="true"]::after{background:rgba(16,185,129,.6)}
html.wow .wf-crack:focus-visible,html.wow .wf-reset:focus-visible{outline:2px solid #BFAEF4;outline-offset:3px}

/* Pop the operator */
html.wow .wf-pop{position:absolute;left:0;top:0;width:56px;height:auto;z-index:1;pointer-events:none;
 filter:drop-shadow(0 6px 14px rgba(67,97,238,.45))}

/* footer: live status, legend, reset */
html.wow .wf-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:8px;min-height:44px}
html.wow .wf-live{margin:0;font:700 15px/1.4 Rubik,system-ui,sans-serif;color:#10B981}
html.wow .wf-live:empty{display:none}
html.wow .wf-legend{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:#a7adcc;margin-inline-start:auto}
html.wow .wf-legend::before{content:"";width:7px;height:7px;border-radius:50%;background:#BFAEF4;box-shadow:0 0 0 3px rgba(67,97,238,.35),0 0 10px #4361EE}
html.wow .wf-reset{min-height:44px;padding:8px 18px;border-radius:999px;border:1px solid rgba(191,174,244,.4);background:transparent;
 color:#f4eef9;font:600 14.5px/1 Rubik,system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
html.wow .wf-reset:hover{border-color:#BFAEF4}
html.wow .wf-reset[hidden]{display:none}

 @media (max-width:979px){
 html.wow .wf-done .wf-legend{display:none}
 html.wow .wf-reset{margin-inline-start:auto}
}
@media (max-width:420px){
 html.wow .wow-funnel{padding:20px 14px 14px}
 html.wow .wf-stage{margin-inline:-8px}
 html.wow .wf-crack{padding:7px 10px;gap:7px;font-size:13.5px}
}
@media (min-width:761px){
 html.wow .wf-stage{height:340px}
}
/* wide: copy column on the start side, toy beside it */
@media (min-width:980px){
 html.wow .wow-funnel{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.7fr);grid-template-areas:"cap stage" "foot stage";
  column-gap:32px;padding:34px 34px 30px}
 html.wow .wf-cap{grid-area:cap;align-self:end;font-size:22px;line-height:1.4}
 html.wow .wf-done .wf-cap{font-size:30px}
 html.wow .wf-stage{grid-area:stage;margin:0}
 html.wow .wf-foot{grid-area:foot;align-self:start;flex-direction:column;align-items:flex-start;margin-top:18px}
 html.wow .wf-legend{margin-inline-start:0;order:3}
}

/* the closing line blooms once the funnel is sealed */
html.wow .mclose{position:relative}
html.wow .mclose::before{content:"";position:absolute;inset:-34px 0;z-index:-1;pointer-events:none;opacity:0;
 background:radial-gradient(46% 58% at 50% 50%,rgba(191,174,244,.34),rgba(123,47,255,.16) 50%,transparent 72%)}
html.wow .mclose.wow-flare::before{opacity:1}

@media (prefers-reduced-motion:no-preference){
 html.wow:not(.wow-rm) .wow-funnel{opacity:0;transform:translate3d(0,26px,0);
  transition:opacity .8s cubic-bezier(.2,.7,.3,1),transform .8s cubic-bezier(.2,.7,.3,1)}
 html.wow:not(.wow-rm) .wow-funnel.wf-in{opacity:1;transform:none}
 html.wow:not(.wow-rm) .wow-funnel::after{transition:opacity .9s ease}
 html.wow:not(.wow-rm) .wf-c.on:not(.q) .wf-pin{animation:wf-pin .55s cubic-bezier(.3,.7,.4,1) both}
 html.wow:not(.wow-rm) .wf-c .wf-pin{transition:transform .25s ease-in}
 html.wow:not(.wow-rm) .wf-c.on .wf-pin{transition:none}
 html.wow:not(.wow-rm):not(.wow-lite) .wf-c:not(.on) .wf-ping{animation:wf-ping 2.2s cubic-bezier(.2,.6,.3,1) infinite}
 html.wow:not(.wow-rm) .wf-ping,html.wow:not(.wow-rm) .wf-crk,html.wow:not(.wow-rm) .wf-glow,html.wow:not(.wow-rm) .wf-tick{transition:opacity .5s ease}
 html.wow:not(.wow-rm) .wf-crack{transition:transform .18s cubic-bezier(.3,.7,.4,1)}
 html.wow:not(.wow-rm) .wf-crack:active{transform:translateY(-50%) scale(.95)}
 html.wow:not(.wow-rm) .mclose::before{transition:opacity 1.1s ease}
}
@keyframes wf-pin{0%{transform:scale(0)}62%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes wf-ping{0%{transform:scale(.6);opacity:.9}80%,100%{transform:scale(1.9);opacity:0}}
