/* Robůtek Anténka: výrazy a pózy (set „fable“), společné pro všechny robůtky webu.
   Převzato z dema Nový web V1 (v416, 17. 11. 2026); komentáře s daty jsou rozhodnutí z návrhu. */
.robot svg{width:100%;height:100%}
/* v6: efekt najíždění sekcí při rolování odebrán (Lukáš) */
/* animace robota běží vždy, bez ohledu na nastavení prohlížeče (přání Lukáše) */
/* Anténka – set "fable": expression & pose animations.
   Every rule is scoped under .set-fable, every keyframe is prefixed fb-.
   No idle sway anywhere: only motion that belongs to the state. */
.set-fable .bot{ overflow: visible; display: block; }
/* pivots */
.set-fable .bot .limb{ transform-box: view-box; transform-origin: 0 0; }
.set-fable .bot .eye{ transform-box: fill-box; transform-origin: 50% 50%; }
.set-fable .bot .eyes{ transform-box: view-box; transform-origin: 100px 96px; }
.set-fable .bot .float{ transform-box: view-box; transform-origin: 100px 218px; }
.set-fable .bot .shadow{ transform-box: view-box; transform-origin: 100px 219px; }
.set-fable .bot .zz,.set-fable .bot .spark,.set-fable .bot .qmark{ transform-box: fill-box; transform-origin: 50% 50%; }
/* ================= EXPRESSIONS ================= */
/* neutral: just blinks */
.set-fable .st-neutral .eye{ animation: fb-blink 4.6s infinite; }
/* wink: the eye stays winked most of the time, opens briefly, winks again */
.set-fable .st-wink .eye-r{ animation: fb-wink-eye 3.6s infinite; }
.set-fable .st-wink .eye-happy{ animation: fb-wink-arc 3.6s infinite; }
.set-fable .st-wink .eye-l{ animation: fb-blink 3.6s infinite; }
/* surprised: eyes and "!" pop in once, LED flashes, "!" keeps a soft pulse */
.set-fable .st-surprised .eyes{ animation: fb-pop .55s cubic-bezier(.2, 1.6, .45, 1) both; }
.set-fable .st-surprised .mouth{ transform-box: fill-box; transform-origin: 50% 50%; animation: fb-pop .55s .08s cubic-bezier(.2, 1.6, .45, 1) both; }
.set-fable .st-surprised .antenna{ animation: fb-led-flash 1.2s ease-out 1 both; }
.set-fable .st-chin .eyes{ animation: fb-think-eyes 5s ease-in-out infinite; }
.set-fable .st-chin .antenna{ animation: fb-led 1s steps(2, jump-none) infinite; }
/* sad: slow heavy blink (tear removed on client request) */
.set-fable .st-sad .eye{ animation: fb-blink-slow 5.2s infinite; }
/* sleep: Zzz drift up one after another, display and LED breathe slowly */
.set-fable .st-sleep .zz{ animation: fb-zz 3.6s ease-in-out infinite; }
.set-fable .st-sleep .zz-2{ animation-delay: 1.2s; }
.set-fable .st-sleep .zz-3{ animation-delay: 2.4s; }
.set-fable .st-sleep .look{ animation: fb-breathe 4.8s ease-in-out infinite; }
.set-fable .st-sleep .antenna{ animation: fb-led-sleep 4.8s ease-in-out infinite; }
/* excited: star eyes pulse, sparkles twinkle around, cheeks glow, LED races */
.set-fable .st-excited .eye{ animation: fb-star 1.1s ease-in-out infinite; }
.set-fable .st-excited .eye-r{ animation-delay: .18s; }
.set-fable .st-excited .spark{ animation: fb-spark 1.6s ease-in-out infinite; }
.set-fable .st-excited .spark-2{ animation-delay: .3s; }
.set-fable .st-excited .spark-3{ animation-delay: .6s; }
.set-fable .st-excited .spark-4{ animation-delay: .9s; }
.set-fable .st-excited .spark-5{ animation-delay: 1.2s; }
.set-fable .st-excited .cheek{ animation: fb-cheek-hi 1.1s ease-in-out infinite; }
.set-fable .st-excited .antenna{ animation: fb-led-fast .55s ease-in-out infinite; }
/* ================= POSES ================= */
/* rest: blinks, now and then glances to the side */
.set-fable .st-rest .eye{ animation: fb-blink 4.6s infinite; }
.set-fable .st-rest .eyes{ animation: fb-glance 9s ease-in-out infinite; }
/* point: the flipper taps twice toward the element, eyes go element → visitor → element */
.set-fable .st-point .arm-l .limb{ animation: fb-point 3s ease-in-out infinite; }
.set-fable .st-point .eyes{ animation: fb-point-eyes 3s ease-in-out infinite; }
.set-fable .st-point .eye{ animation: fb-blink 4.6s infinite; }
/* chin: small taps of the hand on the jaw (dots, eyes and LED shared with thinking above) */
.set-fable .st-chin .arm-r .limb{ animation: fb-chin 2.6s ease-in-out infinite; }
/* sit: dangling feet swing alternately; blinks */
.set-fable .st-sit .foot{ transform-box: view-box; }
/* houpání nohama vypnuto (Lukáš: žádné houpání) */
.set-fable .st-sit .foot-l{ transform-origin: 84px 201px; }
.set-fable .st-sit .foot-r{ transform-origin: 116px 201px; }
.set-fable .st-sit .eye-happy{ transform-box: fill-box; transform-origin: 50% 100%; animation: fb-happy-arcs 4.8s ease-in-out infinite; }
/* jump: crouch (anticipation) → quick stretch & rise → short apex → faster fall → landing squash → settle → pause.
   Ground shadows stay on the ground and shrink while airborne. */
