:root { --speaker-color: #ff7d27; }

/* Voice changes the light, never the size or the position of a seat. */
.room-seat.speaker-active {
  border-color: var(--speaker-color) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--speaker-color) 70%, white), 0 0 19px color-mix(in srgb, var(--speaker-color) 47%, transparent), inset 0 0 17px color-mix(in srgb, var(--speaker-color) 15%, transparent) !important;
}
.room-seat.speaker-active .seat-avatar {
  border-color: color-mix(in srgb, var(--speaker-color) 65%, white);
  box-shadow: 0 0 13px color-mix(in srgb, var(--speaker-color) 65%, transparent);
}
.room-seat.speaker-active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--speaker-color);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  clip-path: polygon(0 13%, 100% 13%, 100% 19%, 0 19%);
  animation: voice-neon-glitch 3.1s linear infinite;
}
@keyframes voice-neon-glitch {
  0%, 87%, 94%, 100% { opacity: 0; transform: translateX(0); }
  89%, 91% { opacity: .75; transform: translateX(2px); }
  92% { opacity: .35; transform: translateX(-2px); }
}

/* Keep every button's existing text/background contrast and add a shared halo. */
button:not(:disabled):not([aria-disabled="true"]),
summary:not([aria-disabled="true"]) {
  box-shadow: 0 0 0 1px #ff943d59, 0 0 11px #ff731b30 !important;
}
button:disabled,
button[aria-disabled="true"],
summary[aria-disabled="true"] { box-shadow: none !important; }
@media (hover: hover) {
  button:not(:disabled):not([aria-disabled="true"]):hover,
  summary:not([aria-disabled="true"]):hover {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--speaker-color) 76%, white), 0 0 19px color-mix(in srgb, var(--speaker-color) 50%, transparent) !important;
  }
}
button:not(:disabled):not([aria-disabled="true"]):focus-visible,
summary:not([aria-disabled="true"]):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--speaker-color) 45%, white) !important;
  outline-offset: 3px;
  box-shadow: 0 0 21px color-mix(in srgb, var(--speaker-color) 58%, transparent) !important;
}
button:not(:disabled):not([aria-disabled="true"]):active,
summary:not([aria-disabled="true"]):active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--speaker-color) 70%, white), 0 0 26px color-mix(in srgb, var(--speaker-color) 68%, transparent) !important;
}
.speaker-neon-preference { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 14px 0; }
#speakerNeonColor { width: 56px; min-width: 56px; height: 40px; padding: 3px; border: 1px solid #ff9c5f66; border-radius: 12px; background: #24120e; cursor: pointer; }
#speakerNeonColor:focus-visible { outline: 2px solid #ffb773; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .room-seat.speaker-active::after { animation: none; opacity: 0; }
}
