/* Avajang mascot: visual-only decoration. The image itself animates; no overlay blocks forms.
   Small transparent PNG, local asset, and respects reduced-motion preferences. */
.ava-mascot {
  display:flex;
  flex:0 0 auto;
  justify-content:center;
  align-items:center;
  position:relative;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  isolation:isolate;
  overflow:visible;
}
.ava-mascot img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  max-width:none;
  transform-origin:50% 72%;
  animation:avaMascotWiggle 5.8s ease-in-out infinite;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.12));
  will-change:transform;
}
/* Restful most of the time; playful wiggles/tilts and a small hop happen in the middle. */
@keyframes avaMascotWiggle {
  0%, 12%, 68%, 100% {transform:translate3d(0,0,0) rotate(0deg) scale(1)}
  18% {transform:translate3d(0,-4px,0) rotate(-5deg) scale(1.01)}
  24% {transform:translate3d(1px,-7px,0) rotate(5deg) scale(1.035)}
  30% {transform:translate3d(-1px,-3px,0) rotate(-4deg) scale(1.02)}
  36% {transform:translate3d(0,-10px,0) rotate(3deg) scale(1.035)}
  43% {transform:translate3d(1px,-2px,0) rotate(-3deg) scale(1.015)}
  50% {transform:translate3d(0,0,0) rotate(3deg) scale(1)}
  57% {transform:translate3d(0,-3px,0) rotate(-1.5deg) scale(1.01)}
}
/* Internal pages: in the header flow, not a floating obstruction. */
.topbar .ava-mascot--topbar {
  inline-size:60px;
  block-size:60px;
  flex:0 0 60px;
  z-index:0;
  margin-inline:5px;
}
/* Desktop login/signup: mascot is the illustration instead of generic animated orbits. */
.auth-experience .ava-auth-illustration {
  display:grid;
  min-height:206px;
  flex:1 1 auto;
  place-items:center;
  position:relative;
}
.auth-experience .ava-mascot--auth {
  width:146px;
  height:146px;
  max-width:45%;
}
.auth-experience .ava-mascot--auth-mobile {display:none}
@media (max-width:900px) {
  .topbar .ava-mascot--topbar {width:52px;height:52px;flex-basis:52px;margin-inline:1px}
  .auth-experience .ava-mascot--auth {width:126px;height:126px}
}
@media (max-width:700px) {
  .topbar .ava-mascot--topbar {width:48px;height:48px;flex-basis:48px}
  /* Showcase illustration is hidden on narrow screens; keep the mascot visible in form area. */
  .auth-experience .ava-auth-illustration {display:none !important}
  .auth-experience .ava-mascot--auth-mobile {
    display:flex !important;
    width:76px;
    height:76px;
    margin:0 auto 4px;
    align-self:center;
  }
}
@media (max-width:375px) {
  .topbar .ava-mascot--topbar {width:43px;height:43px;flex-basis:43px}
  .auth-experience .ava-mascot--auth-mobile {width:62px;height:62px}
}
@media (prefers-reduced-motion:reduce) {
  .ava-mascot img {animation:none !important;will-change:auto}
}

/* Keep the existing remember-me label readable next to the new mascot. */
.auth-workspace label.check {color:#d7e7f0 !important;}

/* Roaming: preserve the original's layout slot while a temporary image visits other locations. */
.ava-mascot.ava-mascot--roaming > img {
  opacity:0 !important;
  animation-play-state:paused !important;
}
.ava-mascot-flyer {
  position:fixed;
  z-index:75;
  display:grid;
  place-items:center;
  overflow:visible;
  pointer-events:none !important;
  background:transparent !important;
  transform-origin:center center;
  will-change:transform;
  contain:layout style;
}
.ava-mascot-flyer > img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:transparent !important;
  filter:drop-shadow(0 8px 9px rgba(0,0,0,.18));
  animation:avaMascotFlyWiggle 1.2s ease-in-out infinite alternate;
}
@keyframes avaMascotFlyWiggle {
  0%,100% {transform:rotate(-4deg) translateY(0)}
  50% {transform:rotate(5deg) translateY(-3px)}
}
@media (prefers-reduced-motion:reduce) {
  .ava-mascot-flyer {display:none !important}
}
