/* extension/intro.css — Introduction panel s animovanými ukázkami nových funkcí (core/intro.js). Addon, později web. */
.uc-in-root { position: fixed; inset: 0; z-index: 9000; }
/* Objevení / zavření (pokyn usera 2026-10-08 bod 5): stav řídí třídy na .uc-in-root — bez třídy = zavřeno, .in = otevřeno
   (přechod), .closing = zavírá se. Pozadí ztmavne a rozmaže se, okno se vynoří s jemným pružením, obsah naběhne postupně. */
.uc-in-backdrop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(6, 6, 9, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0);
  transition: background-color 0.32s ease, backdrop-filter 0.32s ease, -webkit-backdrop-filter 0.32s ease; }
.uc-in-root.in .uc-in-backdrop { background: rgba(6, 6, 9, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.uc-in-root.closing .uc-in-backdrop { background: rgba(6, 6, 9, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition-duration: 0.26s; }
.uc-in { position: relative; width: min(460px, 100%); max-height: 100%; overflow: auto; padding: 16px 16px 14px; border-radius: 14px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 170, 40, 0.12), rgba(255, 170, 40, 0) 60%), var(--bg-secondary, #18181b);
  border: 1px solid rgba(255, 170, 40, 0.35); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  color: var(--text-primary, #efeff1); font-size: 13px;
  opacity: 0; transform: translateY(18px) scale(0.92); transform-origin: 50% 60%;
  transition: opacity 0.26s ease-out, transform 0.42s cubic-bezier(.18, 1.35, .38, 1); }
.uc-in-root.in .uc-in { opacity: 1; transform: none; }
.uc-in-root.closing .uc-in { opacity: 0; transform: translateY(10px) scale(0.95); transition: opacity 0.2s ease-in, transform 0.24s ease-in; }
/* Obsah okna naběhne postupně (hlavička → popis → scéna → kroky → tlačítka). */
.uc-in > * { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.uc-in-root.in .uc-in > * { opacity: 1; transform: none; }
.uc-in-root.in .uc-in > :nth-child(1) { transition-delay: 0.08s; }
.uc-in-root.in .uc-in > :nth-child(2) { transition-delay: 0.14s; }
.uc-in-root.in .uc-in > :nth-child(3) { transition-delay: 0.2s; }
.uc-in-root.in .uc-in > :nth-child(4) { transition-delay: 0.26s; }
.uc-in-root.in .uc-in > :nth-child(5) { transition-delay: 0.32s; }
.uc-in-root.closing .uc-in > * { transition-delay: 0s; }
/* Záře okna po objevení jednou pulzne. */
.uc-in-root.in .uc-in { animation: uc-in-glow 1.2s ease-out 0.25s 1; }
@keyframes uc-in-glow { 0% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 0 rgba(255, 170, 40, 0); }
  40% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 34px rgba(255, 170, 40, 0.35); }
  100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 0 rgba(255, 170, 40, 0); } }
.uc-in-head { display: flex; align-items: center; gap: 8px; }
.uc-in-head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }
.uc-in-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1a1205; padding: 3px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #ffe066, #ff9a1a); box-shadow: 0 0 10px rgba(255, 160, 30, 0.45); }
.uc-in-lead { margin: 8px 0 12px; color: var(--text-secondary, #adadb8); line-height: 1.45; }

/* Scéna: chat nahoře, maketa pole dole, klávesy vpravo dole. */
.uc-in-stage { position: relative; height: var(--uc-in-h, 210px); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-primary, #0e0e10); border: 1px solid rgba(255, 255, 255, 0.07); }
/* Kamera ukázky (core/intro.js s.zoom): obsah scény se přibližuje celý najednou; kurzor a klávesy jsou nad ní. */
.uc-in-cam { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; transform-origin: 0 0; }
.uc-in-chat { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; gap: 4px; }
.uc-in-chat.shown > * { animation: uc-in-slide 0.32s ease-out both; }
.uc-in-chat.shown > .uc-in-vanilla { animation-delay: 0.35s; }
@keyframes uc-in-slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.uc-in-chat > .uc-in-pop { animation: uc-in-slide 0.32s ease-out both; }
/* Skutečné řádky zpráv (.msg ze sidepanel.css) v ukázce: bez vlastního odsazení a bez hover pozadí. */
.uc-in-chat .msg { padding: 2px 0; }
.uc-in-chat .msg:hover { background: none; }
.uc-in-chat .msg.uc-in-hl { background: rgba(255, 255, 255, 0.06); border-radius: 4px; }
.uc-in-chat .msg.uc-in-hl .uc-in-acts { display: flex; }
.uc-in-chat .msg .uc-in-acts { top: -10px; }
.uc-in-chat .msg .tx br + br { display: none; }
/* Pod zprávou: co odešlo na platformu (víceřádková zpráva, zmínky). */
.uc-in-chat .uc-in-vanilla { padding-left: 0; }
.uc-in-msg { line-height: 1.4; }
.uc-in-pi { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px;
  background: url('icons/platform/twitch-gold.svg') center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.5)); }
.uc-in-ts { color: var(--text-muted, #7a7a85); font-size: 11px; margin-right: 4px; }
.uc-in-un { font-weight: 700; }
.uc-in-tx .mention { font-weight: 700; border-bottom: 1px dotted currentColor; }
.uc-in-vanilla { font-size: 11px; color: var(--text-muted, #7a7a85); }
.uc-in-cap { text-transform: uppercase; letter-spacing: 0.05em; font-size: 9.5px; font-weight: 700; }
.uc-in-vanilla code { font: 11px/1.4 ui-monospace, Consolas, monospace; color: var(--text-secondary, #adadb8); background: rgba(255, 255, 255, 0.05); padding: 1px 5px; border-radius: 4px; }

.uc-in-dock { position: relative; padding: 0 8px 8px; }
/* Obsah nad polem v toku (panel nápovědy /g, řádek pilulky, odpověď…): chat nad ním se zmenší jako v panelu. */
.uc-in-over { display: none; position: relative; margin: 0 -8px; }
.uc-in-over.on { display: block; animation: uc-in-slide 0.2s ease-out; }
.uc-in-over .uc-cmdh { margin: 0 6px 6px; }
/* Vrstva přes celou scénu: okna (přihlášení), menu, nastavení, tooltipy. Kliky jen pro ukázku (kurzor), ne pro diváka. */
.uc-in-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.uc-in-layer:empty { display: none; }
.uc-in-ly { position: absolute; inset: 0; }
.uc-in-ly.pop { animation: uc-in-ly-in 0.28s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes uc-in-ly-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.uc-in-ly.fade { animation: uc-in-ly-fade 0.25s ease-out both; }
@keyframes uc-in-ly-fade { from { opacity: 0; } to { opacity: 1; } }
/* Kurzor myši ukázky: plynule doletí na cíl. Klik (pokyn usera 2026-10-08): kurzor se krátce „zmáčkne“ a na jeho
   špičce se rozběhne zlatý záblesk se dvěma vlnkami (.uc-in-click, s.clickFx), které se rozšíří a vyblednou. */
.uc-in-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; margin: -2px 0 0 -4px; pointer-events: none;
  transform-origin: 4px 2px; transition: left 0.7s cubic-bezier(.3, .8, .3, 1), top 0.7s cubic-bezier(.3, .8, .3, 1); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.uc-in-cursor[hidden] { display: none; }
.uc-in-cursor.click { animation: uc-in-cur-press 0.34s ease-out; }
@keyframes uc-in-cur-press { 0% { transform: none; } 35% { transform: scale(0.8) translateY(1px); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(255, 200, 60, 0.9)); } 100% { transform: none; } }
.uc-in-click { position: absolute; z-index: 5; width: 0; height: 0; pointer-events: none; }
.uc-in-click::before { content: ''; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 150, 0.95) 0%, rgba(255, 190, 50, 0.6) 45%, rgba(255, 150, 20, 0) 72%);
  animation: uc-in-click-flash 0.5s ease-out both; }
.uc-in-click > i { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #ffcf40;
  box-shadow: 0 0 10px rgba(255, 180, 40, 0.75), inset 0 0 6px rgba(255, 180, 40, 0.45); animation: uc-in-click-ring 0.7s cubic-bezier(.2, .7, .3, 1) both; }
.uc-in-click > i + i { animation-delay: 0.12s; border-width: 1.5px; }
@keyframes uc-in-click-flash { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes uc-in-click-ring { 0% { opacity: 0.95; transform: scale(0.2); } 100% { opacity: 0; transform: scale(1.5); } }
.uc-in-pressed { filter: brightness(1.25); transform: scale(0.97); transition: transform 0.12s ease, filter 0.12s ease; }
.uc-in-suggest { position: absolute; left: 8px; right: 8px; bottom: calc(100% - 8px + 2px); border-radius: 6px 6px 0 0; overflow: hidden;
  background: var(--bg-tertiary, #1f1f23); border: 1px solid var(--border, #2f2f35); border-bottom: none; animation: uc-in-slide 0.16s ease-out; }
.uc-in-suggest[hidden] { display: none; }
.uc-in-sg { display: flex; align-items: center; gap: 7px; padding: 4px 9px; font-size: 12px; color: var(--text-secondary, #adadb8); transition: background 0.15s, color 0.15s; }
.uc-in-sg i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.uc-in-sg img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.uc-in-sg.on { background: rgba(255, 150, 20, 0.16); color: var(--text-primary, #efeff1); box-shadow: inset 2px 0 0 #ff9a1a; }
.uc-in-input { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border-radius: 8px; gap: 8px;
  background: var(--bg-tertiary, #1f1f23); border: 1px solid #ff9a1a; box-shadow: 0 0 0 2px rgba(255, 154, 26, 0.15); white-space: pre; overflow: hidden; }
/* Víceřádkový text (Shift + Enter): pole roste jako skutečná textarea. */
.uc-in-input.multi { align-items: flex-end; }
.uc-in-input.multi .uc-in-text { white-space: pre-wrap; line-height: 1.4; }
/* Logo platformy u pole (jako #active-badge: zlaté = já v UnityChatu); prázdné = bez loga. */
.uc-in-pbadge { flex: none; width: 18px; height: 18px; background: center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(255, 140, 0, 0.65)); }
.uc-in-pbadge.tw { background-image: url('icons/platform/twitch-gold.svg'); }
.uc-in-pbadge.ki { background-image: url('icons/platform/kick-gold.svg'); }
.uc-in-pbadge.yt { background-image: url('icons/platform/youtube-gold.svg'); }
.uc-in-pbadge.uco { background-image: url('icons/icon48.png'); }
.uc-in-pbadge:not(.tw):not(.ki):not(.yt):not(.uco) { display: none; }
.uc-in-text { color: var(--text-primary, #efeff1); font-size: 13px; overflow: hidden; text-overflow: clip; }
.uc-in-caret { width: 1.5px; height: 16px; background: #ffb340; margin-left: -6px; animation: uc-in-blink 1s steps(1) infinite; }
.uc-in-input.cta .uc-in-caret { display: none; }
@keyframes uc-in-blink { 50% { opacity: 0; } }

/* Stisknuté klávesy: zlatý gradient, „stisk“ (zmáčknutí + záře), pak vyblednou. */
.uc-in-keys { position: absolute; right: 10px; top: 10px; z-index: 7; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.uc-in-key { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 7px;
  font: 900 15px/1 ui-monospace, 'JetBrains Mono', Consolas, monospace; color: #241500; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #fff1a8 0%, #ffcf40 45%, #ff9a1a 100%); border: 1px solid #ffde7a;
  box-shadow: 0 3px 0 #a75d00, 0 0 14px rgba(255, 170, 30, 0.55); animation: uc-in-press 0.28s ease-out; }
.uc-in-key { min-width: 34px; height: 34px; }
.uc-in-key.wide { height: 38px; padding: 0 16px; font-size: 16px; letter-spacing: 0.02em; }
.uc-in-key.out { opacity: 0; transform: translateY(-6px) scale(0.9); transition: opacity 0.35s ease, transform 0.35s ease; }
@keyframes uc-in-press { 0% { transform: translateY(-4px) scale(1.12); opacity: 0; } 45% { transform: translateY(2px) scale(0.96); box-shadow: 0 1px 0 #a75d00, 0 0 22px rgba(255, 190, 40, 0.85); opacity: 1; } 100% { transform: none; } }

.uc-in-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.uc-in-steps li { display: flex; align-items: center; gap: 8px; color: var(--text-muted, #7a7a85); transition: color 0.25s, background-color 0.2s; cursor: pointer; padding: 3px 6px; margin: 0 -6px; border-radius: 7px; }
/* Krok je klikací: přehraje ukázku od začátku kroku. */
.uc-in-steps li:hover, .uc-in-steps li:focus-visible { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary, #adadb8); outline: none; }
.uc-in-steps li:hover .uc-in-num { border-color: rgba(255, 200, 80, 0.6); }
.uc-in-num { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15); transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s; }
.uc-in-steps li.on { color: var(--text-primary, #efeff1); }
.uc-in-steps li.on .uc-in-num { color: #1a1205; border-color: #ffde7a; background: linear-gradient(135deg, #ffe066, #ff9a1a); box-shadow: 0 0 10px rgba(255, 160, 30, 0.5); }

.uc-in-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.uc-in-actions button { font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.uc-in-ok { color: #1a1205; border: none; background: linear-gradient(135deg, #ffe066, #ff9a1a); box-shadow: 0 0 12px rgba(255, 160, 30, 0.35); }
.uc-in-ok:hover { filter: brightness(1.06); }
/* Stránkování víc novinek v jednom okně (pokyn usera 2026-10-08): vlevo „‹ 1 / 3 ›“, obsah další stránky přijede ze strany. */
.uc-in-pager { display: inline-flex; align-items: center; gap: 2px; margin-right: auto; user-select: none; }
.uc-in-actions .uc-in-pager button { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; font-size: 20px; line-height: 1;
  background: transparent; color: var(--text-secondary, #adadb8); border: 1px solid transparent; }
.uc-in-actions .uc-in-pager button:hover:not(:disabled) { color: #ffcf6a; border-color: rgba(255, 170, 40, 0.45); }
.uc-in-actions .uc-in-pager button:disabled { opacity: 0.3; cursor: default; }
.uc-in-page { min-width: 42px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-secondary, #adadb8); font-variant-numeric: tabular-nums; }
.uc-in-root.in .uc-in.uc-in-page-next { animation: uc-in-page-next 0.28s cubic-bezier(.2, .8, .3, 1); }
.uc-in-root.in .uc-in.uc-in-page-prev { animation: uc-in-page-prev 0.28s cubic-bezier(.2, .8, .3, 1); }
@keyframes uc-in-page-next { from { opacity: 0.2; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes uc-in-page-prev { from { opacity: 0.2; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .uc-in-backdrop, .uc-in, .uc-in > * { transition: none !important; animation: none !important; }
  .uc-in-chat.shown > *, .uc-in-suggest, .uc-in-key { animation: none; }
  .uc-in-caret { animation: none; }
  .uc-in-over.on, .uc-in-ly.pop, .uc-in-ly.fade, .uc-in-chat > .uc-in-pop { animation: none; }
  .uc-in-cursor { transition: none; }
  .uc-in-cursor.click, .uc-in-click, .uc-in-click::before, .uc-in-click > i { animation: none; }
}

/* Záložka „Novinky“ dole v panelu emotů: karty ukázek (core/intro.js introListHtml). Karta = tlačítko: název vlevo, velký
   náhled vpravo, který doleva (za levou polovinou) vybledne; najetí náhled přiblíží (pokyn usera 2026-10-08). */
.uc-inl { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: auto; height: 100%; box-sizing: border-box; }
.uc-inl-cap { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #7a7a85); }
.uc-inl-card { position: relative; display: block; flex: none; width: 100%; height: 104px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; font: inherit;
  border-radius: 12px; background: var(--bg-primary, #0e0e10); border: 1px solid var(--border, #2f2f35); color: var(--text-primary, #efeff1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.uc-inl-card.new { border-color: rgba(255, 170, 40, 0.45); }
.uc-inl-card:hover, .uc-inl-card:focus-visible { border-color: rgba(255, 170, 40, 0.75); box-shadow: 0 0 0 1px rgba(255, 170, 40, 0.25), 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 160, 30, 0.18); outline: none; }
.uc-inl-card:active { transform: scale(0.99); }
/* Náhled: přes celou kartu, obsah (scéna) jen v pravých 55 % — levých 45 % patří názvu a štítku (pokyn usera
   2026-10-08: prvky náhledu nesmí lézt do nadpisu). Maska obsah k levé hraně scény vytratí. */
.uc-inl-thumb { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 30%, rgba(0, 0, 0, 0.75) 45%, #000 58%);
  mask-image: linear-gradient(to right, transparent 30%, rgba(0, 0, 0, 0.75) 45%, #000 58%);
  background: radial-gradient(70% 120% at 85% 50%, rgba(255, 170, 40, 0.14), rgba(255, 170, 40, 0) 70%); }
.uc-inl-scene { position: absolute; top: 0; bottom: 0; right: 0; left: 45%; padding: 12px 12px 10px 4px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  font-size: 12px; transform-origin: 6% 60%; transition: transform 0.45s cubic-bezier(.2, .8, .3, 1); }
.uc-inl-card:hover .uc-inl-scene, .uc-inl-card:focus-visible .uc-inl-scene { transform: scale(1.07); }
/* Tlumicí závoj přes náhled (pokyn usera 2026-10-08): v delším seznamu karet nižší kontrast; najetí ho zeslabí. */
.uc-inl-thumb::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(18, 18, 22, 0.32);
  backdrop-filter: saturate(0.8); -webkit-backdrop-filter: saturate(0.8); transition: background-color 0.3s ease, backdrop-filter 0.3s ease; }
/* Konec najetí = saturate(1), ne none: s `none` Chrome po doběhnutí přechodu zahodí vrstvu backdropu a s ní teplou záři
   náhledu → karta se rozzářila a na konci skokem ztmavla (hlášení usera 2026-10-08, změřeno: jas 52 → 44). */
.uc-inl-card:hover .uc-inl-thumb::after, .uc-inl-card:focus-visible .uc-inl-thumb::after { background: rgba(18, 18, 22, 0.06); backdrop-filter: saturate(1); -webkit-backdrop-filter: saturate(1); }
/* Náhled i scéna ukázky jsou jen obraz: najetí na zprávu / emote v nich nesmí spouštět hover efekty chatu (tmavé
   pozadí zprávy, tooltipy) — reaguje jen karta a kroky (pokyn usera 2026-10-08). */
.uc-inl-thumb, .uc-inl-thumb *, .uc-in-stage, .uc-in-stage * { pointer-events: none !important; }
.uc-inl-scene .uc-in-msg { white-space: nowrap; }
.uc-inl-scene .uc-in-input { min-height: 28px; padding: 4px 8px; }
.uc-inl-scene .uc-in-text { font-size: 12px; }
.uc-inl-scene .uc-in-key { position: absolute; top: 10px; right: 12px; animation: none; height: 28px; padding: 0 11px; font-size: 13px; }
/* Text vlevo nad vyblednutou částí. */
.uc-inl-head { position: absolute; left: 12px; right: 56%; top: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; pointer-events: none; }
.uc-inl-head .uc-in-badge { font-size: 9px; padding: 2px 6px; }
.uc-inl-title { font-weight: 800; font-size: 14.5px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.uc-inl-hint { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #ffcf6a; opacity: 0.75; transition: opacity 0.2s ease; }
.uc-inl-card:hover .uc-inl-hint, .uc-inl-card:focus-visible .uc-inl-hint { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .uc-inl-scene, .uc-inl-card { transition: none; } }
/* Spodní záložky (Obchod, Pomoc) přišpendlené ke spodní hraně sidebaru panelu emotů (první z nich = .uc-ep-tab-bottom,
   core/emote-picker.js); nad Pomocí čára. */
.uc-ep-side > .uc-ep-tab.uc-ep-tab-bottom { margin-top: auto; }
.uc-ep-side > .uc-ep-tab[data-tab="intro"]::before, .uc-adm .uc-ep-side > .uc-ep-tab.uc-ep-tab-bottom::before { content: ''; position: absolute; left: 6px; right: 6px; top: -5px; height: 1px; background: var(--border, #2f2f35); }
.uc-ep-side > .uc-ep-tab[data-tab="intro"]:not(.on) { color: #e6b450; }

/* ---- Makety ukázek (core/intros/*.js): stejné třídy jako skutečné UI; styly vázané na id (#tw-credits, #platform-menu,
   #reply-indicator, #login-cta, #settings) převzaté sem pro prvky uvnitř scény. ---- */
.uc-in-glow { animation: uc-in-glowtxt 1.6s ease-out 2; border-radius: 4px; }
@keyframes uc-in-glowtxt { 0%, 100% { box-shadow: 0 0 0 rgba(255, 190, 60, 0); } 40% { box-shadow: 0 0 0 2px rgba(255, 190, 60, 0.55), 0 0 14px rgba(255, 170, 40, 0.45); } }
/* Gigantický emote v chatu ukázky (stash.css .uc-giant-emote 128 px) — o kousek menší, ať se vejde scéna. */
.uc-in-chat .uc-giant-msg .uc-giant-emote, .uc-in-stage .uc-cmdh-emote { height: 96px; }
/* Panel emotů (maketa core/emote-picker.js): hledání s tlačítkem giganta + mřížka. */
.uc-in-ep-ly { inset: auto 8px 52px 8px; }
.uc-in-ep { position: relative; border-radius: 10px; background: var(--bg-secondary, #18181b); border: 1px solid var(--border, #2f2f35); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.uc-in-ep .uc-ep-search input { pointer-events: none; }
.uc-in-ep-body { padding: 6px 8px 10px; }
.uc-in-ep .uc-ep-h { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted, #7a7a85); margin: 0 0 4px; }
.uc-in-ep .uc-ep-h span { opacity: 0.6; }
.uc-in-ep .uc-ep-e { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 2px; border: none; border-radius: 4px; background: transparent; }
.uc-in-ep .uc-in-ep-ph { width: 30px; height: 28px; background: rgba(255, 255, 255, calc(0.04 + var(--i) * 0.008)); }
.uc-in-ep.giant-mode .uc-ep-e img { outline: 1px dashed rgba(255, 140, 0, 0.55); border-radius: 4px; }
.uc-in-stage .uc-sb-tip { pointer-events: none; }
/* Tooltip měny za sledování je v panelu velký (písmo 16 px, kroužek 148 px) — ve scéně zmenšený, ať se vejde nad pilulku. */
.uc-in-stage .uc-sb-tip.uc-sb-tip-watch { transform: scale(0.7); transform-origin: left bottom; }
/* Šipka u loga platformy (#platform-btn .pm-arrow) = menu „Psát jako“. */
.uc-in-parrow { flex: none; margin-left: -6px; font-size: 9px; line-height: 1; color: var(--text-secondary, #adadb8); opacity: 0.7; }
.uc-in-pbadge:not(.tw):not(.ki):not(.yt):not(.uco) + .uc-in-parrow { display: none; }
/* Řádek nad polem s pilulkou (#tw-credits). */
.uc-in-credits { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin: 0 0 6px; border-top: 1px solid var(--border, #2a2a35);
  background: var(--bg-secondary, #1a1a23); font-size: 12px; color: var(--text, #e4e4ea); }
.uc-in-input .uc-in-qr { margin-left: auto; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: var(--text-secondary, #adadb8); }
.uc-in-input .uc-in-qr svg { width: 18px; height: 18px; }
/* Výzva k přihlášení místo pole (#login-cta). */
.uc-in-input.cta { padding: 0; border: none; box-shadow: none; background: none; }
.uc-in-cta { flex: 1; padding: 8px 12px; border-radius: 6px; background: rgba(255, 140, 0, 0.06); border: 1px dashed rgba(255, 140, 0, 0.55); color: #ffb347;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.uc-in-cta.uc-in-pressed { background: rgba(255, 140, 0, 0.16); border-style: solid; border-color: #ff8c00; color: #fff; box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.25), 0 0 16px rgba(255, 140, 0, 0.35); }
/* Přihlašovací okno (core/login-modal.js) uvnitř scény: místo fixed přes celé okno jen přes scénu, menší. */
.uc-in-login-ly .uc-shade { position: absolute; z-index: 1; padding: 10px; }
.uc-in-login-ly .uc-login-win { padding: 16px 14px 12px; }
.uc-in-login-ly .uc-login-win h1 { font-size: 16px; }
.uc-in-login-ly .uc-login-choices { padding: 12px 4px; gap: 18px; }
.uc-in-login-ly .uc-login-choice { flex-basis: 84px; gap: 8px; }
.uc-in-login-ly .uc-login-close { display: none; }
/* Menu „Psát jako“ (#platform-menu, core renderPlatformMenu). */
.uc-in-pmenu { position: absolute; left: 8px; bottom: 50px; min-width: 220px; background: var(--bg-secondary, #16161a); border: 1px solid var(--border, #333);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); padding: 4px; animation: uc-in-slide 0.18s ease-out; }
.uc-in-pmenu .pm-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.55; padding: 4px 8px 2px; }
.uc-in-pmenu .pm-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 6px; padding: 6px 8px;
  color: var(--text-primary, #eee); font: inherit; font-size: 12px; transition: background 0.2s; }
.uc-in-pmenu .pm-row.uc-in-hover { background: rgba(255, 255, 255, 0.08); }
.uc-in-pmenu .pm-row.selected { background: rgba(255, 140, 0, 0.12); outline: 1px solid rgba(255, 140, 0, 0.35); }
.uc-in-pmenu .pm-badge { width: 18px; height: 18px; }
.uc-in-pmenu .pm-name { flex: 1; }
.uc-in-pmenu .pm-state { font-size: 11px; opacity: 0.75; }
.uc-in-pmenu .pm-login { color: #ffb347; font-weight: 600; opacity: 1; }
.uc-in-pmenu .pm-unlink { margin-left: 4px; padding: 0 6px; opacity: 0.55; font-size: 14px; line-height: 1; }
.uc-in-pmenu .pm-logout { border-top: 1px solid var(--border, #333); border-radius: 0; margin-top: 4px; opacity: 0.8; }
.uc-in-pmenu .pm-badge.ki { padding: 2px 0; box-sizing: border-box; background-origin: content-box; background-clip: content-box; }
/* Odpověď nad polem (#reply-indicator) + varování napříč platformami (core crossReplyWarningHtml). */
.uc-in-reply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; row-gap: 4px; margin: 0 8px; padding: 5px 10px; background: var(--bg-tertiary, #1f1f23);
  border: 1px solid var(--border, #2f2f35); border-bottom: none; border-radius: 6px 6px 0 0; font-size: 12px; }
.uc-in-reply .ri-close { margin-left: auto; color: var(--text-muted, #7a7a85); font-size: 16px; line-height: 1; padding: 0 4px; }
.uc-in-reply .ri-warn { flex-basis: 100%; order: 10; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: rgba(245, 190, 60, 0.09);
  border: 1px solid rgba(245, 190, 60, 0.28); color: #f0c868; font-size: 11.5px; line-height: 1.35; animation: uc-in-slide 0.22s ease-out; }
.uc-in-reply .ri-warn-ico { flex: 0 0 auto; color: #f5be3c; }
.uc-in-reply .ri-warn-text { flex: 1 1 auto; min-width: 0; }
.uc-in-reply .ri-warn-act { flex: 0 0 auto; background: rgba(245, 190, 60, 0.14); border: 1px solid rgba(245, 190, 60, 0.45); color: #ffd77a; font: inherit; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.uc-in-chat .reply-ctx { padding-left: 2px; }
/* Hlavička a nastavení (#header, #settings) pro ukázku účtu. */
.uc-in-hdr-ly { inset: 0 0 auto 0; }
.uc-in-hdr { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg-secondary, #18181b); border-bottom: 1px solid var(--border, #2f2f35); font-size: 12px; }
.uc-in-hdr img { width: 16px; height: 16px; }
.uc-in-gear { margin-left: auto; font-size: 16px; line-height: 1; color: var(--text-secondary, #adadb8); padding: 2px 4px; border-radius: 4px; }
.uc-in-gear.uc-in-pressed { color: #ffb347; }
.uc-in-stage:has(.uc-in-hdr) .uc-in-chat { padding-top: 38px; }
.uc-in-set-ly { inset: 31px 0 auto 0; }
.uc-in-set-ly.drop { animation: uc-in-drop 0.3s cubic-bezier(.2, .9, .3, 1) both; transform-origin: top; }
@keyframes uc-in-drop { from { opacity: 0; transform: translateY(-10px) scaleY(0.96); } to { opacity: 1; transform: none; } }
.uc-in-set-ly.out { opacity: 0; transform: translateY(-8px); transition: opacity 0.28s ease, transform 0.28s ease; }
.uc-in-settings { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 10px; background: var(--bg-secondary, #18181b); border-bottom: 1px solid var(--border, #2f2f35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.uc-in-settings .settings-tab { text-align: center; }
.uc-in-settings .settings-tab.on { background: var(--bg-tertiary, #1f1f23); border-color: rgba(255, 140, 0, 0.45); }
.uc-in-settings .color-label { background: none; border: none; }
.uc-in-settings .nick-status { min-height: 0; text-align: center; }
.uc-in-settings .nick-status.success { color: #4caf50; }
.uc-in-set-badge .setting-row > label, .uc-in-set-badge .setting-row > input, .uc-in-set-badge .color-row, .uc-in-set-badge .save-row { display: none; }
.uc-in-settings .uc-dbr.uc-in-pressed { color: var(--text-primary, #efeff1); }
/* Náhledy v kartách Novinek. */
.uc-inl-scene .msg { padding: 0; white-space: nowrap; }
.uc-inl-scene .msg .ts { display: none; }
.uc-inl-scene .uc-in-thumb-giant .uc-giant-emote { height: 46px; }
.uc-inl-scene .uc-in-credits { margin: 0; padding: 3px 6px; border: none; background: none; }
.uc-inl-scene .uc-in-cta { font-size: 11px; padding: 5px 8px; }
.uc-in-thumb-login { display: flex; gap: 14px; justify-content: flex-end; padding-right: 8px; }
.uc-in-thumb-login img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.uc-in-thumb-nick { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.uc-inl-scene .uc-in-thumb-sw { display: flex; justify-content: flex-end; }
.uc-inl-scene .uc-in-input.multi { padding: 5px 8px; }
.uc-inl-scene .uc-in-input.multi .uc-in-text { line-height: 1.35; }
.uc-in-thumb-field { flex: 1; padding: 3px 6px; border-radius: 4px; background: var(--bg-tertiary, #1f1f23); border: 1px solid var(--accent, #ff8c00); }
.uc-in-thumb-nick i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--border, #2f2f35); }
@media (prefers-reduced-motion: reduce) { .uc-in-glow, .uc-in-set-ly.drop, .uc-in-pmenu, .uc-in-reply .ri-warn { animation: none; } .uc-in-set-ly.out { transition: none; } }

/* Bublinka s počtem neviděných featur (core paintIntroCount, pokyn usera 2026-10-08): tlačítko emotů a záložka Featury.
   Barvy UnityChatu (oranžovo-zlatý gradient, tmavé číslo); nad 9 „9+“. Kotvu (position) nastaví paintIntroCount jen
   statickému prvku. */
.uc-in-count { position: absolute; top: -4px; right: -5px; min-width: 15px; height: 15px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2;
  font: 800 9.5px/1 system-ui, sans-serif; color: #1a1205; background: linear-gradient(135deg, #ffd93d, #ff8c00);
  box-shadow: 0 0 0 2px var(--bg-secondary, #18181b), 0 0 8px rgba(255, 150, 20, 0.6); font-variant-numeric: tabular-nums; }
/* Ikony v poli mají overflow: hidden kvůli animaci sbalení (qr-dono.css) → bublinu ořízly (hlášení usera 2026-10-09);
   s bublinkou je vidět, při sbalení (uc-tool-collapsed) se ořez vrací. */
.msg-input-wrap.uc-tools > .uc-has-in-count:not(.uc-tool-collapsed) { overflow: visible; }
/* Záložka Featury: obsah záložek má position: relative (gif.css, vrstvy posuvného zvýraznění) → bublina spadla pod
   nápis. Vrátit do rohu u ikony. */
.uc-ep-side.uc-slide-host > .uc-ep-tab > .uc-in-count, .uc-ep-side > .uc-ep-tab > .uc-in-count { position: absolute; z-index: 3; top: 2px; right: auto; left: calc(50% + 3px); }
/* Kulička „1“ vedle NOVÝ na kartě (stejné barvy jako bublinka) — tahle karta svítí v bublince. */
.uc-inl-new { display: inline-flex; align-items: center; gap: 5px; }
.uc-in-count.uc-in-count-inline { position: static; box-shadow: 0 0 6px rgba(255, 150, 20, 0.55); }
/* NOVÝ: intenzivní, ale malá pulzující záře (pokyn usera 2026-10-08). */
.uc-inl-head .uc-in-badge { animation: uc-in-new-glow 1.6s ease-in-out infinite; }
@keyframes uc-in-new-glow { 0%, 100% { box-shadow: 0 0 2px rgba(255, 180, 40, 0.5); } 50% { box-shadow: 0 0 9px rgba(255, 170, 30, 0.95), 0 0 3px rgba(255, 220, 120, 0.9); } }
@media (prefers-reduced-motion: reduce) { .uc-inl-head .uc-in-badge { animation: none; box-shadow: 0 0 6px rgba(255, 170, 30, 0.7); } }
/* Viděná karta: o 15 % ztlumená šedou (jen bez najetí) — je poznat, co už uživatel viděl. */
.uc-inl-card.seen::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(40, 40, 46, 0.15); transition: opacity 0.2s ease; }
.uc-inl-card.seen:hover::before, .uc-inl-card.seen:focus-visible::before { opacity: 0; }
/* Featura vypnutá u streamera (Židolišta features mode off): štítek „Vypnuto“, najetí na něj = nápověda (pokyn usera
   2026-10-08); karta ztlumená víc než viděná. */
.uc-inl-card.off::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(30, 30, 34, 0.45); }
.uc-inl-offtag { position: relative; z-index: 3; pointer-events: auto; cursor: help; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 999px; color: #c9c9d2; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); }
.uc-inl-offtag:hover::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; white-space: nowrap; text-transform: none; letter-spacing: 0;
  font-size: 11.5px; font-weight: 600; color: var(--text-primary, #efeff1); background: var(--bg-tertiary, #26262c); border: 1px solid var(--border, #3a3a42); border-radius: 6px; padding: 5px 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
/* Verze vydání vpravo v hlavičce okna. */
.uc-in-head .uc-in-added { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; color: var(--text-muted, #8a8a95); letter-spacing: 0.02em; }

/* Karta funkce v chatu (`/feature`, core/feature-card.js, pokyn usera 2026-10-08/09): jako karta v panelu Funkce —
   náhled vpravo (vybledne doleva), vlevo „Funkce“, název a Přehrát (bez popisu), celá karta je tlačítko. OBS bez tlačítka. */
.msg .uc-ft { position: relative; display: block; margin-top: 4px; max-width: 520px; min-height: 108px; border-radius: 12px; overflow: hidden;
  background: var(--bg-primary, #0e0e10); border: 1px solid rgba(255, 170, 40, 0.45); box-shadow: 0 0 14px rgba(255, 160, 30, 0.12); }
.uc-ft .uc-inl-thumb::after { background: rgba(18, 18, 22, 0.18); }
.uc-ft-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 52%; box-sizing: border-box; padding: 10px 12px; pointer-events: none; }
.uc-ft-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ffcf6a; }
.uc-ft-title { font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--text-primary, #efeff1); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.uc-ft-lead { font-size: 11.5px; line-height: 1.3; color: var(--text-secondary, #adadb8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uc-ft-play { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 170, 40, 0.6); background: rgba(255, 170, 40, 0.12); color: #ffcf6a; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.4;
  transition: background-color 0.15s ease, transform 0.15s ease; }
/* Celá karta = tlačítko Přehrát (pokyn usera 2026-10-09, jako karta v panelu Funkce): reset tlačítka + hover jako .uc-inl-card
   (rámeček a záře, scéna se přiblíží, závoj zeslábne, štítek Přehrát se rozsvítí). */
.msg .uc-ft.uc-ft-btn { width: 100%; padding: 0; margin-top: 4px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease; }
.uc-ft-btn:hover, .uc-ft-btn:focus-visible { border-color: rgba(255, 170, 40, 0.85); box-shadow: 0 0 0 1px rgba(255, 170, 40, 0.25), 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 160, 30, 0.22); outline: none; }
.uc-ft-btn:active { transform: scale(0.99); }
.uc-ft-btn:hover .uc-inl-scene, .uc-ft-btn:focus-visible .uc-inl-scene { transform: scale(1.07); }
.uc-ft-btn:hover .uc-inl-thumb::after, .uc-ft-btn:focus-visible .uc-inl-thumb::after { background: rgba(18, 18, 22, 0.04); backdrop-filter: saturate(1); -webkit-backdrop-filter: saturate(1); }
.uc-ft-btn:hover .uc-ft-play, .uc-ft-btn:focus-visible .uc-ft-play { background: rgba(255, 170, 40, 0.26); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .uc-ft-btn, .uc-ft-play { transition: none; } }
.uc-ft-unknown { color: #ffcf6a; font-weight: 700; }
