.emo {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--es, 24px);
  height: var(--es, 24px);
  vertical-align: middle;
  contain: layout style;
}

.emo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.emo-play {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.emo-play > svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

video.emo-play {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emo-on > img {
  visibility: hidden;
}

.emo-txt {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: calc(var(--es, 24px) * .84);
  line-height: var(--es, 24px);
  text-align: center;
  font-style: normal;
}

.emo-fail > img {
  display: none;
}

.emo-fail::after {
  content: attr(data-c);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(var(--es, 24px) * .84);
  line-height: 1;
}

.emo-on.emo-fail::after {
  display: none;
}

.emo-inline {
  vertical-align: -.24em;
  margin: 0 .03em;
}

.emo-rp .emo-play [fill]:not([fill="none"]) {
  fill: currentColor;
}

.emo-rp .emo-play [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.emo-glow::before {
  content: "";
  position: absolute;
  inset: -26%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06) 55%, transparent);
  pointer-events: none;
}

:root[data-theme="light"] .emo-glow::before {
  background: radial-gradient(closest-side, rgba(0, 0, 0, .07), rgba(0, 0, 0, .02) 55%, transparent);
}
