/* Soundboard sound efektů (core/soundboard.js) — addon (sidepanel.html) i web ho načítají
   vedle sidepanel.css a používají jeho proměnné. Tlačítko = .emote-btn.uc-sb-btn v poli
   pro psaní vlevo od smajlíku, panel a tooltip se kotví nad #input-area. */

.msg-input-wrap:has(.uc-sb-btn:not(.hidden)) #msg-input { padding-right: 62px; }
.emote-btn.uc-sb-btn { right: 32px; overflow: hidden; }
.uc-sb-btn.hidden { display: none; }
/* Neaktivní odměna: ztlumená nota, klik nic nedělá (vysvětlí tooltip); nepřihlášený: klik = onLogin. */
.uc-sb-btn.uc-sb-off { opacity: 0.45; }
.uc-sb-btn.uc-sb-off:hover { opacity: 0.8; color: var(--text-secondary); background: rgba(255, 255, 255, 0.06); }
/* Zbývající čas odměny: pruh u spodní hrany tlačítka. */
.uc-sb-bar { position: absolute; left: 3px; right: 3px; bottom: 1px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.08); display: none; }
.uc-sb-bar::after { content: ''; position: absolute; inset: 0; width: calc(var(--uc-sb-p, 1) * 100%); border-radius: inherit; background: var(--accent-gradient); transition: width 1s linear; }
.uc-sb-btn.uc-sb-timed .uc-sb-bar { display: block; }
/* Pásek cooldownu nahoře na notě (fialový, delší z osobního / globálního); dole zůstává odpočet odměny. */
.uc-sb-cdbar { position: absolute; left: 3px; right: 3px; top: 1px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.08); display: none; }
.uc-sb-cdbar::after { content: ''; position: absolute; inset: 0; width: calc(var(--uc-sb-cdp, 1) * 100%); border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c084fc); transition: width 1s linear; }
.uc-sb-btn.uc-sb-cdtimed .uc-sb-cdbar { display: block; }
.uc-sb-btn:not(.uc-sb-off) { color: var(--accent-light); }
.uc-sb-btn.uc-sb-cd { color: var(--text-secondary); }

