/* CLIK.ma - the CLIK 3D reactions (includes/clik-reactions.php, js/core/clik-reactions.js; AdminCP -> Réactions):
   the reactions bar in the CLIK look (each emoji grows and names itself under the pointer or the finger), the hold on
   phones, and the "who reacted" card under the mouse. Transform / opacity only; nothing moves with "less motion". */

/* the bar */
html.clik-rx-bar .reactions-container { padding: 0 4px; }
html.clik-rx-bar .reactions_item { position: relative; cursor: pointer; }
html.clik-rx-bar .reactions_item::after {
  content: attr(data-title); position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 2;
  padding: 3px 8px; border-radius: 999px; background: rgba(28, 30, 33, .86); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 16px; text-transform: none; letter-spacing: 0; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(-50%) translateY(4px) scale(.8); transition: opacity .12s ease, transform .16s ease;
}
html[dir="rtl"].clik-rx-bar .reactions_item::after { transform: translateX(50%) translateY(4px) scale(.8); left: auto; right: 50%; }
html.clik-rx-bar .reactions_item:hover::after, html.clik-rx-bar .reactions_item.is-hot::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(.8); }
html[dir="rtl"].clik-rx-bar .reactions_item:hover::after, html[dir="rtl"].clik-rx-bar .reactions_item.is-hot::after { transform: translateX(50%) translateY(0) scale(.8); }
html.clik-rx-bar .reactions_item:hover, html.clik-rx-bar .reactions_item.is-hot { transform: scale(1.32) translateY(-8px); z-index: 2; }
html.clik-rx-bar .reactions_item .emoji img { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); }
body.night-mode .reactions-container { background: #3a3b3c; box-shadow: 0 0 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45); }

/* phones: hold "Réagir" - no text selection, no long-press menu, the button pressed in while held */
.reactions-wrapper { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.reactions-wrapper.is-holding > .reaction-btn { transform: scale(.94); transition: transform .15s ease; }

/* who reacted, under the mouse (computers) */
.clik-rx-who {
  position: fixed; left: 0; top: 0; z-index: 1065; display: flex; flex-direction: column; gap: 4px;
  max-width: 240px; padding: 8px 12px; border-radius: 12px; background: rgba(28, 30, 33, .92); color: #fff;
  font-size: 13px; line-height: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease;
}
.clik-rx-who.is-on { opacity: 1; transform: none; }
.clik-rx-who-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.clik-rx-who-r img { width: 16px; height: 16px; flex: none; }
.clik-rx-who-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.clik-rx-who-m { opacity: .75; }
body.night-mode .clik-rx-who { background: #e4e6eb; color: #1c1e21; }

/* the burst when one reacts (clik-reactions.js burst(): its pieces move by the Web Animations API, transform / opacity) */
.clik-rx-burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 1070; pointer-events: none; }
.clik-rx-bit { position: absolute; left: 0; top: 0; opacity: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .14)); will-change: transform, opacity; }
.clik-rx-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; opacity: 0; will-change: transform, opacity; }

