/* bBot motion (the approved Bubble set, 4 Nov 2026). The reference's timings, with a "bbot-" prefix.
   Six moods: idle, working, typing, done, attention (needs you), sleep (asleep). */
.bbot { display: inline-block; flex-shrink: 0; overflow: visible; }
.bbot-body { transform-box: fill-box; transform-origin: 50% 100%; }
.bbot-st-idle .bbot-body, .bbot-st-working .bbot-body, .bbot-st-typing .bbot-body { animation: bbot-bob 3.2s ease-in-out infinite; }
.bbot-st-done .bbot-body { animation: bbot-hop 1.6s ease-in-out infinite; }
.bbot-st-attention .bbot-body { animation: bbot-wiggle 1.5s ease-in-out infinite; }
.bbot-st-sleep .bbot-body { animation: bbot-bob 6s ease-in-out infinite; }
@keyframes bbot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.3px); } }
@keyframes bbot-hop { 0%, 100% { transform: translateY(0) scale(1); } 18% { transform: translateY(0) scale(1.05, .93); } 42% { transform: translateY(-5px) scale(.97, 1.04); } 66% { transform: translateY(0) scale(1.03, .97); } 80% { transform: translateY(0) scale(1); } }
@keyframes bbot-wiggle { 0%, 55%, 100% { transform: rotate(0); } 8% { transform: rotate(-7deg); } 18% { transform: rotate(6deg); } 28% { transform: rotate(-4deg); } 38% { transform: rotate(2deg); } }
.bbot-blink { transform-box: fill-box; transform-origin: center; animation: bbot-blink 5.5s ease-in-out infinite; }
.bbot-look { animation: bbot-look 2.6s ease-in-out infinite; }
@keyframes bbot-blink { 0%, 45%, 51%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes bbot-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 50% { transform: translateX(0); } 75% { transform: translateX(2px); } }
.bbot-dot { animation: bbot-dot 1.1s ease-in-out infinite; }
.bbot-d2 { animation-delay: .15s; } .bbot-d3 { animation-delay: .3s; }
@keyframes bbot-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-2.4px); opacity: 1; } }
.bbot-tip { animation: bbot-tip 2.4s ease-in-out infinite; }
.bbot-st-attention .bbot-tip { animation-duration: .6s; }
.bbot-st-sleep .bbot-tip { animation: none; opacity: .35; }
@keyframes bbot-tip { 50% { opacity: .3; } }
.bbot-st-working .bbot-led1, .bbot-st-typing .bbot-led1 { animation: bbot-tip .8s ease-in-out infinite; }
.bbot-st-working .bbot-led2, .bbot-st-typing .bbot-led2 { animation: bbot-tip .8s ease-in-out .4s infinite; }
.bbot-zz { animation: bbot-zz 3s ease-in-out infinite; }
.bbot-zz2 { animation-delay: 1.5s; }
@keyframes bbot-zz { 0% { opacity: 0; transform: translate(0, 2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -7px); } }
@media (prefers-reduced-motion: reduce) { .bbot, .bbot * { animation: none !important; } }