.set-fable .st-jump .float{ animation: fb-jump 2.8s infinite; }
.set-fable .st-jump .shadow{ animation: fb-jump-shadow 2.8s infinite; }
.set-fable .st-jump .arm-l .limb{ animation: fb-jump-arm-l 2.8s infinite; }
.set-fable .st-jump .arm-r .limb{ animation: fb-jump-arm-r 2.8s infinite; }
.set-fable .st-jump .antenna{ animation: fb-led-fast .7s ease-in-out infinite; }
/* shrug: flippers lift and hold, drop; "?" pops in and pulses; eyes search left/right */
.set-fable .st-shrug .arm-l .limb{ animation: fb-shrug-l 3.6s ease-in-out infinite; }
.set-fable .st-shrug .arm-r .limb{ animation: fb-shrug-r 3.6s ease-in-out infinite; }
.set-fable .st-shrug .qmark{ animation: fb-pop .5s cubic-bezier(.2, 1.6, .45, 1) both, fb-bang-pulse 1.8s .5s ease-in-out infinite; }
.set-fable .st-shrug .eyes{ animation: fb-shrug-eyes 3.6s ease-in-out infinite; }
/* dance: four-beat loop (2 s): small grounded hops with Earth-like timing (fast rise, faster fall, landing squash),
   body leans into each hop, flippers alternate up/down, LED and cheeks pulse on the beat.
   Ground shadows stay on the ground and shrink a little during each hop. */