/* ---------- chat messages: the react button beside the bubble, the emojis on its corner, the bar ---------- */
.conversation-body > .clik-mrx-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  color: #65676b; background: #fff; box-shadow: 0 0 0 1px #e4e6eb; cursor: pointer; opacity: 0; transition: opacity .15s ease, transform .15s ease, color .15s ease;
}
.conversation-body > .clik-mrx-btn svg { display: block; }
.conversation-body:hover > .clik-mrx-btn, .conversation-body > .clik-mrx-btn:focus-visible { opacity: 1; }
.conversation-body > .clik-mrx-btn:hover { color: #0866FF; box-shadow: 0 0 0 1px #0866FF, 0 0 0 4px rgba(8, 102, 255, .14); }
.conversation-body > .clik-mrx-btn:active { transform: scale(.9); }
.conversation-body > .clik-mrx-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #0866FF; }
body.night-mode .conversation-body > .clik-mrx-btn { color: #b0b3b8; background: #3a3b3c; box-shadow: 0 0 0 1px #4e4f50; }
@media (hover: none) { .conversation-body > .clik-mrx-btn { display: none; } }
/* the chat box: beside the bubble's top, its copy button under it (the box has room for one button beside a bubble) */
body .chat-box .conversation-body > .clik-mrx-btn:not(#_) { top: 4px; inset-inline-end: -34px; }
body .chat-box .conversation.right .conversation-body > .clik-mrx-btn:not(#_) { inset-inline-end: auto; inset-inline-start: -34px; }
body .chat-box .conversation-body:has(> .clik-mrx-btn) > .clik-bx-cp:not(#_) { top: 34px; }
/* /messages: on the bubble's middle, its copy button one place further */
.clik-ms .conversation-body > .clik-mrx-btn { top: 50%; width: 28px; height: 28px; margin-top: -14px; inset-inline-start: calc(100% + 4px); }
.clik-ms .conversation.right .conversation-body > .clik-mrx-btn { inset-inline-start: auto; inset-inline-end: calc(100% + 4px); }
.clik-ms .conversation:not(.right) .conversation-body:has(> .clik-mrx-btn) > .clik-ms-copy { inset-inline-start: calc(100% + 36px); }
.clik-ms .conversation.right .conversation-body:has(> .clik-mrx-btn) > .clik-ms-copy { inset-inline-end: calc(100% + 36px); }
.clik-ms .conversation-body { position: relative; }

/* the emojis on the bubble's bottom corner (the end of a message received, the start of one's own) */
.conversation-body > .clik-mrx-chip {
  position: relative; z-index: 1; display: inline-flex; align-items: center; flex: none; align-self: flex-start; width: max-content; height: 24px;
  margin: -10px auto 2px 0; margin-inline-start: 0; margin-inline-end: auto; padding: 0 6px 0 3px; padding-inline: 3px 6px; border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1; color: #65676b; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04); cursor: pointer;
}
.conversation.right .conversation-body > .clik-mrx-chip { align-self: flex-end; margin-inline-start: auto; margin-inline-end: 0; }
.conversation-body > .clik-mrx-chip img { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff; }
.conversation-body > .clik-mrx-chip img + img { margin-inline-start: -5px; }
.conversation-body > .clik-mrx-chip b { margin-inline-start: 4px; font-weight: 700; unicode-bidi: plaintext; }
.conversation-body > .clik-mrx-chip.is-mine b { color: #0866FF; }
.conversation-body > .clik-mrx-chip:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 0 0 2px rgba(8, 102, 255, .35); }
.conversation-body > .clik-mrx-chip:focus-visible { outline: none; box-shadow: 0 0 0 2px #0866FF; }
body.night-mode .conversation-body > .clik-mrx-chip { color: #b0b3b8; background: #3e4042; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
body.night-mode .conversation-body > .clik-mrx-chip img { background: #3e4042; box-shadow: 0 0 0 1.5px #3e4042; }
body.night-mode .conversation-body > .clik-mrx-chip.is-mine b { color: #4C9AFF; }
.conversation-body > .clik-mrx-chip.is-pop { animation: clik-mrx-pop .46s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes clik-mrx-pop { 0% { transform: scale(.55); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
/* the chat box: the core's bubble has no room under it - the chip leans on its edge */
body .chat-box .conversation-body > .clik-mrx-chip:not(#_) { margin-top: -10px; }

/* the bar over the message */
.clik-mrx-bar {
  position: fixed; left: 0; top: 0; z-index: 1066; display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(6px) scale(.92);
  transition: opacity .14s ease, transform .18s cubic-bezier(.3, 1.4, .5, 1);
}
.clik-mrx-bar.is-on { opacity: 1; transform: none; }
.clik-mrx-it { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .16s ease; }
.clik-mrx-it img { display: block; width: 36px; height: 36px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); pointer-events: none; }
.clik-mrx-it::after {
  content: attr(data-title); position: absolute; left: 50%; bottom: calc(100% + 2px); padding: 3px 8px; border-radius: 999px; background: rgba(28, 30, 33, .86); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%) translateY(4px) scale(.8); transition: opacity .12s ease, transform .16s ease;
}
.clik-mrx-it:hover, .clik-mrx-it:focus-visible { transform: scale(1.28) translateY(-6px); z-index: 2; outline: none; }
.clik-mrx-it:hover::after, .clik-mrx-it:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(.8); }
[dir="rtl"] .clik-mrx-it::after, html[dir="RTL"] .clik-mrx-it::after { left: auto; right: 50%; transform: translateX(50%) translateY(4px) scale(.8); }
[dir="rtl"] .clik-mrx-it:hover::after, [dir="rtl"] .clik-mrx-it:focus-visible::after, html[dir="RTL"] .clik-mrx-it:hover::after, html[dir="RTL"] .clik-mrx-it:focus-visible::after { transform: translateX(50%) translateY(0) scale(.8); }
.clik-mrx-it.is-me::before { content: ""; position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #0866FF; }
.clik-mrx-it:focus-visible img { filter: drop-shadow(0 0 0 2px #0866FF) drop-shadow(0 2px 2px rgba(0, 0, 0, .12)); }
body.night-mode .clik-mrx-bar { background: #3a3b3c; box-shadow: 0 0 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45); }
body.night-mode .clik-mrx-it.is-me::before { background: #4C9AFF; }

/* a slide along the bar on phones (hold): the reaction under the finger */
.clik-mrx-it.is-hot { transform: scale(1.32) translateY(-8px); z-index: 2; }
.clik-mrx-it.is-hot::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(.8); }
[dir="rtl"] .clik-mrx-it.is-hot::after, html[dir="RTL"] .clik-mrx-it.is-hot::after { transform: translateX(50%) translateY(0) scale(.8); }
/* a double tap / double click on a bubble: the CLIK cube pops where it was tapped */
.clik-mrx-pop {
  position: fixed; left: 0; top: 0; z-index: 1067; width: 44px; height: 48px; margin: -24px 0 0 -22px; pointer-events: none;
  background: var(--clik-cube) center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(8, 102, 255, .3)); opacity: 0;
  animation: clik-mrx-dbl .8s cubic-bezier(.3, 1.5, .5, 1) forwards;
}
.clik-mrx-pop::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid transparent; border-color: #0A5CFF #F5104F #FFD200 #0A5CFF; opacity: 0; animation: clik-mrx-ring .7s ease-out forwards; }
@keyframes clik-mrx-dbl { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.18) rotate(-8deg); } 55% { transform: scale(.96) rotate(4deg); } 75% { opacity: 1; transform: scale(1) translateY(-6px); } 100% { opacity: 0; transform: scale(.9) translateY(-26px); } }
@keyframes clik-mrx-ring { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }
/* the conversations list: "Karim a réagi [emoji] à : …" */
.clik-mrx-line img { display: inline-block; width: 16px; height: 16px; margin: 0 1px; vertical-align: -3px; }

@media (prefers-reduced-motion: reduce) {
  .clik-mrx-pop { display: none; }
  .clik-mrx-it.is-hot { transform: none; }
  html.clik-rx-bar .reactions_item, html.clik-rx-bar .reactions_item::after, .clik-rx-who, .reactions-wrapper.is-holding > .reaction-btn { transition: none !important; }
  html.clik-rx-bar .reactions_item:hover, html.clik-rx-bar .reactions_item.is-hot { transform: none; }
  .clik-mrx-bar, .clik-mrx-it, .clik-mrx-it::after, .conversation-body > .clik-mrx-btn { transition: none !important; }
  .clik-mrx-bar { transform: none; }
  .clik-mrx-it:hover, .clik-mrx-it:focus-visible { transform: none; }
  .conversation-body > .clik-mrx-chip.is-pop { animation: none; }
  .clik-rx-burst { display: none; }
}

/* ---------- the chosen reaction fills its circle, everywhere (the owner, 29 Oct: "fix to fill the circle", "everywhere
   please, including notifications"). The still pictures are cropped to their disc (rxart/gen.py), so an emoji takes its
   round button, badge or ringed count edge to edge. The round React button: its grey disc gives way to the emoji itself -
   with the core's wrapper (.inline-emoji, the page as printed) or without it (post.js writes the bare .emoji after a click) */
.reactions-wrapper .reaction-btn .reaction-btn-icon:has(.emoji) { display: inline-grid !important; place-items: center; padding: 0 !important; background: none !important; box-shadow: none !important; overflow: visible; }
.reactions-wrapper .reaction-btn .reaction-btn-icon > .inline-emoji { display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
.reactions-wrapper .reaction-btn .reaction-btn-icon .emoji { position: static !important; display: block !important; width: 100% !important; height: 100% !important; margin: 0 !important; transform: none !important; inset: auto !important; border-radius: 50%; }
.reactions-wrapper .reaction-btn .reaction-btn-icon .emoji img { display: block; width: 100% !important; height: 100% !important; max-width: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }
/* the moving pictures keep their whole frame (the motion and its shadow need it): drawn at the still one's size */
.reactions_item img[src*="-anim.svg"], .clik-mrx-it img[src*="-anim.svg"] { transform: translateY(1.9%) scale(1.185); }

/* a reaction that arrived live: "Karim a réagi" inside the chip a few seconds (clik_rx_msg_who) - the chip widens only */
.conversation-body > .clik-mrx-chip > .clik-mrx-whot { margin-inline-start: 6px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; color: inherit; unicode-bidi: plaintext; animation: clik-mrx-whot .3s ease-out both; }
.conversation-body > .clik-mrx-chip > .clik-mrx-whot.is-out { animation: clik-mrx-whot-out .26s ease-in both; }
.conversation-body > .clik-mrx-chip.has-who { padding-inline-end: 8px; }
@keyframes clik-mrx-whot { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@keyframes clik-mrx-whot-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .conversation-body > .clik-mrx-chip > .clik-mrx-whot, .conversation-body > .clik-mrx-chip > .clik-mrx-whot.is-out { animation: none; } }

/* a reaction arriving live on a post / a comment (clik_rx_live_who): "Karim a réagi [emoji]" inside its reactions chip
   a few seconds - the chip only widens */
.reactions-stats > .clik-mrx-whot { text-transform: none; display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; color: #65676b; unicode-bidi: plaintext; animation: clik-mrx-whot .3s ease-out both; }
.reactions-stats > .clik-mrx-whot.is-out { animation: clik-mrx-whot-out .26s ease-in both; }
.reactions-stats > .clik-mrx-whot > img.clik-rxw-img { display: block; width: 16px; height: 16px; flex: none; border-radius: 50%; }
body.night-mode .reactions-stats > .clik-mrx-whot { color: #b0b3b8; }
@media (prefers-reduced-motion: reduce) { .reactions-stats > .clik-mrx-whot, .reactions-stats > .clik-mrx-whot.is-out { animation: none; } }
/* the home feed's double tap on a photo: a bigger cube where it was tapped */
.clik-mrx-pop.is-big { width: 88px; height: 96px; margin: -48px 0 0 -44px; filter: drop-shadow(0 6px 14px rgba(8, 102, 255, .4)); }
.clik-mrx-pop.is-big::after { inset: -16px; border-width: 4px; }
.reactions-stats.has-who:not(#_) { padding-inline-end: 8px; }

/* ---------------------------------------------------------------- round 12 (29 Oct) */
/* the home feed's photos: a long press opens the reactions bar over the photo - no menu, no selection while held */
html.clik-rx-photohold .clik-feed-grid .post :is(.js_phv, .js_phv-nodata) { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html.clik-rx-photohold .clik-feed-grid .post :is(.js_phv, .js_phv-nodata) img { -webkit-user-drag: none; }
html.clik-rx-photohold .clik-feed-grid .post .is-clik-holding { transform: scale(.985); transition: transform .45s ease; }
.clik-rxp-bar { z-index: 1066; }

/* the "Réactions" window's filter: a chip per reaction the post really has, its emoji and its name - never a count */
.modal.clik-win .modal-header .nav-tabs.clik-rxf .nav-link img.clik-rxf-img { display: block; width: 22px; height: 22px; flex: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .18)); }
.modal.clik-win .modal-header .nav-tabs.clik-rxf .nav-link span { white-space: nowrap; }
.modal.clik-win .modal-header .nav-tabs.clik-rxf .nav-link:not(.big) { gap: 6px; padding: 0 12px 0 8px; }
html[dir="rtl"] .modal.clik-win .modal-header .nav-tabs.clik-rxf .nav-link:not(.big), html[dir="RTL"] .modal.clik-win .modal-header .nav-tabs.clik-rxf .nav-link:not(.big) { padding: 0 8px 0 12px; }
.modal.clik-win .modal-header .nav-tabs.clik-rxf { --fs: 0px; --fe: 0px; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); }
html[dir="rtl"] .modal.clik-win .modal-header .nav-tabs.clik-rxf, html[dir="RTL"] .modal.clik-win .modal-header .nav-tabs.clik-rxf { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); }
.modal.clik-win .modal-header .nav-tabs.clik-rxf.is-fade-s { --fs: 28px; }
.modal.clik-win .modal-header .nav-tabs.clik-rxf.is-fade-e { --fe: 28px; }
.modal.clik-win .modal-header .nav-tabs.clik-rxf .nav-link:focus-visible { outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0866FF; }
/* the list while another reaction's list comes: the CLIK cube over it */
.modal-body.clik-rxf-busy { position: relative; min-height: 132px; }
.modal-body.clik-rxf-busy > :not(.clik-rxf-st) { opacity: .3; transition: opacity .15s ease; pointer-events: none; }
.modal-body.clik-rxf-busy::after { content: ""; position: absolute; left: 50%; top: 32px; z-index: 2; width: 68px; height: 68px; margin-left: -34px; background: var(--clik-cube-load, var(--clik-cube)) center / contain no-repeat; filter: none); animation: clik-cube-in .66s cubic-bezier(.2, .9, .3, 1.2) both, clik-feed-cube 1.1s ease-in-out .66s infinite; }
.modal-body .clik-rxf-st { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "+1" floating up from a reactions chip when another member reacts live */
.clik-rx-plus {
  position: fixed; left: 0; top: 0; z-index: 1066; padding: 2px 8px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(135deg, #3B82FF 0%, #0866FF 50%, #0047D6 100%); color: #fff; font-size: 12px; font-weight: 800; line-height: 16px; white-space: nowrap;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(8, 102, 255, .35); opacity: 0; transform: translate(-50%, -50%);
  animation: clik-rx-plus 1.2s cubic-bezier(.2, .7, .3, 1) forwards;
}
body.night-mode .clik-rx-plus { box-shadow: 0 0 0 2px #242526, 0 4px 10px rgba(0, 0, 0, .45); }
@keyframes clik-rx-plus {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.5); }
  18% { opacity: 1; transform: translate(-50%, -90%) scale(1.12); }
  32% { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -300%) scale(.92); }
}
@media (prefers-reduced-motion: reduce) {
  .clik-rx-plus { display: none; }
  html.clik-rx-photohold .clik-feed-grid .post .is-clik-holding { transform: none; transition: none; }
  .modal-body.clik-rxf-busy::after { animation: none; }
  .modal.clik-win .modal-header .nav-tabs.clik-rxf { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- round 13 (29 Oct) */
/* phones: a long press on a comment's bubble opens the reactions bar - no callout while held, the bubble pressed */
@media (pointer: coarse) { html.clik-rx-cmhold .post-comments .comment-inner { -webkit-touch-callout: none; } }
html.clik-rx-cmhold .post-comments .comment-inner.is-clik-holding { transform: scale(.98); transition: transform .45s ease; }
/* the "Réactions" window: the list swiped in from the side it was pushed towards; the last chip reached, a little bump */
.modal-body.clik-rxf-in-e > * { animation: clik-rxf-in-e .36s cubic-bezier(.2, .8, .3, 1) both; }
.modal-body.clik-rxf-in-s > * { animation: clik-rxf-in-s .36s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes clik-rxf-in-e { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes clik-rxf-in-s { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .modal-body.clik-rxf-in-e > *, html[dir="RTL"] .modal-body.clik-rxf-in-e > * { animation-name: clik-rxf-in-s; }
html[dir="rtl"] .modal-body.clik-rxf-in-s > *, html[dir="RTL"] .modal-body.clik-rxf-in-s > * { animation-name: clik-rxf-in-e; }
.modal.clik-win .modal-header .nav-tabs.clik-rxf.is-edge { animation: clik-rxf-edge .32s ease; }
@keyframes clik-rxf-edge { 0%, 100% { transform: none; } 35% { transform: translateX(-6px); } 70% { transform: translateX(4px); } }
/* once, over the first feed photo: how to like it */
.clik-rx-tip {
  position: fixed; left: 0; top: 0; z-index: 1040; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: min(280px, 80vw);
  padding: 12px 16px; border-radius: 16px; background: rgba(28, 30, 33, .82); color: #fff; text-align: center; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); animation: clik-rx-tip-in .3s cubic-bezier(.3, 1.4, .5, 1) both;
}
.clik-rx-tip b { font-size: 15px; font-weight: 800; line-height: 20px; }
.clik-rx-tip small { font-size: 12px; font-weight: 600; line-height: 16px; opacity: .85; }
.clik-rx-tip-cube { display: block; width: 36px; height: 40px; margin-bottom: 2px; background: var(--clik-cube) center / contain no-repeat; filter: drop-shadow(0 3px 6px rgba(8, 102, 255, .4)); animation: clik-rx-tip-tap 1.4s ease-in-out .3s infinite; }
.clik-rx-tip.is-out { animation: clik-rx-tip-out .28s ease forwards; }
@keyframes clik-rx-tip-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.85); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes clik-rx-tip-out { to { opacity: 0; transform: translate(-50%, -50%) scale(.92); } }
/* two taps: the cube presses twice, then rests */
@keyframes clik-rx-tip-tap { 0%, 40%, 100% { transform: none; } 8%, 24% { transform: scale(.82) translateY(2px); } 16%, 32% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  html.clik-rx-cmhold .post-comments .comment-inner.is-clik-holding { transform: none; transition: none; }
  .modal-body.clik-rxf-in-e > *, .modal-body.clik-rxf-in-s > *, .modal.clik-win .modal-header .nav-tabs.clik-rxf.is-edge { animation: none; }
  .clik-rx-tip, .clik-rx-tip.is-out, .clik-rx-tip-cube { animation: none; }
  .clik-rx-tip.is-out { opacity: 0; }
}

/* the bar's emojis to the pill's edge (the owner, 29 Oct: "extend the size of the reaction emojies inside their container to
   the edge", "morocco emoji looks smaller & clik cube also"): every disc 44 px in the 48 px pill, the same size whichever
   drawing - the core's 120 px picture scaled .325 and moved out of its box is put back in the item itself */
html.clik-rx-bar .reactions-container .reactions_item .emoji:not(#_) { position: absolute; inset: 0; width: 48px; height: 48px; top: 0; right: auto; left: 0; transform: none; border-radius: 0; }
html.clik-rx-bar .reactions-container .reactions_item .emoji img:not(#_) { display: block; width: 48px; height: 48px; max-width: none; transform: scale(.917); }
html.clik-rx-bar .reactions-container .reactions_item .emoji img[src*="-anim.svg"]:not(#_) { transform: translateY(1.7%) scale(1.086); }


/* ---------- 8 Nov: the CLIK cube on « Réagir » (style.min.css draws the posts' line cube) ---------- */
/* the comments' word gets the same line cube before it, until the member reacted (AdminCP → Réactions, clik_rx_cm_cube) */
body.clik-rx-cmcube .comment-actions .reactions-wrapper:not(.js_unreact-comment) .reaction-btn-name::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-inline-end: 4px; vertical-align: -2px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M9.93 2.48 4.6 5.45C3.38 6.12 2.4 7.8 2.4 9.18v5.65c0 1.38.98 3.06 2.2 3.73l5.33 2.97c1.14.63 3.01.63 4.15 0l5.33-2.97c1.22-.67 2.2-2.35 2.2-3.73V9.18c0-1.38-.98-3.06-2.2-3.73l-5.33-2.97c-1.15-.64-3.01-.64-4.15 0Z'/%3E%3Cpath d='M3.17 7.44 12 12.55l8.77-5.08M12 21.61v-9.07'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M9.93 2.48 4.6 5.45C3.38 6.12 2.4 7.8 2.4 9.18v5.65c0 1.38.98 3.06 2.2 3.73l5.33 2.97c1.14.63 3.01.63 4.15 0l5.33-2.97c1.22-.67 2.2-2.35 2.2-3.73V9.18c0-1.38-.98-3.06-2.2-3.73l-5.33-2.97c-1.15-.64-3.01-.64-4.15 0Z'/%3E%3Cpath d='M3.17 7.44 12 12.55l8.77-5.08M12 21.61v-9.07'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* a tap on « Réagir »: the line cube fills with the cube's colours a moment, before the bar opens (clik-rx-tap.js, clik_rx_tapfill) */
.post-actions .reaction-btn .reaction-btn-icon.is-tap { position: relative; }
.post-actions .reaction-btn .reaction-btn-icon.is-tap > i { opacity: 0; transition: opacity .12s ease; }
.post-actions .reaction-btn .reaction-btn-icon.is-tap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; pointer-events: none;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M12 2.6 20.4 7.3 12 12 3.6 7.3Z' fill='%230A5CFF' stroke='%230A5CFF'/%3E%3Cpath d='M3.6 7.3 12 12v9.4l-8.4-4.7Z' fill='%23F5104F' stroke='%23F5104F'/%3E%3Cpath d='M20.4 7.3 12 12v9.4l8.4-4.7Z' fill='%23FFD200' stroke='%23FFD200'/%3E%3C/svg%3E") center / contain no-repeat; animation: clik-rx-fill .74s cubic-bezier(.3, .8, .3, 1) both;
}
@keyframes clik-rx-fill {
  0% { opacity: 0; transform: rotate(-120deg) scale(.7); }
  40% { opacity: 1; transform: rotate(10deg) scale(1); }
  55% { transform: rotate(0) scale(1); }
  80% { opacity: 1; transform: rotate(0) scale(1); }
  100% { opacity: 0; transform: rotate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .post-actions .reaction-btn .reaction-btn-icon.is-tap::after { animation: none; opacity: 0; }
  .post-actions .reaction-btn .reaction-btn-icon.is-tap > i { opacity: 1; }
}

/* ---------- 8 Nov: a double tap stamps the CLIK cube reaction like Facebook's thumb - its own picture, its real colours ---------- */
.clik-mrx-pop.is-stamp { width: 104px; height: 104px; margin: -52px 0 0 -52px; background-position: center; background-size: contain; background-repeat: no-repeat;
  filter: drop-shadow(0 8px 18px rgba(8, 102, 255, .45)); animation: clik-rx-stamp 1.15s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.clik-mrx-pop.is-stamp::after { inset: -14px; border-width: 4px; }
@keyframes clik-rx-stamp {
  0% { opacity: 0; transform: scale(.25) rotate(-25deg); }
  22% { opacity: 1; transform: scale(1.22) rotate(8deg); }
  36% { transform: scale(.92) rotate(-4deg); }
  48% { transform: scale(1.04) rotate(2deg); }
  60% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(.85) translateY(-46px); }
}
/* the tap's fill with the CLIK cube reaction's own picture (clik-rx-tap.js sets --rx-cube): the size a chosen emoji takes,
   the whole round button, turning in - never growing past its circle */
.post-actions .reaction-btn .reaction-btn-icon.is-tap.has-pic::after, .phv-post .reaction-btn .reaction-btn-icon.is-tap.has-pic::after {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; background: var(--rx-cube) center / contain no-repeat;
}
.phv-post .reaction-btn .reaction-btn-icon.is-tap { position: relative; }
.phv-post .reaction-btn .reaction-btn-icon.is-tap > i { opacity: 0; }
.phv-post .reaction-btn .reaction-btn-icon.is-tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; pointer-events: none; animation: clik-rx-fill .74s cubic-bezier(.3, .8, .3, 1) both; }

/* ---------- 23 Nov (the owner: « fix that overflow of reaction emojis », the photo viewer's bar): every emoji stays inside
   its pill - 6 px above and below, 8 px at the ends, 4 px between two emojis; the one under the pointer / the finger grows
   1.16 from its middle into that room (never past the pill, never over its neighbour), its name in the dark pill 8 px over
   the bar. The same for the messages' / photos' bar (.clik-mrx-bar): 1.18 inside its 44 px item. ---------- */
html.clik-rx-bar .reactions-container:not(#_) { padding: 6px 8px; }
html.clik-rx-bar .reactions-container .reactions_item + .reactions_item:not(#_) { margin-inline-start: 4px; }
html.clik-rx-bar .reactions-container .reactions_item:is(:hover, .is-hot):not(#_) { transform: scale(1.16); transform-origin: 50% 50%; }
html.clik-rx-bar .reactions-container .reactions_item::after { bottom: calc(100% + 12px); }
.clik-mrx-bar:not(#_) { gap: 4px; padding: 4px 8px; }
.clik-mrx-it:is(:hover, :focus-visible, .is-hot):not(#_) { transform: scale(1.18); }
.clik-mrx-it::after { bottom: calc(100% + 10px); }
@media (prefers-reduced-motion: reduce) {
  html.clik-rx-bar .reactions-container .reactions_item:is(:hover, .is-hot):not(#_), .clik-mrx-it:is(:hover, :focus-visible, .is-hot):not(#_) { transform: none; }
}

/* ---------- 23 Nov (the owner: « reactions names is not showing », the photo viewer): the viewer's « Réagir » sits at the
   top of its panel, so the bar opened over the author's line and the names above it were cut by the panel's top. There
   the bar opens UNDER the button, inside the panel, and each name shows 8 px under its emoji ---------- */
.phv-post .reactions-wrapper { position: relative; }
.phv-post .reactions-wrapper > .reactions-container:not(#_):not(#_) { position: absolute !important; top: calc(100% + 6px) !important; bottom: auto !important; left: 0 !important; right: auto !important; z-index: 30; }
html[dir="rtl"] .phv-post .reactions-wrapper > .reactions-container:not(#_):not(#_) { left: auto !important; right: 0 !important; }
html.clik-rx-bar .phv-post .reactions-container .reactions_item::after { bottom: auto; top: calc(100% + 8px); }
