/* The original Unicode remains in the DOM for copying, selection and accessibility. */
.incrimea-emoji.incrimea-emoji-ready {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.19em;
  line-height: 1.15em;
  overflow: hidden;
  white-space: nowrap;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  font-variant: normal;
  text-decoration: none;
}
.incrimea-emoji-ready::selection { color: currentColor; background-color: rgba(33,150,243,.25); }

/* Large emoji messages are a presentation mode; Unicode and chat actions are unchanged. */
#chatMessages .chat-msg-text-flow[data-incrimea-large] { line-height: 1.15; }
#chatMessages .chat-msg-text-flow[data-incrimea-large="1"] { --incrimea-big-size: 88px; }
#chatMessages .chat-msg-text-flow[data-incrimea-large="2"] { --incrimea-big-size: min(58px, 23vw); }
#chatMessages .chat-msg-text-flow[data-incrimea-large="3"] { --incrimea-big-size: min(48px, 18vw); }
#chatMessages .chat-msg-text-flow[data-incrimea-large] > .incrimea-emoji-ready {
  width: var(--incrimea-big-size); height: var(--incrimea-big-size);
  vertical-align: middle; line-height: 1; margin: 3px 1px; transform-origin: center;
}
#chatMessages .chat-msg-text-flow[data-incrimea-large="1"] > .incrimea-emoji-ready { cursor: pointer; }
#chatMessages .chat-msg-text-flow[data-incrimea-large] > .chat-msg-meta-inline { clear: both; margin-top: 5px; }
/* Match sticker messages: no bubble, border, tail or glass layer. */
#chatMessages .chat-msg .chat-bubble-shell.incrimea-emoji-free {
  background: transparent !important; background-image: none !important;
  box-shadow: none !important; border: 0 !important; outline: none !important;
  --tw-ring-shadow: 0 0 #0000; --tw-ring-offset-shadow: 0 0 #0000;
  --chat-tail-fill: transparent;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 2px 6px !important; overflow: visible;
}
#chatMessages .chat-msg .chat-bubble-shell.incrimea-emoji-free::before,
#chatMessages .chat-msg .chat-bubble-shell.incrimea-emoji-free::after { display:none !important; }
#chatMessages .chat-bubble-shell.incrimea-emoji-free > .chat-msg-text-flow {
  background:transparent !important; box-shadow:none !important; border:0 !important;
  text-align:center; white-space:normal !important;
}
#chatMessages .chat-bubble-shell.incrimea-emoji-free .chat-msg-meta-inline {
  display:flex; float:none; width:max-content; margin:4px 0 0 auto;
  background: rgba(235,238,243,.94); color:#454b55 !important; border-radius: 99px;
  padding: 4px 8px; opacity:1; transform:none;
}
.dark #chatMessages .chat-bubble-shell.incrimea-emoji-free .chat-msg-meta-inline { background:rgba(38,42,49,.92);color:#fff !important; }
#chatMessages .incrimea-emoji-free .chat-msg-checks.is-read { color:#287ac1; }
.dark #chatMessages .incrimea-emoji-free .chat-msg-checks.is-read { color:#91e7ff; }
#chatMessages .chat-msg .incrimea-emoji-free .chat-msg-reaction-pill {
  background:rgba(235,238,243,.94); color:#454b55;
}
.dark #chatMessages .chat-msg .incrimea-emoji-free .chat-msg-reaction-pill {
  background:rgba(38,42,49,.92); color:#fff;
}
#chatMessages .chat-msg .incrimea-emoji-free .chat-msg-reaction-pill.is-mine {
  background:rgba(33,150,243,.22); color:#287ac1;
}
.dark #chatMessages .chat-msg .incrimea-emoji-free .chat-msg-reaction-pill.is-mine { color:#91e7ff; }

/* Reserve the final large-message geometry while the first image is loading. */
#chatMessages .chat-msg-text-flow[data-incrimea-large] > .incrimea-emoji:not(.incrimea-emoji-ready) {
  display:inline-block; width:var(--incrimea-big-size); height:var(--incrimea-big-size);
  font-size:var(--incrimea-big-size); line-height:1; vertical-align:middle; margin:3px 1px;
  white-space:nowrap; text-align:center; overflow:hidden;
}
