If you were creating a real-time messaging platform that supports group chats with 3 or more users, and each message bubble needed to have a unique color, how would you approach this? Is there a method to dynamically change the CSS class of a speech bubble based on a user's ID or session ID? For example, if the last digit of each ID ranges from 0-9 and there are 10 different CSS classes for speech bubbles with varying colors in the same stylesheet, could this be implemented successfully? It is acknowledged that this logic would not work if two or more users had the same digit. Is there a more efficient and sophisticated solution available? Perhaps assigning a distinct token to each user in sequence? Can all of this be accomplished using only CSS selectors? I am intrigued by the strategies one might employ to address this situation! Any insights or suggestions would be greatly appreciated!