
/* Uploaded companion identity portraits — show the complete supplied photograph. */
#team .companion-row img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1264 / 1568!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#111!important;
  border-radius:13px!important;
}

#team .live-character{
  height:auto!important;
  aspect-ratio:1264 / 1568!important;
  background:#111!important;
}

#team .live-character img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
}

/* Preserve the portrait without zoom/crop during the subtle presence animation. */
#team .live-character img{
  animation:uploadedPortraitPresence 5.6s ease-in-out infinite!important;
}
@keyframes uploadedPortraitPresence{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}

@media(max-width:680px){
  #team .companion-row{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  #team .companion-row button{
    overflow:hidden!important;
  }
}

@media(prefers-reduced-motion:reduce){
  #team .live-character img{
    animation:none!important;
    transform:none!important;
  }
}
