/* ELIE v5.1.62 — immediate impact flow, right-side UP counter and Evolution Lab alerts. */

/* The UP count belongs on the right rim of the control, close enough to read as
   one instrument without changing the established HUD footprint. */
.home-screen .personal-stats-cluster .home-upgrade-count{
  left:auto!important;
  right:clamp(-5px,calc(var(--u)*-.18),-2px)!important;
}

@media (orientation:landscape) and (pointer:coarse){
  .home-screen .personal-stats-cluster .home-upgrade-count{
    left:auto!important;
    right:-4px!important;
  }
}

/* Evolution Lab: a purchase-ready category receives a compact yellow warning
   immediately before its numeric progress value. */
.evolution-categories button .evolution-category-label{
  min-width:0;
  margin-right:auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.evolution-categories button .evolution-update-alert{
  flex:0 0 auto;
  width:calc(var(--u)*1.18);
  height:calc(var(--u)*1.18);
  margin-left:calc(var(--u)*.45);
  margin-right:calc(var(--u)*.42);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ffd400;
  color:#050505;
  font-family:"Duplet",Arial,sans-serif;
  font-size:calc(var(--u)*.78);
  font-style:normal;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 0 1px rgba(0,0,0,.82),0 0 calc(var(--u)*.7) rgba(255,212,0,.22);
  transform:translateZ(0);
  animation:elieEvolutionAlertPulse 1.55s cubic-bezier(.2,.75,.2,1) infinite;
}
.evolution-categories button.active .evolution-update-alert{
  background:#ffd400;
  color:#050505;
  box-shadow:0 0 0 1px rgba(0,0,0,.9),0 0 calc(var(--u)*.72) rgba(255,212,0,.3);
}
@keyframes elieEvolutionAlertPulse{
  0%,55%,100%{transform:translateZ(0) scale(1);filter:brightness(1)}
  68%{transform:translateZ(0) scale(1.11);filter:brightness(1.08)}
  80%{transform:translateZ(0) scale(.98);filter:brightness(1)}
}
@media (prefers-reduced-motion:reduce){
  .evolution-categories button .evolution-update-alert{animation:none!important}
}
