/* Independent CryptoBound Elite rank badges for ranks 28-30. */
.rank.rank28,
.HD .rank.rank28 {
    background-image: url(/static/images/elite_ranks/elite_rank_maya_inca_25x15.png?20261028-v2) !important;
}

.rank.rank29,
.HD .rank.rank29 {
    background-image: url(/static/images/elite_ranks/elite_rank_cryptobound_25x15.png?20261028-v2) !important;
}

.rank.rank30,
.HD .rank.rank30 {
    background-image: url(/static/images/elite_ranks/elite_rank_fenix_25x15.png?20261028-v2) !important;
}

.rank.rank28,
.rank.rank29,
.rank.rank30,
.HD .rank.rank28,
.HD .rank.rank29,
.HD .rank.rank30 {
    width: 25px !important;
    height: 15px !important;
    background-position: 0 0 !important;
    background-size: 25px 15px !important;
    background-repeat: no-repeat !important;
}

/* The lobby profile badge has legacy positioning rules; keep its Elite art exact. */
#myRank2.rank28,
#myRank2.rank29,
#myRank2.rank30 {
    width: 25px !important;
    height: 15px !important;
    background-position: 0 0 !important;
    background-size: 25px 15px !important;
    background-color: transparent !important;
}

/* Rank is already rendered inside #myName2 by createName().  The legacy
   rank0 node otherwise sits above it and covers the real Elite badge. */
#myRank2 {
    display: none !important;
}

/* Elite chat identity (rank 28-30 / chat type 18).
   Replace the legacy white halo consistently in lobby, rooms and matches. */
#channelTextHtml .zotata-chat-type18,
#channelTextHtml .zotata-chat-type18 .ztext,
#channelTextHtml .zotata-chat-type18 .GuildName,
#channelTextHtml .zotata-chat-type18 .GuildName a,
#roomChatHtml .zotata-chat-type18,
#roomChatHtml .zotata-chat-type18 .ztext,
#roomChatHtml .zotata-chat-type18 .GuildName,
#roomChatHtml .zotata-chat-type18 .GuildName a,
#gameChatHtml .zotata-chat-type18,
#gameChatHtml .zotata-chat-type18 .ztext,
#gameChatHtml .zotata-chat-type18 .GuildName,
#gameChatHtml .zotata-chat-type18 .GuildName a {
    text-shadow: -1px -1px 1px #001419,
                 1px -1px 1px #001419,
                 -1px 1px 1px #001419,
                 1px 1px 1px #001419,
                 0 0 5px #04fefe,
                 0 0 10px #04fefe !important;
}

/* A normal typographic space between the Elite badge and the guild name. */
.zotata-chat-type18 > .rank_emoji + .chatSpacer {
    width: 4px !important;
}

/* The same cyan text glow for the speech balloon shown over room players. */
.roomPlayerBalloon.bg3 {
    text-shadow: 0 0 4px #04fefe,
                 0 0 8px rgba(4, 254, 254, .8),
                 0 1px 1px #001419 !important;
}

/* In-match Elite speech cloud: replace the legacy black outline, including
   its pointer, with the same cyan identity color. */
#game_objects .GamePlayerBalloon.bg3,
#game_objects .GamePlayerBalloon.chatType18 {
    border-color: #04fefe !important;
    box-shadow: 0 0 0 1px rgba(4, 254, 254, .35),
                0 0 7px rgba(4, 254, 254, .72) !important;
}

#game_objects .GamePlayerBalloonTip.bg3,
#game_objects .GamePlayerBalloonTip.chatType18 {
    width: 12px !important;
    height: 10px !important;
    background: #04fefe !important;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    overflow: visible !important;
}

#game_objects .GamePlayerBalloonTip.bg3::after,
#game_objects .GamePlayerBalloonTip.chatType18::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 0;
    width: 8px;
    height: 7px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Independent Web3 Elite chat identities.  Normal users keep the original
   chat type and bubble; each purchasable Elite rank owns a separate type. */
.zotata-chat-type19,.zotata-chat-type19 .ztext,.zotata-chat-type19 .GuildName,.zotata-chat-type19 .GuildName a{color:#fff4c5!important;text-shadow:0 1px 1px #241400,0 0 5px #ffd55c,0 0 11px #ff9d24!important}
.zotata-chat-type20,.zotata-chat-type20 .ztext,.zotata-chat-type20 .GuildName,.zotata-chat-type20 .GuildName a{color:#eaffff!important;text-shadow:0 1px 1px #001923,0 0 5px #04fefe,0 0 12px #247cff!important}
.zotata-chat-type21,.zotata-chat-type21 .ztext,.zotata-chat-type21 .GuildName,.zotata-chat-type21 .GuildName a{color:#fff0fb!important;text-shadow:0 1px 1px #250014,0 0 5px #ff42c8,0 0 12px #ff7a24!important}

.roomPlayerBalloon.chatType19{background:linear-gradient(180deg,#fff9dd,#ffe9a5)!important;border-color:#ffd55c!important;box-shadow:0 0 12px #ffb629!important;color:#3b2100!important}
.roomPlayerBalloon.chatType20{background:linear-gradient(180deg,#efffff,#c9f9ff)!important;border-color:#04fefe!important;box-shadow:0 0 12px #04befe!important;color:#001c2e!important}
.roomPlayerBalloon.chatType21{background:linear-gradient(180deg,#fff1fb,#ffd4ef)!important;border-color:#ff42c8!important;box-shadow:0 0 12px #ff762f!important;color:#35001f!important}
.roomPlayerBalloonTip.chatType19{border-top-color:#ffd55c!important;filter:drop-shadow(0 0 5px #ffb629)!important}
.roomPlayerBalloonTip.chatType20{border-top-color:#04fefe!important;filter:drop-shadow(0 0 5px #04fefe)!important}
.roomPlayerBalloonTip.chatType21{border-top-color:#ff42c8!important;filter:drop-shadow(0 0 5px #ff762f)!important}

#game_objects .GamePlayerBalloon.chatType19{background:linear-gradient(180deg,#fff9dd,#ffe9a5)!important;color:#3b2100!important;text-shadow:0 0 3px #fff!important}
#game_objects .GamePlayerBalloon.chatType20{background:linear-gradient(180deg,#efffff,#c9f9ff)!important;color:#001c2e!important;text-shadow:0 0 3px #fff!important}
#game_objects .GamePlayerBalloon.chatType21{background:linear-gradient(180deg,#fff1fb,#ffd4ef)!important;color:#35001f!important;text-shadow:0 0 3px #fff!important}
#game_objects .GamePlayerBalloonTip.chatType19{background:#ffd55c!important}
#game_objects .GamePlayerBalloonTip.chatType20{background:#04fefe!important}
#game_objects .GamePlayerBalloonTip.chatType21{background:#ff42c8!important}
