/* stash-bonus.css — medaile bonusu stashe za donaty (core/stash-bonus-medals.js). Port vybraných variant z makety
   docs/mockups/2026-10-18-bonus-plisne.html (spec §3.5). Vše pod prefixem ucb-, ať se nebije se sidepanel.css. */

/* ===== společné ===== */
.ucb-medal { position: relative; display: inline-block; vertical-align: middle; width: 70px; height: 70px; flex: none; --ucb-bg: #1f1f24; }
.ucb-medal.ucb-big { width: 120px; height: 120px; }
.ucb-medal.ucb-chip { width: 40px; height: 40px; }
.ucb-medal > svg.ucb-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ucb-fw { position: absolute; inset: 13%; }
.ucb-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.ucb-ico { position: relative; z-index: 2; width: 66%; height: 66%; display: grid; place-items: center; }
.ucb-ico > img, .ucb-ico > video { width: 100% !important; height: 100% !important; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.ucb-medal.is-locked .ucb-fw, .ucb-medal.is-locked .ucb-sfwrap { filter: saturate(.45) brightness(.72); }
.ucb-per { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); height: 15px; padding: 0 5px; border-radius: 8px; font-size: 9px; font-weight: 800; letter-spacing: .04em; line-height: 15px; white-space: nowrap; z-index: 6; font-variant-numeric: tabular-nums;
  color: var(--pfg, #1a1205); background: var(--pbg, color-mix(in srgb, var(--mc) 75%, #fff)); box-shadow: 0 0 0 2px var(--ucb-bg); }
.ucb-big .ucb-per { font-size: 11px; height: 19px; line-height: 19px; padding: 0 8px; bottom: -6px; }
.ucb-chip .ucb-per { font-size: 7.5px; height: 12px; line-height: 12px; padding: 0 4px; bottom: -4px; }
/* Získaný stupeň (varianta D, 2026-10-19): zlatá fajfka dole uprostřed medaile, „znovu N d“ pod částkou, ✓ ve štítku. */
.ucb-ok { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 900; line-height: 1; color: #2a1800; background: linear-gradient(160deg, #ffe08a, #ffc800 45%, #ff8c00); box-shadow: 0 0 0 3px var(--ucb-bg); z-index: 8; cursor: help; }
.ucb-big .ucb-ok { width: 24px; height: 24px; font-size: 14px; bottom: -8px; }
.ucb-chip .ucb-ok { width: 13px; height: 13px; font-size: 8px; bottom: -4px; box-shadow: 0 0 0 2px var(--ucb-bg); }
.ucb-again { color: #ffc800; font-weight: 800; }
.ucb-bar.ucb-bar-done > i { background: linear-gradient(90deg, #ffc800, #ff8c00); }
.ucb-oki { font-style: normal; font-weight: 900; color: #ffc800; margin-right: 4px; }
.ucb-stamp { position: absolute; right: -4px; top: 0; display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 10px; font-weight: 800; color: #fff; background: #3a3a44; box-shadow: 0 0 0 2px var(--ucb-bg); white-space: nowrap; z-index: 7; font-variant-numeric: tabular-nums; }
.ucb-stamp .ucb-lock { width: 11px; height: 11px; flex: none; }
.ucb-chip .ucb-stamp { right: -6px; top: -3px; height: 13px; padding: 0 4px; font-size: 8px; gap: 2px; }
.ucb-chip .ucb-stamp .ucb-lock { width: 8px; height: 8px; }
.ucb-stars { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 7; font-size: 10px; line-height: 1; letter-spacing: -1px; color: #ffd93d; white-space: nowrap; text-shadow: 0 0 4px rgba(255, 200, 60, .8), 0 1px 1px #000; }
.ucb-big .ucb-stars { font-size: 14px; top: -8px; }
.ucb-chip .ucb-stars { font-size: 8px; top: -5px; }

/* ===== kovy a kameny ===== */
.ucb-metals .ucb-face { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--mc) 55%, #fff) 0, color-mix(in srgb, var(--mc) 72%, #000) 72%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mc) 40%, #fff), inset 0 -6px 10px rgba(0,0,0,.35), 0 0 14px color-mix(in srgb, var(--mc) 32%, transparent); }
/* stříbro: vroubkovaný okraj */
.ucb-silver .ucb-face::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--mc) 50%, #fff); opacity: .55; }
/* zlato: paprsky */
.ucb-gold .ucb-face::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.18) 0 6deg, transparent 6deg 18deg); }
/* platina: kartáčovaný kov, leštěný dvojitý okraj, 4 kamínky, chladný lesk */
.ucb-plat .ucb-face { background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.10) 0 1px, rgba(0,0,0,.06) 1px 2.4px),
    radial-gradient(circle at 38% 30%, #f4fffd 0, #bfe6e1 38%, #6f9e9a 100%);
  box-shadow: inset 0 0 0 2px #f6fffe, inset 0 0 0 4px rgba(60, 110, 105, .55), inset 0 0 0 5px rgba(255,255,255,.45), inset 0 -6px 10px rgba(0,0,0,.3), 0 0 14px rgba(143, 230, 220, .35); }
.ucb-plat .ucb-face::before { content: ''; position: absolute; inset: -20%; z-index: 3; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.7) 50%, transparent 58%); animation: ucbSheen 3.6s ease-in-out infinite; }
.ucb-plat .ucb-stud { position: absolute; width: 9%; height: 9%; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #ffffff, #bfe9ff); box-shadow: 0 0 4px #fff, 0 0 0 1px rgba(60, 110, 105, .6); z-index: 2; }
.ucb-plat .ucb-ico { width: 58%; height: 58%; }
/* diamant: měkký krystal Oceán, jemná ↔ sytá 3,5 s tam a zpět, odlesk, jiskry */
.ucb-dia .ucb-fw { inset: 5%; filter: drop-shadow(0 0 6px rgba(59, 130, 246, .6)) drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.ucb-dia .ucb-face, .ucb-ruby .ucb-face { border-radius: 0; background: none; box-shadow: none !important; overflow: visible; }
.ucb-face .ucb-gem { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ucb-face .ucb-gem-b { animation: ucbGemBreath 3.5s ease-in-out infinite alternate; }
@keyframes ucbGemBreath { 0%, 12% { opacity: 0; } 88%, 100% { opacity: 1; } }
.ucb-dia .ucb-ico { width: 52%; height: 52%; }
.ucb-dia .ucb-ico > img, .ucb-dia .ucb-ico > video { filter: drop-shadow(0 1px 2px rgba(0, 40, 90, .55)); }
.ucb-dia .ucb-face::after { content: ''; position: absolute; inset: 0; z-index: 3; clip-path: polygon(50% 3%, 91% 26.5%, 91% 73.5%, 50% 97%, 9% 73.5%, 9% 26.5%); background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%) no-repeat; background-size: 250% 100%; animation: ucbGemSheen 4.5s ease-in-out infinite; }
@keyframes ucbGemSheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
/* rubín: Karmín · chladný, měkký osmiúhelník, sytá ↔ hlubší, neonový odlesk malinově červený, záře rubínově červená */
.ucb-ruby .ucb-fw { inset: 10%; animation: ucbNeonGlow 3.5s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255, 30, 70, .55)) drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
@keyframes ucbNeonGlow { 0%, 12% { filter: drop-shadow(0 0 6px rgba(255, 30, 70, .55)) drop-shadow(0 2px 3px rgba(0,0,0,.5)); } 88%, 100% { filter: drop-shadow(0 0 11px rgba(235, 20, 45, .9)) drop-shadow(0 0 3px rgba(255, 110, 120, .8)) drop-shadow(0 2px 3px rgba(0,0,0,.5)); } }
.ucb-ruby .ucb-face::after { content: ''; position: absolute; inset: 0; z-index: 4; clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
  background: linear-gradient(115deg, transparent 38%, rgba(255, 60, 110, 0) 42%, rgba(255, 90, 140, .65) 49%, rgba(255, 235, 245, .9) 50%, rgba(240, 30, 90, .5) 52%, transparent 60%) no-repeat;
  background-size: 250% 100%; animation: ucbGemSheen 4.5s ease-in-out infinite; mix-blend-mode: screen; }
.ucb-ruby .ucb-ico { width: 50%; height: 50%; z-index: 3; }
/* jiskry diamantu a rubínu */
.ucb-spk { position: absolute; width: 22%; height: 22%; z-index: 6; pointer-events: none; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: ucbTwinkle 2.6s ease-in-out infinite; filter: drop-shadow(0 0 3px #fff); }
.ucb-spk.s1 { left: 14%; top: 10%; }
.ucb-spk.s2 { right: 12%; top: 38%; width: 16%; height: 16%; animation-delay: .9s; }
.ucb-spk.s3 { left: 30%; bottom: 12%; width: 13%; height: 13%; animation-delay: 1.7s; }
.ucb-dia .ucb-spk { background: #eaf7ff; }
.ucb-dia .ucb-spk.s1 { left: 8%; top: 22%; }
.ucb-dia .ucb-spk.s2 { right: 4%; top: 46%; animation-delay: 1.3s; }
.ucb-dia .ucb-spk.s3 { left: 40%; bottom: 0; animation-delay: 2.4s; }
@keyframes ucbTwinkle { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: .2; transform: scale(.6) rotate(90deg); } }
@keyframes ucbSheen { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
/* lesk podle periody (jen u stejné částky): 0 běžná (nikdy neztmavne — pokyn usera 2026-11-07, „první platina nemá ztmavnout“),
   1 saténová, 2 leštěná s přejíždějícím leskem, 3 zrcadlová se září */
.ucb-gl1:not(.ucb-dia):not(.ucb-ruby) .ucb-face::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 30% 22%, rgba(255,255,255,.45), transparent 45%); }
.ucb-gl2:not(.ucb-dia):not(.ucb-ruby) .ucb-face::after, .ucb-gl3:not(.ucb-dia):not(.ucb-ruby) .ucb-face::after { content: ''; position: absolute; inset: -30%; z-index: 3; background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,.75) 50%, transparent 58%); animation: ucbSheen 2.8s ease-in-out infinite; }
.ucb-gl3:not(.ucb-dia):not(.ucb-ruby) .ucb-fw { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--mc) 80%, #fff)); }
.ucb-gl3:not(.ucb-dia):not(.ucb-ruby) .ucb-face { box-shadow: inset 0 0 0 2px #fff, inset 0 -6px 10px rgba(0,0,0,.3), 0 0 16px color-mix(in srgb, var(--mc) 60%, transparent) !important; }
/* kameny (diamant, rubín) mají vlastní ořezaný odlesk a záři — lesk jen filtrem na krystalu, tvar ani odlesk se nemění */
.ucb-gl2.ucb-dia .ucb-face, .ucb-gl2.ucb-ruby .ucb-face { filter: saturate(1.1) brightness(1.08); }
.ucb-gl3.ucb-dia .ucb-face, .ucb-gl3.ucb-ruby .ucb-face { filter: saturate(1.2) brightness(1.15) drop-shadow(0 0 5px color-mix(in srgb, var(--mc) 80%, #fff)); }

/* ===== sluneční kovářství ===== */
@property --ucb-ra { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.ucb-sfl { position: absolute; inset: 0; z-index: 1; --halo: .6; --accent: #ffbd45; }
/* odznak se kreslí ve 120 px a zmenšuje podle velikosti medaile (vitrína 0,6, velká 1, štítek 0,343) */
.ucb-sfwrap { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%) scale(.6); }
.ucb-big .ucb-sfwrap { transform: translate(-50%, -50%) scale(1); }
.ucb-chip .ucb-sfwrap { transform: translate(-50%, -50%) scale(.343); }
.ucb-sfb { width: 120px; height: 120px; position: relative; isolation: isolate; display: block; --metal: var(--accent); --bright: #fff0b0; --deep: #a94e11; animation: ucbSfRa 14s linear infinite; }
@keyframes ucbSfRa { to { --ucb-ra: 360deg; } }
/* záře roste velikostí i pulzem se stupněm */
.ucb-sfb::before { content: ''; position: absolute; inset: var(--gin, 13%); border-radius: 50%; background: var(--metal); filter: blur(var(--gbl, 19px)); opacity: calc(var(--halo) * var(--power, 1)); z-index: -2; animation: ucbSfHalo 3.2s ease-in-out infinite; }
@keyframes ucbSfHalo { 0%, 100% { opacity: calc(var(--halo) * var(--power, 1) * (1 - .45 * var(--pulse, 1))); transform: scale(calc(1 - .08 * var(--pulse, 1))); } 50% { opacity: calc(var(--halo) * var(--power, 1) * (1 + .35 * var(--pulse, 1))); transform: scale(calc(1 + .12 * var(--pulse, 1))); } }
.ucb-sfb .ucb-core { position: absolute; inset: 24%; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(ellipse at 30% 15%, #45414a, #17171d 65%); box-shadow: inset 0 1px 3px #ffffff40, 0 4px 8px #0008; border: 1px solid #ffffff20; z-index: 4; animation: ucbSfCore 3.2s ease-in-out infinite; }
.ucb-sfb .ucb-core .ucb-ico { width: 70%; height: 70%; }
.ucb-sfb .ucb-core .ucb-ico > img, .ucb-sfb .ucb-core .ucb-ico > video { filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
@keyframes ucbSfCore { 0%, 100% { box-shadow: inset 0 1px 3px #ffffff40, 0 4px 8px #0008, 0 0 0 0 transparent; } 50% { box-shadow: inset 0 1px 3px #ffffff40, 0 4px 8px #0008, 0 0 10px 1px color-mix(in srgb, var(--metal) 60%, transparent); } }
/* prstenec otáčí odlesk bez švu */
.ucb-sfb .ucb-rim { position: absolute; inset: 20%; border-radius: 50%; box-shadow: 0 2px 3px #0009, inset 0 0 0 1px #ffffff50;
  background: conic-gradient(from calc(-35deg + var(--ucb-ra, 0deg)), var(--bright), var(--metal) 14%, var(--deep) 32%, var(--metal) 50%, var(--bright) 66%, var(--metal) 82%, var(--deep) 91%, var(--bright)); }
.ucb-sfb .ucb-rim::after { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: #17141b; }
/* úrovně */
.ucb-lv1 { --metal: #bc8d61; --bright: #ecd5a8; --deep: #69432d; --power: .2; --pulse: .12; --gin: 30%; --gbl: 9px; }
.ucb-lv1 .ucb-rim { inset: 22%; }
.ucb-lv2 { --power: .5; --pulse: .25; --gin: 26%; --gbl: 11px; }
.ucb-lv2 .ucb-rim { inset: 19%; }
.ucb-lv1 .ucb-core, .ucb-lv2 .ucb-core { animation: none; }
.ucb-lv3 { --power: .85; --pulse: .4; --gin: 22%; --gbl: 13px; }
.ucb-lv4 { --pulse: .55; --gin: 19%; --gbl: 15px; }
.ucb-lv5 { --bright: #fff2ca; --metal: #ffd867; --power: 1.2; --pulse: .75; --gin: 16%; --gbl: 17px; }
.ucb-lv6 { --bright: #fffbe5; --metal: #ffe28e; --deep: #ba7133; --power: 1.5; --pulse: 1; --gin: 13%; --gbl: 19px; }
.ucb-lv3 .ucb-rim, .ucb-lv4 .ucb-rim, .ucb-lv5 .ucb-rim, .ucb-lv6 .ucb-rim { inset: 17%; }
/* paprsky: T6 plné, T3–T5 stejné paprsky, kratší (vycházejí z prstence) a slabší */
.ucb-sunburst { position: absolute; inset: 1%; z-index: -1; opacity: .75; background: repeating-conic-gradient(from 5deg, #fff1ac 0deg 2deg, transparent 2deg 15deg);
  clip-path: polygon(50% 0, 61% 21%, 75% 7%, 77% 29%, 94% 25%, 85% 45%, 100% 50%, 85% 58%, 94% 75%, 77% 74%, 75% 94%, 60% 82%, 50% 100%, 40% 82%, 25% 94%, 24% 74%, 7% 75%, 15% 58%, 0 50%, 15% 42%, 7% 25%, 24% 28%, 25% 7%, 40% 21%);
  animation: ucbSpin 26s linear infinite, ucbSfBurst 3.2s ease-in-out infinite; }
@keyframes ucbSfBurst { 0%, 100% { opacity: calc(var(--sbo, 1) * .55); } 50% { opacity: calc(var(--sbo, 1) * .95); } }
@keyframes ucbSpin { to { transform: rotate(360deg); } }
.ucb-lv3 .ucb-sunburst { inset: 7.5%; --sbo: .85; opacity: .62; }
.ucb-lv4 .ucb-sunburst { inset: 6%; --sbo: .9; opacity: .68; }
.ucb-lv5 .ucb-sunburst { inset: 4%; --sbo: .85; opacity: .7; }
/* křídla z per a koruna z prstence */
.ucb-fwings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
.ucb-fwing { transform-box: view-box; transform-origin: 31px 66px; animation: ucbSfFeather 3.2s ease-in-out infinite; }
@keyframes ucbSfFeather { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
.ucb-acrown { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.55)); animation: ucbSfCrown 3.2s ease-in-out infinite; }
@keyframes ucbSfCrown { 0%, 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)) brightness(1); } 50% { filter: drop-shadow(0 0 5px rgba(255, 215, 110, .8)) brightness(1.18); } }
/* jiskry T6 */
.ucb-spark { position: absolute; background: var(--bright); width: 7px; height: 7px; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px var(--metal)); z-index: 7; animation: ucbSfSpark 2.4s ease-in-out infinite; }
.ucb-spark:nth-of-type(2n) { animation-delay: -.8s; }
.ucb-spark:nth-of-type(3n) { animation-delay: -1.6s; }
@keyframes ucbSfSpark { 0%, 100% { transform: scale(.6) rotate(0deg); opacity: .5; } 50% { transform: scale(1.25) rotate(45deg); opacity: 1; } }

/* malý štítek je statický (animace jen ve vitríně a tooltipu); prefers-reduced-motion = bez animací */
.ucb-chip, .ucb-chip *, .ucb-chip *::before, .ucb-chip *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ucb-medal, .ucb-medal *, .ucb-medal *::before, .ucb-medal *::after { animation: none !important; }
}

@property --ucbh-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ucbh-o { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ucb-holo { --ha: #ffd36b; --hb: #ffb627; --hc: #fff1c2; --hd: #e9a23b; --he: #fff8e6; --hdeep: #8a5a12; --r1: #a8ffcf; --r2: #9eeaff; --r3: #ffb0dc;
  --mc: #ffb627; isolation: isolate; }
.ucb-holo > span, .ucb-holo-tilt > span, .ucb-holo-bob > span { position: absolute; }
.ucb-holo-bob, .ucb-holo-tilt { inset: 0; }
.ucb-holo-bob { animation: ucbHBob 5.5s ease-in-out infinite; z-index: 2; }
@keyframes ucbHBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.ucb-holo-tilt { transform: perspective(190px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .3s cubic-bezier(.22, .8, .24, 1); }
.ucb-holo.ucb-holo-hover .ucb-holo-tilt { transition-duration: .12s; }
/* paralaxa: paprsky a prisma proti kurzoru, ikona s ním, fólie po svém */
.ucb-holo-px { inset: 0; transform: translate(calc(var(--px, 0) * -3.5px), calc(var(--py, 0) * -3.5px)); transition: transform .3s ease-out; }
.ucb-holo-px > span { position: absolute; }
.ucb-holo-out { z-index: -1; }

/* záře kolem (ohalo) */
.ucb-holo-halo { inset: calc(-6px - var(--lv) * 1.2px); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 182, 39, .75), rgba(255, 182, 39, .25) 60%, transparent); filter: blur(7px); opacity: calc(.55 + var(--lv) * .07); animation: ucbHHalo 3.2s ease-in-out infinite; }
@keyframes ucbHHalo { 50% { opacity: calc(.75 + var(--lv) * .05); transform: scale(1.06); } }
/* zlaté paprsky (sunburst) — viditelné i v 70 px */
.ucb-holo-rays { inset: var(--ri); border-radius: 50%; animation: ucbHSpin 30s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 241, 194, .95) 0deg 2.2deg, rgba(255, 211, 107, .35) 3.4deg, transparent 4.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent 52%, #000 60%, rgba(0,0,0,.55) 78%, transparent 100%); mask: radial-gradient(closest-side, transparent 52%, #000 60%, rgba(0,0,0,.55) 78%, transparent 100%);
  filter: drop-shadow(0 0 2px rgba(255, 182, 39, .9)); opacity: var(--ro); }
.ucb-holo-rays.b { animation: ucbHSpin 44s linear infinite reverse; background: repeating-conic-gradient(from 7deg, rgba(255, 248, 230, .8) 0deg 1.2deg, transparent 2.2deg 22.5deg); }
@keyframes ucbHSpin { to { transform: rotate(360deg); } }
/* prisma jako kolem XL karty, zlaté s náznakem duhy */
.ucb-holo-prism { inset: -18px; border-radius: 50%;
  background: repeating-conic-gradient(from var(--ucbh-a), transparent 0deg 9deg, color-mix(in srgb, var(--ha) 55%, transparent) 12deg, color-mix(in srgb, var(--hb) 50%, transparent) 15deg, color-mix(in srgb, var(--hc) 50%, transparent) 18deg, transparent 22deg 30deg);
  -webkit-mask: radial-gradient(closest-side, transparent 48%, #000 64%, transparent 100%); mask: radial-gradient(closest-side, transparent 48%, #000 64%, transparent 100%);
  filter: blur(3px); animation: ucbHRing 40s linear infinite; opacity: .8; }
@keyframes ucbHRing { to { --ucbh-a: 360deg; } }
/* ★5: záblesk „nova“ */
.ucb-holo-nova { inset: -20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 248, 230, .9), rgba(255, 211, 107, .45) 40%, transparent 70%); opacity: 0; animation: ucbHNova 4.8s ease-out infinite; }
@keyframes ucbHNova { 0%, 78% { opacity: 0; transform: scale(.6); } 84% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* prstenec průběhu: zlatý */
.ucb-holo .ucb-ring { z-index: 1; }
/* lícní strana */
.ucb-holo-fw { z-index: 2; filter: drop-shadow(0 0 var(--gb) var(--glow)) drop-shadow(0 2px 3px rgba(0,0,0,.55)); animation: ucbHGlow 3.2s ease-in-out infinite; }
@keyframes ucbHGlow { 50% { filter: drop-shadow(0 0 calc(var(--gb) * 1.5) var(--glow)) drop-shadow(0 2px 3px rgba(0,0,0,.55)) brightness(1.08); } }
.ucb-holo-fw > span { position: absolute; }
/* zlatý kovový rámeček s obíhajícím odleskem (jako prstenec slunečního kovářství) */
.ucb-holo-bezel { inset: -3px; border-radius: 50%; padding: 3px; z-index: 4;
  background: conic-gradient(from var(--ucbh-a), var(--he), var(--hb) 14%, var(--hdeep) 30%, var(--hb) 46%, var(--hc) 60%, var(--ha) 74%, var(--hdeep) 88%, var(--he));
  -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: ucbHRing 9s linear infinite; }
/* holo hrana: v klidu zlatá, duha naskočí s náklonem (--ta 0–1) */
.ucb-holo-rim { inset: -4.5px; border-radius: 50%; padding: 1.5px; z-index: 5; pointer-events: none;
  background: conic-gradient(from var(--ucbh-a), var(--ha), var(--hb) 18%, var(--he) 27%, var(--hc) 34%, var(--ha) 46%, var(--hd) 58%, var(--hb) 72%, var(--hc) 85%, var(--ha));
  -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: ucbHRing 6s linear infinite reverse; }
.ucb-holo-rim.rb { background: conic-gradient(from var(--ucbh-a), var(--ha), var(--r1) 14%, var(--he) 22%, var(--r2) 36%, var(--hb) 50%, var(--r3) 64%, var(--hc) 78%, var(--r1) 90%, var(--ha)); opacity: calc(.1 + var(--ta, 0) * .9); transition: opacity .25s; }
.ucb-holo-rim.aura { inset: -8px; padding: 5px; z-index: 0; filter: blur(4px); opacity: .7; background: conic-gradient(from var(--ucbh-a), var(--ha), var(--hb), var(--he), var(--hd), var(--ha)); }
.ucb-holo-face { z-index: 1; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 211, 107, .55), transparent 62%), radial-gradient(80% 60% at 50% 110%, rgba(233, 162, 59, .6), transparent 72%), radial-gradient(circle at 50% 45%, #3a2608, #17120a 80%); }
.ucb-holo-face > span { position: absolute; }
.ucb-holo-face > .ucb-ico { position: relative; z-index: 6; width: 62%; height: 62%; transform: translate(calc(var(--px, 0) * 2.6px), calc(var(--py, 0) * 2.6px)); transition: transform .3s ease-out; }
.ucb-holo-face > .ucb-ico > img, .ucb-holo-face > .ucb-ico > video { filter: drop-shadow(calc(var(--px, 0) * -1.6px) calc(2px - var(--py, 0) * 1.2px) 1.5px rgba(30, 15, 0, .75)) drop-shadow(0 0 3px rgba(255, 211, 107, .35)); }
/* fólie: hlavně zlatá, duha jen na krajích pruhu */
.ucb-holo-foil { inset: 0; z-index: 3; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--r1) 14%, transparent) 39%, color-mix(in srgb, var(--ha) 45%, transparent) 45%, color-mix(in srgb, var(--he) 62%, transparent) 50%, color-mix(in srgb, var(--hb) 45%, transparent) 55%, color-mix(in srgb, var(--r2) 14%, transparent) 61%, color-mix(in srgb, var(--r3) 12%, transparent) 65%, transparent 72%);
  background-size: 260% 100%; background-position: var(--mx, 30%) 0; opacity: var(--fo, .55); transition: background-position .2s ease-out, opacity .25s ease-out; animation: ucbHFoil 6s ease-in-out infinite alternate; }
.ucb-holo.ucb-holo-hover .ucb-holo-foil { animation: none; }
@keyframes ucbHFoil { from { background-position: 8% 0; } to { background-position: 92% 0; } }
.ucb-holo-sweep { inset: -20% -60%; z-index: 5; background: linear-gradient(100deg, transparent 42%, rgba(255, 248, 230, .55) 50%, transparent 58%); transform: translateX(-60%); animation: ucbHSweep 4.2s ease-in-out infinite; mix-blend-mode: plus-lighter; pointer-events: none; }
@keyframes ucbHSweep { 55%, 100% { transform: translateX(60%); } }
.ucb-holo-tex { inset: 0; z-index: 2; background-image: radial-gradient(circle, color-mix(in srgb, var(--ha) 45%, transparent) 0 .55px, transparent .85px); background-size: 4px 4px;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 60%); mask-image: linear-gradient(225deg, #000 0%, transparent 60%); animation: ucbHBreath 4s ease-in-out infinite;
  transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)); }
@keyframes ucbHBreath { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.ucb-holo-twk { inset: 0; z-index: 2; -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 75%); mask-image: linear-gradient(225deg, #000 0%, transparent 75%); }
.ucb-holo-twk i { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--tc) 0 .6px, transparent .9px); opacity: 0; animation: ucbHTw var(--td) ease-in-out infinite; }
@keyframes ucbHTw { 0%, 100% { opacity: 0; } 50% { opacity: .6; } }
.ucb-holo-glit { z-index: 6; width: 5px; height: 5px; background: var(--gc); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 2px var(--gc)); opacity: 0; animation: ucbHGlit var(--gd) ease-in-out infinite; }
@keyframes ucbHGlit { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: .95; transform: scale(1) rotate(45deg); } 60% { opacity: .2; transform: scale(.6) rotate(90deg); } }
.ucb-holo-inset { inset: 0; z-index: 4; border-radius: 50%; box-shadow: inset 0 0 9px 2px rgba(0,0,0,.5), inset 0 -5px 8px -2px rgba(0,0,0,.45), inset 0 0 0 1px color-mix(in srgb, var(--ha) 35%, transparent); pointer-events: none; }
/* ★2+: kometa světla po prstenci */
.ucb-holo-comet { inset: 0; border-radius: 50%; padding: 4px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--ucbh-o), transparent 0 76%, color-mix(in srgb, var(--hc) 60%, transparent) 90%, #fff 96%, transparent 100%);
  -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: drop-shadow(0 0 3px var(--hc)); animation: ucbHOrbit 3.4s linear infinite; }
@keyframes ucbHOrbit { to { --ucbh-o: 360deg; } }
/* střepy na oběžné dráze */
.ucb-holo-shards { left: 50%; top: 50%; width: 0; height: 0; z-index: 8; pointer-events: none; }
.ucb-holo-shards-px { inset: 0; z-index: 8; pointer-events: none; transform: translate(calc(var(--px, 0) * 4.5px), calc(var(--py, 0) * 4.5px)); transition: transform .3s ease-out; }
.ucb-holo-hrg { position: absolute; width: var(--d); height: var(--d); left: calc(var(--d) / -2); top: calc(var(--d) / -2); animation: ucbHSpin var(--t) linear infinite; animation-direction: var(--dir, normal); }
.ucb-holo-shard { position: absolute; left: 50%; top: -3px; width: 4px; height: 6.4px; margin-left: -2px; clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%);
  background: linear-gradient(160deg, var(--he), var(--ha) 35%, var(--hb) 60%, var(--r2) 80%, var(--hc)); filter: drop-shadow(0 0 2px color-mix(in srgb, var(--ha) 80%, transparent)); animation: ucbHShard 2.8s ease-in-out infinite; }
@keyframes ucbHShard { 0%, 100% { opacity: .35; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
/* ★3+: odlétající jiskry */
.ucb-holo-osp { left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; z-index: 7; background: var(--he); box-shadow: 0 0 5px var(--ha), 0 0 2px #fff; opacity: 0; animation: ucbHFly var(--d) ease-out infinite; animation-delay: var(--dl); }
@keyframes ucbHFly { 0% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }
/* štítek, hvězdy, odměna — zlato s pohyblivým leskem */
.ucb-holo .ucb-per { color: #2a1500; background: linear-gradient(90deg, #e9a23b, #ffd36b 30%, #fff8e6 50%, #ffd36b 70%, #e9a23b); background-size: 200% 100%; animation: ucbHFlow 3.2s linear infinite; }
.ucb-holo .ucb-stars { color: transparent; text-shadow: none; background: linear-gradient(90deg, #ffb627, #fff8e6 30%, #ffd36b 50%, #9eeaff 62%, #ffb627 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 2px rgba(255, 182, 39, .9)) drop-shadow(0 1px 1px #000); animation: ucbHFlow 3s linear infinite; }
@keyframes ucbHFlow { to { background-position: -200% 0; } }
.ucb-holo-rw { background: linear-gradient(90deg, #ffb627, #fff1c2 40%, #ffd36b 60%, #ffb627); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: ucbHFlow 4s linear infinite; }
/* prstenec průběhu je v náklonové vrstvě, ne přímý potomek medaile */
.ucb-holo-tilt > svg.ucb-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
/* získaný (zamčený) stupeň: ztlumený jako ostatní, bez pulzu záře */
.ucb-holo.is-locked .ucb-holo-fw { animation: none; filter: saturate(.45) brightness(.72) drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.ucb-holo.is-locked .ucb-holo-out, .ucb-holo.is-locked .ucb-holo-shards-px, .ucb-holo.is-locked .ucb-holo-osp { opacity: .3; }
/* malý štítek: jen líc bez vnějších vrstev (statický) */
.ucb-chip.ucb-holo .ucb-holo-out, .ucb-chip.ucb-holo .ucb-holo-shards-px, .ucb-chip.ucb-holo .ucb-holo-osp, .ucb-chip.ucb-holo .ucb-holo-comet { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ucb-holo-tilt, .ucb-holo-px, .ucb-holo-shards-px, .ucb-holo-face > .ucb-ico { transform: none !important; transition: none !important; }
  .ucb-holo-rw { animation: none !important; }
}
.ucb-chip .ucb-holo-tilt, .ucb-chip .ucb-holo-px, .ucb-chip .ucb-holo-shards-px { transform: none !important; }

/* ===== tooltip pilulky stashe: spodní sekce + vitrína (spec 2026-10-18-bonus-plisne §3.3, varianta D „vzdušnější ·
   stejná šířka“, maketa .tip.d / .bon / .bch / .airy2). Rozložení tooltipu (šipky po stranách, tečky) je ve stash.css. */
.uc-sb-tip-watch { --ucb-line: #34343c; --ucb-tile: #26262c; --ucb-fg2: #a0a0b0; --ucb-mute: #7a7a85; --ucb-gold: #ffd93d; --ucb-orange: #ff8c00; --ucb-tipbg: var(--bg-tertiary, #1f1f24); }
.uc-sb-tip-main[hidden], .uc-sb-tip-foot[hidden], .uc-sb-tip-alt[hidden], .uc-sb-tip-back[hidden] { display: none !important; }

/* spodní sekce = celé tlačítko přes šířku tooltipu */
.uc-sb-tip-foot { margin: 10px calc(-1 * var(--pi, 13px)) 0; }
.ucb-sec { position: relative; display: block; width: 100%; padding: 10px 14px 14px; border: 0; border-top: 1px solid var(--ucb-line); background: none; color: inherit; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; border-radius: 0 0 9px 9px; overflow: hidden; transition: background .25s, border-color .25s; pointer-events: auto; }
.ucb-sec::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 200, 80, .10) 50%, transparent 60%) no-repeat; background-size: 250% 100%; background-position: 130% 0; animation: ucbBonSheen 6s ease-in-out infinite 1.5s; }
@keyframes ucbBonSheen { 0%, 70% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.ucb-sec:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--ucb-orange) 4%, transparent), color-mix(in srgb, var(--ucb-orange) 11%, transparent)); border-top-color: color-mix(in srgb, var(--ucb-orange) 35%, var(--ucb-line)); }
.ucb-sec:focus-visible { outline: 2px solid var(--ucb-gold); outline-offset: -3px; }
.ucb-bh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ucb-mute); margin-bottom: 7px; }
.ucb-go { margin-left: auto; font-style: normal; flex: none; display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ucb-gold) 80%, #fff); background: color-mix(in srgb, var(--ucb-orange) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ucb-orange) 38%, transparent); transition: background .25s, box-shadow .25s, color .25s; }
.ucb-go em { font-style: normal; font-size: 14px; line-height: 1; transition: transform .25s; }
.ucb-go .ucb-mi { width: 22px; height: 22px; margin: -3px 0 -3px 1px; object-fit: contain; flex: none; }
.ucb-sec:hover .ucb-go { background: color-mix(in srgb, var(--ucb-orange) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ucb-orange) 65%, transparent); color: #fff3d0; }
.ucb-sec:hover .ucb-go em { transform: translateX(2px); }
.ucb-brow { display: grid; grid-template-columns: repeat(var(--ucb-n, 3), minmax(0, 1fr)); gap: 6px; }

/* štítek stupně */
.ucb-bch { position: relative; min-width: 0; display: block; padding: 6px 7px 9px; overflow: hidden; border-radius: 10px; background: var(--ucb-tile); border: 1px solid var(--ucb-line);
  transition: border-color .25s, transform .25s cubic-bezier(.22, .8, .24, 1), box-shadow .25s; }
.ucb-bch .ucb-t { display: block; min-width: 0; line-height: 1.15; }
.ucb-bch .ucb-t b { display: flex; align-items: center; line-height: 1.25; min-height: 19px; font-weight: 900; color: var(--mt, color-mix(in srgb, var(--mc) 60%, #fff)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ucb-bch .ucb-mi { width: 22px; height: 22px; margin: -3px 0 -3px 1px; object-fit: contain; flex: none; }
.ucb-bch .ucb-t > span { display: block; font-size: 9.5px; color: var(--ucb-fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucb-pb { position: absolute; left: 7px; right: 7px; bottom: 4px; height: 3px; border-radius: 2px; background: #34343c; overflow: hidden; }
.ucb-pb > i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 70%, #000), var(--mc)); }
.ucb-bch.locked .ucb-pb > i { background: #6b6b76; }
.ucb-bch.next { border-color: color-mix(in srgb, var(--ucb-orange) 70%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--ucb-orange) 22%, transparent); }
.ucb-bch.locked .ucb-t b { color: #9b9ba6; }
.ucb-bch.locked .ucb-mi { filter: grayscale(.8); opacity: .85; }
.ucb-sec:hover .ucb-bch { border-color: color-mix(in srgb, var(--mc) 30%, var(--ucb-line)); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.ucb-sec:hover .ucb-bch.next { border-color: color-mix(in srgb, var(--ucb-orange) 80%, transparent); }
.ucb-sec:active .ucb-bch { transform: translateY(0); }

/* druhý pohled: hlavička s „‹ Zpět“, názvem a zůstatkem */
.uc-sb-tip-alt { pointer-events: auto; }
.uc-sb-tip-alt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.uc-sb-tip-alt-t { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-sb-tip-back { flex: none; border: 1px solid var(--ucb-line); background: #26262c; color: var(--text-primary, #efeff1); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.4; border-radius: 8px; padding: 4px 9px 4px 7px; cursor: pointer; }
.uc-sb-tip-back:hover { background: #2f2f36; }
.uc-sb-tip-back:focus-visible { outline: 2px solid var(--ucb-gold); outline-offset: 2px; }
.ucb-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ucb-gold) 45%, #fff); background: linear-gradient(90deg, color-mix(in srgb, var(--ucb-orange) 26%, transparent), color-mix(in srgb, var(--ucb-gold) 16%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ucb-orange) 55%, transparent); }
.ucb-badge .ucb-mi { width: 22px; height: 22px; margin: -4px 0; object-fit: contain; }

/* vitrína: 3 medaile, šipky přes okraj (panel se nerozšiřuje), okraje plynule mizí */
.ucb-vit { font-size: 14px; line-height: 1.5; }
.ucb-pager { position: relative; display: block; margin-inline: 2px; }
.ucb-pg { position: absolute; top: 34%; z-index: 4; width: 20px; height: 44px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; cursor: pointer;
  color: #c7c7d0; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1; background: color-mix(in srgb, var(--ucb-tipbg) 75%, transparent); backdrop-filter: blur(2px); transition: opacity .2s, background .2s; }
.ucb-pg[data-ucb-pg="-1"] { left: -12px; }
.ucb-pg[data-ucb-pg="1"] { right: -12px; }
.ucb-pg:hover:not(:disabled) { background: #2c2c33; }
.ucb-pg:disabled { opacity: 0; pointer-events: none; }
.ucb-pg:focus-visible, .ucb-md:focus-visible { outline: 2px solid var(--ucb-gold); outline-offset: 2px; }
.ucb-vp { overflow: hidden; padding: 14px 14px 8px; margin: -14px -14px -8px;
  -webkit-mask: linear-gradient(90deg, transparent 0, transparent 7px, #000 14px, #000 calc(100% - 14px), transparent calc(100% - 7px));
  mask: linear-gradient(90deg, transparent 0, transparent 7px, #000 14px, #000 calc(100% - 14px), transparent calc(100% - 7px)); }
.ucb-track { display: flex; transition: transform .38s cubic-bezier(.22, .8, .24, 1); }
.ucb-vit.few .ucb-track { justify-content: center; }
.ucb-cell { flex: 0 0 calc(100% / 3); min-width: 0; padding: 0 4px; }
/* Medaile mimo okno 3 viditelných: animace stojí (výkon u mnoha stupňů), po posunu do okna pokračují. */
.ucb-cell.ucb-off, .ucb-cell.ucb-off *, .ucb-cell.ucb-off *::before, .ucb-cell.ucb-off *::after { animation-play-state: paused !important; }
.ucb-md { width: 100%; display: grid; justify-items: center; gap: 5px; padding: 11px 2px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; background: none; color: inherit; font: inherit; transition: background .2s, border-color .2s; }
.ucb-md:hover { background: #26262c; }
.ucb-md.sel { background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 16%, transparent), transparent); border-color: color-mix(in srgb, var(--mc) 45%, transparent); }
.ucb-md .ucb-medal { margin-bottom: 5px; }
.ucb-rw { font-size: 17px; font-weight: 900; color: var(--mt, color-mix(in srgb, var(--mc) 55%, #fff)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ucb-md.locked .ucb-rw { color: #9b9ba6; }
.ucb-cn { font-size: 10.5px; color: var(--ucb-fg2); text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ucb-detail { margin-top: 16px; padding: 12px 14px; border-radius: 11px; background: var(--ucb-tile); border: 1px solid var(--ucb-line); display: grid; gap: 8px; }
.ucb-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
.ucb-dh b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ucb-dh span { color: var(--ucb-fg2); white-space: nowrap; }
.ucb-detail .ucb-mi { width: 19px; height: 19px; vertical-align: -4px; margin: 0 1px 0 2px; object-fit: contain; }
.ucb-bar { height: 7px; border-radius: 4px; background: #34343c; overflow: hidden; }
.ucb-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 70%, #000), var(--mc)); transition: width .45s cubic-bezier(.2, .8, .3, 1); }
.ucb-df { font-size: 11.5px; color: var(--ucb-fg2); display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.ucb-df b { color: var(--text-primary, #efeff1); }
@media (prefers-reduced-motion: reduce) {
  .ucb-sec::after { animation: none; }
  .ucb-sec, .ucb-bch, .ucb-go, .ucb-go em, .ucb-track, .ucb-bar > i, .ucb-md, .ucb-pg { transition: none !important; }
  .ucb-sec:hover .ucb-bch, .ucb-sec:hover .ucb-go em { transform: none; }
}

/* ===== pruh „Rozumím“ nad polem (core/stash-bonus-notice.js, spec §3.2) =====
   Pod pruhem stavu serveru, vyjede / zajede přes core/host-slide.js. Barvy UnityChatu (oranžová → zlatá), jen tmavé. */
.ucb-nt { display: flex; align-items: center; gap: 8px; margin: 7px 8px 5px; padding: 5px 6px 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.3;
  color: #ffe6c2; background: linear-gradient(90deg, rgba(255, 140, 0, .16), rgba(255, 217, 61, .08)); border: 1px solid rgba(255, 170, 60, .55);
  box-shadow: 0 0 10px rgba(255, 140, 0, .18); cursor: default; }
.ucb-nt[hidden] { display: none; }
.ucb-nt-ico { flex: none; display: inline-flex; width: 20px; height: 20px; filter: drop-shadow(0 0 3px rgba(255, 170, 60, .55)); }
.ucb-nt-ico[hidden] { display: none; }
.ucb-nt-ico > img, .ucb-nt-ico > video { width: 20px; height: 20px; object-fit: contain; }
.ucb-nt-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px;
  color: transparent; -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 40%, rgba(255, 245, 210, .95) 50%, rgba(0, 0, 0, 0) 60%), linear-gradient(90deg, #ff8c00, #ffd93d);
  background-size: 300% 100%, 100% 100%; background-blend-mode: screen, normal; background-position: 100% 0, 0 0;
  animation: ucbNtSweep 3.4s ease-in-out 2; }
.ucb-nt-ok { flex: none; height: 26px; padding: 0 12px; border: 0; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer;
  color: #1a1205; background: linear-gradient(135deg, #ff8c00, #ffc94d); box-shadow: 0 0 8px rgba(255, 140, 0, .35); transition: filter .15s, box-shadow .15s, transform .15s; }
.ucb-nt-ok:hover { filter: brightness(1.08); box-shadow: 0 0 12px rgba(255, 160, 40, .6); }
.ucb-nt-ok:active { transform: translateY(1px); }
.ucb-nt-ok:disabled { cursor: progress; filter: saturate(.6) brightness(.85); }
.ucb-nt-ok:focus-visible { outline: 2px solid #ffd93d; outline-offset: 2px; }
.ucb-nt.ucb-nt-err { border-color: rgba(255, 90, 60, .7); animation: ucbNtShake .35s ease-in-out; }
@keyframes ucbNtSweep { 0% { background-position: 100% 0, 0 0; } 55%, 100% { background-position: 0% 0, 0 0; } }
@keyframes ucbNtShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .ucb-nt-text, .ucb-nt.ucb-nt-err { animation: none !important; } .ucb-nt-ok { transition: none; } }

/* ===== pruh „Přihlášení k … vypršelo“ nad polem (core/relogin-notice.js, R41, maketa varianta B) =====
   Barva platformy v --c (Twitch fialová, Kick zelená, YouTube červená); vyjede / zajede přes core/host-slide.js. */
.uc-rl { --c: #9146ff; display: flex; align-items: center; gap: 10px; margin: 7px 8px 5px; padding: 6px 6px 6px 10px; border-radius: 8px; font-size: 13px; line-height: 1.3;
  color: #efeff1; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.uc-rl[hidden] { display: none; }
.uc-rl-ico { flex: none; width: 20px; height: 20px; object-fit: contain; }
.uc-rl-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.uc-rl-text b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-rl-text small { color: #adadb8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-rl-login { flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  color: #fff; background: var(--c); transition: filter .15s, transform .15s; }
.uc-rl[data-p="kick"] .uc-rl-login { color: #0b0b0b; }
.uc-rl-login:hover { filter: brightness(1.12); }
.uc-rl-login:active { transform: translateY(1px); }
.uc-rl-login:focus-visible, .uc-rl-x:focus-visible { outline: 2px solid #ffd93d; outline-offset: 2px; }
.uc-rl-x { flex: none; background: none; border: 0; color: #adadb8; font-size: 17px; line-height: 1; padding: 2px 5px; cursor: pointer; border-radius: 4px; }
.uc-rl-x:hover { color: #efeff1; }
/* Červená tečka u výběru platformy, dokud pruh visí (onChange hostitele). */
#platform-btn.uc-rl-dot { position: relative; }
#platform-btn.uc-rl-dot::after { content: ''; position: absolute; right: 1px; top: 1px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 2px #0e0e10; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .uc-rl-login { transition: none; } }

/* ===== pruh výhry v gambě (core/stash-bonus-notice.js createGambaWinNotice, maketa artifact VjWSx8A3mnetFRaaUwEeVA) =====
   Stavba jako pruh rozdání Plísně, barvy z karty gamby (gamba.css). */
.ucb-nt.ucgb { container-type: inline-size; color: #efe3ff; background: linear-gradient(90deg, rgba(145, 70, 255, .26), rgba(245, 0, 155, .13)), #18181b; border-color: rgba(145, 70, 255, .65); box-shadow: 0 0 12px rgba(145, 70, 255, .26); }
.ucb-nt.ucgb.ucg-two .ucb-nt-ico { display: inline-flex; align-items: center; justify-content: center; color: #bf94ff; filter: drop-shadow(0 0 4px rgba(145, 70, 255, .7)); }
.ucb-nt.ucgb .ucb-nt-ico > svg { width: 22px; height: 22px; }
.ucb-nt.ucgb .ucg-nt-top { background-image: linear-gradient(90deg, #cda8ff, #ff6ac9); }
.ucb-nt.ucgb .ucg-nt-sub .ucg-mq-in { background-image: linear-gradient(90deg, #dcc6ff, #ffc4e9); }
.ucb-nt.ucgb .ucb-nt-ok { color: #fff; background: linear-gradient(135deg, #9147ff, #f5009b); box-shadow: 0 0 8px rgba(145, 70, 255, .45); }
.ucb-nt.ucgb .ucb-nt-ok:hover { box-shadow: 0 0 13px rgba(245, 0, 155, .55); }
.ucb-nt.ucgb .ucb-nt-ok:focus-visible { outline-color: #bf94ff; }
/* V úzkém panelu ustoupí kostka, aby se vešel celý nadpis. */
@container (max-width: 310px) { .ucb-nt.ucgb.ucg-two .ucb-nt-ico { display: none; } }
/* Dočasný stupeň bonusu (ZL 2026-11-07): zbývající čas oranžově, medaile s čárkovaným rámečkem. */
/* Dočasný stupeň: stopky v rohu dlaždice a za obdobím v detailu (bohatý tooltip jako .uc-qd-tip). */
.ucb-md { position: relative; }
.ucb-sw-c { position: absolute; top: 5px; right: 6px; width: 13px; height: 13px; color: #ffb35a; opacity: .85; pointer-events: none; }
.ucb-sw-c svg, .ucb-sw svg { width: 100%; height: 100%; display: block; }
.ucb-dh .ucb-sw { position: relative; display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; color: #ffb35a; cursor: help; outline: none; }
.ucb-sw-tip { position: absolute; right: -8px; bottom: calc(100% + 8px); z-index: 20; width: max-content; max-width: 230px; display: grid; gap: 3px; padding: 8px 11px; border-radius: 9px; text-align: left; white-space: normal;
  background: #18181b; border: 1px solid color-mix(in srgb, #ffb35a 35%, #34343c); box-shadow: 0 8px 22px rgba(0,0,0,.5); color: var(--ucb-fg2, #a0a0b0); font-size: 11.5px; line-height: 1.35;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.ucb-dh .ucb-sw-tip b { color: #efeff1; font-size: 12.5px; }
.ucb-dh .ucb-sw-tip span { color: #d6d6dc; white-space: normal; }
.ucb-sw-tip em { font-style: normal; font-weight: 800; color: #ffb35a; font-variant-numeric: tabular-nums; }
.ucb-sw-tip small { font-size: 10.5px; color: var(--ucb-mute, #7a7a85); }
.ucb-sw:hover .ucb-sw-tip, .ucb-sw:focus-visible .ucb-sw-tip { opacity: 1; visibility: visible; transform: none; }
/* dlaždice mimo okno 3 stupňů zmizí (poslední stránka s 1–2 na středu by jinak ukázala sousední) */
.ucb-cell { transition: opacity .25s; }
.ucb-cell.ucb-off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ucb-sw-tip, .ucb-cell { transition: none; } }
