/* Pochlubit se odznakem (core/badge-brag.js): karta v chatu, efekty kolem karty, okno vzkazu.
   Předloha 1:1: docs/mockups/src/2026-10-21-pochlubit-se/template.html (karta ř. 65–114, okna 115–143, karta podle
   prestiže 237–269, víc najednou 270–288, kolem karty 387–407, pole a našeptávač 459–488). Vše pod kořenem .ucbb,
   animace s prefixem ucbb- (sidepanel má vlastní spin / flash / bump…). Jen tmavé téma. */
.ucbb {
  --fg: #efeff1; --mut: #adadb8; --dim: #6f6f7a; --line: #2c2c33;
  --uc1: #ffd93d; --uc2: #ff8c00; --ucg: linear-gradient(135deg, #ffd93d, #ff8c00);
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  position: relative; color: var(--fg); font-family: var(--sans); font-size: 14px; line-height: 1.4; text-align: left;
}
.ucbb, .ucbb * { box-sizing: border-box; }
.ucbb [hidden] { display: none !important; }
@property --ucbb-ba { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ── Karta „Nový odznak“ v chatu ─────────────────────────────── */
.ucbb .brag { --a: #7fd1c6; position: relative; margin: 6px 0; border-radius: 12px; padding: 12px 12px 10px; isolation: isolate; overflow: hidden; color: var(--fg);
  background: radial-gradient(120% 90% at 0% 0%, var(--soft) 0%, rgba(22, 22, 26, .97) 60%), #17171b; border: 1px solid color-mix(in srgb, var(--a) 45%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 18px color-mix(in srgb, var(--a) calc(var(--gl, 10) * 1%), transparent); }
.ucbb .brag.metal { border: 1.5px solid transparent; background: radial-gradient(120% 90% at 0% 0%, var(--soft) 0%, rgba(22, 22, 26, .97) 60%) padding-box, linear-gradient(#17171b, #17171b) padding-box, var(--metal) border-box; }
.ucbb .brag.in { animation: ucbb-bragIn .55s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes ucbb-bragIn { 0% { opacity: 0; transform: translateY(24px) scale(.94); filter: brightness(2) } 60% { opacity: 1; filter: brightness(1.3) } 100% { transform: none; filter: none } }
.ucbb .brag .rays { position: absolute; z-index: -1; left: 40px; top: 44px; width: 420px; height: 420px; margin: -210px 0 0 -210px; opacity: var(--ro, 0); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--a) 40%, transparent) 0deg 7deg, transparent 7deg 26deg); -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 62%); mask: radial-gradient(circle, #000 0 12%, transparent 62%); animation: ucbb-spin 22s linear infinite; mix-blend-mode: plus-lighter; }
@keyframes ucbb-spin { to { transform: rotate(360deg) } }
.ucbb .brag .sheen { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .13) 48%, transparent 60%) no-repeat; background-size: 260% 100%; animation: ucbb-sheen 5.5s ease-in-out infinite; mix-blend-mode: plus-lighter; }
/* no-repeat: posun (2× 130 %) je delší než dlaždice 260 % → s opakováním vjela do karty druhá kopie pruhu a na konci cyklu
   (skok zpět na 130 %) zmizela uprostřed karty. */
@keyframes ucbb-sheen { 0%, 55% { background-position: 130% 0 } 100% { background-position: -130% 0 } }
.ucbb .brag .foil { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .5; background: linear-gradient(120deg, transparent 20%, color-mix(in srgb, var(--r1, #a8ffcf) 22%, transparent) 38%, color-mix(in srgb, var(--r2, #9eeaff) 22%, transparent) 50%, color-mix(in srgb, var(--r3, #ffb0dc) 22%, transparent) 62%, transparent 80%); background-size: 220% 220%; animation: ucbb-foil 6s ease-in-out infinite alternate; mix-blend-mode: plus-lighter; }
@keyframes ucbb-foil { from { background-position: 0% 0% } to { background-position: 100% 100% } }
.ucbb .brag .spark { position: absolute; z-index: 1; width: 3px; height: 3px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 6px var(--c, #fff); opacity: 0; animation: ucbb-rise var(--d, 4s) ease-out infinite; }
@keyframes ucbb-rise { 0% { opacity: 0; transform: translateY(0) } 20% { opacity: 1 } 100% { opacity: 0; transform: translateY(-70px) translateX(var(--x, 6px)) } }
.ucbb .bh { display: flex; gap: 12px; align-items: center; }
.ucbb .bh .bw { position: relative; width: 56px; height: 56px; flex: none; isolation: isolate; }
.ucbb .bh .bw::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--a) 70%, transparent), transparent 40%); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%); mask: radial-gradient(circle, transparent 58%, #000 60%, #000 66%, transparent 68%); animation: ucbb-spin 3.6s linear infinite; opacity: var(--ring, 0); }
.ucbb .bh .bw .uc-b3 { display: block; }
.ucbb .bh .txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ucbb .eb { display: flex; align-items: center; gap: 6px; font: 800 10px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--a) 85%, #fff); }
.ucbb .eb .ts2 { margin-left: auto; letter-spacing: 0; font: 600 11px var(--sans); color: var(--dim); text-transform: none; }
.ucbb .who { font-size: 13px; color: var(--mut); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ucbb .who b { color: #ff8c00; font-weight: 800; }
.ucbb .who .uc-b3 { vertical-align: middle; }
.ucbb .who .pi { display: inline-block; width: 14px; height: 14px; margin: 0; flex: none; }
.ucbb .bname { font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.ucbb .bname .g { background: var(--ng); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ucbb-flow 4s linear infinite; }
@keyframes ucbb-flow { to { background-position: -200% 0 } }
.ucbb .plq { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 4px; font: 900 11px/1 var(--sans); color: var(--c1); background: linear-gradient(180deg, var(--deep), #000); box-shadow: 0 0 0 1px var(--a), 0 0 8px var(--glow); }
/* Římská číslice (jen verzálky) opticky na střed: obsah oříznutý na výšku verzálek, zbytek výšky rovným dílem nahoře a dole.
   Bez text-box (Firefox) zůstává mřížka na střed s line-height 1. */
@supports (text-box: trim-both cap alphabetic) {
  .ucbb .plq { display: inline-block; text-align: center; padding: calc((18px - 1cap) / 2) 5px; text-box: trim-both cap alphabetic; }
}
.ucbb .stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ucbb .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font: 700 12px var(--sans); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #dcdce2; white-space: nowrap; }
.ucbb .chip.hot { color: #fff; background: color-mix(in srgb, var(--a) 16%, transparent); border-color: color-mix(in srgb, var(--a) 45%, transparent); }
.ucbb .chip.more { cursor: help; }
.ucbb .chip .ring { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--a) calc(var(--pc) * 1%), rgba(255, 255, 255, .12) 0); -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px); }
.ucbb .quote { margin-top: 9px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .28); border-left: 2px solid var(--a); font-size: 13px; color: #e8e8ee; overflow-wrap: anywhere; }
.ucbb .quote .ment { font-weight: 700; }
.ucbb .bf { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ucbb .gg { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid #3a3a42; background: #222227; color: var(--fg); font: 800 13px var(--sans); cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.ucbb span.gg { cursor: default; }
.ucbb span.gg:hover { border-color: #3a3a42; }
.ucbb .gg:hover { border-color: var(--uc2); }
.ucbb .gg.mine { border-color: var(--uc2); background: rgba(255, 140, 0, .14); }
.ucbb .gg .cnt { font-family: var(--mono); min-width: 1ch; display: inline-block; }
.ucbb .gg .cnt.bump { animation: ucbb-bump .3s ease-out; }
@keyframes ucbb-bump { 40% { transform: translateY(-3px) scale(1.25); color: var(--uc1) } }
.ucbb .gg .emote { height: 22px; width: auto; margin: -4px 0; vertical-align: middle; }
.ucbb .faces { display: flex; }
.ucbb .faces i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #17171b; margin-left: -6px; background: var(--f); animation: ucbb-msgIn .25s ease-out both; }
.ucbb .faces i:first-child { margin-left: 0; }
@keyframes ucbb-msgIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.ucbb .want { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font: 800 13px var(--sans); color: #fff; cursor: pointer; border: 1.5px solid transparent; background: linear-gradient(#1d1d22, #1d1d22) padding-box, var(--ucg) border-box; transition: filter .15s, transform .12s; }
.ucbb .want:hover { filter: brightness(1.2); }
.ucbb .want.pulse { animation: ucbb-wpulse 1.6s ease-in-out 2; }
@keyframes ucbb-wpulse { 50% { box-shadow: 0 0 0 4px rgba(255, 170, 40, .25), 0 0 18px rgba(255, 140, 0, .45) } }

/* ── Karta podle prestiže: P3 obíhající světlo v rámu, P4 + vnitřní záře, jiskry, Hologram duhový rám, aura, fólie, LEGENDÁRNÍ ── */
.ucbb .brag.p3::before, .ucbb .brag.p4::before, .ucbb .brag.holo::before { content: ''; position: absolute; z-index: 3; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ucbb-ba), transparent 0 52%, color-mix(in srgb, var(--a) 80%, transparent) 68%, #fff 75%, color-mix(in srgb, var(--a) 80%, transparent) 82%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ucbb-bspin 4.5s linear infinite; }
.ucbb .brag.p4::before { animation-duration: 3.2s; padding: 2px; }
.ucbb .brag.holo::before { padding: 2px; background: conic-gradient(from var(--ucbb-ba), #ff3c9f, #ffcf3c, #4dffae, #3cb1ff, #b45cff, #ff3c9f); animation-duration: 3s; }
@keyframes ucbb-bspin { to { --ucbb-ba: 360deg } }
.ucbb .brag.p4::after, .ucbb .brag.holo::after { content: ''; position: absolute; z-index: 2; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 26px color-mix(in srgb, var(--a) 40%, transparent); animation: ucbb-ipulse 3.6s ease-in-out infinite; }
@keyframes ucbb-ipulse { 0%, 100% { opacity: .35 } 14% { opacity: 1 } 40% { opacity: .55 } }
/* hvězdičky kolem odznaku (ucB3Tw z badge-v3.css) */
.ucbb .bh .bw .bst { position: absolute; z-index: 2; width: 9px; height: 9px; background: var(--c, #fff); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: ucB3Tw var(--d, 2.4s) ease-in-out infinite; pointer-events: none; }
.ucbb .brag.p4 .bname, .ucbb .brag.holo .bname { font-size: 24px; }
.ucbb .brag.p4 .bname .g { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--a) 55%, transparent)); }
.ucbb .brag.holo { border: 0; background: radial-gradient(120% 100% at 0% 0%, rgba(255, 196, 70, .3), rgba(28, 21, 10, .97) 58%), radial-gradient(90% 80% at 100% 100%, rgba(180, 90, 255, .2), transparent 70%), #16130d; box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 190, 70, .35), 0 0 60px rgba(180, 90, 255, .18); }
.ucbb .brag.holo .foil { opacity: .8; }
.ucbb .brag.holo .hsweep { position: absolute; z-index: 2; inset: -20% -60%; pointer-events: none; mix-blend-mode: plus-lighter;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 60, 160, .3) 45%, rgba(255, 210, 60, .3) 48%, rgba(80, 255, 170, .3) 51%, rgba(60, 170, 255, .3) 54%, rgba(190, 90, 255, .3) 57%, transparent 62%);
  animation: ucbb-hsweep 4.8s ease-in-out infinite; }
@keyframes ucbb-hsweep { 0%, 40% { transform: translateX(-60%) } 100% { transform: translateX(60%) } }
.ucbb .brag.holo .baura { position: absolute; z-index: -1; inset: -18px; border-radius: 50%; background: conic-gradient(#ff3c9f, #ffcf3c, #4dffae, #3cb1ff, #b45cff, #ff3c9f); filter: blur(12px); opacity: .7; animation: ucbb-spin 5s linear infinite; }
.ucbb .brag.holo .bname { font-size: 27px; }
.ucbb .brag.holo .bname .g { filter: drop-shadow(0 1px 0 #6e3f07) drop-shadow(0 1px 0 #3c2203) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.ucbb .brag .leg { margin-left: 6px; padding: 2px 7px; border-radius: 99px; font: 900 9px var(--sans); letter-spacing: .22em; color: #2a1600; background: linear-gradient(90deg, var(--ha), var(--hc), var(--hb), var(--he), var(--ha)); background-size: 300% 100%; animation: ucbb-flow 3s linear infinite; box-shadow: 0 0 10px rgba(255, 200, 80, .5); }
.ucbb .brag.holo .eb { color: #ffd98a; }
.ucbb .brag .bflash { position: absolute; z-index: 5; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 40px 44px, #fff, color-mix(in srgb, var(--a) 60%, transparent) 25%, transparent 60%); }
.ucbb .brag.in .bflash { animation: ucbb-flash .9s ease-out .15s both; }
@keyframes ucbb-flash { 0% { opacity: 0 } 15% { opacity: .9 } 100% { opacity: 0 } }
.ucbb .brag.in .bshock { position: absolute; z-index: 4; left: 40px; top: 44px; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 2px solid var(--a); box-shadow: 0 0 14px var(--a); pointer-events: none; opacity: 0; animation: ucbb-shock 1s cubic-bezier(.1, .7, .3, 1) .2s both; }
@keyframes ucbb-shock { 0% { opacity: 1; transform: scale(.25) } 100% { opacity: 0; transform: scale(4.4); border-width: 1px } }
/* Hologram dopadne shora (efekt přes chat řídí host). */
.ucbb .brag.holo.land { animation: ucbb-bragLand .8s cubic-bezier(.5, 0, .4, 1) both; }
@keyframes ucbb-bragLand { 0% { opacity: 0; transform: translateY(-180px) scale(1.3); filter: brightness(3) blur(6px) } 40% { opacity: 1; transform: translateY(-20px) scale(1.06); filter: brightness(2.4) blur(1px) } 45% { transform: translateY(6px) scale(.96, .94); filter: brightness(3) } 62% { transform: translateY(-3px) scale(1.01); filter: brightness(1.5) } 100% { transform: none; filter: none } }

/* ── Efekt kolem karty (mimo rámeček): P3 záře + kometa, P4 + paprsky a jiskry do chatu, Hologram duhově ── */
.ucbb .bragw { position: relative; margin: 6px 0; isolation: isolate; }
.ucbb .bragw > .brag { margin: 0; }
/* Široký chat: rámeček karty nejvýš 470 px, na střed (efekty .bragw kolem něj jdou s ním). Úzký chat beze změny. */
.ucbb .brag, .ucbb .bragw { max-width: 470px; margin-inline: auto; }
.ucbb .bragw > .brag { max-width: none; }
.ucbb .bragw > .ohalo { position: absolute; z-index: -1; inset: -12px; border-radius: 22px; background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 50%, transparent), transparent); filter: blur(12px); animation: ucbb-ohalo 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes ucbb-ohalo { 0%, 100% { opacity: .45; transform: scale(.98) } 14% { opacity: .95; transform: scale(1.03) } 40% { opacity: .6 } }
.ucbb .bragw > .ocomet { position: absolute; z-index: -1; inset: -5px; border-radius: 16px; padding: 4px; pointer-events: none;
  background: conic-gradient(from var(--ucbb-ba), transparent 0 70%, color-mix(in srgb, var(--a) 90%, transparent) 86%, #fff 92%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(3px) drop-shadow(0 0 6px var(--a)); animation: ucbb-bspin 3.4s linear infinite; }
.ucbb .bragw.p4 > .ocomet, .ucbb .bragw.holo > .ocomet { animation-duration: 2.4s; }
.ucbb .bragw.holo > .ocomet { background: conic-gradient(from var(--ucbb-ba), transparent 0 55%, #ff3c9f 66%, #ffcf3c 74%, #4dffae 82%, #3cb1ff 90%, #b45cff 96%, transparent 99%); }
.ucbb .bragw.holo > .ohalo { background: radial-gradient(closest-side, rgba(255, 196, 70, .55), rgba(180, 90, 255, .25) 60%, transparent); }
.ucbb .bragw > .orays { position: absolute; z-index: -2; left: 40px; top: 44px; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: .5; mix-blend-mode: plus-lighter;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--a) 45%, transparent) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 60%); mask: radial-gradient(circle, #000 0 18%, transparent 60%); animation: ucbb-spin 26s linear infinite; }
.ucbb .bragw.holo > .orays { background: repeating-conic-gradient(from 0deg, rgba(255, 210, 90, .5) 0deg 4deg, transparent 4deg 12deg, rgba(180, 120, 255, .35) 12deg 15deg, transparent 15deg 22deg); opacity: .6; }
.ucbb .bragw > .ospark { position: absolute; z-index: 1; width: 4px; height: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); opacity: 0; pointer-events: none; animation: ucbb-ospark var(--d) ease-out var(--dl) infinite; }
@keyframes ucbb-ospark { 0% { opacity: 0; transform: translate(0, 0) scale(1) } 15% { opacity: 1 } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3) } }

/* ── Okno Pochlubit se (sheet v panelu) ─────────────────────── */
.ucbb.ucbb-dlg { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.ucbb .sheet { position: relative; pointer-events: auto; max-height: 100%; background: #19191d; border-top-left-radius: 16px; border-top-right-radius: 16px; border-top: 1px solid #34343c; padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 12px; animation: ucbb-up .3s cubic-bezier(.2, .9, .3, 1) both; box-shadow: 0 -20px 40px rgba(0, 0, 0, .5); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #44444c transparent; }
@keyframes ucbb-up { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.ucbb .grab { width: 40px; height: 4px; border-radius: 4px; background: #44444c; margin: 0 auto 2px; flex: none; }
.ucbb .sh { display: flex; gap: 12px; align-items: center; }
.ucbb .sh h3 { margin: 0; font-size: 18px; font-weight: 800; }
.ucbb .sh p { margin: 2px 0 0; color: var(--mut); font-size: 13px; }
.ucbb .preview .brag, .ucbb .preview .bragw { margin: 0; }
.ucbb .btns { display: flex; gap: 10px; justify-content: flex-end; }
.ucbb .btn { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #3a3a42; background: #232328; color: var(--fg); font: 800 14px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: filter .15s, transform .12s; }
.ucbb .btn:hover { filter: brightness(1.15); }
.ucbb .btn:active { transform: scale(.97); }
.ucbb .btn:disabled { opacity: .6; cursor: default; }
.ucbb .btn.pri { border: 0; background: var(--ucg); color: #1c1205; box-shadow: 0 6px 20px rgba(255, 140, 0, .3); }
.ucbb .btn:focus-visible, .ucbb .gg:focus-visible, .ucbb .want:focus-visible { outline: 2px solid var(--uc1); outline-offset: 2px; }
.ucbb .btn.wide { flex: 1; justify-content: center; }
.ucbb .btn.shine { position: relative; overflow: hidden; }
.ucbb .btn.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) no-repeat; background-size: 250% 100%; animation: ucbb-sheen 2.6s ease-in-out infinite; mix-blend-mode: soft-light; }
.ucbb .err { color: #ff6b6b; font-size: 12.5px; font-weight: 600; }
/* pole vzkazu + našeptávač */
.ucbb .field { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; border-radius: 9px; border: 1px solid #3a3a42; background: #111114; padding: 0 10px; }
.ucbb .field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 500 14px var(--sans); outline: none; }
.ucbb .field .cnt { color: var(--dim); font: 600 11px var(--mono); }
.ucbb .field .emo-btn { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 -4px; border: 0; border-radius: 7px; background: transparent; color: var(--mut); cursor: pointer; transition: color .15s, background .15s; }
.ucbb .field .emo-btn:hover { color: var(--fg); background: #222227; }
.ucbb .sugg { position: absolute; left: -1px; right: -1px; bottom: calc(100% + 6px); z-index: 40; background: #18181c; border: 1px solid #3a3a42; border-radius: 10px; padding: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); max-height: 150px; overflow: auto; scrollbar-width: thin; }
.ucbb .srow { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px; border-radius: 7px; cursor: pointer; font: 600 13px var(--sans); white-space: nowrap; }
.ucbb .srow.on { background: color-mix(in srgb, var(--a, #ff8c00) 22%, transparent); }
.ucbb .srow .ic { width: 26px; display: grid; place-items: center; flex: none; }
.ucbb .srow .ic .emote { height: 24px; width: auto; max-width: 26px; object-fit: contain; margin: 0; }
.ucbb .srow .sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--mut); }
.ucbb .srow .sub { color: var(--dim); font-weight: 500; font-size: 12px; }
.ucbb .srow .src { margin-left: auto; color: var(--dim); font-size: 11px; display: flex; align-items: center; gap: 5px; }
/* rychlé volby */
.ucbb .qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ucbb .qchips button { border: 1px solid #3a3a42; background: #222227; color: #dcdce2; font: 600 12px var(--sans); padding: 5px 10px; border-radius: 99px; cursor: pointer; transition: border-color .15s, color .15s; }
.ucbb .qchips button:hover, .ucbb .qchips button.on { border-color: var(--uc2); color: #fff; }
.ucbb .qchips button .emote { height: 20px; width: auto; margin: -3px 0 -3px 2px; vertical-align: middle; }

/* Velký obchod: dialog uprostřed, náhled vlevo, pole a tlačítka vpravo. */
.ucbb.ucbb-dlg.ucbb-big { justify-content: center; align-items: center; }
.ucbb.ucbb-big .sheet { width: min(840px, 94%); max-height: 92%; border-radius: 16px; border: 1px solid #34343c; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px 22px; align-items: start; animation: ucbb-bigIn .3s cubic-bezier(.2, .9, .3, 1) both; box-shadow: 0 30px 80px rgba(0, 0, 0, .65); }
@keyframes ucbb-bigIn { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
.ucbb.ucbb-big .grab { display: none; }
.ucbb.ucbb-big .sheet > .sh { grid-column: 1 / -1; }
.ucbb.ucbb-big .sheet > .preview { grid-column: 1; grid-row: 2 / span 4; }
.ucbb.ucbb-big .sheet > .field, .ucbb.ucbb-big .sheet > .qchips, .ucbb.ucbb-big .sheet > .err, .ucbb.ucbb-big .sheet > .btns { grid-column: 2; }
.ucbb.ucbb-big .sheet > .btns { flex-direction: column-reverse; gap: 8px; }
.ucbb.ucbb-big .sheet > .btns .btn { flex: none; width: 100%; height: 46px; justify-content: center; }
.ucbb.ucbb-big .sheet > .btns .btn:not(.pri) { height: 38px; background: transparent; border-color: transparent; color: var(--mut); }
@media (max-width: 640px) { .ucbb.ucbb-big .sheet { grid-template-columns: minmax(0, 1fr); } .ucbb.ucbb-big .sheet > * { grid-column: 1 !important; grid-row: auto !important; } }

/* Systémové „omezit animace“ jen mimo OBS (body.uc-raw): OBS hlásí reduced i tam, kde se na chat nikdo zblízka nedívá,
   a v OBS animace zůstávají vždy (pravidlo usera, web předává reduced=false). */
@media (prefers-reduced-motion: reduce) {
  body:not(.uc-raw) .ucbb *, body:not(.uc-raw) .ucbb *::before, body:not(.uc-raw) .ucbb *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* reduced motion = karta bez efektů přes okolní chat (záře .ohalo zůstává) */
  body:not(.uc-raw) .ucbb .bragw > .ospark, body:not(.uc-raw) .ucbb .bragw > .orays, body:not(.uc-raw) .ucbb .bragw > .ocomet, body:not(.uc-raw) .ucbb .brag .spark { display: none; }
}
