.role-name { position: relative; font-weight: 700; }

.role-owner {
  color: #ff6b6b;
  background: linear-gradient(90deg, #ff4d4d, #ffa94d, #ffee4d, #5cff6b, #4dd9ff, #6f7bff, #c86bff, #ff4dc4, #ff4d4d, #ffa94d, #ffee4d, #5cff6b, #4dd9ff, #6f7bff, #c86bff, #ff4dc4, #ff4d4d) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .35));
  animation: role-rainbow 3s linear infinite;
}

.role-admin {
  color: #ff4f4f;
  text-shadow: 0 0 3px rgba(255, 40, 40, .9), 0 0 8px rgba(255, 0, 0, .55);
  animation: role-glow-red 1.8s ease-in-out infinite alternate;
}

.role-moderator {
  color: #c98bff;
  text-shadow: 0 0 3px rgba(185, 90, 255, .9), 0 0 8px rgba(150, 40, 255, .55);
  animation: role-glow-purple 1.8s ease-in-out infinite alternate;
}

.role-developer {
  color: #ff8c1a;
  text-shadow: 0 0 3px rgba(255, 120, 0, .9), 0 0 8px rgba(255, 90, 0, .55);
  animation: role-glow-orange 1.8s ease-in-out infinite alternate;
}

.member-name {
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.member-bc {
  color: #7fd0ff;
  background-image: linear-gradient(180deg, #ffffff 0%, #d9f1ff 40%, #5cc0ff 56%, #2f9cf0 100%);
}

.member-tbc {
  color: #ffb02e;
  background-image: linear-gradient(180deg, #fff27a 0%, #ffd23a 40%, #ff9a1f 56%, #ff6a12 100%);
}

.member-obc {
  color: #e8c25a;
  background-image: linear-gradient(180deg, #c5ced8 0%, #74808c 46%, #f0c04a 54%, #ffe9a3 100%);
  filter: drop-shadow(0 0 1px rgba(255, 210, 90, .55));
}

a:hover .role-admin, a:hover .role-moderator, a:hover .role-developer, a:hover .member-name { text-decoration: underline; }

.name-badges { white-space: nowrap; }
.name-badge { position: relative; top: -1px; margin-left: 3px; vertical-align: middle; }
.name-badges-large .name-badge { top: -2px; margin-left: 6px; }

@keyframes role-rainbow {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

@keyframes role-glow-red {
  from { text-shadow: 0 0 2px rgba(255, 40, 40, .7), 0 0 5px rgba(255, 0, 0, .35); }
  to { text-shadow: 0 0 4px rgba(255, 70, 70, 1), 0 0 12px rgba(255, 0, 0, .8); }
}

@keyframes role-glow-purple {
  from { text-shadow: 0 0 2px rgba(185, 90, 255, .7), 0 0 5px rgba(150, 40, 255, .35); }
  to { text-shadow: 0 0 4px rgba(200, 120, 255, 1), 0 0 12px rgba(150, 40, 255, .8); }
}

@keyframes role-glow-orange {
  from { text-shadow: 0 0 2px rgba(255, 120, 0, .7), 0 0 5px rgba(255, 90, 0, .35); }
  to { text-shadow: 0 0 4px rgba(255, 150, 40, 1), 0 0 12px rgba(255, 90, 0, .8); }
}

@media (prefers-reduced-motion: reduce) {
  .role-name { animation: none; }
}