/* ---- hover nad panelem: celý název + délka (core/soundboard.js showHover) ---- */
.uc-sb-hover {
  position: absolute; z-index: 32; box-sizing: border-box;
  padding: 7px 10px; border-radius: 7px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
  color: var(--text-primary); font-size: 13px; line-height: 1.35; pointer-events: none;
}
.uc-sb-hover.hidden { display: none; }
.uc-sb-hover-t { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.uc-sb-hover-t .uc-sb-img { height: 20px; width: auto; }
.uc-sb-hover-n { overflow-wrap: anywhere; }
.uc-sb-hover-d { flex: none; font-weight: 400; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.uc-sb-hover-s { margin-top: 2px; font-size: 11px; color: var(--text-muted); font-family: ui-monospace, monospace; }
.uc-sb-hover-s.locked { font-family: inherit; color: #ff8a8a; }

/* ---- tooltip ---- */
.uc-sb-tip {
  /* z-index 40: tooltip vždy nad panely u pole (QR dono, emote hub = 32; pokyn usera 2026-10-19) */
  position: absolute; bottom: 100%; right: 30px; z-index: 40; margin-bottom: 6px;
  min-width: 190px; max-width: min(280px, calc(100% - 20px));
  padding: 8px 10px; border-radius: 7px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
  color: var(--text-primary); font-size: 12px; line-height: 1.35; pointer-events: none;
}
.uc-sb-tip.hidden { display: none; }
/* Mezera jen pod nadpisem, pod kterým něco je — tooltip jen s nadpisem („Odměna není aktivována“) je svisle na středu. */
.uc-sb-tip-t { font-weight: 700; }
.uc-sb-tip-t:not(:last-child) { margin-bottom: 3px; }
.uc-sb-tip-active .uc-sb-tip-t { color: var(--accent-light); }
.uc-sb-tip-locked .uc-sb-tip-t { color: #ff8a8a; }
.uc-sb-tip-paused .uc-sb-tip-t { color: #9ecbff; }
/* GIF odměna v cooldownu (ikona emotů / záložka GIFy) a tooltip jen s názvem. */
.uc-sb-tip-cooldown .uc-sb-tip-t { color: #ffbe98; }
.uc-sb-tip-plain { min-width: 0; }
.uc-sb-tip-l { color: var(--text-secondary); }
/* Pilulka u nadpisu (renderIconTip `badge`, stash za sledování: Online / Offline v barvách druhu, pokyn usera 2026-10-06).
   Barvy jako registrované proměnné → přechod gradientu je plynulé prolnutí; tečka u Online pomalu pulzuje. */
@property --tb-a { syntax: '<color>'; inherits: true; initial-value: #808080; }
@property --tb-b { syntax: '<color>'; inherits: true; initial-value: #808080; }
.uc-sb-tip-t.has-badge { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.uc-sb-tip-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-sb-tip-badge { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 8px 0 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1; white-space: nowrap; user-select: none; -webkit-user-select: none;
  color: color-mix(in srgb, var(--tb-b) 45%, #ffffff);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tb-a) 26%, transparent), color-mix(in srgb, var(--tb-b) 16%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tb-a) 55%, transparent);
  transition: --tb-a 0.5s ease, --tb-b 0.5s ease; }
.uc-sb-tip-badge > span { display: inline-block; }
.uc-sb-tip-badge > i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--tb-a), var(--tb-b));
  box-shadow: 0 0 5px color-mix(in srgb, var(--tb-a) 75%, transparent); }
.uc-sb-tip-badge.pulse > i { animation: uc-tb-pulse 1.8s ease-in-out infinite; }
@keyframes uc-tb-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tb-a) 60%, transparent), 0 0 5px color-mix(in srgb, var(--tb-a) 75%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tb-a) 0%, transparent), 0 0 8px color-mix(in srgb, var(--tb-b) 85%, transparent); } }
@media (prefers-reduced-motion: reduce) { .uc-sb-tip-badge { transition: none; } .uc-sb-tip-badge.pulse > i { animation: none; } }
.uc-sb-tip-r { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 5px; }
.uc-sb-tip-r b { font-variant-numeric: tabular-nums; }
.uc-sb-tip-r i, .uc-sb-hbar, .uc-sbsw-s i {
  grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden;
}
.uc-sb-tip-r i::after, .uc-sb-hbar::after, .uc-sbsw-s i::after {
  content: ''; position: absolute; inset: 0; width: calc(var(--p, 1) * 100%); background: var(--sb-bar, var(--accent-gradient)); transition: width 1s linear;
}
/* Přepínatelný pruh (renderIconTip `switcher`, zatím jen stash za sledování): šipky ‹ › po stranách, popisek nad pruhem
   (bez teček, pokyn usera 2026-10-06). Přepnutí = posun + prolnutí ve směru šipky (JS, Web Animations); reduced motion = okamžitě. */
.uc-sbsw { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: 2px; margin-top: 6px; cursor: default; }
.uc-sbsw.multi { grid-template-columns: 24px minmax(0, 1fr) 24px; margin-left: -4px; margin-right: -4px; }
.uc-sbsw-vp { grid-column: 1 / -1; grid-row: 1; position: relative; overflow: hidden; padding: 1px 0; }
.uc-sbsw.multi .uc-sbsw-vp { grid-column: 2; }
.uc-sbsw-s { display: flex; flex-direction: column; gap: 4px; }
.uc-sbsw-out { position: absolute; left: 0; right: 0; top: 1px; pointer-events: none; }
.uc-sbsw-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.uc-sbsw.multi .uc-sbsw-n { text-align: center; }
.uc-sbsw-s i.uc-sbsw-now::after { transition: none; }
.uc-sbsw-a { grid-row: 1; position: relative; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.12s ease; }
.uc-sbsw-a::before { content: ''; position: absolute; inset: -6px -4px; }   /* větší cíl pro prst */
.uc-sbsw-a svg { display: block; }
.uc-sbsw-a-prev { grid-column: 1; }
.uc-sbsw-a-next { grid-column: 3; }
.uc-sbsw-a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.08); }
.uc-sbsw-a:active { transform: scale(0.88); }
.uc-sbsw-a:focus-visible { outline: 2px solid var(--accent-light, #ffc800); outline-offset: 0; }
@media (prefers-reduced-motion: reduce) { .uc-sbsw-a { transition: none; } }
.uc-sb-tip-cd { margin-top: 4px; }
.uc-sb-tip-cd .uc-cd { padding: 4px 0 0; border-bottom: none; font-size: 11px; }
.uc-sb-tip-cd .uc-cd-bar { margin-top: 3px; }

/* ---- panel (vzhled podle Discord soundboardu) = záložka SFX v panelu emotů (core/emote-picker.js) ---- */
.uc-sb {
  flex: 1; min-height: 0; min-width: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
/* Nepřihlášený: výzva v řádku stavu odměny — klik = přihlášení. */
.uc-sb-login { padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
/* Nota v poli bez odemčené odměny: dock ji sbalí (uc-tool-collapsed); bez docku (starý layout) prostě schovat. */
.uc-sb-btn.uc-sb-na:not(.uc-dock-inline) { display: none; }
.uc-sb-top { display: flex; gap: 6px; align-items: center; padding: 8px; border-bottom: 1px solid var(--border); }
.uc-sb-top input[type="search"] {
  flex: 1; min-width: 0; box-sizing: border-box; padding: 6px 9px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 5px;
  color: var(--text-primary); font: inherit; font-size: 13px; outline: none;
}
.uc-sb-top input[type="search"]:focus { border-color: var(--accent); }
.uc-sb-vol { display: flex; align-items: center; gap: 4px; color: var(--text-secondary); cursor: pointer; }
/* Hlasitost náhledu: zlatý gradient UnityChatu (--accent-gradient, jako Odeslat a pásek odměny) na vyplněné části,
   jezdec zlatý (--accent-light). Chromium: dráha = gradient o šířce --uc-vol (core/soundboard.js) přes šedou;
   Firefox: nativní ::-moz-range-progress. */
.uc-sb-vol input {
  width: 64px; height: 14px; margin: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.uc-sb-vol input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: var(--accent-gradient) 0 0 / var(--uc-vol, 100%) 100% no-repeat, rgba(255, 255, 255, 0.15);
}
.uc-sb-vol input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: none; border-radius: 50%;
  background: var(--accent-light); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.uc-sb-vol input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.uc-sb-vol input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent-gradient); }
.uc-sb-vol input::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.uc-sb-vol input:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* ---- stavový řádek odměny (soundboard .uc-sb-status i GIF panel .uc-gl-reward, core rewardStatusHtml) ----
   zámek a hned za ním text, oba vlevo; stejná velikost, barva a odsazení všude (bod 6 testu 2026-09-27). */
.uc-reward-status {
  position: relative; display: flex; align-items: center; gap: 5px; padding: 6px 10px 7px;
  font-size: 12px; line-height: 1.35; color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.uc-reward-status.hidden, .uc-reward-status[hidden] { display: none; }
.uc-reward-status-t { min-width: 0; }
.uc-reward-status--locked .uc-reward-status-t { color: #ff8a8a; font-weight: 700; }
.uc-reward-status--active { color: var(--accent-light); }
.uc-reward-status--cooldown { font-variant-numeric: tabular-nums; }
.uc-reward-status--login { color: #ffbe98; }
.uc-reward-status--paused b { color: #9ecbff; }
.uc-sb-body { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.uc-sb-sec + .uc-sb-sec { margin-top: 4px; }
.uc-sb-h {
  position: sticky; top: 0; z-index: 1; padding: 9px 0 5px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  background: var(--bg-tertiary); color: var(--text-secondary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
/* „(Tier 1)“ za jménem tieru: menší a nevýrazné (stejně jako dashboard Židolišty). */
.uc-sb-tiern { font-size: 0.85em; font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.6; }
/* Sbalitelné sekce: hlavička je tlačítko, šipka vlevo se otočí, mřížka se schová (stav v localStorage). */
.uc-sb-h { cursor: pointer; user-select: none; }
.uc-sb-h:hover { color: var(--text-primary); }
.uc-sb-h:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; border-radius: 4px; }
.uc-sb-chev { display: inline-flex; align-items: center; color: var(--text-muted, #7c7c86); transition: transform 0.18s ease; margin-right: -2px; }
.uc-sb-sec.collapsed .uc-sb-chev { transform: rotate(-90deg); }
.uc-sb-sec.collapsed .uc-sb-grid { display: none; }
.uc-sb-sec.collapsed .uc-sb-h { padding-bottom: 7px; }
@media (prefers-reduced-motion: reduce) { .uc-sb-chev { transition: none; } }
.uc-sb-time { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.uc-sb-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.uc-sb-hbar { flex-basis: 100%; }
/* Zmrazený tier: čas stojí (modře), pruh bez animace. */
.uc-sb-time.paused { color: #9ecbff; }
.uc-sb-hbar.paused::after, .uc-sb-tip-paused .uc-sb-tip-r i::after { background: #6aa8e8; transition: none; }
/* Všechna tlačítka zvuků jednotně vysoká: vejde se název + cenovka vlastní ceny pod ním (priceAdjust). */
.uc-sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-rows: minmax(50px, auto); gap: 5px; }
.uc-sb-empty { padding: 20px 8px; text-align: center; color: var(--text-secondary); font-size: 12px; }

/* Tlačítko zvuku: celé = odeslat; po najetí repráček vlevo (náhled) a hvězdička vpravo. */
.uc-sb-s { position: relative; min-height: 50px; border-radius: 6px; background: var(--bg-secondary); border: 1px solid transparent; }
.uc-sb-s:hover { background: var(--bg-hover); border-color: rgba(255, 140, 0, 0.35); }
.uc-sb-play {
  width: 100%; height: 100%; min-height: 34px; padding: 0 8px; border: none; background: transparent; cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 3px 5px;
  color: var(--text-primary); font: inherit; font-size: 12px;
}
.uc-sb-em { font-size: 15px; line-height: 1; flex-shrink: 0; }
.uc-sb-img { height: 22px; max-width: 44px; object-fit: contain; flex-shrink: 0; }
.uc-sb-s.locked .uc-sb-img { filter: grayscale(1); opacity: 0.6; }
.uc-sb-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Cenovka na každé placené dlaždici: vlastní cena (Židolišta priceAdjust) dražší teple, levnější zeleně, cena tieru šedě. */
/* Cenovka na vlastním řádku pod názvem (zalomení .uc-sb-br), dlaždice se zvýší a řádek mřížky s ní. */
.uc-sb-s:has(.uc-sb-adj) .uc-sb-play { padding: 5px 8px; }
.uc-sb-br { flex-basis: 100%; height: 0; }
.uc-sb-adj {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  padding: 2px 8px 2px 4px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 18px;
  font-variant-numeric: tabular-nums;
}
.uc-sb-adj .uc-stash-ico { width: 22px; height: 22px; margin: -3px 0; }
.uc-sb-adj.up { color: #ffb347; background: rgba(255, 140, 0, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.45); }
.uc-sb-adj.down { color: #7ee2a8; background: rgba(46, 204, 113, 0.14); box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.4); }
/* Výchozí cena tieru: bez rámečku a pozadí, jen tlumené číslo s ikonou (pokyn usera 2026-10-20, ještě méně 2026-10-27). */
.uc-sb-adj.base { color: #62626b; font-weight: 600; background: none; box-shadow: none; }
.uc-sb-adj.base .uc-stash-ico { filter: brightness(0.42) saturate(0.35); }   /* i ikona stashe ztlumená jako text */
/* Cena v tooltipu zvuku: „!se jméno · {ikona}4 za kus“, ikona 22 px. */
.uc-sb-hover-p { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.uc-sb-hover-p .uc-stash-ico { width: 22px; height: 22px; object-fit: contain; }
.uc-sb-s:hover .uc-sb-adj { opacity: 0.35; }
.uc-sb-pv, .uc-sb-fav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border: none; border-radius: 4px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: var(--text-primary);
}
.uc-sb-pv { left: 4px; }
.uc-sb-fav { right: 4px; fill: none; }
.uc-sb-s:hover .uc-sb-pv, .uc-sb-s:hover .uc-sb-fav, .uc-sb-fav.on { display: flex; }
.uc-sb-s:hover .uc-sb-n { opacity: 0.35; }
.uc-sb-pv:hover, .uc-sb-fav:hover { color: var(--accent-light); }
.uc-sb-fav.on { color: var(--accent-light); fill: currentColor; }
/* Oblíbený bez najetí: jen malá hvězdička v rohu, ať nepřekrývá název. */
.uc-sb-s:not(:hover) .uc-sb-fav.on { top: 2px; right: 2px; transform: none; width: 12px; height: 12px; background: transparent; pointer-events: none; }
.uc-sb-s:not(:hover) .uc-sb-fav.on svg { width: 10px; height: 10px; }
/* Zamčený tier: vidět a náhled pustit jde, odeslat ne. */
.uc-sb-s.locked .uc-sb-play { cursor: not-allowed; color: var(--text-muted); }
.uc-sb-s.locked .uc-sb-em { filter: grayscale(1); opacity: 0.6; }
/* Cooldown: odeslat nejde, dokud neuběhne. */
.uc-sb-s.cd .uc-sb-play { cursor: wait; opacity: 0.55; }
.uc-sb-foot { min-height: 0; padding: 0 10px; font-size: 12px; }
.uc-sb-foot.err { padding: 5px 10px; border-top: 1px solid var(--border); color: #ff8a8a; }

/* ---- návrh zvuku (core/sfx-request.js, option requestApi) ---- */
.uc-sb-reqbtn.uc-tool-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; box-sizing: border-box; cursor: pointer;
  border: 1px solid var(--border); border-radius: 5px; background: var(--bg-secondary); color: var(--text-secondary);
}
.uc-sb-reqview { display: none; }
.uc-sb.uc-sb-req-on > :not(.uc-sb-reqview) { display: none; }
.uc-sb.uc-sb-req-on > .uc-sb-reqview { display: flex; flex: 1; min-height: 0; flex-direction: column; }

/* ---- zámek (soundboard i GIF panel): šedý; klik na zamčené → zatřese se, zčervená a za ~1 s zešedne (shakeLock) ---- */
.uc-lock { display: inline-flex; align-items: center; flex: none; color: var(--text-muted, #7c7c86); }
.uc-lock svg { display: block; }
.uc-lock.uc-lock-shake { animation: uc-lock-shake 1s ease-out; }
@keyframes uc-lock-shake {
  0% { transform: translateX(0) rotate(0); color: #ff4d4d; }
  6% { transform: translateX(-3px) rotate(-12deg); }
  14% { transform: translateX(3px) rotate(10deg); }
  22% { transform: translateX(-3px) rotate(-8deg); }
  30% { transform: translateX(2px) rotate(6deg); }
  38% { transform: translateX(-1px) rotate(-3deg); color: #ff4d4d; }
  46% { transform: none; }
  100% { transform: none; color: var(--text-muted, #7c7c86); }
}
/* Zámek u zamčeného zvuku (bod 8 testu 2026-09-27): jen při hoveru, uprostřed tlačítka přes název, ~1,4× větší
   s jemným stínem. Klik ho zatřese (shakeLock) — během animace je vidět i bez hoveru (dotyk). Střed přes okraje,
   ne transform — ten patří animaci třesení. */
.uc-sb-slock {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity 0.12s ease; color: var(--text-secondary, #9a9aa6);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.65)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.uc-sb-slock svg { width: 16px; height: 16px; }
.uc-sb-s:hover .uc-sb-slock, .uc-sb-slock.uc-lock-shake { opacity: 1; }
.uc-sb-s.locked:hover .uc-sb-n { opacity: 0.3; }
@media (prefers-reduced-motion: reduce) { .uc-sb-slock { transition: none; } }
/* Omezený pohyb: bez třesení, ale zčervenání a návrat do šedé zůstávají (odezva na klik). */
@keyframes uc-lock-flash {
  0%, 38% { color: #ff4d4d; }
  100% { color: var(--text-muted, #7c7c86); }
}
@media (prefers-reduced-motion: reduce) { .uc-lock.uc-lock-shake { animation: uc-lock-flash 1s ease-out; } }

/* ---- osobní cooldown (core/cooldown-bar.js) — pod stavem odměny v panelu SFX i GIF ---- */
.uc-cd { padding: 5px 10px 7px; border-bottom: 1px solid var(--border); font-size: 12px; line-height: 1.35; }
.uc-cd[hidden] { display: none; }
.uc-cd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.uc-cd-l { color: #c9a6ff; font-weight: 700; }
.uc-cd-t { color: #d7b8ff; font-weight: 700; font-variant-numeric: tabular-nums; }
.uc-cd-bar { display: block; position: relative; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.uc-cd-bar::after { content: ''; position: absolute; inset: 0; width: calc(var(--p, 1) * 100%); border-radius: 2px; background: linear-gradient(90deg, #7c3aed, #c084fc); transition: width 1s linear; }
.uc-cd-bar.uc-cd-jump::after { transition: none; }
/* Pokus během cooldownu: štítek se zatřese a zčervená, pak zpět do fialové (jako zámek). */
.uc-cd-l.uc-cd-shake { animation: uc-cd-shake 1s ease-out; }
@keyframes uc-cd-shake {
  0% { transform: translateX(0); color: #ff4d4d; }
  6% { transform: translateX(-3px); }
  14% { transform: translateX(3px); }
  22% { transform: translateX(-3px); }
  30% { transform: translateX(2px); }
  38% { transform: translateX(-1px); color: #ff4d4d; }
  46% { transform: none; }
  100% { transform: none; color: #c9a6ff; }
}
@keyframes uc-cd-flash { 0%, 38% { color: #ff4d4d; } 100% { color: #c9a6ff; } }
@media (prefers-reduced-motion: reduce) { .uc-cd-l.uc-cd-shake { animation: uc-cd-flash 1s ease-out; } .uc-cd-bar::after { transition: none; } }
/* GIF panel: název odměny vlevo + odpočet vpravo (jako hlavička tieru v SFX). */
.uc-gl-reward-time { margin-left: auto; color: var(--accent-light); font-weight: 700; font-variant-numeric: tabular-nums; }
/* GIF panel: placené GIFy za stash — tlačítko odemknutí na dobu odměny a cena jednoho GIFu (ikona podle streamera). */
.uc-gl-unlock { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid rgba(255, 140, 0, 0.55); border-radius: 999px; background: linear-gradient(135deg, rgba(255, 196, 0, 0.18), rgba(255, 120, 0, 0.22)); color: var(--accent-light); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.uc-gl-unlock:hover:not(:disabled) { background: linear-gradient(135deg, rgba(255, 196, 0, 0.3), rgba(255, 120, 0, 0.34)); }
.uc-gl-unlock:disabled { opacity: 0.55; cursor: progress; }
.uc-gl-peruse { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent-light); font-weight: 700; white-space: nowrap; }
.uc-gl-unlock + .uc-gl-peruse, .uc-gl-reward-time + .uc-gl-peruse { margin-left: 8px; }
.uc-gl-unlock .uc-stash-ico, .uc-gl-peruse .uc-stash-ico { width: 22px; height: 22px; object-fit: contain; margin: -2px 0; }
/* Na málo zůstatku (pokyn usera 2026-10-07): cena zešedne, tooltip řekne „máš X, chybí Y“. */
.uc-gl-unlock.poor { border-color: var(--border); background: var(--bg-secondary); color: var(--text-muted, #7c7c86); }
.uc-gl-peruse.poor { color: var(--text-muted, #7c7c86); }
.uc-gl-unlock.poor .uc-stash-ico, .uc-gl-peruse.poor .uc-stash-ico, .uc-sb-s.poor .uc-stash-ico, .uc-sb-hprice.poor .uc-stash-ico { filter: grayscale(1); opacity: 0.6; }

/* ---- sound efekty za stash (Židolišta sfx-state stash, 2026-10-07): cena v hlavičce tieru a na zvucích ---- */
.uc-sb-hprice { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; text-transform: none; letter-spacing: 0; color: var(--accent-light); font-weight: 700; white-space: nowrap; }
.uc-sb-hprice.poor { color: var(--text-muted, #7c7c86); }
.uc-sb-hprice .uc-stash-ico { width: 22px; height: 22px; object-fit: contain; margin: -3px 0; }
.uc-sb-s.paid:not(.poor) { border-color: rgba(255, 140, 0, 0.18); }
/* Klik na zvuk za stash bez zůstatku: cena v hlavičce tieru se zatřese a zčervená (shakeLock, jako zámek). */
.uc-sb-hprice.uc-lock-shake { animation: uc-lock-shake 1s ease-out; }
@media (prefers-reduced-motion: reduce) { .uc-sb-hprice.uc-lock-shake { animation: uc-lock-flash 1s ease-out; } }
/* Potvrzení ceny druhým klikem (core/confirm-click.js; chování jako natažený koš moda, ale zlatě — platba, ne mazání,
   pokyn usera 2026-10-07, vráceno 2026-10-20): tlačítko zezlátne, pulzuje a místo názvu ukáže „{ikona}4 · potvrdit ✓“;
   náhled / hvězdička se při tom schovají. */
.uc-sb-s .uc-sb-play.uc-sb-armed { color: #1a1206; background: linear-gradient(90deg, #ff8c00, #ffd93d); border-radius: 5px; animation: uc-sb-arm 0.6s ease-in-out infinite alternate; }
@keyframes uc-sb-arm { from { box-shadow: 0 0 0 0 rgba(255, 190, 40, 0.6); } to { box-shadow: 0 0 0 4px rgba(255, 190, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .uc-sb-s .uc-sb-play.uc-sb-armed { animation: none; } }
.uc-sb-s:has(.uc-sb-armed) .uc-sb-pv, .uc-sb-s:has(.uc-sb-armed) .uc-sb-fav { display: none; }
.uc-sb-cf { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.uc-sb-cf-p { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.uc-sb-cf .uc-stash-ico { width: 22px; height: 22px; object-fit: contain; margin: -4px 0; }
.uc-sb-cf-t { font-weight: 600; }
/* Zaškrtávátko „Automaticky potvrzovat cenu“ úplně vpravo v hlavičce placeného tieru: vlastní čtvereček v barvách UC
   (tmavý s jemným okrajem, zaškrtnutý = gradient UC s tmavou fajfkou); nativní input zůstává pro klávesnici a čtečky. */
.uc-sb-auto { position: relative; display: inline-flex; align-items: center; margin-left: 4px; cursor: pointer; }
.uc-sb-auto input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.uc-sb-auto-box { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; color: transparent;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease; }
.uc-sb-auto-box svg { width: 11px; height: 11px; transform: scale(0.6); transition: transform 0.15s ease; }
.uc-sb-auto:hover .uc-sb-auto-box { box-shadow: inset 0 0 0 1px rgba(255, 200, 0, 0.55); }
.uc-sb-auto input:checked + .uc-sb-auto-box { color: #1a1206; background: linear-gradient(135deg, #ffc800, #ff8c00); box-shadow: 0 0 6px rgba(255, 140, 0, 0.45); }
.uc-sb-auto input:checked + .uc-sb-auto-box svg { transform: scale(1); }
.uc-sb-auto input:focus-visible + .uc-sb-auto-box { outline: 2px solid rgba(255, 200, 0, 0.7); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .uc-sb-auto-box, .uc-sb-auto-box svg { transition: none; } }
/* Tooltip: cena s ikonou v řádku tieru, chybějící částka červeně. */
.uc-sb-tip-price { display: inline-flex; align-items: center; gap: 3px; }
.uc-sb-tip-price .uc-stash-ico { width: 22px; height: 22px; margin: -2px 0; }
.uc-stash-miss { color: #ff8a8a; }

/* Dlaždice v tooltipu (renderIconTip `tiles`; stash za sledování „Dostaneš“ | „Máš“ — varianta A, user 2026-10-08):
   popisek kapitálkami, pod ním ikona + číslo. Zvýrazněná (`accent`) v barvách druhu (--tl-a / --tl-b). */
.uc-sb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.uc-sb-tile { min-width: 0; padding: 7px 10px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border, #2f2f35); }
@property --tl-a { syntax: '<color>'; inherits: true; initial-value: #ff8c00; }
@property --tl-b { syntax: '<color>'; inherits: true; initial-value: #ffd93d; }
.uc-sb-tile.accent {
  border-color: color-mix(in srgb, var(--tl-a) 50%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tl-a) 14%, transparent), color-mix(in srgb, var(--tl-a) 3%, transparent));
  transition: --tl-a 0.5s ease, --tl-b 0.5s ease; }
@media (prefers-reduced-motion: reduce) { .uc-sb-tile.accent { transition: none; } }
.uc-sb-tile-l { display: block; font-size: 10.5px; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--text-muted, #7a7a85); }
.uc-sb-tile-v { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 19px; line-height: 1.1; font-weight: 800; color: var(--text-primary, #efeff1); white-space: nowrap; }
.uc-sb-tile-v > img, .uc-sb-tile-v > video, .uc-sb-tile-v > .uc-stash-ico { flex: none; }
.uc-sb-tile-n { font-variant-numeric: tabular-nums; }
.uc-sb-tile-v em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-secondary, #adadb8); overflow: hidden; text-overflow: ellipsis; }
