/* Реакции-картинки на странице серии (rare-reactions.js): иконки старых
   коллекционных c_* в ленте, кнопка «Стикер» в доке, слой для стикеров. Префикс rx-. */
.rx-st { --rc: #3d8bff; display: inline-block; width: 48px; height: 48px; border-radius: 30%; position: relative; flex-shrink: 0; vertical-align: middle; }
.rx-st svg { width: 100%; height: 100%; display: block; }
.rx-st[data-r=epic] { --rc: #a14bff; }
.rx-st[data-r=legend] { --rc: #ffb03d; }
.rx-st[data-r=legend]::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%) 0 0 / 250% 100%;
    animation: rx-holo 2.6s linear infinite;
}
.rx-st[data-r=epic]::after { content: ''; position: absolute; inset: -3px; border-radius: 32%; box-shadow: 0 0 14px #a14bff; opacity: .7; animation: rx-pulse 2s ease-in-out infinite; pointer-events: none; }
@keyframes rx-holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes rx-pulse { 50% { opacity: .25; } }
.rx-st.sm { width: 1.7em; height: 1.7em; }

/* ===== ряд в доке ===== */
.rx-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rx-row:empty { display: none; }
.rx-open {
    position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 0; border-radius: 14px;
    background: linear-gradient(110deg, rgba(216, 45, 126, .25), rgba(122, 44, 255, .25)); border: 1px solid rgba(216, 45, 126, .45);
    color: #fff; font: 600 14px var(--font-secondary, sans-serif); cursor: pointer; transition: background .2s;
}
.rx-open:hover { background: linear-gradient(110deg, rgba(216, 45, 126, .4), rgba(122, 44, 255, .4)); }
@keyframes rx-glow { 50% { box-shadow: 0 0 22px rgba(216, 45, 126, .6); } }

/* лента: редкая реакция подсвечена цветом редкости */
#emotion-list li.rx-item { --rc: #3d8bff; position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 20%, transparent), transparent); }
#emotion-list li.rx-item[data-r=epic] { --rc: #a14bff; }
#emotion-list li.rx-item[data-r=legend] { --rc: #ffb03d; }
#emotion-list li.rx-item b.rx-name { color: var(--rc); }

/* ===== эффекты на кадре ===== */
.rx-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; font-family: var(--font-secondary, sans-serif); }
.rx-layer > * { position: absolute; }
@media (prefers-reduced-motion: reduce) {
    .rx-st::after { animation: none !important; }
}
