/* Niqo, the character (docs/NIQO-CHARACTER.md §6). Namespaced .nq- so nothing collides with the shell's styles.
   Expressions are drawn by niqo.js on a state change. What runs all the time is CSS on transform and opacity: a slow,
   squashy breath, blinks, the voice rings. Nothing runs while the tab is hidden; reduced motion drops all movement. */

.nq { --nq-arrive: cubic-bezier(.22,1,.36,1); --nq-change: cubic-bezier(.4,0,.2,1);
  position: relative; display: inline-block; flex: none; width: 36px; height: 36px; vertical-align: middle; line-height: 0; }
.nq > span { position: absolute; inset: 0; }
.nq svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nq-bounce, .nq-breath { transform-origin: 50% 98%; }
.nq-sm .nq-bounce, .nq-sm .nq-breath { transform-origin: 50% 80%; }

.nq-eye { transform-box: fill-box; transform-origin: 50% 55%; transition: transform 70ms ease-in; }
.nq-blink .nq-eye { transform: scaleY(.1); }
.nq-happy { opacity: 0; }
.nq-card { opacity: 0; }
.nq-shadow, .nq-ring { transform-box: fill-box; transform-origin: 50% 50%; }
.nq-ring { opacity: 0; }

/* small sizes: the head only, the fewest marks */
.nq-sm .nq-card, .nq-sm .nq-shadow, .nq-sm .nq-ring, .nq-sm .nq-tuft { display: none; }
.nq-xs .nq-glint, .nq-xs [class^="nq-brow"], .nq-xs .nq-glasses path { display: none; }
.nq:not(.nq-lg) .nq-shadow { display: none; }

/* idle: a slow, soft breath (about eleven a minute), squashing a little like a plush toy */
.nq.nq-anim .nq-breath { animation: nq-breathe 5.4s ease-in-out infinite; }
.nq.nq-anim[data-state="listening"] .nq-breath { animation-duration: 4.4s; }
.nq.nq-anim[data-state="worried"] .nq-breath { animation: nq-breathe-slow 7s ease-in-out infinite; }
.nq.nq-anim[data-state="thinking"] .nq-breath { animation-duration: 6s; }

/* the microphone is open: slow rings on the ground */
.nq.nq-anim.nq-voice:not([data-state="emergency"]) .nq-ring { animation: nq-ring 2.6s var(--nq-change) infinite; }
.nq.nq-anim.nq-voice .nq-ring2 { animation-delay: -1.3s; }

/* answering: a small squashy bounce; pleased: one happy hop (classes outlive the state so they play whole) */
.nq.nq-hop .nq-bounce { animation: nq-hop 640ms cubic-bezier(.3,.7,.4,1) 1; }
.nq.nq-joy .nq-bounce { animation: nq-joy 860ms cubic-bezier(.3,.7,.4,1) 1; }

/* emergency: gone, every one of them, still marks included. Nothing delays help. */
.nq[data-state="emergency"], html[data-niqo-emergency] .nq { display: none !important; }

