/* Replace the baked portrait with a softly feathered ruins backdrop while
   leaving the class artwork crisp and without a frame. */
.reference-home .ref-class-avatar{
 left:0!important;top:20.25%!important;width:59.5%!important;height:27.9%!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 overflow:visible!important;isolation:isolate!important;
 -webkit-mask-image:none!important;mask-image:none!important;
}
.reference-home .ref-class-avatar:before{
 display:block!important;content:""!important;position:absolute;inset:-11% -28% -8% -13%;z-index:2!important;pointer-events:none;
 background:linear-gradient(180deg,#100b07c9,#090603dc),url('assets/castillo-sombrio.png') center 38%/cover no-repeat;
 filter:blur(14px) brightness(.78);opacity:.94;
}
.reference-home .ref-class-avatar img{position:relative;z-index:3!important;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 9px #080503aa);mix-blend-mode:normal}
