/* Roberta animada — camadas e movimento. Só transform/opacity; tudo sob o portão de movimento. */
.rb { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.rb-corpo, .rb-cab { position: absolute; inset: 0; }
.rb-corpo { transform-origin: 50% 100%; }
.rb img { position: absolute; display: block; pointer-events: none; }
.rb .rb-base { inset: 0; width: 100%; height: 100%; }
.rb svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rb .rb-palp { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }

@media (prefers-reduced-motion: no-preference) {
  .rb.rb-entra { animation: rb-entra .75s cubic-bezier(.3, 1.45, .5, 1) both; }
  .rb-respira { animation: rb-respira 3.6s ease-in-out infinite; }
  .rb-risada  { animation: rb-risada .38s ease-in-out infinite alternate; }
  .rb-cab     { animation: rb-cabeca 3.8s .4s ease-in-out infinite; }
  .rb-risada .rb-cab { animation: rb-sacode .38s ease-in-out infinite alternate; }
  .rb .rb-palp { animation: rb-pisca 4.2s 1.4s infinite; }
  .rb .rb-aceno  { animation: rb-aceno .42s .4s ease-in-out infinite alternate; }
  .rb .rb-punho  { animation: rb-punho .5s .3s ease-in-out infinite alternate; }
  .rb .rb-punho2 { animation: rb-punho .5s .55s ease-in-out infinite alternate; }
  .rb .rb-pulsa  { animation: rb-pulsa 1.2s ease-in-out infinite; }
  .rb .rb-pulsa2 { animation: rb-pulsa 1.2s .6s ease-in-out infinite; }
  .rb .rb-pulsa-leve { animation: rb-pulsa-leve 2.2s ease-in-out infinite; }
}
@keyframes rb-entra   { from { transform: translateY(30%) scale(.9); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes rb-respira { 0%, 100% { transform: none } 50% { transform: rotate(-1deg) scale(1.006, .994) } }
@keyframes rb-risada  { from { transform: translateY(0) scale(1, 1) } to { transform: translateY(-1.2%) scale(1.01, .99) } }
@keyframes rb-cabeca  { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(var(--amp, 3deg)) } 60% { transform: rotate(calc(var(--amp, 3deg) * -.7)) } 80% { transform: rotate(calc(var(--amp, 3deg) * .2)) } }
@keyframes rb-sacode  { from { transform: rotate(-1.5deg) } to { transform: rotate(1.5deg) translateY(-.6%) } }
@keyframes rb-pisca   { 0%, 90%, 100% { transform: scaleY(0) } 93%, 95% { transform: scaleY(1) } }
@keyframes rb-aceno   { from { transform: rotate(-9deg) } to { transform: rotate(11deg) } }
@keyframes rb-punho   { from { transform: rotate(-2.5deg) } to { transform: rotate(3deg) } }
@keyframes rb-pulsa   { 0%, 100% { transform: scale(1) } 30% { transform: scale(1.28) } 55% { transform: scale(1.08) } }
@keyframes rb-pulsa-leve { 0%, 100% { transform: scale(1) } 40% { transform: scale(1.07) } }
