.title-card__subtitle__avatar {
  width: 100px;
  margin: 10px;
  cursor: pointer;
  position: relative;
  /* anchor for spark-layer */
  display: inline-block;
  border-radius: 50%;
  overflow: visible;
}

.title-card__subtitle__avatar img {
  width: 100%;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: transform .3s ease, filter .3s ease;
}

.title-card__subtitle__avatar:hover img {
  transform: scale(1.03);
  cursor: pointer !important;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.title-card__subtitle__avatar:active img {
  transform: scale(1.1);
}

/* Particle layer above image, catches NO clicks */
.title-card__subtitle__spark-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Particles never use left/top – only transforms with CSS vars */
.title-card__subtitle__star {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
  transform: translate(-50%, -50%) translate(var(--ox), var(--oy)) scale(1);
  animation: star-fly var(--dur, 800ms) ease-out forwards;
}

@keyframes star-fly {
  0% {
    /* Start exactly at click point */
    transform: translate(-50%, -50%) translate(var(--ox), var(--oy)) scale(1) rotate(0deg);
    opacity: 1;
  }

  100% {
    /* End at click point + scatter vector */
    transform: translate(-50%, -50%) translate(calc(var(--ox) + var(--dx)), calc(var(--oy) + var(--dy))) scale(0.4) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}