/* Mockup anxiety-test: dýchací kruh nad hladinou jazierka za súmraku. Kruh pomaly dýcha (nádych – výdych),
   desať leknínov na hladine = desať otázok v poradí, v akom prichádzajú; po odpovedi na lekníne rozkvitne kvet
   od pokojnej mätovej (Vôbec nie) po koralovú (Určite áno). Podľa priebežného skóre sa zrýchli dych kruhu
   a rozvlní hladina. Farby: levanduľa, broskyňa, mäta, jazerná modrá; v tmavom režime nočné jazero s mesiacom. */
.ax-fig{--ax-s1:#cdd6f6;--ax-s2:#fde4d2;--ax-w1:#8fb3d9;--ax-w2:#4f78a6;--ax-o1:#fffaf0;--ax-o2:#ffd3a6;--ax-ring:#fff3e2;--ax-halo:#ffe6cc;--ax-hill:#8e86b8;--ax-hill2:#6f6aa0;--ax-wave:#e7f1fb;--ax-pad:#4f9a78;--ax-padd:#2f6f53;--ax-reed:#3d5f4f;--ax-fly:#fff6d8;--ax-tag:#2d2a55;--ax-tagt:#fdf2e6;--ax-br:8.5s;--ax-wv:9s}
@media(prefers-color-scheme:dark){.ax-fig{--ax-s1:#0e1433;--ax-s2:#3a2f5e;--ax-w1:#1f3555;--ax-w2:#0a1628;--ax-o1:#fbf7ff;--ax-o2:#b8a6f2;--ax-ring:#d9cffc;--ax-halo:#8b7bd6;--ax-hill:#272350;--ax-hill2:#1b1840;--ax-wave:#7d97c4;--ax-pad:#2f6d55;--ax-padd:#1b4636;--ax-reed:#16302a;--ax-fly:#ffe9a3;--ax-tag:#efe9ff;--ax-tagt:#221e45}}

.ax-fig{position:relative;margin:.4rem auto 1rem;padding:0;max-width:520px;border-radius:22px;overflow:hidden;background:var(--ax-s2);border:1px solid color-mix(in srgb,var(--ax-hill) 45%,transparent);box-shadow:0 10px 26px -18px color-mix(in srgb,var(--ax-w2) 80%,transparent)}
.ax-svg{display:block;width:100%;height:auto}
.ax-s1{stop-color:var(--ax-s1)}.ax-s2{stop-color:var(--ax-s2)}
.ax-w1{stop-color:var(--ax-w1)}.ax-w2{stop-color:var(--ax-w2)}
.ax-o1{stop-color:var(--ax-o1)}.ax-o2{stop-color:var(--ax-o2);transition:stop-color 1s}

/* dych: kruhy sa spolu nadýchnu a vydýchnu, vonkajšie s malým oneskorením */
.ax-orb circle{transform-box:view-box;transform-origin:320px 170px;animation:ax-breathe var(--ax-br) ease-in-out infinite}
.ax-halo{fill:var(--ax-halo);opacity:.28}
.ax-r3{fill:none;stroke:var(--ax-ring);stroke-width:1.5;opacity:.5;animation-delay:.35s!important}
.ax-r2{fill:color-mix(in srgb,var(--ax-ring) 22%,transparent);stroke:var(--ax-ring);stroke-width:2;opacity:.75;animation-delay:.18s!important}
.ax-r1{filter:drop-shadow(0 0 10px color-mix(in srgb,var(--ax-o2) 70%,transparent))}
@keyframes ax-breathe{0%,100%{transform:scale(.84)}42%,58%{transform:scale(1.05)}}

.ax-fly{fill:var(--ax-fly);opacity:.2;animation:ax-fly 3.6s ease-in-out infinite alternate}
@keyframes ax-fly{to{opacity:.85;transform:translateY(-4px)}}
.ax-hill{fill:var(--ax-hill)}.ax-hill.b{fill:var(--ax-hill2)}
.ax-glint{fill:none;stroke:var(--ax-ring);stroke-width:3;stroke-linecap:round;opacity:.55;animation:ax-glint 4s ease-in-out infinite alternate}
@keyframes ax-glint{to{opacity:.25;transform:translateX(4px)}}
.ax-wave{fill:none;stroke:var(--ax-wave);stroke-width:2;stroke-linecap:round;opacity:.5;animation:ax-flow var(--ax-wv) linear infinite}
.ax-wave.b{opacity:.38;animation-duration:calc(var(--ax-wv) * 1.3);animation-direction:reverse}
.ax-wave.c{opacity:.28;animation-duration:calc(var(--ax-wv) * 1.6)}
.ax-wave.a{--wl:120px}.ax-wave.b{--wl:150px}.ax-wave.c{--wl:180px}
@keyframes ax-flow{to{transform:translateX(var(--wl))}}
.ax-reed{fill:none;stroke:var(--ax-reed);stroke-width:2.4;stroke-linecap:round}
.ax-cat{fill:color-mix(in srgb,var(--ax-reed) 75%,#8a5a2e)}

/* lekníny a kvety */
.ax-leaf{fill:var(--ax-pad);stroke:var(--ax-padd);stroke-width:1.2}
.ax-vein{fill:none;stroke:var(--ax-padd);stroke-width:.9;opacity:.7}
.ax-rip{fill:none;stroke:var(--ax-wave);stroke-width:1.4;opacity:0}
.ax-ring{fill:none;stroke:var(--ax-ring);stroke-width:2;stroke-dasharray:3 4;opacity:0}
.ax-lot{transform:scale(0);transform-box:fill-box;transform-origin:50% 100%;transition:transform .55s cubic-bezier(.3,1.6,.5,1)}
.ax-pet{fill:#f6f0ff;stroke:rgba(0,0,0,.18);stroke-width:.6}.ax-pet.b{opacity:.85}
.ax-core{fill:#f7c948}
.ax-pad.on .ax-lot{transform:scale(1)}
.ax-pad.v1 .ax-pet{fill:#8fe0cc}.ax-pad.v2 .ax-pet{fill:#bfe6a2}.ax-pad.v3 .ax-pet{fill:#f7dc86}.ax-pad.v4 .ax-pet{fill:#f8ae78}.ax-pad.v5 .ax-pet{fill:#f27a76}
.ax-pad.cur .ax-ring{opacity:.9;animation:ax-cur 1.4s ease-in-out infinite alternate}
@keyframes ax-cur{from{stroke-dashoffset:0;opacity:.45}to{stroke-dashoffset:14;opacity:1}}
.ax-pad.drop .ax-rip{animation:ax-drop 1.3s ease-out}
@keyframes ax-drop{from{opacity:.9;transform:scale(.6)}to{opacity:0;transform:scale(2.2)}}
.ax-rip{transform-box:fill-box;transform-origin:center}

/* počítadlo */
.ax-cnt rect{fill:var(--ax-tag);opacity:.88}
.ax-cnt text{font:800 15px/1 system-ui,sans-serif;fill:var(--ax-tagt);text-anchor:middle;font-variant-numeric:tabular-nums}

/* nálada podľa priebežného skóre (rovnaké pásma ako test) */
.ax-fig.m1{--ax-o2:#ffc58f}.ax-fig.m2{--ax-o2:#ffa98a}.ax-fig.m3{--ax-o2:#ff8a80}
@media(prefers-color-scheme:dark){.ax-fig.m1{--ax-o2:#c9a2ee}.ax-fig.m2{--ax-o2:#e39ac9}.ax-fig.m3{--ax-o2:#f08aa6}}
.ax-fig.is-done .ax-cnt rect{fill:var(--ax-pad)}.ax-fig.is-done .ax-cnt text{fill:#fff}
.cres .ax-fig{margin-top:.2rem}
@media(max-width:520px){.ax-fig{border-radius:16px}.ax-cnt text{font-size:18px}}
@media(prefers-reduced-motion:reduce){.ax-orb circle,.ax-fly,.ax-glint,.ax-wave,.ax-pad.cur .ax-ring,.ax-pad.drop .ax-rip{animation:none}.ax-lot{transition:none}}
