.cv-emote-toggle.button {
  display:inline-flex;
  gap:6px;
  align-items:center;
  margin-inline-start:7px;
  min-block-size:44px;
  border-color:#815ac0;
  color:#f7e8ff;
  background:#382653;
}
.cv-emote-toggle::before { content:"✦"; color:#e4beff; }
.cv-emote-panel, .cv-emote-notices {
  position:fixed;
  z-index:42;
  inset-inline-start:max(12px,env(safe-area-inset-right));
}
.cv-emote-panel {
  inset-block-start:calc(var(--cv-emote-top,76px) + env(safe-area-inset-top));
  inline-size:min(420px,calc(100vw - 24px));
  max-block-size:calc(100dvh - 156px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px;
  border:1px solid #906ec4;
  border-radius:14px;
  background:#181128;
  box-shadow:0 14px 38px #04020cb8;
  color:#fcf6ff;
}
.cv-emote-panel[hidden], .cv-emote-history[hidden] { display:none; }
.cv-emote-panel header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px; }
.cv-emote-panel h2 { margin:0; font-size:1.05rem; }
.cv-emote-close { inline-size:38px; padding-inline:0; }
.cv-emote-history { display:flex; flex-wrap:wrap; gap:5px; padding-block-end:9px; }
.cv-emote-history span { inline-size:34px; block-size:32px; padding:2px; border-radius:6px; border:1px solid #5a3b79; }
.cv-emote-history span[data-side="own"] { border-color:#397b81; }
.cv-emote-history img { width:100%; height:100%; object-fit:contain; }
.cv-emote-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; }
.cv-emote-option {
  display:grid;
  grid-template-rows:1fr auto;
  align-items:center;
  gap:3px;
  min-width:0;
  min-height:65px;
  padding:3px;
  border:1px solid #493462;
  border-radius:7px;
  color:inherit;
  background:#241837;
  font:inherit;
  cursor:pointer;
}
.cv-emote-option:hover, .cv-emote-option:focus-visible { border-color:#e1a4ff; background:#3c2654; }
.cv-emote-option:disabled { cursor:wait; }
.cv-emote-option img { width:100%; height:43px; object-fit:contain; }
.cv-emote-option span { font-size:.65rem; line-height:1.25; overflow-wrap:normal; }
.cv-emote-notices {
  inset-block-start:calc(var(--cv-emote-top,76px) + env(safe-area-inset-top));
  pointer-events:none;
}
.cv-emote-notices:empty { display:none; }
.cv-emote-toast {
  display:grid;
  justify-items:center;
  gap:5px;
  padding:12px 10px 7px;
  min-width:115px;
  border:1px solid #7954a3;
  border-radius:12px;
  background:#171024f2;
  box-shadow:0 6px 18px #0804107a;
  color:#fff6ff;
  font-size:.8rem;
}
.cv-emote-toast[data-side="own"] { border-color:#4c9a9d; }
.cv-emote-figure {
  position:relative;
  display:block;
  inline-size:94px;
  block-size:80px;
  container-type:inline-size;
}
.cv-emote-figure img { position:relative; z-index:1; width:100%; height:100%; object-fit:contain; }
.cv-emote-figure i, .cv-emote-fx { position:absolute; pointer-events:none; }
.cv-emote-figure i {
  z-index:2;
  inset:48% auto auto 47%;
  font-style:normal;
  font-size:14px;
  text-shadow:0 0 4px currentColor;
}
.cv-emote-fx { z-index:2; inset:-12px; opacity:.9; }
@media (max-width:520px) {
  .cv-emote-toggle.button { display:flex; margin:4px 0 0; min-height:34px; }
  .cv-emote-panel { padding:11px; max-block-size:calc(100dvh - 170px - env(safe-area-inset-bottom)); }
  .cv-emote-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .cv-emote-option { min-height:63px; }
}