@keyframes nq-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.012, .985); } }
@keyframes nq-breathe-slow { 0%, 100% { transform: none; } 50% { transform: scale(1.008, .99); } }
@keyframes nq-ring { 0% { opacity: .5; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes nq-hop { 0% { transform: none; } 22% { transform: scale(1.05, .93); } 50% { transform: translateY(-3%) scale(.97, 1.04); } 76% { transform: scale(1.015, .985); } 100% { transform: none; } }
@keyframes nq-joy { 0% { transform: none; } 18% { transform: scale(1.06, .92); } 46% { transform: translateY(-6%) scale(.96, 1.05); } 70% { transform: scale(1.04, .95); } 86% { transform: scale(.99, 1.01); } 100% { transform: none; } }

/* Cost nothing when the tab is hidden. */
html.nq-hidden .nq, html.nq-hidden .nq * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .nq, .nq * { animation: none !important; transition: none !important; }
}
.nq-sm .nq-bodyset { display: none; }
/* at small sizes a soft edge keeps the head clear on white and on the pale background */
.nq-sm .nq-sil { stroke: var(--nq-edge, #9a8f84); stroke-width: 5; paint-order: stroke; stroke-linejoin: round; }
.nq-xs .nq-sil { stroke-width: 7; }
.nq-xs .nq-glasses { display: none; }
.nq-ears { transform-box: view-box; transform-origin: 100px 92px; }
.nq-sm .nq-glasses { stroke-width: 3.6; }
.nq-elephant.nq-sm .nq-acc { fill: #a59a8f; }
.nq-bear { --nq-edge: #9c7350; }
.nq-teddy { --nq-edge: #c99467; }
.nq-teddy.nq-sm .nq-sil { stroke-width: 3; }
.nq-elder { --nq-edge: #a98b74; }

/* The glass orb (the app's Niqo): light moving inside, and a small happy face. */
.nq-orb .nq-drift, .nq-orb .nq-orbit { transform-box: view-box; transform-origin: 100px 104px; }
.nq-orb.nq-anim .nq-d1 { animation: nq-spin 26s linear infinite; }
.nq-orb.nq-anim .nq-d2 { animation: nq-spin 19s linear infinite reverse; }
.nq-orb.nq-anim .nq-d3 { animation: nq-spin 23s linear infinite; }
.nq-orb.nq-anim .nq-d4 { animation: nq-sway 11s ease-in-out infinite; }
.nq-orb.nq-anim[data-state="listening"] .nq-drift { animation-duration: 9s; }
.nq-orb.nq-anim[data-state="listening"] .nq-d4 { animation-duration: 5s; }
.nq-orb.nq-anim[data-state="thinking"] .nq-drift { animation-duration: 5s; }
.nq-orb.nq-anim[data-state="thinking"] .nq-d4 { animation-duration: 3s; }
.nq-orb.nq-anim[data-state="worried"] .nq-drift { animation-duration: 40s; }
.nq-orb .nq-orbit { opacity: 0; transition: opacity 300ms var(--nq-change); }
.nq-orb.nq-anim[data-state="thinking"] .nq-orbit { opacity: .9; animation: nq-spin 1.8s linear infinite; }
.nq-orb .nq-halo { opacity: 0; transition: opacity 700ms var(--nq-change); }
.nq-orb[data-state="pleased"] .nq-halo { opacity: 1; }
.nq-orb .nq-rim, .nq-orb .nq-sil { transition: opacity 500ms var(--nq-change), filter 500ms var(--nq-change); }
.nq-orb[data-state="worried"] .nq-rim { opacity: .5; }
.nq-orb.nq-sm .nq-sil { stroke: none; }
.nq-orb.nq-xs .nq-orbit, .nq-orb.nq-xs .nq-halo, .nq-orb.nq-xs .nq-d3 { display: none; }
.nq-orb.nq-xs .nq-rim { stroke-width: 3; }
/* its face: eyes open a little when it listens, the mouth talks while it answers, one eye winks now and then */
.nq-orb .nq-eyes, .nq-orb .nq-mouthset { transform-box: fill-box; transform-origin: 50% 50%; }
.nq-orb .nq-eyes { transition: transform 320ms var(--nq-arrive); }
.nq-orb[data-state="listening"] .nq-eyes { transform: scale(1.1); }
.nq-orb.nq-anim[data-state="answering"] .nq-mouthset { transform-origin: 50% 0; animation: nq-talk .36s ease-in-out infinite alternate; }
.nq-wink .nq-eye-r .nq-dots { opacity: 0 !important; }
.nq-wink .nq-eye-r .nq-happy { opacity: 1 !important; }
/* sparkles, only on real good news */
.nq-orb .nq-spark { fill: #2bb3a5; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transition: opacity 300ms var(--nq-change); }
.nq-orb .nq-s2, .nq-orb .nq-s4 { fill: #f2b84b; }
.nq-orb[data-state="pleased"] .nq-spark { opacity: 1; }
.nq-orb.nq-anim[data-state="pleased"] .nq-spark { animation: nq-twinkle 1.3s var(--nq-arrive) infinite; }
.nq-orb.nq-anim[data-state="pleased"] .nq-s2 { animation-delay: -.4s; }
.nq-orb.nq-anim[data-state="pleased"] .nq-s3 { animation-delay: -.8s; }
.nq-orb.nq-anim[data-state="pleased"] .nq-s4 { animation-delay: -1s; }
.nq-orb.nq-sm .nq-sparks { display: none; }
@keyframes nq-spin { to { transform: rotate(360deg); } }
@keyframes nq-talk { from { transform: scaleY(.7); } to { transform: scaleY(1.08); } }
@keyframes nq-twinkle { 0% { transform: scale(.4) rotate(0); opacity: 0; } 30% { opacity: 1; transform: scale(1.1) rotate(20deg); } 100% { transform: scale(.9) rotate(45deg); opacity: .85; } }
@keyframes nq-sway { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(10px, 6px); } 66% { transform: translate(-4px, 10px); } }

/* Niqo as a tile of 3D glass: it moves on springs. It sways at rest, leans in and nods when you talk, wiggles and hops
   while it works, bounces as it answers, jumps and spins once on real good news, and only tilts softly when you are
   worried. The turn is on the drawing (centre), the hop and squash on its wrapper (feet). */
.nq-tile .nq-drift { transform-origin: 100px 98px; }
.nq-tile .nq-breath { perspective: 520px; }
.nq-tile svg { transform-origin: 50% 54%; }
.nq-tile.nq-anim[data-state="idle"] svg { animation: nqt-sway 6.5s ease-in-out infinite; }
.nq-tile.nq-anim[data-state="listening"] svg { animation: nqt-lean .8s cubic-bezier(.34,1.9,.5,1) both, nqt-nod 2.4s ease-in-out .8s infinite; }
.nq-tile.nq-anim[data-state="thinking"] svg { animation: nqt-busy 1.6s linear infinite; }
.nq-tile.nq-anim[data-state="thinking"] .nq-bounce { animation: nqt-busyhop 1.6s linear infinite; }
.nq-tile.nq-anim[data-state="worried"] svg { animation: nqt-soft 5s ease-in-out infinite; }
.nq-tile.nq-hop .nq-bounce { animation: nqt-hop 700ms linear 1; }
.nq-tile.nq-hop svg { animation: nqt-hoptilt 700ms linear 1; }
.nq-tile.nq-joy .nq-bounce { animation: nqt-jump 1050ms linear 1; }
.nq-tile .nq-all { transform-box: view-box; transform-origin: 100px 100px; }
.nq-tile.nq-joy .nq-all { animation: nqt-spin 1050ms linear 1; }
.nq-tile.nq-sm .nq-sparks { display: none; }
.nq-tile[data-state="worried"] .nq-eyes { transform: scale(.94, .8); }   /* soft, calm eyes when you are worried */
.nq-tile[data-state="thinking"] .nq-eyes { transform: scale(1, .9); }
@keyframes nqt-sway { 0%, 100% { transform: rotate(-2.5deg) rotateY(-8deg); } 50% { transform: rotate(2.5deg) rotateY(8deg); } }
@keyframes nqt-lean { from { transform: none; } to { transform: rotate(6deg) rotateX(12deg); } }
@keyframes nqt-nod { 0%, 100% { transform: rotate(6deg) rotateX(12deg); } 45% { transform: rotate(4deg) rotateX(20deg) translateY(2%); } }
@keyframes nqt-busy { 0% { transform: none; } 10% { transform: rotate(-10deg) rotateY(16deg); } 22% { transform: rotate(7deg) rotateY(-12deg); }
  32% { transform: rotate(-4deg) rotateY(6deg); } 41% { transform: rotate(2deg); } 50%, 100% { transform: none; } }
@keyframes nqt-busyhop { 0%, 52%, 100% { transform: none; } 60% { transform: scale(1.07, .92); } 70% { transform: translateY(-7%) scale(.96, 1.05); }
  80% { transform: scale(1.04, .96); } 88% { transform: scale(.99, 1.01); } }
@keyframes nqt-soft { 0%, 100% { transform: rotate(3deg) rotateX(6deg); } 50% { transform: rotate(1.5deg) rotateX(4deg); } }
@keyframes nqt-hop { 0% { transform: none; } 18% { transform: scale(1.08, .9); } 42% { transform: translateY(-6%) scale(.95, 1.06); }
  62% { transform: scale(1.05, .95); } 78% { transform: scale(.98, 1.02); } 100% { transform: none; } }
@keyframes nqt-hoptilt { 0%, 100% { transform: none; } 30% { transform: rotate(-5deg); } 55% { transform: rotate(4deg); } 75% { transform: rotate(-1.5deg); } }
@keyframes nqt-jump { 0% { transform: none; } 14% { transform: scale(1.12, .86); } 40% { transform: translateY(-26%) scale(.94, 1.08); }
  60% { transform: translateY(0) scale(1.12, .88); } 72% { transform: scale(.95, 1.06); } 84% { transform: scale(1.03, .97); } 93% { transform: scale(.995, 1.005); } 100% { transform: none; } }
@keyframes nqt-spin { 0%, 14% { transform: none; } 58% { transform: rotate(360deg); } 70% { transform: rotate(372deg); } 82% { transform: rotate(356deg); } 100% { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Niqo, the mascot (20 Nov 2026, night)
   Flat teal, big eyes, arms and feet. Motion follows the old animators' rules: it gets ready before it moves (anticipation),
   squashes when it lands and stretches when it leaps, its arms arrive a beat after its body (follow-through), and every
   move settles with one small overshoot. Four layers move on their own: the wrapper (.nq-bounce: up, down, squash, from
   the feet), the drawing (svg: turns and leans, in 3D), the body inside it (.nq-all: a spin in the plane), the arms and
   feet. A shadow on the ground (.nq-ground) shrinks as it rises. Moods loop; moves (.nq-a-*) play once, whole. */
.nq-buddy .nq-breath { perspective: 640px; }
.nq-buddy svg { transform-origin: 50% 60%; }
.nq-buddy .nq-all { transform-box: view-box; transform-origin: 100px 105px; }
.nq-buddy .nq-arm, .nq-buddy .nq-foot, .nq-buddy .nq-mouthset, .nq-buddy .nq-eyes { transform-box: view-box; }
.nq-buddy .nq-arm-l { transform-origin: 40px 104px; }
.nq-buddy .nq-arm-r { transform-origin: 160px 104px; }
.nq-buddy .nq-foot-l { transform-origin: 76px 175px; }
.nq-buddy .nq-foot-r { transform-origin: 124px 175px; }
.nq-buddy .nq-mouthset { transform-origin: 100px 129px; }
.nq-buddy .nq-eyes { transform-origin: 100px 96px; transition: transform 300ms cubic-bezier(.34,1.56,.64,1); }
.nq-buddy.nq-sm .nq-sil { stroke: none; }
.nq-buddy .nq-ground { top: auto; bottom: 1%; left: 25%; right: 25%; height: 6%; border-radius: 50%; background: rgb(13 48 45 / .16); transform-origin: 50% 50%; }
.nq-buddy.nq-sm .nq-ground, .nq-buddy:not(.nq-lg) .nq-ground { display: none; }
.nq-buddy .nq-shadow { display: none; }
/* arms and feet come out only while Niqo does something, and tuck away after (the owner: "only when required") */
.nq-buddy .nq-bodyset { opacity: 0; transform-box: view-box; transform-origin: 100px 120px; transform: scale(.55);
  transition: opacity 160ms var(--nq-change), transform 300ms cubic-bezier(.34,1.56,.64,1); }
.nq-buddy.nq-limbs .nq-bodyset, .nq-buddy.nq-joy .nq-bodyset, .nq-buddy.nq-hop .nq-bodyset, .nq-buddy[class*="nq-a-"] .nq-bodyset,
.nq-buddy.nq-anim[data-state="thinking"] .nq-bodyset { opacity: 1; transform: none; }
.nq-buddy.nq-sm .nq-bodyset { display: none; }

/* idle: it breathes, its arms drift, and now and then (niqo.js) it looks around, hops, waves or smiles */
.nq-buddy.nq-anim .nq-breath { animation: nqb-breathe 3.6s ease-in-out infinite; }
.nq-buddy.nq-anim .nq-arm-l { animation: nqb-arm 3.6s ease-in-out infinite; }
.nq-buddy.nq-anim .nq-arm-r { animation: nqb-arm 3.6s ease-in-out -1.8s infinite reverse; }
/* listening: it leans in with a spring and nods along; eyes a little wider */
.nq-buddy.nq-anim[data-state="listening"] svg { animation: nqb-lean .7s cubic-bezier(.34,1.8,.5,1) both, nqb-nod 1.9s ease-in-out .7s infinite; }
.nq-buddy[data-state="listening"] .nq-eyes { transform: scale(1.08); }
/* thinking: it spins. A small crouch, a full turn in the air, a soft landing, a beat looking up, again */
.nq-buddy.nq-anim[data-state="thinking"] svg { animation: nqb-spin 2.1s infinite; }
.nq-buddy.nq-anim[data-state="thinking"] .nq-bounce { animation: nqb-spinhop 2.1s infinite; }
.nq-buddy.nq-anim[data-state="thinking"] .nq-ground { animation: nqb-shadow-spin 2.1s infinite; }
.nq-buddy.nq-anim[data-state="thinking"] .nq-arm-l { animation: nqb-armout 2.1s infinite; }
.nq-buddy.nq-anim[data-state="thinking"] .nq-arm-r { animation: nqb-armout-r 2.1s infinite; }
/* answering: it talks, with a small gesture of one arm */
.nq-buddy.nq-anim[data-state="answering"] .nq-mouthset, .nq-buddy.nq-say .nq-mouthset { animation: nqb-talk .26s ease-in-out infinite alternate; }
/* worried: it bends towards you, slower, arms in close */
.nq-buddy.nq-anim[data-state="worried"] svg { animation: nqb-bendsoft 4.6s ease-in-out infinite; }
.nq-buddy.nq-anim[data-state="worried"] .nq-breath { animation-duration: 5.4s; }
.nq-buddy[data-state="worried"] .nq-eyes { transform: scale(.96, .9); }

/* moves, played once (Niqo.act); the answer's hop and the good-news jump use the same */
.nq.nq-buddy.nq-hop .nq-bounce, .nq.nq-buddy.nq-a-hop .nq-bounce { animation: nqb-hop 640ms 1; }
.nq.nq-buddy.nq-a-wink .nq-bounce { animation: nqb-hop 640ms 1; }   /* the wink: a small hop while the face winks */
.nq.nq-buddy.nq-hop .nq-ground, .nq.nq-buddy.nq-a-hop .nq-ground { animation: nqb-shadow-hop 640ms 1; }
.nq.nq-buddy.nq-joy .nq-bounce, .nq.nq-buddy.nq-a-jump .nq-bounce { animation: nqb-jump 1250ms 1; }
.nq.nq-buddy.nq-joy .nq-all, .nq.nq-buddy.nq-a-jump .nq-all { animation: nqb-flip 1250ms 1; }
.nq.nq-buddy.nq-joy .nq-ground, .nq.nq-buddy.nq-a-jump .nq-ground { animation: nqb-shadow-jump 1250ms 1; }
.nq.nq-buddy.nq-joy .nq-arm-l, .nq.nq-buddy.nq-a-jump .nq-arm-l { animation: nqb-cheer 1250ms 1; }
.nq.nq-buddy.nq-joy .nq-arm-r, .nq.nq-buddy.nq-a-jump .nq-arm-r { animation: nqb-cheer-r 1250ms 1; }
.nq.nq-buddy.nq-joy .nq-foot, .nq.nq-buddy.nq-a-jump .nq-foot { animation: nqb-tuck 1250ms 1; }
.nq.nq-buddy.nq-a-spin svg { animation: nqb-turn 950ms 1; }
.nq.nq-buddy.nq-a-spin .nq-bounce { animation: nqb-hop 950ms 1; }
.nq.nq-buddy.nq-a-bend svg { animation: nqb-bow 950ms 1; }
.nq.nq-buddy.nq-a-bend .nq-bounce { animation: nqb-sink 950ms 1; }
.nq.nq-buddy.nq-a-wave .nq-arm-r { animation: nqb-wave 1300ms 1; }
.nq.nq-buddy.nq-a-wave svg { animation: nqb-wavetilt 1300ms 1; }
.nq.nq-buddy.nq-a-shake svg { animation: nqb-shake 760ms 1; }
.nq.nq-buddy.nq-a-look svg { animation: nqb-look 1500ms 1; }
.nq.nq-buddy.nq-a-peek .nq-bounce { animation: nqb-peek 900ms 1 both; }
.nq.nq-buddy.nq-a-land .nq-bounce { animation: nqb-land 700ms 1 both; }
.nq.nq-buddy.nq-a-land .nq-ground { animation: nqb-shadow-land 700ms 1 both; }

/* The pull on Home (24 Nov 2026; the chairman: "From the moment I start pulling him … we should do some animation.
   Then, when I leave him, he should do some animation … Not just jump: 3 to 4 different types of animations").
   While the finger is down the page scrubs Niqo itself, every frame (index.html's pull block): he crouches, tilts toward
   the finger and looks up, his shadow grows, and at the refresh point he pops with his eyes > <. Letting go plays one of
   four moves, each launched from the crouch he is in (--c0, --t0) and each landing in a squash and one small rebound:
     pjump   a spring jump, arms up (a short pull, or the first full pull of a gentle mood)      760 ms
     pspin   a jump with the rendered turn-around in the air                                     1050 ms
     pflip   a front flip, head over heels toward you (rotateX: never a cartwheel in the plane)  1150 ms
     psoar   a rocket: a deeper crouch, a launch to the card's top edge, a hang with a shiver, down  1300 ms
   and, when the new data is on screen, psettle: two small happy bobs (760 ms). He stays whole on screen (5 Dec, the
   chairman: "it jumps and goes above the screen"): his head never rises past the room shown above him (the page's cap(),
   which sets the numbers). The rules every frame keeps: on the ground (no lift) he stretches at most --nq-g; in the air
   (lifted a share of --nq-up, never more than all of it) he is never taller than --nq-k of himself (a tuck: what his
   feet rise beyond the room, he gets smaller); a landing's rebound lifts --nq-bob and never stretches; in the air he
   turns at most 3deg (the rocket's shiver, --nq-sh of 2deg: less when the room is under 4 px). The flip's depth is set
   by his size (--nq-h). tests/test_cp2_pulljump.py checks these frame by frame. Only transform, scale and opacity move, so every frame stays on the compositor. Rise, fall and landing keep one
   feel: cubic-bezier(.2,.8,.35,1) up, (.55,0,.9,.45) down, (.3,1.6,.6,1) the squash's spring. */
/* the body is an inline span, which takes no transform: a box of its own only while the flip turns it */
.nq.nq-a-pflip .nq-breath { display: block; position: absolute; inset: 0; }
/* the flip's depth: seen from about his feet, so edge-on he is a thin sliver, never gone; both faces show */
.nq.nq-a-pflip .nq-bounce { perspective: calc(3.44 * var(--nq-h, 64px)); perspective-origin: 50% 118%; }
.nq.nq-a-pflip .nq-breath { backface-visibility: visible; transform-origin: 50% 56%; }
.nq.nq-a-pjump .nq-bounce { animation: nqb-pjump 760ms 1 both; }
.nq.nq-a-pjump .nq-ground { animation: nqb-sh-pjump 760ms 1 both; }
.nq.nq-a-pspin .nq-bounce { animation: nqb-pspin 1050ms 1 both; }
.nq.nq-a-pspin .nq-ground { animation: nqb-sh-pspin 1050ms 1 both; }
.nq.nq-a-pflip .nq-bounce { animation: nqb-pflip 1150ms 1 both; }
.nq.nq-a-pflip .nq-breath { animation: nqb-pflip-body 1150ms 1 both, nqb-pflip-tuck 1150ms 1 both; }
.nq.nq-a-pflip .nq-ground { animation: nqb-sh-pflip 1150ms 1 both; }
.nq.nq-a-psoar .nq-bounce { animation: nqb-psoar 1300ms 1 both; }
.nq.nq-a-psoar .nq-ground { animation: nqb-sh-psoar 1300ms 1 both; }
.nq.nq-a-psettle .nq-bounce { animation: nqb-psettle 760ms 1 both; }
.nq.nq-a-psettle .nq-ground { animation: nqb-sh-psettle 760ms 1 both; }
/* where each move starts: the crouch and the lean the finger left him in */
@keyframes nqb-pjump {
  0% { transform: translate(0, 0) rotate(var(--t0, 0deg)) scale(calc(1 + .1 * var(--c0, 1)), calc(1 - .14 * var(--c0, 1))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  10% { transform: translate(0, 0) scale(.92, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  33% { transform: translate(0, calc(-1 * var(--nq-up, 16px))) scale(calc(.98 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  56% { transform: translate(0, 0) scale(.94, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  63% { transform: translate(0, 0) scale(1.18, .8); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  76% { transform: translate(0, calc(-1 * var(--nq-bob, 3px))) scale(.97, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  88% { transform: translate(0, 0) scale(1.04, .97); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqb-sh-pjump { 0% { transform: scaleX(1.3); opacity: 1; } 33% { transform: scale(.5); opacity: .3; } 56% { transform: scaleX(1); opacity: 1; }
  63% { transform: scaleX(1.32); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes nqb-pspin {
  0% { transform: translate(0, 0) rotate(var(--t0, 0deg)) scale(calc(1 + .1 * var(--c0, 1)), calc(1 - .14 * var(--c0, 1))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  8% { transform: translate(0, 0) scale(.93, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  28% { transform: translate(0, calc(-1 * var(--nq-up, 16px))) scale(calc(1 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: linear; }
  50% { transform: translate(0, calc(-.9 * var(--nq-up, 16px))) scale(calc(1 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  68% { transform: translate(0, 0) scale(.95, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  74% { transform: translate(0, 0) scale(1.17, .82); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  85% { transform: translate(0, calc(-1 * var(--nq-bob, 3px))) scale(.98, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  93% { transform: translate(0, 0) scale(1.02, .98); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqb-sh-pspin { 0% { transform: scaleX(1.3); opacity: 1; } 28%, 50% { transform: scale(.45); opacity: .3; } 68% { transform: scaleX(1); opacity: 1; }
  74% { transform: scaleX(1.3); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes nqb-pflip {
  0% { transform: translate(0, 0) rotate(var(--t0, 0deg)) scale(calc(1 + .1 * var(--c0, 1)), calc(1 - .14 * var(--c0, 1))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  10% { transform: translate(0, 0) scale(.93, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  34% { transform: translate(0, calc(-1 * var(--nq-up, 16px))) scale(calc(1 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: linear; }
  52% { transform: translate(0, calc(-.88 * var(--nq-up, 16px))) scale(calc(1 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  68% { transform: translate(0, 0) scale(.96, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  74% { transform: translate(0, 0) scale(1.2, .8); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  85% { transform: translate(0, calc(-1 * var(--nq-bob, 3px))) scale(.98, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  93% { transform: translate(0, 0) scale(1.03, .97); animation-timing-function: ease-out; }
  100% { transform: none; } }
/* one turn in one curve, fastest upside down, never stopping there; tucked (smaller) while upside down */
@keyframes nqb-pflip-body { 0%, 15% { transform: rotateX(0deg); animation-timing-function: cubic-bezier(.45,0,.55,1); } 64%, 100% { transform: rotateX(-360deg); } }
@keyframes nqb-pflip-tuck { 0%, 15% { scale: 1; animation-timing-function: ease-in-out; } 40% { scale: .82; animation-timing-function: ease-in-out; } 64%, 100% { scale: 1; } }
@keyframes nqb-sh-pflip { 0% { transform: scaleX(1.3); opacity: 1; } 34%, 52% { transform: scale(.45); opacity: .3; } 68% { transform: scaleX(1); opacity: 1; }
  74% { transform: scaleX(1.34); opacity: 1; } 100% { transform: none; opacity: 1; } }
/* the rocket: a deeper crouch, a straight launch to the top of his room, a hang there with a small shiver, and down into
   the biggest squash; he never leaves the card */
@keyframes nqb-psoar {
  0% { transform: translate(0, 0) rotate(var(--t0, 0deg)) scale(calc(1 + .1 * var(--c0, 1)), calc(1 - .14 * var(--c0, 1))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  7% { transform: translate(0, 0) rotate(0deg) scale(1.16, .8); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  13% { transform: translate(0, 0) rotate(0deg) scale(.88, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  24% { transform: translate(0, calc(-1 * var(--nq-up, 16px))) rotate(0deg) scale(calc(.96 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: ease-in-out; }
  31% { transform: translate(0, calc(-.94 * var(--nq-up, 16px))) rotate(calc(-2deg * var(--nq-sh, 1))) scale(calc(1 * var(--nq-k, 1)), calc(.98 * var(--nq-k, 1))); animation-timing-function: ease-in-out; }
  38% { transform: translate(0, calc(-1 * var(--nq-up, 16px))) rotate(calc(2deg * var(--nq-sh, 1))) scale(calc(1 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: ease-in-out; }
  44% { transform: translate(0, calc(-.96 * var(--nq-up, 16px))) rotate(0deg) scale(calc(1 * var(--nq-k, 1)), calc(1 * var(--nq-k, 1))); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  58% { transform: translate(0, 0) rotate(0deg) scale(.9, calc(1 + var(--nq-g, .04))); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  63% { transform: translate(0, 0) rotate(0deg) scale(1.26, .74); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  74% { transform: translate(0, calc(-1 * var(--nq-bob, 3px))) rotate(0deg) scale(.96, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  85% { transform: translate(0, 0) rotate(0deg) scale(1.06, .95); animation-timing-function: ease-out; }
  93% { transform: translate(0, calc(-.25 * var(--nq-bob, 3px))) rotate(0deg) scale(.99, 1); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqb-sh-psoar { 0% { transform: scaleX(1.36); opacity: 1; } 7% { transform: scaleX(1.42); opacity: 1; } 13% { transform: scaleX(1.1); opacity: 1; }
  24%, 44% { transform: scale(.5); opacity: .3; } 58% { transform: scaleX(1); opacity: 1; } 63% { transform: scaleX(1.5); opacity: 1; } 80% { transform: scaleX(1.05); opacity: 1; }
  100% { transform: none; opacity: 1; } }
/* the data is back: two small happy bobs, never taller than he is */
@keyframes nqb-psettle {
  0% { transform: none; animation-timing-function: ease-out; }
  16% { transform: scale(1.07, .93); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  34% { transform: translate(0, calc(-1 * var(--nq-bob, 3px))) scale(.98, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  50% { transform: scale(1.06, .94); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  66% { transform: translate(0, calc(-.5 * var(--nq-bob, 3px))) scale(.99, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  82% { transform: scale(1.02, .98); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqb-sh-psettle { 0%, 100% { transform: none; opacity: 1; } 34% { transform: scale(.82); opacity: .7; } 50% { transform: scaleX(1.1); } 66% { transform: scale(.92); opacity: .85; } }

@keyframes nqb-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.025, .975); } }
@keyframes nqb-arm { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
@keyframes nqb-lean { from { transform: none; } to { transform: rotate(5deg) rotateX(14deg) translateY(2%); } }
@keyframes nqb-nod { 0%, 100% { transform: rotate(5deg) rotateX(14deg) translateY(2%); } 40% { transform: rotate(3deg) rotateX(24deg) translateY(4%); } 60% { transform: rotate(5deg) rotateX(10deg) translateY(1%); } }
@keyframes nqb-spin {
  0% { transform: rotateY(0); animation-timing-function: cubic-bezier(.3,0,.6,1); }
  12% { transform: rotateY(-28deg); animation-timing-function: cubic-bezier(.45,0,.2,1); }
  50% { transform: rotateY(378deg); animation-timing-function: cubic-bezier(.3,0,.4,1); }
  60% { transform: rotateY(354deg); animation-timing-function: ease-out; }
  68%, 100% { transform: rotateY(360deg); } }
@keyframes nqb-spinhop {
  0% { transform: none; animation-timing-function: ease-out; }
  12% { transform: scale(1.1, .9); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  30% { transform: translateY(-14%) scale(.96, 1.05); animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  52% { transform: translateY(0) scale(1.03, .98); animation-timing-function: ease-out; }
  58% { transform: scale(1.12, .88); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  70%, 100% { transform: none; } }
@keyframes nqb-shadow-spin { 0%, 100% { transform: none; opacity: 1; } 12% { transform: scaleX(1.1); } 30% { transform: scale(.7); opacity: .6; } 52% { transform: none; opacity: 1; } 58% { transform: scaleX(1.14); } 70% { transform: none; } }
@keyframes nqb-armout { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-14deg); } 30%, 50% { transform: rotate(62deg); } 62% { transform: rotate(-8deg); } 74% { transform: rotate(4deg); } 84% { transform: rotate(0); } }
@keyframes nqb-armout-r { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(14deg); } 30%, 50% { transform: rotate(-62deg); } 62% { transform: rotate(8deg); } 74% { transform: rotate(-4deg); } 84% { transform: rotate(0); } }
@keyframes nqb-talk { from { transform: scaleY(.72); } to { transform: scale(1.04, 1.12); } }
@keyframes nqb-explain { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-38deg); } 45% { transform: rotate(-30deg); } 60% { transform: rotate(-40deg); } 80% { transform: rotate(-4deg); } }
@keyframes nqb-bendsoft { 0%, 100% { transform: rotate(3deg) rotateX(10deg) translateY(2%); } 50% { transform: rotate(4.5deg) rotateX(14deg) translateY(3%); } }
@keyframes nqb-hop {
  0% { transform: none; animation-timing-function: ease-out; }
  18% { transform: scale(1.12, .88); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  45% { transform: translateY(-12%) scale(.95, 1.07); animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  70% { transform: translateY(0) scale(1.1, .9); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  100% { transform: none; } }
@keyframes nqb-shadow-hop { 0%, 100% { transform: none; opacity: 1; } 18% { transform: scaleX(1.1); } 45% { transform: scale(.75); opacity: .65; } 70% { transform: scaleX(1.12); opacity: 1; } }
@keyframes nqb-jump {
  0% { transform: none; animation-timing-function: ease-out; }
  14% { transform: scale(1.18, .8); animation-timing-function: cubic-bezier(.15,.8,.35,1); }
  40% { transform: translateY(-46%) scale(.92, 1.1); animation-timing-function: cubic-bezier(.3,0,.7,.3); }
  50% { transform: translateY(-50%) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  64% { transform: translateY(0) scale(.94, 1.08); animation-timing-function: ease-out; }
  70% { transform: scale(1.22, .78); animation-timing-function: cubic-bezier(.2,.8,.4,1); }
  80% { transform: translateY(-7%) scale(.97, 1.04); animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  88% { transform: translateY(0) scale(1.05, .95); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqb-flip { 0%, 18% { transform: none; animation-timing-function: cubic-bezier(.4,0,.2,1); } 60% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } }
@keyframes nqb-shadow-jump { 0%, 100% { transform: none; opacity: 1; } 14% { transform: scaleX(1.18); } 50% { transform: scale(.42); opacity: .35; } 64% { transform: none; opacity: 1; } 70% { transform: scaleX(1.25); } 80% { transform: scale(.85); } 88% { transform: scaleX(1.06); } }
@keyframes nqb-cheer { 0%, 100% { transform: rotate(0); } 14% { transform: rotate(-22deg); } 34%, 58% { transform: rotate(118deg); } 70% { transform: rotate(-12deg); } 82% { transform: rotate(10deg); } 92% { transform: rotate(-3deg); } }
@keyframes nqb-cheer-r { 0%, 100% { transform: rotate(0); } 14% { transform: rotate(22deg); } 34%, 58% { transform: rotate(-118deg); } 70% { transform: rotate(12deg); } 82% { transform: rotate(-10deg); } 92% { transform: rotate(3deg); } }
@keyframes nqb-tuck { 0%, 18%, 64%, 100% { transform: none; } 34%, 52% { transform: translateY(-5px) scaleY(.8); } }
@keyframes nqb-turn {
  0% { transform: rotateY(0); animation-timing-function: ease-out; }
  16% { transform: rotateY(-24deg); animation-timing-function: cubic-bezier(.45,0,.2,1); }
  72% { transform: rotateY(372deg); animation-timing-function: ease-in-out; }
  86% { transform: rotateY(357deg); }
  100% { transform: rotateY(360deg); } }
@keyframes nqb-bow {
  0% { transform: none; animation-timing-function: cubic-bezier(.4,0,.2,1); }
  40%, 52% { transform: rotateX(30deg) translateY(4%); animation-timing-function: cubic-bezier(.3,1.5,.6,1); }
  100% { transform: none; } }
@keyframes nqb-sink { 0%, 100% { transform: none; } 40%, 52% { transform: scale(1.06, .93); } 76% { transform: scale(.98, 1.02); } }
@keyframes nqb-wave { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-125deg); } 30% { transform: rotate(-95deg); } 45% { transform: rotate(-128deg); } 60% { transform: rotate(-96deg); } 75% { transform: rotate(-120deg); } 90% { transform: rotate(-6deg); } }
@keyframes nqb-wavetilt { 0%, 100% { transform: none; } 15%, 75% { transform: rotate(-5deg); } 90% { transform: rotate(1.5deg); } }
@keyframes nqb-shake { 0%, 100% { transform: none; } 18% { transform: rotateY(-22deg); } 40% { transform: rotateY(20deg); } 62% { transform: rotateY(-12deg); } 82% { transform: rotateY(5deg); } }
@keyframes nqb-look { 0%, 100% { transform: none; } 18%, 40% { transform: rotateY(-30deg) rotate(-3deg); } 58%, 80% { transform: rotateY(30deg) rotate(3deg); } 92% { transform: rotateY(-4deg); } }
@keyframes nqb-peek {
  0% { transform: translateY(70%) scale(.9, 1.1); animation-timing-function: cubic-bezier(.2,.8,.3,1.2); }
  60% { transform: translateY(-6%) scale(.96, 1.05); animation-timing-function: ease-in-out; }
  80% { transform: translateY(0) scale(1.06, .94); }
  100% { transform: none; } }
@keyframes nqb-land {
  0% { transform: translateY(-70%) scale(.92, 1.1); opacity: 0; animation-timing-function: cubic-bezier(.55,0,.9,.4); }
  20% { opacity: 1; }
  55% { transform: translateY(0) scale(.95, 1.06); animation-timing-function: ease-out; }
  66% { transform: scale(1.2, .8); animation-timing-function: cubic-bezier(.3,1.6,.6,1); }
  100% { transform: none; opacity: 1; } }
@keyframes nqb-shadow-land { 0% { transform: scale(.3); opacity: 0; } 55% { transform: none; opacity: 1; } 66% { transform: scaleX(1.25); } 100% { transform: none; opacity: 1; } }

/* Scenes: two or three Niqos come together and talk (Niqo.scene) */
.nq-scene { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-top: 34px; }
.nq-actor { position: relative; display: inline-block; perspective: 520px; opacity: 0; }
.nq-actor > .nq-hold { display: inline-block; transform: rotateY(var(--face, 0deg)); transition: transform 460ms cubic-bezier(.34,1.56,.64,1); }
.nq-actor.nq-in { opacity: 1; animation: nqs-in 820ms both; }
@keyframes nqs-in {
  0% { opacity: 0; transform: translate(calc(var(--side) * 72px), calc(-28px * (1 - var(--abs)))); animation-timing-function: cubic-bezier(.3,0,.5,1); }
  15% { opacity: 1; }
  40% { transform: translate(calc(var(--side) * 40px), -24px); animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  62% { transform: translate(calc(var(--side) * 14px), 0); animation-timing-function: cubic-bezier(.3,0,.5,1); }
  80% { transform: translate(calc(var(--side) * 4px), -10px); animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  100% { opacity: 1; transform: none; } }
.nq-bub { position: absolute; left: 50%; bottom: 100%; z-index: 1; display: grid; place-items: center; width: 34px; height: 30px; margin-bottom: -6px;
  border-radius: 11px; background: var(--card, #fff); box-shadow: 0 0 0 1px rgb(13 48 45 / .1), 0 2px 4px rgb(13 48 45 / .08);
  transform: translate(-50%, 8px) scale(.2); opacity: 0; transition: transform 320ms cubic-bezier(.34,1.7,.6,1), opacity 160ms; pointer-events: none; }
.nq-bub::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--card, #fff); transform: translateX(-50%) rotate(45deg); box-shadow: 1px 1px 0 rgb(13 48 45 / .1); border-radius: 0 0 2px 0; }
.nq-bub.on { transform: translate(-50%, -2px) scale(1); opacity: 1; }
.nq-bub svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.nq-bub .d { animation: nqs-dot 1s ease-in-out infinite; } .nq-bub .d2 { animation-delay: .15s; } .nq-bub .d3 { animation-delay: .3s; }
@keyframes nqs-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .nq-actor { opacity: 1; } }

/* Niqo, the health companion (21 Nov 2026): a big head, a small body in a coat, mitten hands; the body is part of it
   (not tucked away), and at small sizes only the head shows. */
.nq-comp .nq-all { transform-origin: 100px 100px; }
.nq-comp .nq-arm-l { transform-origin: 62px 112px; }
.nq-comp .nq-arm-r { transform-origin: 138px 112px; }
.nq-comp .nq-foot-l { transform-origin: 87px 178px; }
.nq-comp .nq-foot-r { transform-origin: 113px 178px; }
.nq-comp .nq-eyes { transform-origin: 100px 56px; }
.nq-comp .nq-mouthset { transform-origin: 100px 86px; }
.nq-comp.nq-sm .nq-torso { display: none; }
.nq-comp .nq-tongue { transition: opacity 120ms; }
.nq-comp .nq-xeyes, .nq-comp .nq-typing { opacity: 0; transition: opacity 140ms; }
.nq-comp.nq-joy .nq-xeyes, .nq-comp.nq-a-jump .nq-xeyes { opacity: 1; }
.nq-comp.nq-joy .nq-eyes, .nq-comp.nq-a-jump .nq-eyes { opacity: 0; }
/* while it works an answer out: three dots on its face, bouncing (and the spin in niqo.css's thinking) */
.nq-comp[data-state="thinking"]:not(.nq-sm) .nq-typing { opacity: 1; }
.nq-comp[data-state="thinking"]:not(.nq-sm) .nq-eyes, .nq-comp[data-state="thinking"]:not(.nq-sm) .nq-mouthset { opacity: 0; }
.nq-comp .nq-typing circle { transform-box: fill-box; transform-origin: 50% 50%; }
.nq-comp.nq-anim[data-state="thinking"] .nq-typing circle { animation: nqc-dot 1s ease-in-out infinite; }
.nq-comp .nq-typing .t2 { animation-delay: .15s !important; } .nq-comp .nq-typing .t3 { animation-delay: .3s !important; }
@keyframes nqc-dot { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }

/* Niqo as rendered pictures (niqo.js, the manifest in /niqo/r/): a canvas fills the box; the float, the breath and the
   hops still come from the CSS above (the root is also .nq-buddy). */
.nq-pic .nq-cv { width: 100%; height: 100%; display: block; }
.nq-pic .nq-breath { perspective: none; }

/* Waiting (5 Dec 2026, OWNER-WORDS 388, the chairman: "Add more loading animations … Add 3 to 4 more types of animation.
   Right now, it's just one animation"). While Home's refresh or an answer is on its way he used to only put a hand to his
   chin (think), every time. Now the page takes turns through five moves (index.html, nextWait), never the same twice in a
   row. Each stays on the spot: a bob lifts at most 3 px and never stretches up, a lean is at most 4deg from his feet, so in
   the Home card nothing is cut off. Only transform moves.
     wsway  he looks around: a slow lean one way, then the other, curious (the listen face)   1600 ms
     whum   he hums along: two small bobs in rhythm, happy                                      1400 ms
     wpeek  he peers to one side with his thinking dots, then back                              1500 ms
     wturn  a slow turn-around on the spot (the rendered spin, no jump)                         1300 ms
   With reduced motion none of them plays (Niqo.act): he holds one calm picture. */
.nq.nq-a-wsway .nq-bounce { animation: nqw-sway 1600ms 1 both; }
.nq.nq-a-whum .nq-bounce { animation: nqw-hum 1400ms 1 both; }
.nq.nq-a-whum .nq-ground { animation: nqw-sh-hum 1400ms 1 both; }
.nq.nq-a-wpeek .nq-bounce { animation: nqw-peek 1500ms 1 both; }
.nq.nq-a-wturn .nq-bounce { animation: nqw-turn 1300ms 1 both; }
.nq.nq-buddy.nq-a-wturn:not(.nq-pic) svg { animation: nqb-turn 1300ms 1; }   /* the drawing turns itself */
@keyframes nqw-sway {
  0% { transform: none; animation-timing-function: cubic-bezier(.45,0,.55,1); }
  30% { transform: translate(-2px, 0) rotate(-4deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  70% { transform: translate(2px, 0) rotate(4deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  100% { transform: none; } }
@keyframes nqw-hum {
  0% { transform: none; animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  12% { transform: translate(0, 0) scale(1.06, .94); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  26% { transform: translate(0, -3px) scale(.98, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  40% { transform: translate(0, 0) scale(1.06, .94); animation-timing-function: cubic-bezier(.2,.8,.35,1); }
  54% { transform: translate(0, -3px) scale(.98, 1); animation-timing-function: cubic-bezier(.55,0,.9,.45); }
  68% { transform: translate(0, 0) scale(1.04, .96); animation-timing-function: ease-out; }
  84% { transform: translate(0, 0) scale(.99, 1); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqw-sh-hum { 0%, 100% { transform: none; opacity: 1; } 12%, 40% { transform: scaleX(1.12); } 26%, 54% { transform: scale(.86); opacity: .75; } }
@keyframes nqw-peek {
  0% { transform: none; animation-timing-function: cubic-bezier(.3,0,.2,1); }
  25%, 70% { transform: translate(7px, 0) rotate(3deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  86% { transform: translate(-1px, 0) rotate(-1deg); animation-timing-function: ease-out; }
  100% { transform: none; } }
@keyframes nqw-turn {
  0% { transform: none; animation-timing-function: ease-out; }
  14% { transform: scale(1.04, .96); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  50% { transform: scale(.98, 1); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  86% { transform: scale(1.05, .95); animation-timing-function: ease-out; }
  100% { transform: none; } }

/* Flat (21 Nov 2026): no halo, no sparkles, anywhere. The voice rings (.nq-ring) and the rendered pictures stay. */
.nq-halo, .nq-spark, .nq-sparks { display: none !important; }
