.ring-container {
  width: 340px;
  max-width: 100%;
  max-height: 340px;
  aspect-ratio: 1;
  margin: auto 0;
  position: relative;
  flex-shrink: 1;
  min-height: 0;
}

.ring {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  margin: auto;
  animation: ring-rotate 60s linear infinite;
}

@keyframes ring-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ring-mid-outer {
  position: absolute;
  top: 7.5%;
  left: 7.5%;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: ring-rotate 50s linear infinite reverse;
}

.ring-inner {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: ring-rotate 45s linear infinite reverse;
}

.ring-mid-inner {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: ring-rotate 35s linear infinite;
}

.ring-node {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.ring-node-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black) !important;
  letter-spacing: 0;
}

.ring-glow {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

.ring-node-enter {
  animation: node-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes node-pop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.ring-node-avatar {
  overflow: visible;
}

.ring-node-mood {
  position: absolute;
  bottom: -1px;
  right: -1px;
  font-size: 0.75rem;
  line-height: 1;
  pointer-events: none;
}

.ring-node-ready {
  box-shadow: 0 0 20px currentColor, 0 0 6px currentColor;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* ── Accessibility ── */

@media (prefers-reduced-motion: reduce) {

  .ring,
  .ring-mid-outer,
  .ring-inner,
  .ring-mid-inner,
  .ring-glow,
  .ring-node-enter {
    animation: none !important;
  }

  .ring-node-ready {
    transition: none !important;
  }
}