.set-fable .st-dance .float{ animation: fb-dance 2s infinite; }
.set-fable .st-dance .shadow{ animation: fb-dance-shadow 2s infinite; }
.set-fable .st-dance .arm-l .limb{ animation: fb-dance-arm-l 2s ease-in-out infinite; }
.set-fable .st-dance .arm-r .limb{ animation: fb-dance-arm-r 2s ease-in-out infinite; }
.set-fable .st-dance .antenna{ animation: fb-led-fast .5s ease-in-out infinite; }
.set-fable .st-dance .cheek{ animation: fb-cheek 1s ease-in-out infinite; }
.set-fable .st-dance .eye-happy{ transform-box: fill-box; transform-origin: 50% 100%; animation: fb-happy-arcs 1s ease-in-out infinite; }
/* reduced-motion vypnuto: demo má vlastní tlačítko Pozastavit animace */
/* ---------- shared keyframes ---------- */
@keyframes fb-blink{ 0%, 92%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.06); } }
@keyframes fb-blink-slow{ 0%, 88%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } }
@keyframes fb-led{ 0%, 100% { opacity: .23; } 50% { opacity: .55; } }
@keyframes fb-led-fast{ 0%, 100% { opacity: .25; } 50% { opacity: .7; } }
@keyframes fb-cheek{ 0%, 100% { opacity: .62; } 50% { opacity: .9; } }
@keyframes fb-happy-arcs{ 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }
@keyframes fb-wink-eye{ 0%, 62% { opacity: 0; } 66%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes fb-wink-arc{ 0%, 62% { opacity: 1; } 66%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes fb-pop{ 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes fb-bang-pulse{ 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes fb-led-flash{ 0% { opacity: .23; } 15% { opacity: .8; } 35% { opacity: .3; } 50% { opacity: .7; } 100% { opacity: .23; } }
@keyframes fb-think-eyes{ 0%, 38% { transform: translate(7px, -6px); } 48%, 82% { transform: translate(-6px, -5px); } 92%, 100% { transform: translate(7px, -6px); } }
@keyframes fb-zz{ 0% { opacity: 0; transform: translateY(5px) scale(.7); } 25% { opacity: .95; transform: translateY(0) scale(1); } 75% { opacity: .95; transform: translateY(-5px) scale(1.05); } 100% { opacity: 0; transform: translateY(-9px) scale(1.05); } }
@keyframes fb-breathe{ 0%, 100% { opacity: .8; } 50% { opacity: .62; } }
@keyframes fb-led-sleep{ 0%, 100% { opacity: .08; } 50% { opacity: .22; } }
@keyframes fb-star{ 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.14) rotate(8deg); } }
@keyframes fb-spark{ 0%, 100% { opacity: .15; transform: scale(.4) rotate(0deg); } 45% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes fb-cheek-hi{ 0%, 100% { opacity: .7; } 50% { opacity: .95; } }
@keyframes fb-glance{ 0%, 44% { transform: translate(0, 0); } 48%, 60% { transform: translate(-6px, 1px); } 64%, 100% { transform: translate(0, 0); } }
@keyframes fb-point{ 0%, 40%, 100% { transform: rotate(98deg); } 10%, 30% { transform: rotate(104deg); } 20% { transform: rotate(97deg); } }
@keyframes fb-point-eyes{ 0%, 50% { transform: translate(-7px, 2px); } 60%, 80% { transform: translate(0, 0); } 90%, 100% { transform: translate(-7px, 2px); } }
@keyframes fb-chin{ 0%, 55%, 100% { transform: rotate(-160deg); } 62%, 76% { transform: rotate(-163.5deg); } 69% { transform: rotate(-160deg); } }
@keyframes fb-jump{
  0%   { transform: translateY(0) scale(1, 1);           animation-timing-function: ease-in-out; }
  11%  { transform: translateY(0) scale(1.09, .87);      animation-timing-function: cubic-bezier(.3, .2, .3, 1); }
  17%  { transform: translateY(-16px) scale(.94, 1.09);  animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  31%  { transform: translateY(-36px) scale(1, 1);       animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  43%  { transform: translateY(0) scale(1.12, .84);      animation-timing-function: ease-out; }
  50%  { transform: translateY(0) scale(.97, 1.04);      animation-timing-function: ease-in-out; }
  57%, 100% { transform: translateY(0) scale(1, 1); }
}
@keyframes fb-jump-shadow{
  0%, 11% { transform: scale(1); opacity: 1;             animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  31%     { transform: scale(.55); opacity: .45;         animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  43%     { transform: scale(1.08); opacity: 1; }
  52%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes fb-jump-arm-l{
  0%  { transform: rotate(35deg);  animation-timing-function: ease-in-out; }
  11% { transform: rotate(8deg);   animation-timing-function: cubic-bezier(.3, .2, .3, 1); }
  17% { transform: rotate(70deg);  animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  31% { transform: rotate(112deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  43% { transform: rotate(60deg);  animation-timing-function: ease-out; }
  57%, 100% { transform: rotate(35deg); }
}
@keyframes fb-jump-arm-r{
  0%  { transform: rotate(-35deg);  animation-timing-function: ease-in-out; }
  11% { transform: rotate(-8deg);   animation-timing-function: cubic-bezier(.3, .2, .3, 1); }
  17% { transform: rotate(-70deg);  animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  31% { transform: rotate(-112deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  43% { transform: rotate(-60deg);  animation-timing-function: ease-out; }
  57%, 100% { transform: rotate(-35deg); }
}
@keyframes fb-shrug-l{ 0%, 100% { transform: rotate(103deg); } 12%, 48% { transform: rotate(112deg); } 64%, 86% { transform: rotate(98deg); } }
@keyframes fb-shrug-r{ 0%, 100% { transform: rotate(-103deg); } 12%, 48% { transform: rotate(-112deg); } 64%, 86% { transform: rotate(-98deg); } }
@keyframes fb-shrug-eyes{ 0%, 40% { transform: translate(-5px, -3px); } 52%, 88% { transform: translate(6px, -3px); } 100% { transform: translate(-5px, -3px); } }
@keyframes fb-dance{
  0%    { transform: translateY(0) rotate(0deg) scale(1.06, .94);     animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  11%   { transform: translateY(-9px) rotate(-5deg) scale(.98, 1.03); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  22%   { transform: translateY(0) rotate(-4deg) scale(1.06, .94);    animation-timing-function: ease-out; }
  25%   { transform: translateY(0) rotate(-3deg) scale(1.02, .98);    animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  36%   { transform: translateY(-9px) rotate(0deg) scale(.98, 1.03);  animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  47%   { transform: translateY(0) rotate(0deg) scale(1.06, .94);     animation-timing-function: ease-out; }
  50%   { transform: translateY(0) rotate(0deg) scale(1.02, .98);     animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  61%   { transform: translateY(-9px) rotate(5deg) scale(.98, 1.03);  animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  72%   { transform: translateY(0) rotate(4deg) scale(1.06, .94);     animation-timing-function: ease-out; }
  75%   { transform: translateY(0) rotate(3deg) scale(1.02, .98);     animation-timing-function: cubic-bezier(.15, .7, .35, 1); }
  86%   { transform: translateY(-9px) rotate(0deg) scale(.98, 1.03);  animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  97%   { transform: translateY(0) rotate(0deg) scale(1.06, .94);     animation-timing-function: ease-out; }
  100%  { transform: translateY(0) rotate(0deg) scale(1.06, .94); }
}
@keyframes fb-dance-shadow{
  0%, 22%, 25%, 47%, 50%, 72%, 75%, 97%, 100% { transform: scale(1); opacity: 1; }
  11%, 36%, 61%, 86% { transform: scale(.85); opacity: .8; }
}
@keyframes fb-dance-arm-l{
  0%   { transform: rotate(60deg); }
  11%  { transform: rotate(112deg); }
  25%  { transform: rotate(70deg); }
  36%  { transform: rotate(112deg); }
  50%  { transform: rotate(60deg); }
  61%  { transform: rotate(20deg); }
  75%  { transform: rotate(45deg); }
  86%  { transform: rotate(20deg); }
  100% { transform: rotate(60deg); }
}
@keyframes fb-dance-arm-r{
  0%   { transform: rotate(-60deg); }
  11%  { transform: rotate(-20deg); }
  25%  { transform: rotate(-45deg); }
  36%  { transform: rotate(-20deg); }
  50%  { transform: rotate(-60deg); }
  61%  { transform: rotate(-112deg); }
  75%  { transform: rotate(-70deg); }
  86%  { transform: rotate(-112deg); }
  100% { transform: rotate(-60deg); }
}
