/* Donate v chatu (core/donation.js) — karta v barvách UnityChatu (oranžový gradient + zář jako logo / .pi.uc). */
.msg.donation-event {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; margin: 6px 0; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.06));
  border-style: solid; border-color: #ff8c00; border-width: 0 5px 0 5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 16px rgba(255, 140, 0, 0.28);
}
.msg.donation-event:hover { background: linear-gradient(180deg, rgba(255, 140, 0, 0.28), rgba(255, 140, 0, 0.1)); }
.msg.donation-event .don-icon {
  display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
  color: #ffc04d; filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.6));
}
/* Oficiální loga zdrojů v barvách značek (core/donation.js LOGOS). */
.msg.donation-event.via-kofi .don-icon { color: #ff6433; filter: drop-shadow(0 0 4px rgba(255, 100, 51, 0.5)); }
.msg.donation-event.via-streamlabs .don-icon { color: #80f5d2; filter: drop-shadow(0 0 4px rgba(128, 245, 210, 0.5)); }
.msg.donation-event.via-fourthwall .don-icon { color: #fdfcfb; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35)); }
.msg.donation-event .don-body { flex: 1; min-width: 0; }
.msg.donation-event .don-line {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px;
  line-height: 1.4; color: var(--text, #d0d0da);
}
.msg.donation-event .un { font-weight: 700; }
/* Jméno klikatelné jen u spárovaného dárce (.don-un: Profil / nabídka moda); bez identity jen text. */
.msg.donation-event .un:not(.don-un) { cursor: default; }
.msg.donation-event .un:not(.don-un):hover { text-decoration: none; }
/* Jméno v kartě bez dvojtečky (věta „X poslal donate“, ne zpráva chatu). */
.msg.donation-event .un::after { content: none; }
/* Částka, druh platby (Ko-fi) a štítek „test“: stejná výška, písmo a zarovnání. */
.msg.donation-event .don-amount,
.msg.donation-event .don-kind,
.msg.donation-event .don-test {
  display: inline-flex; align-items: center; height: 1.45em; padding: 0 7px; border-radius: 0.75em;
  font-size: 0.85em; font-weight: 800; line-height: 1; white-space: nowrap;
}
.msg.donation-event .don-amount {
  color: #1a1206; background: linear-gradient(90deg, #ffd93d, #ffb31e, #ff8c00);
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.45);
}
/* Cizí měna ↔ koruny: oba texty na sobě (grid), každých 5 s se prostřídají vyjetím nahoru (core donationAmountHtml). */
.msg.donation-event .don-amt-cycle { display: inline-grid; overflow: hidden; justify-items: center; }
.msg.donation-event .don-amt-cycle > span { grid-area: 1 / 1; display: inline-flex; align-items: center; }
.msg.donation-event .don-amt-a { animation: don-amt-a 10s ease-in-out infinite; }
.msg.donation-event .don-amt-b { animation: don-amt-b 10s ease-in-out infinite; opacity: 0; }
@keyframes don-amt-a { 0%, 44% { transform: translateY(0); opacity: 1; } 50%, 94% { transform: translateY(-110%); opacity: 0; } 94.01% { transform: translateY(110%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes don-amt-b { 0%, 44% { transform: translateY(110%); opacity: 0; } 50%, 94% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-110%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .msg.donation-event .don-amt-a { animation: none; } .msg.donation-event .don-amt-b { animation: none; display: none; } }
.msg.donation-event .don-kind { color: #fff; background: rgba(114, 164, 242, 0.35); border: 1px solid rgba(114, 164, 242, 0.6); text-transform: lowercase; }
.msg.donation-event .don-text {
  margin-top: 5px; color: #fff; font-size: 1.05em; font-weight: 600; overflow-wrap: anywhere;
}
.msg.donation-event .ts { opacity: 0.6; font-size: 0.85em; }
/* Štítek „test“ jen modovi / streamerovi (host přepíná body.uc-mod). */
.msg.donation-event .don-test {
  display: none; text-transform: uppercase; letter-spacing: 0.03em;
  color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
}
body.uc-mod .msg.donation-event .don-test { display: inline-flex; }
.msg.donation-event.don-hidden { opacity: 0.45; filter: grayscale(0.6); }

/* Odpověď na donate (2026-10-06): ↩ jako u zprávy (.msg-actions nad kartou), bez přihlášení schované. */
body.uc-signed-out .msg.donation-event .don-actions { display: none !important; }
/* Citace nad odpovědí: ikona zdroje místo loga platformy + částka. */
.reply-ctx .rctx-don { display: inline-flex; vertical-align: -2px; margin-right: 3px; color: #ffc04d; filter: drop-shadow(0 0 3px rgba(255, 140, 0, 0.5)); }
.reply-ctx .rctx-don svg { width: 12px; height: 12px; }
.reply-ctx .rctx-don.via-kofi { color: #ff6433; }
.reply-ctx .rctx-don.via-fourthwall { color: #fdfcfb; }
.reply-ctx .rctx-don.via-streamlabs { color: #80f5d2; }
.reply-ctx .rctx-don-amt { color: #ffc04d; font-weight: 700; }
#reply-indicator .ri-don-amt { color: #ffc04d; font-weight: 700; }
.reply-ctx .rctx-don-hidden { font-style: italic; font-weight: 600; }

/* ---- Skrytí alertu modem pro všechny (core/alert-hide.js, 2026-10-07): donate, sub, odměna, nájezd ----
   Divák a OBS skrytý alert nevidí, mod ztlumený. Přepnutí role nic nepřekresluje — rozhoduje body.uc-mod.
   Ovládání (2026-10-08): oko v hover nabídce karty (.msg-actions jako u zpráv) — přeškrtnuté = schovat, otevřené = zobrazit. */
body:not(.uc-mod) .uc-alert-hidden { display: none !important; }
body.uc-mod .uc-alert-hidden { opacity: 0.45; filter: grayscale(0.6); }
body.uc-mod .uc-alert-hidden:hover { opacity: 0.75; }
[data-alert-kind] { position: relative; }
.msg-action-btn[data-act="alert-hide"] { display: none; }
body.uc-mod .msg-action-btn[data-act="alert-hide"] { display: flex; }
body.uc-mod .msg-action-btn[data-act="alert-hide"]:hover { color: #7fd0ff; }
/* Koš „Smazat z chatu“ u skrytého alertu (2026-10-10): jen mod, druhý klik do 3 s (natažený = červený). */
.msg-action-btn[data-act="alert-purge"] { display: none; }
body.uc-mod .msg-action-btn[data-act="alert-purge"] { display: flex; }
body.uc-mod .msg-action-btn[data-act="alert-purge"]:hover { color: #ff6b6b; }
.msg-action-btn[data-act="alert-purge"].uc-del-armed, body.uc-mod .msg-action-btn[data-act="alert-purge"].uc-del-armed:hover { color: #fff; background: #d0342c; }
/* Sbalení skrytého alertu (2026-10-10): modovi výchozí rozbalený (jen ztlumený), šipka v nabídce sbalí na řádek hlavičky. */
.msg-action-btn[data-act="alert-collapse"] { display: none; }
body.uc-mod .msg-action-btn[data-act="alert-collapse"] { display: flex; }
body.uc-mod .msg-action-btn[data-act="alert-collapse"]:hover { color: #7fd0ff; }
/* Sbalený skrytý alert = kompaktní jednořádkový proužek (pokyn usera 2026-10-10), čistě CSS nad DOM karet (bez změny JS):
   donate `.don-icon .don-body>.don-line(.un .don-verb .don-amount .don-kind .don-test .ts) .don-text`,
   sub `.sub-icon .sub-body(.un .sub-line .sub-text)`, dar subů `.gift-icon .gift-body(.pi .un text .gift-line) .gift-count`,
   odměna `.redeem-card(.redeem-media .redeem-main(.redeem-head>.redeem-who .redeem-verb, .redeem-title) .redeem-cost .redeem-text)`,
   nájezd `.msg-tag-line .raid-header(.raid-icon .raid-label .raid-count) .pi .ts .bdg .un .tx`,
   milník `.milestone-icon .milestone-body(.milestone-header(.un .milestone-points) .milestone-line .milestone-text.tx)`,
   7TV `.stv-head(.stv-brand .stv-dot .stv-title .stv-actor .ts) .stv-rows`. Rozbalení vrátí celou kartu. */
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] {
  display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 6px;
  box-sizing: border-box; padding: 2px 8px; margin: 2px 0; min-height: 0;
  font-size: 12px; line-height: 18px; white-space: nowrap;
  border-width: 0 0 0 3px; border-radius: 3px; box-shadow: none;
}
/* Logo / ikona zdroje, avatar, text zprávy, štítky druhu, animace. */
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] :is(
  .don-icon, .sub-icon, .gift-icon, .redeem-media, .raid-icon, .pi, .bdg, .msg-tag-line, .milestone-icon, .stv-rows,
  .don-kind, .don-bonus, .don-text, .sub-text, .redeem-text, .tx, .don-amt-b) { display: none !important; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] :is(.don-amt-a, .raid-icon) { animation: none; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] .un { cursor: default; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] .un::after { content: none; }
/* Těla karet = jeden řádek s třemi tečkami. */
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] :is(.don-body, .sub-body, .gift-body, .redeem-main, .milestone-body, .stv-head) {
  flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] :is(.don-line, .sub-line, .gift-line, .redeem-head, .redeem-title, .milestone-header, .milestone-line) {
  display: inline; margin: 0; padding: 0; font-size: inherit; line-height: inherit;
}
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] :is(.sub-line, .gift-line, .redeem-title, .milestone-line)::before { content: '\00b7'; margin: 0 5px; opacity: 0.7; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] :is(.don-amount, .don-test) { height: auto; padding: 0 5px; font-size: 11px; line-height: 16px; vertical-align: baseline; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] .don-body .don-line > * { display: inline-flex; margin-right: 4px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] .don-body .don-line > .don-kind { display: none; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] .don-body .don-line > .don-test:not(:empty) { display: inline-flex; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed[data-alert-kind] .ts { display: inline; flex: none; margin: 0 0 0 4px; font-size: 11px; opacity: 0.6; }
/* Odměna: karta (grid) → řádek, cena za názvem. */
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.redeem .redeem-card { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.redeem .redeem-cost { flex: none; padding: 0 6px; font-size: 11px; line-height: 16px; }
/* Počet (dar subů ×N, diváci nájezdu) a nájezd: jméno · RAID · počet · čas. */
body.uc-mod .uc-alert-hidden.uc-alert-collapsed .gift-count { flex: none; margin: 0; padding: 0 6px; font-size: 11px; line-height: 16px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.raid > .un { order: 1; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.raid > .raid-header { order: 2; flex: 1 1 auto; min-width: 0; padding: 0; gap: 6px; font-size: 11px; letter-spacing: 0.6px; overflow: hidden; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.raid > .raid-header .raid-count { margin-left: 0; padding: 0 6px; font-size: 11px; line-height: 16px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.raid > .ts { order: 3; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.raid > .raid-header .raid-label { -webkit-text-fill-color: initial; color: #ffaf8a; background: none; }
/* Milník: jméno +body · Watch Streak…; 7TV: 7TV · titulek · kdo · čas (hlavička karty je sama řádkem). */
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.milestone-event .milestone-points { display: inline; margin-left: 4px; padding: 0 5px; font-size: 11px; line-height: 16px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.milestone-event .milestone-points svg { width: 11px; height: 11px; vertical-align: -1px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.seventv-event .stv-head { display: block; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.seventv-event .stv-head > * { display: inline; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.seventv-event .stv-head > :is(.stv-dot, .stv-actor, .ts) { margin-left: 5px; }
/* Nabídka jen s okem (sub / odměna / nájezd / skrytý donate): divákovi celá pryč, ať nevisí prázdný rámeček. */
body:not(.uc-mod) .msg-actions.uc-alert-actions { display: none !important; }

/* ==== Dárek za drahokamy na YouTube (core/yt-gift.js ytGiftCardHtml) ==== */
/* Barvy a rámeček z karet subu YouTube (.msg.sub-event[data-platform="youtube"] v sidepanel.css), obrázek dárku vlevo. */
.msg.yt-gift-event { align-items: center; }
.msg.yt-gift-event .ytg-img { flex: none; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255, 0, 51, 0.45)); }
.msg.yt-gift-event .ytg-noimg { display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }
.msg.yt-gift-event .sub-body { flex: 1 1 auto; min-width: 0; }
.msg.yt-gift-event .ytg-head { color: var(--sub-ink, #ffe0e6); font-weight: 600; overflow-wrap: anywhere; }
.msg.yt-gift-event .ytg-head .un { font-weight: 700; }
.msg.yt-gift-event .ytg-head .un::after { content: none; }
.msg.yt-gift-event .ytg-name { color: var(--sub-light, #ff6680); }
.msg.yt-gift-event .ytg-jewels { margin-top: 2px; font-size: 0.88em; color: var(--sub-ink2, #ffc9d3); }
.msg.yt-gift-event > .ts { flex: none; align-self: flex-start; margin-left: 6px; font-size: 11px; opacity: 0.6; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.yt-gift-event .ytg-img { width: 16px; height: 16px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.yt-gift-event .ytg-noimg { font-size: 13px; }
body.uc-mod .uc-alert-hidden.uc-alert-collapsed.yt-gift-event .ytg-head { display: inline; }

/* ==== Karty z událostí mimo chat (core/notice-cards.js, schválená maketa 2026-10-18) ==== */
/* Follow: pilulka uprostřed v barvě platformy. */
.msg.uc-follow { display: flex; justify-content: center; padding: 2px 4px; }
.msg.uc-follow { --ucn-c: #9146ff; --ucn-rgb: 145, 70, 255; }
.msg.uc-follow[data-platform="kick"] { --ucn-c: #53fc18; --ucn-rgb: 83, 252, 24; }
.msg.uc-follow .ucn-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 12px; border-radius: 999px; border: 1px solid rgba(var(--ucn-rgb), 0.35); background: rgba(var(--ucn-rgb), 0.08); color: var(--text-secondary, #adadb8); font-size: 0.88em; }
.msg.uc-follow .ucn-pill .pi { margin: 0; }
.msg.uc-follow .ucn-heart { display: inline-flex; color: var(--ucn-c); flex: none; }
.msg.uc-follow .ucn-text { min-width: 0; overflow-wrap: anywhere; }
.msg.uc-follow .un { color: var(--text-primary, #efeff1); font-weight: 700; }
.msg.uc-follow .un::after { content: none; }

/* Konec hype trainu: banner s úrovněmi (barvy Twitche). */
.msg.uc-hypetrain { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 6px 0; border-radius: 10px; border: 1px solid rgba(145, 70, 255, 0.5); background: linear-gradient(135deg, rgba(145, 70, 255, 0.28), rgba(145, 70, 255, 0.10)); box-shadow: 0 0 16px rgba(145, 70, 255, 0.25); color: var(--text-primary, #efeff1); }
.msg.uc-hypetrain .ucn-top { display: flex; align-items: center; gap: 8px; }
.msg.uc-hypetrain .ucn-train { display: inline-flex; color: #b78cff; flex: none; }
.msg.uc-hypetrain .ucn-ttl { flex: 1; min-width: 0; font-weight: 800; }
.msg.uc-hypetrain .ucn-lv { font-weight: 900; font-size: 1.2em; background: linear-gradient(160deg, #e8dcff, #b78cff); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.msg.uc-hypetrain .ucn-levels { display: flex; gap: 3px; margin-top: 6px; }
.msg.uc-hypetrain .ucn-levels i { flex: 1; height: 6px; border-radius: 2px; background: linear-gradient(90deg, #b78cff, #9146ff); box-shadow: 0 0 6px rgba(145, 70, 255, 0.6); }
.msg.uc-hypetrain .ucn-foot { color: #d9cbff; font-size: 0.9em; margin-top: 4px; }

/* Kicky: karta subu Kicku (.msg.sub-event[data-platform="kick"]), kulatá mince vlevo, počet vpravo. */
.msg.sub-event.uc-kicks { align-items: center; }
.msg.uc-kicks .ucn-coin { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(83, 252, 24, 0.3); }
.msg.uc-kicks .sub-body { flex: 1 1 auto; min-width: 0; }
.msg.uc-kicks .ucn-head { font-size: 0.75em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub-accent, #53fc18); }
.msg.uc-kicks .ucn-line { color: var(--sub-ink, #e3ffd8); overflow-wrap: anywhere; }
.msg.uc-kicks .ucn-line .un { font-weight: 700; }
.msg.uc-kicks .ucn-line .un::after { content: none; }
.msg.uc-kicks .ucn-gift { color: #fff; }
.msg.uc-kicks .ucn-msg { margin-top: 4px; color: var(--text-primary, #efeff1); overflow-wrap: anywhere; }
.msg.uc-kicks .ucn-amt { flex: none; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 0.88em; border: 1px solid rgba(83, 252, 24, 0.5); white-space: nowrap; }

/* Super Sticker: pruh v barvě úrovně (--stk z dat YouTube), pod ním obrázek a název. */
.msg.uc-sticker { --stk: #ffca28; margin: 6px 0; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--stk) 60%, transparent); }
.msg.uc-sticker .ucn-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--stk); color: #1a0b00; }
.msg.uc-sticker .ucn-bar .pi { margin: 0; }
.msg.uc-sticker .ucn-bar .un { color: #1a0b00; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.msg.uc-sticker .ucn-bar .un::after { content: none; }
.msg.uc-sticker .ucn-amt { margin-left: auto; font-weight: 800; white-space: nowrap; }
.msg.uc-sticker .ucn-bar .ts { color: rgba(26, 11, 0, 0.7); }
.msg.uc-sticker .ucn-area { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--stk) 10%, transparent); }
.msg.uc-sticker .ucn-stk { width: 56px; height: 56px; flex: none; object-fit: contain; }
.msg.uc-sticker .ucn-stk-none { display: grid; place-items: center; font-size: 30px; }
.msg.uc-sticker .ucn-alt { color: var(--text-primary, #efeff1); font-size: 1.05em; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ==== Bits (cheer) na Twitchi (core/bits.js decorateBits, maketa docs/mockups/2026-10-18-bits-final.html) ==== */
/* --tc = barva úrovně (Twitch: 1 šedá, 100 fialová, 1 000 tyrkysová, 5 000 modrá, 10 000 červená, 100 000 zlatá). */
/* Řádek do 2 999: linka vlevo, jemné pozadí, štítek na středu řádku textu. */
.msg.uc-bits:not(.uc-bits-card):not(.uc-bits-off) { background: color-mix(in srgb, var(--tc) 12%, transparent); border-left: 2px solid var(--tc); padding-left: 8px; }
.msg.uc-bits .ucb-chip { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 0 8px 0 2px; border-radius: 999px; line-height: 18px; vertical-align: middle; margin-top: -2px;
  font-weight: 800; font-size: 0.85em; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 88%, #000), var(--tc));
  box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 50%, transparent); font-variant-numeric: tabular-nums; }
.msg.uc-bits .ucb-ring { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #19191f; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); flex: none; }
.msg.uc-bits .ucb-chip-gem { width: 16px; height: 16px; }
/* Slovo cheeru v textu: s vypnutým zvýrazněním malý drahokam s počtem, jinak skryté (počet je ve štítku / kartě). */
.ucb-tok { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: color-mix(in srgb, var(--tc) 40%, #fff); vertical-align: middle; margin-top: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.ucb-tok { --tc: #9c3ee8; }
.ucb-tok .ucb-tok-gem { width: 18px; height: 18px; }
.msg.uc-bits:not(.uc-bits-off) .ucb-tok { display: none; }
.msg.uc-bits.uc-bits-off .ucb-chip, .msg.uc-bits.uc-bits-off .ucb-head { display: none; }
/* Karta od 3 000: tmavý povrch, linka a tón záhlaví v barvě úrovně. */
.msg.uc-bits-card .ucb-orig { display: contents; }
.msg.uc-bits-card:not(.uc-bits-off) .ucb-orig { display: none; }
.msg.uc-bits-card:not(.uc-bits-off) { position: relative; padding: 0; margin: 6px 0; border-radius: 10px; overflow: hidden; background: #19191f;
  border: 1px solid color-mix(in srgb, var(--tc) 40%, #2a2a33); box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--tc) 60%, transparent); }
.msg.uc-bits-card:not(.uc-bits-off) > .tx { display: block; padding: 8px 12px 10px; color: #ecebf2; position: relative; z-index: 1; }
.msg.uc-bits-card .ucb-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 22%, transparent), transparent); border-bottom: 1px solid color-mix(in srgb, var(--tc) 25%, transparent); }
.msg.uc-bits-card .ucb-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--tc); }
.msg.uc-bits-card .ucb-gem { width: 36px; height: 36px; flex: none; position: relative; z-index: 1; }
.msg.uc-bits-card .ucb-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; position: relative; z-index: 1; }
.msg.uc-bits-card .ucb-who .un { font-weight: 800; font-size: 1.05em; overflow-wrap: anywhere; }
.msg.uc-bits-card .ucb-who .un::after { content: none; }
.msg.uc-bits-card .ucb-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted, #848494); font-size: 0.78em; letter-spacing: 0.06em; text-transform: uppercase; }
.msg.uc-bits-card .ucb-sub .pi { width: 12px; height: 12px; margin: 0; }
.msg.uc-bits-card .ucb-amt { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; position: relative; z-index: 1; }
.msg.uc-bits-card .ucb-num { font-weight: 800; font-size: 1.45em; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -0.01em; }
.msg.uc-bits-card .ucb-unit { margin-top: 3px; font-size: 0.72em; font-weight: 800; letter-spacing: 0.08em; color: color-mix(in srgb, var(--tc) 60%, #fff); }
/* Paprsky (10 000 do třetiny karty, 100 000 přes celou kartu). */
.msg.uc-bits-card .ucb-rays { position: absolute; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--ray, #ffd56a) var(--ray-a, 16%), transparent) 0 8deg, transparent 8deg 24deg); }
.msg.uc-bits-epic .ucb-gem { width: 44px; height: 44px; }
.msg.uc-bits-epic .ucb-num { font-size: 1.7em; }
.msg.uc-bits-epic .ucb-head { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc) 30%, transparent) 0%, transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--tc) 20%, transparent), transparent); }
.msg.uc-bits-epic .ucb-rays { --ray: #ff6a5c; width: 600px; height: 600px; left: -264px; top: -266px;
  -webkit-mask: radial-gradient(circle, #000 5%, rgba(0, 0, 0, 0.5) 18%, transparent 33%); mask: radial-gradient(circle, #000 5%, rgba(0, 0, 0, 0.5) 18%, transparent 33%); }
.msg.uc-bits-legend:not(.uc-bits-off) { border: 1px solid transparent; background: linear-gradient(#19191f, #19191f) padding-box, linear-gradient(135deg, #ffe9a6, #f3a71a 40%, #a86b00 60%, #ffd56a) border-box; }
.msg.uc-bits-legend .ucb-head { background: linear-gradient(180deg, rgba(243, 167, 26, 0.22), rgba(25, 25, 31, 0)); }
.msg.uc-bits-legend .ucb-gem { width: 48px; height: 48px; }
.msg.uc-bits-legend .ucb-num { font-size: 1.85em; background: linear-gradient(100deg, #fff4cf 0%, #ffd56a 35%, #fff 50%, #f3a71a 65%, #ffe9a6 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.msg.uc-bits-legend .ucb-rays { width: 1100px; height: 1100px; left: -512px; top: -516px;
  -webkit-mask: radial-gradient(circle, #000 4%, rgba(0, 0, 0, 0.55) 25%, transparent 52%); mask: radial-gradient(circle, #000 4%, rgba(0, 0, 0, 0.55) 25%, transparent 52%); }
@media (prefers-reduced-motion: no-preference) {
  .msg.uc-bits-epic:not(.uc-bits-off) { animation: ucb-breathe 6.5s ease-in-out infinite; }
  .msg.uc-bits-legend:not(.uc-bits-off) { animation: ucb-breathe-gold 6.5s ease-in-out infinite; }
  .msg.uc-bits-legend .ucb-num { animation: ucb-gold 3.5s ease-in-out infinite; }
  .msg.uc-bits-epic .ucb-rays { animation: ucb-rays 30s linear infinite; }
  .msg.uc-bits-legend .ucb-rays { animation: ucb-rays 40s linear infinite; }
}
@keyframes ucb-breathe { 0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 30%, transparent), 0 8px 22px -12px color-mix(in srgb, var(--tc) 70%, transparent); } 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 55%, transparent), 0 10px 34px -8px color-mix(in srgb, var(--tc) 95%, transparent); } }
@keyframes ucb-breathe-gold { 0%, 100% { box-shadow: 0 8px 22px -12px rgba(243, 167, 26, 0.7); } 50% { box-shadow: 0 10px 36px -6px rgba(243, 167, 26, 0.95), 0 0 18px rgba(255, 213, 106, 0.35); } }
@keyframes ucb-gold { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes ucb-rays { to { transform: rotate(360deg); } }

/* Štítek bonusu stashe za donate: +N [ikona] bonus */
.msg.donation-event .don-bonus { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 8px; font-size: 0.85em; font-weight: 700; color: #ffd56a; background: rgba(243, 167, 26, 0.16); border: 1px solid rgba(243, 167, 26, 0.45); vertical-align: middle; cursor: default; }
.msg.donation-event .don-bonus .uc-stash-ico { width: 22px; height: 22px; margin: -4px 0; object-fit: contain; }
