/* Wonder FX · Cyber Scientific. Functional game colours remain in the game styles. */
body.wonder-enabled{--w-cyan:#64dcea;--w-ice:#d7f5fa;--w-blue:#69a8d8;--w-amber:#e5b56a;--w-panel:#0b2332;--w-line:#498293;--w-font:system-ui,'Segoe UI',sans-serif}
#wonder-fx-layer,#wonder-flash,#wonder-shimmer,#wonder-streak{position:fixed;pointer-events:none!important;user-select:none;z-index:12000}
#wonder-fx-layer{inset:0;overflow:hidden;contain:strict}
#wonder-flash{inset:0;opacity:0;background:radial-gradient(ellipse at 50% 45%,#64dcea18,transparent 65%)}
#wonder-shimmer{inset:0;z-index:0;opacity:0;contain:strict;background:radial-gradient(ellipse at 50% 20%,#64dcea16,transparent 65%),linear-gradient(#64dcea05 1px,transparent 1px),linear-gradient(90deg,#64dcea05 1px,transparent 1px);background-size:auto,48px 48px,48px 48px}
.wonder-ambient #wonder-shimmer{animation:w-ambient 9s ease-in-out infinite alternate}
body.wonder-enabled .app{position:relative;z-index:1}
body.wonder-enabled .umvion-welcome{background:linear-gradient(165deg,#102839eb,#071824ed)!important;border:1px solid #49829388!important;box-shadow:inset 0 1px 0 #c5f4ff12,0 14px 40px #0006!important}
body.wonder-enabled .umvion-welcome h1,body.wonder-enabled .center:has(.score-circle) h1{font-family:var(--w-font);background:none!important;color:#e1f6fa!important;letter-spacing:.015em;text-shadow:0 0 20px #64dcea22;animation:none!important}
body.wonder-enabled .welcome-orbit{animation:none!important}
body.wonder-enabled .welcome-orbit img{filter:drop-shadow(0 0 15px #64dcea44)!important}
body.wonder-enabled .umvion-welcome button#enter-umvion.primary:not(:disabled){background:linear-gradient(180deg,#194657,#10303f)!important;color:#e1f6fa!important;border:1px solid #64dceaaa!important;box-shadow:inset 0 1px 0 #c5f4ff20,0 0 14px #64dcea12!important;animation:w-cta 4s ease-in-out infinite}
body.wonder-enabled .home-entry,body.wonder-enabled .home-profile,body.wonder-enabled .mode-card{background:linear-gradient(155deg,#102c3bcc,#091c2ac9)!important;border-color:#49829388!important;box-shadow:inset 0 1px 0 #c5f4ff10!important}
body.wonder-enabled .mode-card .mode-icon{background:#103344b3!important;border-color:#49829399!important;box-shadow:inset 0 1px 0 #c5f4ff16!important}
@media(hover:hover){body.wonder-enabled .home-entry:hover,body.wonder-enabled .mode-card:hover{transform:translateY(-2px);border-color:#64dceaaa!important;transition:transform .18s,border-color .18s}}
body.wonder-enabled #question-area div.answers > button.answer{background:linear-gradient(160deg,#133446e8,#0c2636e8)!important;border:1px solid #5797a9!important;color:#e4f6fa!important;box-shadow:inset 0 1px 0 #c5f4ff18!important}
body.wonder-enabled #question-area div.answers > button.answer.good{border-color:#7addcf!important;box-shadow:0 0 16px #7addcf24!important}
body.wonder-enabled #question-area div.answers > button.answer.bad{border-color:#e5b56a!important;box-shadow:0 0 14px #e5b56a24!important}
body.wonder-enabled .progress .done{background:#64dcea!important;box-shadow:0 0 8px #64dcea22}
body.wonder-enabled #feedback.w-ok{border-color:#7addcf;box-shadow:0 0 16px #7addcf24;animation:w-good .4s ease-out!important}
body.wonder-enabled #feedback.w-bad{border-color:#ff8b80;box-shadow:0 0 14px #ff8b8024;animation:w-bad .32s ease-out!important}
body.wonder-enabled .w-enter{animation:w-enter .28s ease-out!important}
body.wonder-enabled .w-result{animation:w-good .7s ease-out!important;box-shadow:0 0 24px #64dcea28}
body.wonder-enabled .score-circle{border-color:#498293!important;border-top-color:#64dcea!important;background:#0a243277!important}
body.wonder-enabled .tangram-pieces polygon.selected{stroke:#e1f6fa!important;filter:drop-shadow(0 0 7px #64dcea66)}
.w-particle{position:absolute;width:var(--w-size);height:var(--w-size);border-radius:30%;background:var(--w-color);box-shadow:0 0 4px var(--w-color);animation:w-particle .85s ease-out both;will-change:transform,opacity}
.w-diamond{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.w-spark{height:2px;border-radius:1px}.w-orbit{background:transparent;border:1px solid var(--w-color);border-radius:50%}
#wonder-flash.w-flash-ok,#wonder-flash.w-flash-bad,#wonder-flash.w-flash-hot{animation:w-flash .4s ease-out both}#wonder-flash.w-flash-bad{background:radial-gradient(ellipse,#e5b56a18,transparent 65%)}#wonder-flash.w-flash-hot{background:radial-gradient(ellipse,#64dcea22,transparent 65%)}
#wonder-streak{top:calc(env(safe-area-inset-top,0px) + 92px);left:50%;transform:translateX(-50%);opacity:0;border-radius:10px;padding:9px 18px;background:#0b2332f2;border:1px solid #64dceaaa;box-shadow:inset 0 1px 0 #d7f5fa18,0 0 14px #64dcea18;color:#d7f5fa;font:650 16px/1.2 system-ui,sans-serif;letter-spacing:.04em;white-space:nowrap}#wonder-streak.w-streak-show{animation:w-streak 1.5s ease-out both}
@keyframes w-particle{from{transform:translate(-50%,-50%) scale(.6);opacity:.9}to{transform:translate(var(--w-dx),var(--w-dy)) rotate(var(--w-turn)) scale(.15);opacity:0}}
@keyframes w-flash{0%{opacity:0}25%{opacity:.65}100%{opacity:0}}
@keyframes w-good{0%{transform:scale(.98)}45%{transform:scale(1.015)}100%{transform:scale(1)}}
@keyframes w-bad{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@keyframes w-enter{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes w-streak{0%{opacity:0;transform:translate(-50%,6px)}15%,70%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-8px)}}
@keyframes w-cta{50%{border-color:#a0eaf2;filter:brightness(1.08)}}
@keyframes w-ambient{from{opacity:.2}to{opacity:.5}}
/* Family motifs animate isolated overlays; placement transforms belong to the game. */
.w-ping{width:10px;height:2px;border-radius:1px;animation-duration:.55s}
.w-echo{background:transparent;border:1px solid var(--w-color);border-radius:50%;animation-duration:.9s}
.w-cross{clip-path:polygon(38% 0,62% 0,62% 38%,100% 38%,100% 62%,62% 62%,62% 100%,38% 100%,38% 62%,0 62%,0 38%,38% 38%);width:9px;height:9px;animation-duration:.42s}
.w-chord{width:3px;height:12px;border-radius:2px;animation-duration:.6s}
.w-orbital{border-radius:50%;animation:w-orbital .8s ease-out both}
.w-letter{width:auto;height:auto;background:none;box-shadow:none;font:700 14px/1 system-ui,sans-serif;color:var(--w-color);text-shadow:0 0 8px var(--w-color);animation:w-letter .65s ease-out both}
.w-button-particle{animation-name:w-button-particle}
.w-droplet{border-radius:60% 40% 65% 35%;height:8px;animation-duration:.7s}
.w-shard{clip-path:polygon(0 0,100% 25%,65% 100%,15% 70%);width:9px;height:7px;animation-duration:.65s}
.w-memory-ring{animation-duration:.6s;border-width:2px;opacity:.5}
.w-spatial-ring{border-style:dashed;animation:w-orbit-ring .75s ease-out both}
.w-orbit-ring{position:absolute;width:58px;height:26px;margin:-13px -29px;border:1px solid var(--w-color);border-radius:50%;animation:w-orbit-ring .75s ease-out both}
.w-trail{position:absolute;width:5px;height:5px;margin:-2px;border-radius:50%;background:var(--w-color);animation:w-trail .4s ease-out both}
.w-chord-bar{position:absolute;width:3px;height:34px;margin:-17px -1px;background:var(--w-color);border-radius:3px;animation:w-chord .6s ease-out both}
.w-number-ping{position:absolute;color:var(--w-color);font:700 23px/1 system-ui,sans-serif;animation:w-letter .6s ease-out both}
body.wonder-enabled .w-select,body.wonder-enabled .w-reveal{animation:w-select .3s ease-out}
body.wonder-enabled .w-place,body.wonder-enabled .w-ok{animation:w-place .42s ease-out}
body.wonder-enabled .w-hide{animation:w-hide .22s ease-out}
body.wonder-enabled .w-bad{animation:w-bad .25s ease-out}
body.wonder-enabled .w-timeout{border-radius:12px;outline:1px solid #e5b56a88;animation:w-timeout .7s ease-in-out 3!important}
body.wonder-enabled [data-w-family=memory].w-reveal{animation-duration:.55s}
body.wonder-enabled [data-w-family=attention].w-reveal{animation:w-attention .2s ease-out}
body.wonder-enabled [data-w-family=language].w-place{animation:w-settle .3s ease-out}
body.wonder-enabled [data-w-family=math].w-ok{animation:w-good .32s ease-out}
body.wonder-enabled [data-w-family=spatial].w-place{animation:w-select .5s ease-out}
body.wonder-enabled .tangram-board.solved{box-shadow:0 0 22px #64dcea44,inset 0 0 18px #7addcf22}
body.wonder-enabled .home-entry,body.wonder-enabled .mode-card{transition:transform .15s ease-out,border-color .15s ease-out}
body.wonder-enabled .home-entry:active,body.wonder-enabled .mode-card:active{transform:scale(.985)}
body.wonder-enabled .intro-icon{animation:w-icon-float 4s ease-in-out infinite}
body.wonder-enabled .intro-icon~.primary,body.wonder-enabled .center:has(.intro-icon) .primary{animation:w-cta 4s ease-in-out infinite}
/* Do not animate a polygon's transform: it encodes its actual board position. */
body.wonder-enabled svg .w-select,body.wonder-enabled svg .w-place,body.wonder-enabled svg .w-ok,body.wonder-enabled svg .w-bad{animation:w-svg-glow .35s ease-out}
#wonder-flash.w-flash-ok,#wonder-flash.w-flash-bad,#wonder-flash.w-flash-hot{background:radial-gradient(ellipse,color-mix(in srgb,var(--w-flash-color,#64dcea) 12%,transparent),transparent 65%)}
#wonder-streak{border-color:var(--w-color,#64dcea)}
@keyframes w-enter{from{opacity:.65;transform:translate(var(--w-enter-x,0px),var(--w-enter-y,4px))}to{opacity:1;transform:translate(0,0)}}
@keyframes w-select{from{box-shadow:inset 0 0 18px #d7f5fa55}to{box-shadow:inset 0 0 0 #d7f5fa00}}
@keyframes w-place{0%{outline:1px solid var(--w-color,#64dcea);outline-offset:0}100%{outline:1px solid transparent;outline-offset:5px}}
@keyframes w-hide{from{opacity:.65}to{opacity:1}}
@keyframes w-settle{from{opacity:.6;translate:0 -3px}to{opacity:1;translate:0 0}}
@keyframes w-attention{from{box-shadow:inset 0 0 22px var(--w-color,#e5b56a)}to{box-shadow:inset 0 0 0 transparent}}
@keyframes w-svg-glow{from{opacity:.65}to{opacity:1}}
@keyframes w-timeout{50%{box-shadow:0 0 18px #e5b56a40,inset 0 0 14px #e5b56a18}}
@keyframes w-letter{from{opacity:0;transform:translate(-50%,-40%) scale(.7)}20%{opacity:.9}to{opacity:0;transform:translate(var(--w-dx,0px),var(--w-dy,-32px)) scale(1.05)}}
@keyframes w-button-particle{from{opacity:.85;transform:translate(-50%,-50%) scale(.65)}to{opacity:0;transform:translate(calc(var(--w-dx) - 50%),calc(var(--w-dy) - 50%)) rotate(var(--w-turn)) scale(.15)}}
@keyframes w-orbital{from{opacity:.8;transform:rotate(-60deg) translateX(8px)}to{opacity:0;transform:rotate(70deg) translate(var(--w-dx),var(--w-dy)) scale(.2)}}
@keyframes w-orbit-ring{from{opacity:.7;transform:rotate(-30deg) scale(.6)}to{opacity:0;transform:rotate(60deg) scale(2.6)}}
@keyframes w-chord{from{opacity:.8;transform:scaleY(.2)}to{opacity:0;transform:scaleY(1.8)}}
@keyframes w-trail{from{opacity:.6;transform:scale(.5)}to{opacity:0;transform:scale(1.8)}}
@keyframes w-icon-float{50%{transform:translateY(-3px)}}
@media(max-width:600px){.w-particle{box-shadow:none}.w-shockwave{box-shadow:none}}
@media(prefers-reduced-motion:reduce){#wonder-fx-layer,#wonder-streak,#wonder-flash,#wonder-shimmer{display:none!important}body.wonder-enabled *,body.wonder-enabled *::before{animation:none!important;transition:none!important}}

/* Cyber scientific energy: composited transforms/opacity, no gameplay layout changes. */
.wonder-brain{position:relative;display:inline-flex;flex:none;isolation:isolate}
.welcome-orbit .wonder-brain{width:100%;height:100%;align-items:center;justify-content:center}
.wonder-brain-energy{position:absolute;inset:-7%;pointer-events:none;opacity:0}
.wonder-brain-active .wonder-brain-energy{opacity:1}
.wonder-brain-energy i{position:absolute;left:17%;top:16%;width:3px;height:3px;border-radius:50%;background:#baf9ff;box-shadow:0 0 4px #40dcff80;--spark-x:-5px;--spark-y:-8px;animation:brain-spark 3.4s ease-out infinite;animation-delay:-.2s}
.wonder-brain-energy i:nth-of-type(2){left:70%;top:10%;--spark-x:5px;animation-delay:-1.05s}
.wonder-brain-energy i:nth-of-type(3){left:91%;top:40%;--spark-x:8px;--spark-y:-3px;animation-delay:-.55s}
.wonder-brain-energy i:nth-of-type(4){left:77%;top:79%;--spark-x:5px;--spark-y:7px;background:#f0c780;animation-delay:-1.5s}
.wonder-brain-energy i:nth-of-type(5){left:43%;top:93%;--spark-x:-2px;--spark-y:8px;animation-delay:-.85s}
.wonder-brain-energy i:nth-of-type(6){left:9%;top:66%;--spark-x:-7px;--spark-y:4px;animation-delay:-1.8s}
.wonder-brain-energy i:nth-of-type(7){left:8%;top:34%;--spark-x:-7px;--spark-y:-3px;animation-delay:-1.25s}
.wonder-brain-energy i:nth-of-type(8){left:42%;top:5%;--spark-x:2px;--spark-y:-8px;animation-delay:-.4s}
.brand .wonder-brain-energy{inset:0}.brand .wonder-brain-energy i{width:2px;height:2px;--spark-x:-2px;--spark-y:-3px}
.brand .wonder-brain-energy i:nth-of-type(2),.brand .wonder-brain-energy i:nth-of-type(3){--spark-x:3px;--spark-y:-2px}.brand .wonder-brain-energy i:nth-of-type(4),.brand .wonder-brain-energy i:nth-of-type(5){--spark-x:1px;--spark-y:3px}
.wonder-ambient .welcome-orbit::after{box-shadow:0 0 28px #28dfff44,inset 0 0 18px #28dfff22}
.wonder-ambient .home-profile{box-shadow:inset 0 0 24px #54dcef0a,0 0 22px #54dcef12}
.score-circle{position:relative;isolation:isolate}
.wonder-score-meter{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;transform:rotate(-90deg)}
.wonder-score-meter circle{stroke-width:2}
.wonder-score-track{stroke:#66dce82b}
.wonder-score-value{stroke:#72e6ed;stroke-linecap:round;stroke-dasharray:var(--score-length);stroke-dashoffset:var(--score-offset);filter:drop-shadow(0 0 3px #54dfff);animation:score-fill 1.25s cubic-bezier(.18,.7,.2,1) both}
@keyframes score-fill{from{stroke-dashoffset:var(--score-length)}to{stroke-dashoffset:var(--score-offset)}}
@keyframes brain-spark{0%,65%,100%{opacity:0;transform:translate(0,0) scale(.25)}12%{opacity:.72;transform:translate(calc(var(--spark-x)*.2),calc(var(--spark-y)*.2)) scale(.9)}45%{opacity:.3;transform:translate(var(--spark-x),var(--spark-y)) scale(.4)}}
@media(prefers-reduced-motion:reduce){.wonder-brain-energy{display:none}.wonder-score-value{animation:none;filter:none}}
body:not(.wonder-enabled) .wonder-score-value{animation:none}
.score-circle:has(.wonder-score-meter){border-color:transparent!important;box-shadow:inset 0 0 22px #48d8e514}
body:not(.wonder-brain-active) .wonder-brain-energy i{animation-play-state:paused}
.android-download-section input[readonly]{width:100%;font-size:14px;word-break:break-all}
/* Number Links: isolated connector overlay, never moves a live numbered cell. */
.w-link-beam{position:absolute;height:2px;transform-origin:0 50%;transform:rotate(var(--link-angle));pointer-events:none}
.w-link-beam b{position:absolute;inset:0;background:var(--w-color);box-shadow:0 0 5px #64dcea55;transform-origin:left;animation:w-link-charge .5s ease-out both}
.w-link-beam b:nth-child(2){opacity:.4;animation-delay:60ms;height:1px}
.w-link-1 b{background:repeating-linear-gradient(90deg,#64dcea 0 6px,transparent 6px 10px);animation:w-link-echo .52s ease-out both}
.w-link-1 b:nth-child(2){animation-delay:50ms;top:3px}
.w-link-2 b{right:auto;width:7px;animation:w-link-photon .4s ease-in-out both}
.w-link-2 b:nth-child(2){animation-delay:70ms}
@keyframes w-link-charge{0%{transform:scaleX(.05);opacity:0}30%{transform:scaleX(1);opacity:.85}100%{transform:scaleX(1);opacity:0}}
@keyframes w-link-echo{0%{transform:scaleX(.1);opacity:0}35%{transform:scaleX(1);opacity:.65}100%{transform:scaleX(1);opacity:0}}
@keyframes w-link-photon{0%{transform:translateX(0);opacity:0}20%{opacity:1}100%{transform:translateX(var(--link-length));opacity:0}}
/* Seven clear styles use WAAPI; only newly spawned Tetris cells materialize. */
.tetris-materialize>.arcade-block{animation:tetris-materialize .18s ease-out both}
@keyframes tetris-materialize{from{opacity:.25;scale:.72}to{opacity:1;scale:1}}
/* Brain variants stay small: eight animated dust points, no rings or lightning. */
.wonder-brain[data-brain-fx=orbit] .wonder-brain-energy i{animation-name:brain-drift;animation-duration:4.6s}
.wonder-brain[data-brain-fx=focus] .wonder-brain-energy i{animation-duration:2.6s}
.wonder-brain[data-brain-fx=pulse] .wonder-brain-energy i{animation:brain-dust-pulse 4.8s ease-in-out infinite;animation-delay:calc(var(--dust-order,0)*-.48s)}
.wonder-brain[data-brain-fx=scan] .wonder-brain-energy i{animation:brain-dust-scan 5.2s ease-in-out infinite;animation-delay:calc(var(--dust-order,0)*-.55s)}
.wonder-brain-energy i:nth-of-type(2){--dust-order:1}.wonder-brain-energy i:nth-of-type(3){--dust-order:2}.wonder-brain-energy i:nth-of-type(4){--dust-order:3}.wonder-brain-energy i:nth-of-type(5){--dust-order:4}.wonder-brain-energy i:nth-of-type(6){--dust-order:5}.wonder-brain-energy i:nth-of-type(7){--dust-order:6}.wonder-brain-energy i:nth-of-type(8){--dust-order:7}
@keyframes brain-drift{0%,100%{opacity:0;transform:translate(0,0) scale(.3)}30%{opacity:.8;transform:translate(calc(var(--spark-x)*-.8),calc(var(--spark-y)*.5)) scale(.85)}75%{opacity:.3;transform:translate(var(--spark-x),var(--spark-y)) scale(.4)}}
@keyframes brain-dust-pulse{0%,70%,100%{opacity:0;transform:scale(.3)}28%{opacity:.8;transform:scale(1)}55%{opacity:.25;transform:translate(calc(var(--spark-x)*.4),calc(var(--spark-y)*.4)) scale(.4)}}
@keyframes brain-dust-scan{0%,65%,100%{opacity:0;transform:translateY(3px) scale(.3)}22%{opacity:.85;transform:translateY(0) scale(.9)}48%{opacity:.25;transform:translateY(-3px) scale(.4)}}
body:not(.wonder-brain-active) .wonder-brain-energy i{animation-play-state:paused!important}
/* Retain the quiet catalogue example; live brains use one of five spark variants. */
.wonder-home .wonder-brain[data-brain-fx=quiet] .wonder-brain-energy{opacity:1}
.wonder-brain[data-brain-fx=quiet] .wonder-brain-energy i{display:none;animation:none;transform:none;box-shadow:0 0 3px #64dcea66;background:#a9e9ef}
.wonder-home .wonder-brain[data-brain-fx=quiet] .wonder-brain-energy i:nth-of-type(2),.wonder-home .wonder-brain[data-brain-fx=quiet] .wonder-brain-energy i:nth-of-type(6){display:block;animation:brain-quiet-glint 12s ease-in-out infinite;animation-delay:0s;animation-play-state:running}
.wonder-home .wonder-brain[data-brain-fx=quiet] .wonder-brain-energy i:nth-of-type(6){animation-delay:-6s}
.wonder-brain[data-brain-fx=quiet] .wonder-brain-energy::before,.wonder-brain[data-brain-fx=quiet] .wonder-brain-energy::after{display:none}
body:not(.wonder-home) .brand .wonder-brain[data-brain-fx=quiet] .wonder-brain-energy{opacity:0}
@keyframes brain-quiet-glint{0%,36%,100%{opacity:0}16%{opacity:.35}}
/* A single corner glow marks entry. Network redraw never repeats it. */
.home-profile{position:relative;isolation:isolate;overflow:hidden}
.w-profile-scan::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at 0 0,#64dcea12,transparent 55%);animation:home-light .85s ease-out both}
.w-xp-glow{animation:home-xp .65s ease-out both}
.w-home-click{animation:home-click .3s ease-out both}
@keyframes home-light{0%,100%{opacity:0}35%{opacity:1}}
@keyframes home-xp{40%{box-shadow:inset 0 0 12px #64dcea33}100%{box-shadow:inset 0 0 0 transparent}}
@keyframes home-click{45%{box-shadow:inset 0 0 18px #64dcea33}}
@media(prefers-reduced-motion:reduce){.tetris-materialize>.arcade-block{animation:none}.wonder-brain-energy::before,.wonder-brain-energy::after{display:none}}
body:not(.wonder-enabled) .tetris-materialize>.arcade-block{animation:none}
/* Micro feedback: no circular overlays, no layout motion of numbered cells. */
.w-success-spark,.w-link-spark{position:absolute;width:2px;height:2px;border-radius:1px;background:var(--w-color);box-shadow:0 0 3px var(--w-color);pointer-events:none;animation:w-spark-up .58s ease-out both}
.w-link-spark{animation:w-spark-flight .38s linear both}.w-photon-spark{width:5px;height:1.5px}
.w-contact-edge{position:absolute;height:1.5px;background:var(--w-color);box-shadow:0 0 4px var(--w-color);animation:w-contact .26s ease-out both}
.w-contour-wave{position:absolute;border:1px solid var(--w-color);box-sizing:border-box;pointer-events:none;animation:w-contour .55s ease-out both}
.w-contour-wave svg{width:100%;height:100%;overflow:visible}
.w-success{animation:w-success-glow .45s ease-out both}.w-victory{animation:w-victory-glow .85s ease-out both}.w-merge-glow{animation:w-merge-glow .28s ease-out both}
@keyframes w-spark-up{0%{opacity:0;transform:translate(0,3px) scale(.6)}18%{opacity:1}100%{opacity:0;transform:translate(var(--w-dx),var(--w-dy)) scale(.3)}}
@keyframes w-spark-flight{0%{opacity:0;transform:translate(0,0)}12%{opacity:.95}50%{transform:translate(var(--w-mid-x),var(--w-mid-y))}90%{opacity:.75}100%{opacity:0;transform:translate(var(--w-dx),var(--w-dy))}}
@keyframes w-contact{0%{opacity:.85;transform:scaleX(.65)}100%{opacity:0;transform:translateY(-2px) scaleX(1.05)}}
@keyframes w-contour{0%{opacity:.65;transform:scale(1)}100%{opacity:0;transform:scale(1.12)}}
@keyframes w-success-glow{30%{box-shadow:inset 0 0 14px #64dcea22}}
@keyframes w-victory-glow{25%,60%{box-shadow:inset 0 0 24px #64dcea33,0 0 20px #e5b56a20}100%{box-shadow:inset 0 0 0 transparent}}
@keyframes w-merge-glow{40%{box-shadow:inset 0 0 16px #e5b56a55,0 0 7px #64dcea33}}
@keyframes w-timeout{0%,100%{box-shadow:inset 0 0 0 transparent}50%{box-shadow:0 0 28px #e5b56a55,inset 0 0 22px #e5b56a44}}
body.wonder-enabled .w-timeout{outline:2px solid #e5b56a99;outline-offset:2px;animation:w-timeout .65s ease-in-out 3!important}
/* Accepted answers stay at their actual button edge: twelve small sparks on phones. */
.w-button-particle{width:var(--w-size);height:var(--w-size);animation-duration:.48s;box-shadow:none}
.w-button-particle.w-letter{font-size:10px;width:auto;height:auto;text-shadow:none}
.w-button-particle.w-answer-drift{animation-name:w-answer-drift;animation-duration:.58s}
.w-button-particle.w-answer-prism{height:1.5px;border-radius:1px;animation-duration:.4s}
@keyframes w-answer-drift{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}20%{opacity:.75}55%{opacity:.4;transform:translate(calc(var(--w-mid-dx) - 50%),calc(var(--w-mid-dy) - 50%)) scale(.8)}100%{opacity:0;transform:translate(calc(var(--w-dx) - 50%),calc(var(--w-dy) - 50%)) scale(.15)}}
body.wonder-enabled button.w-ok{animation:w-success-glow .36s ease-out!important}
body.wonder-home .home-entry,body.wonder-home .home-launcher,body.wonder-home .home-launcher img{transform:none!important;animation:none!important;transition:border-color .18s ease-out}
