/*
  Avatar 10 — Signature Orbit Avatar — standalone HTML/CSS/JS.
  No build step, no framework, no external dependency: copy index.html,
  this file, and script.js into any project as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --orbit-fg: oklch(0.18 0 0);
  --orbit-muted: oklch(0.55 0 0);
  --orbit-track: oklch(0.93 0 0);
  --orbit-accent: #39ff14;
}

.avatar10 {
  position: relative;
  display: inline-flex;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

.avatar10--lg {
  width: 5.5rem;
  height: 5.5rem;
}

.avatar10__orbit {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.avatar10__track {
  stroke: var(--orbit-track);
}

/* The signature: each person's share of the talk time is drawn as an arc
   around their avatar, and the live speaker's arc lights up with a marker
   travelling it. */
.avatar10__arc {
  stroke: var(--orbit-fg);
  transition:
    stroke-dasharray 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
    stroke 300ms ease-out;
}

.avatar10[data-speaking] .avatar10__arc {
  stroke: var(--orbit-accent);
}

.avatar10[data-muted] .avatar10__arc {
  stroke: var(--orbit-track);
}

.avatar10__marker {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: avatar10-orbit 5s linear infinite;
}

.avatar10__marker[hidden] {
  display: none;
}

.avatar10__face {
  position: relative;
  display: flex;
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  background-color: oklch(0.93 0.03 250);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: oklch(0.38 0.06 250);
  user-select: none;
  transition:
    box-shadow 300ms ease-out,
    transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.avatar10--lg .avatar10__face {
  width: 4rem;
  height: 4rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.avatar10[data-speaking] .avatar10__face {
  box-shadow:
    0 0 0 3px rgba(57, 255, 20, 0.28),
    0 0 20px rgba(57, 255, 20, 0.35);
}

.avatar10__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms ease-out;
}

.avatar10__image[data-loaded] {
  opacity: 1;
}

.avatar10__image[data-failed] {
  display: none;
}

.avatar10__mute {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--orbit-fg);
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

.avatar10__mute[hidden] {
  display: none;
}

.avatar10__mute svg {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
}

@keyframes avatar10-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* Reduced motion: the marker parks at the top of the orbit instead of
   travelling it; everything still reads from colour, position and text. */
@media (prefers-reduced-motion: reduce) {
  .avatar10__marker {
    animation: none;
  }
  .avatar10__arc,
  .avatar10__face,
  .avatar10__image {
    transition: none;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
p,
ul {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.avatar10-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}
.avatar10-layout__card {
  width: 100%;
  max-width: 40rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 40px -16px rgba(0, 0, 0, 0.12);
}
.avatar10-layout__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid oklch(0.97 0 0);
  padding: 0.875rem 1.25rem;
}
.avatar10-layout__heading {
  font-size: 15px;
  font-weight: 600;
  color: oklch(0.205 0 0);
}
.avatar10-layout__meta {
  font-size: 0.75rem;
  line-height: 1rem;
  font-variant-numeric: tabular-nums;
  color: oklch(0.556 0 0);
}
.avatar10-layout__speaking {
  font-size: 0.75rem;
  line-height: 1rem;
  color: oklch(0.556 0 0);
}
.avatar10-layout__speaking strong {
  font-weight: 500;
  color: oklch(0.205 0 0);
}
.avatar10-layout__people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 1.25rem 0.75rem;
}
.avatar10-layout__person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.avatar10-layout__label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}
.avatar10-layout__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: oklch(0.371 0 0);
}
.avatar10-layout__person[data-speaking] .avatar10-layout__name {
  font-weight: 600;
  color: oklch(0.205 0 0);
}
.avatar10-layout__share {
  font-size: 11px;
  line-height: 1rem;
  font-variant-numeric: tabular-nums;
  color: oklch(0.556 0 0);
}
.avatar10-layout__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid oklch(0.97 0 0);
  padding: 0.75rem 1.25rem;
}
.avatar10-layout__legend-dot {
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #39ff14;
}
.avatar10-layout__legend p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  color: oklch(0.556 0 0);
}
@media (min-width: 40rem) {
  .avatar10-layout {
    padding: 2rem;
  }
  .avatar10-layout__head,
  .avatar10-layout__legend {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
  .avatar10-layout__people {
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }
}
