/* Ghost state: CSS filter on the living avatar (design/02-stilusbiblia.md "Szellem-állapot CSS").
   Applied to .avatar wrappers holding an <img> or the placeholder <svg>. */
.avatar.ghost img,
.avatar.ghost svg {
  filter: grayscale(0.8) sepia(0.4) hue-rotate(60deg) saturate(2.2) brightness(1.15)
          drop-shadow(0 0 10px var(--c-toxic)) drop-shadow(0 0 22px color-mix(in srgb, var(--c-toxic) 60%, transparent));
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(to bottom, var(--c-ink) 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, var(--c-ink) 70%, transparent 100%);
  animation: ghost-float 3.2s ease-in-out infinite;
}
.avatar img, .avatar svg { transition: filter var(--t-ghost) ease, opacity var(--t-ghost) ease; }

@keyframes ghost-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Avatar icon in its round frame (style bible "Avatar-sor": living = gold frame, ghost = green frame). */
img.avatar-img {
  width: 100%; height: 100%; display: block; box-sizing: border-box; object-fit: cover;
  border-radius: 50%; border: 4px solid var(--c-lantern);
  background: radial-gradient(circle at 50% 40%, var(--c-royal), var(--c-midnight));
}
.avatar.ghost img.avatar-img { border-color: var(--c-toxic); }
