/* ────────────────────────────────────────────────────────────
   AvatarLive — visual primitives shared by every embed
   ────────────────────────────────────────────────────────── */

.avatar-live { isolation: isolate; }

/* subtle vignette around the edge — adds cinematic depth */
.avatar-live .avl-vignette {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, oklch(0 0 0 / 0.35) 100%);
  mix-blend-mode: multiply;
}

/* progress hairline at the bottom of the avatar */
.avatar-live .avl-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  height: 2px;
  background: oklch(0 0 0 / 0.35);
  overflow: hidden;
  pointer-events: none;
}
.avatar-live .avl-progress-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--pulse), var(--pulse-hi));
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 8px oklch(from var(--pulse) l c h / 0.55);
}

/* badge — current state name */
.avatar-live .avl-badge {
  position: absolute; left: 12px; bottom: 16px; z-index: 7;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 8px;
  background: oklch(0 0 0 / 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.10);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  max-width: calc(100% - 24px);
  overflow: hidden;
}
.avatar-live .avl-badge-cat {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.avatar-live .avl-badge-sep { color: var(--ink-4); }
.avatar-live .avl-badge-lbl {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-live .avl-badge .cat-dot { width: 5px; height: 5px; }

/* ambient pulse ring */
.avatar-live.has-ring { overflow: visible !important; }
.avatar-live.has-ring .avl-ring {
  position: absolute; inset: -8px; z-index: -1;
  border-radius: inherit;
  border: 1.5px solid oklch(from var(--pulse) l c h / 0.45);
  animation: avl-ambient 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes avl-ambient {
  0%, 100% { opacity: 0.55; transform: scale(1.0); }
  50%      { opacity: 0.95; transform: scale(1.02); }
}
