/* FEATURES: reactions, polls, activities panel, slap effect, recording modal. */

/* ---------------------------------------------------------------- reactions */
.fx-reaction-bar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--controls-h, 80px) + 8px);
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface, #303134);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
  animation: fx-bar-in 160ms ease-out;
}
.fx-reaction-bar[hidden] { display: none; }
@keyframes fx-bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.fx-reaction-btn,
.fx-reaction-close {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text, #e8eaed);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fx-reaction-btn:hover,
.fx-reaction-close:hover { background: var(--btn-hover, #4a4e52); }
.fx-reaction-btn:focus-visible,
.fx-reaction-close:focus-visible { outline: 2px solid var(--accent, #8ab4f8); outline-offset: 1px; }
.fx-reaction-btn-emoji {
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
  transition: transform 140ms ease;
  pointer-events: none;
}
.fx-reaction-btn:hover .fx-reaction-btn-emoji { transform: scale(1.3); }
.fx-reaction-btn.is-pressed .fx-reaction-btn-emoji { animation: fx-press 220ms ease; }
@keyframes fx-press { 50% { transform: scale(.85); } }
.fx-reaction-sep { width: 1px; height: 28px; margin: 0 4px; background: var(--surface-2, #5f6368); }

.fx-reactions-layer {
  position: fixed;
  left: 24px;
  bottom: calc(var(--controls-h, 80px) + 8px);
  width: 220px;
  height: 70vh;
  pointer-events: none;
  z-index: 35;
  overflow: visible;
}
.fx-float {
  position: absolute;
  bottom: 0;
  left: var(--fx-x, 0);
  animation: fx-rise var(--fx-dur, 4s) cubic-bezier(.3, .2, .4, 1) forwards;
  will-change: transform, opacity;
}
.fx-float-sway {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation:
    fx-pop 300ms cubic-bezier(.3, 1.6, .5, 1) both,
    fx-sway var(--fx-sway-dur, 1.4s) ease-in-out 300ms infinite alternate;
}
.fx-float-emoji { width: 44px; height: 44px; font-size: 38px; line-height: 44px; text-align: center; }
.fx-float-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(32, 33, 36, .85);
  color: var(--text, #e8eaed);
  font: 500 12px/16px "Google Sans", Roboto, Arial, sans-serif;
}
@keyframes fx-rise {
  0% { transform: translateY(0); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(calc(-70vh + 60px)); opacity: 0; }
}
@keyframes fx-pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fx-sway {
  from { transform: translateX(calc(var(--fx-sway, 16px) * -1)); }
  to { transform: translateX(var(--fx-sway, 16px)); }
}

.fx-tile-reaction {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(32, 33, 36, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: fx-badge 2s ease forwards;
}
.fx-tile-reaction-emoji { width: 52px; height: 52px; font-size: 44px; line-height: 52px; text-align: center; }
@keyframes fx-badge {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  20% { transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
}
.fx-emoji-text { font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
/* Hard cap for every emoji image (Noto files are 512px): never full-screen
   by accident. The deliberate boom overrides it below. */
.fx-emoji-img { max-width: 64px; max-height: 64px; object-fit: contain; flex: none; }

/* --------------------------------------------- emoji boom (combo burst) */
.fx-boom-layer {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  display: none; align-items: center; justify-content: center; overflow: hidden;
}
.fx-boom-layer.is-on { display: flex; }
.fx-boom-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: fx-boom-pop 1.8s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.fx-boom-emoji.fx-emoji-img, .fx-boom-emoji {
  width: min(320px, 50vmin) !important; height: min(320px, 50vmin) !important;
  max-width: none; max-height: none; font-size: min(280px, 44vmin); line-height: 1; display: block;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .5));
}
.fx-boom-particle {
  position: absolute; left: 50%; top: 50%; opacity: 0;
  animation: fx-boom-fly 1.3s cubic-bezier(.15, .7, .3, 1) var(--delay, 0ms) forwards;
}
.fx-boom-particle-emoji.fx-emoji-img, .fx-boom-particle-emoji { width: 56px !important; height: 56px !important; max-width: none; max-height: none; font-size: 48px; line-height: 1; }
.fx-boom-chip {
  position: absolute; left: 50%; top: calc(50% + min(190px, 30vmin)); transform: translateX(-50%);
  padding: 6px 16px; border-radius: 999px; background: rgba(32, 33, 36, .9); color: var(--text, #e8eaed);
  font: 500 16px/22px "Google Sans", Roboto, Arial, sans-serif; white-space: nowrap;
  animation: fx-boom-chip 1.8s ease forwards;
}
@keyframes fx-boom-pop {
  0% { transform: translate(-50%, -50%) scale(.1) rotate(-20deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.15) rotate(6deg); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  75% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
}
@keyframes fx-boom-fly {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 0; }
}
@keyframes fx-boom-chip { 0%, 15% { opacity: 0; } 25%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fx-boom-big { animation: fx-fade-only 1.8s linear forwards; }
}
.fx-reactions-layer, .fx-tile-reaction { contain: layout paint; }
.fx-tile-reaction { max-width: 96px; max-height: 96px; overflow: hidden; }

/* ---------------------------------------------------------------- poll card */
.fx-poll-card {
  background: #f1f3f4;
  color: var(--panel-text, #202124);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0;
  font: 400 14px/20px Roboto, Arial, sans-serif;
  text-align: left;
}
.fx-poll-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--panel-text-2, #5f6368);
  font: 500 12px/16px "Google Sans", Roboto, Arial, sans-serif;
}
.fx-poll-icon { font-size: 18px; color: #1a73e8; }
.fx-poll-status {
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  background: #e8eaed;
}
.fx-poll-card.is-open .fx-poll-status { background: #e6f4ea; color: #137333; }
.fx-poll-title {
  margin-top: 6px;
  font: 500 16px/22px "Google Sans", Roboto, Arial, sans-serif;
  color: var(--panel-text, #202124);
  overflow-wrap: anywhere;
}
.fx-poll-creator { color: var(--panel-text-2, #5f6368); font-size: 12px; margin-bottom: 10px; }
.fx-poll-options { display: flex; flex-direction: column; gap: 8px; }
.fx-poll-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: var(--panel-text, #202124);
  font: 500 15px/20px "Google Sans", Roboto, Arial, sans-serif;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.fx-poll-option:hover:not(:disabled) { border-color: #1a73e8; }
.fx-poll-option:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.fx-poll-option:disabled { cursor: default; }
.fx-poll-option.is-pending { opacity: .75; }
.fx-poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(26, 115, 232, .14);
  transition: width 300ms ease;
  pointer-events: none;
}
.fx-poll-option.is-mine { border-color: #1a73e8; box-shadow: inset 0 0 0 1px #1a73e8; }
.fx-poll-option.is-mine .fx-poll-fill { background: rgba(26, 115, 232, .28); }
.fx-poll-option.is-winner .fx-poll-fill { background: rgba(26, 115, 232, .32); }
.fx-poll-option-main,
.fx-poll-option-stats { position: relative; display: flex; align-items: center; gap: 8px; }
.fx-poll-option-emoji { font-size: 22px; }
.fx-poll-option-check { font-size: 18px; color: #1a73e8; display: none; }
.fx-poll-option.is-mine .fx-poll-option-check { display: inline-block; }
.fx-poll-option-stats { color: var(--panel-text-2, #5f6368); font: 500 13px/18px Roboto, Arial, sans-serif; white-space: nowrap; }
.fx-poll-result {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #e8f0fe;
  color: #174ea6;
  font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif;
}
.fx-poll-result[data-result="slap"] { background: #fce8e6; color: #a50e0e; }
.fx-poll-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--panel-text-2, #5f6368);
  font-size: 12px;
}
.fx-poll-countdown { font-variant-numeric: tabular-nums; }
.fx-poll-end {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #1a73e8;
  font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.fx-poll-end:hover { background: rgba(26, 115, 232, .08); }
.fx-poll-end:focus-visible { outline: 2px solid #1a73e8; }
.fx-poll-end[hidden] { display: none; }
.fx-poll-card.is-missing .fx-poll-options,
.fx-poll-card.is-missing .fx-poll-foot { display: none; }

/* ---------------------------------------------------------- activities panel */
.fx-activities { color: var(--panel-text, #202124); font: 400 14px/20px Roboto, Arial, sans-serif; }
.fx-act-section { padding: 8px 0 16px; }
.fx-act-section + .fx-act-section { border-top: 1px solid #e0e0e0; padding-top: 16px; }
.fx-act-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.fx-act-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fx-act-icon-rec { background: #fce8e6; color: #d93025; }
.fx-act-title { margin: 0; font: 500 16px/24px "Google Sans", Roboto, Arial, sans-serif; }
.fx-act-sub { margin: 2px 0 0; color: var(--panel-text-2, #5f6368); font-size: 13px; }
.fx-act-label { color: var(--panel-text-2, #5f6368); font: 500 12px/16px Roboto, Arial, sans-serif; margin: 4px 0 6px; }
.fx-act-picker { list-style: none; margin: 0 0 12px; padding: 0; max-height: 240px; overflow: auto; }
.fx-act-person {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fx-act-person:hover { background: #f1f3f4; }
.fx-act-person:focus-visible { outline: 2px solid #1a73e8; }
.fx-act-person[aria-checked="true"] { background: #e8f0fe; }
.fx-act-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 14px/1 "Google Sans", Roboto, Arial, sans-serif;
}
.fx-act-person-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-act-radio { color: var(--panel-text-2, #5f6368); }
.fx-act-person[aria-checked="true"] .fx-act-radio { color: #1a73e8; }
.fx-act-hint { margin: 8px 0 0; color: var(--panel-text-2, #5f6368); font-size: 12px; }
.fx-act-polls { margin-top: 12px; }
.fx-act-rec-status { margin: 0 0 10px; color: var(--panel-text-2, #5f6368); font-size: 13px; }
.fx-act-rec-status:empty { display: none; }

.fx-btn-primary,
.fx-btn-outlined {
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  font: 500 14px/36px "Google Sans", Roboto, Arial, sans-serif;
  cursor: pointer;
}
.fx-btn-primary { border: 0; background: #1a73e8; color: #fff; }
.fx-btn-primary:hover:not(:disabled) { background: #1765cc; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
.fx-btn-outlined { border: 1px solid #dadce0; background: #fff; color: #1a73e8; }
.fx-btn-outlined:hover:not(:disabled) { background: #f6fafe; }
.fx-btn-outlined.is-recording { color: #d93025; border-color: #f4c7c3; }
.fx-btn-primary:disabled,
.fx-btn-outlined:disabled { background: #f1f3f4; color: #80868b; border-color: #f1f3f4; cursor: default; }
.fx-btn-primary:focus-visible,
.fx-btn-outlined:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }

/* ------------------------------------------------------------------ slap */
.fx-slap-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60; /* above stage/controls/panels (≤ 50), below dialogs/toasts (≥ 100) */
  overflow: hidden;
}
.fx-slap-hand {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}
.fx-slap-hand img { width: 100%; height: 100%; display: block; }
.fx-slap-hand-text { display: block; font-size: 220px; line-height: 260px; text-align: center; }
.fx-slap-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}
.fx-slap-flash.is-on { animation: fx-flash 220ms ease-out; }
@keyframes fx-flash { 0% { opacity: .75; } 100% { opacity: 0; } }
.fx-slap-burst {
  position: absolute;
  width: 0;
  height: 0;
  --fx-rot: 0deg;
}
.fx-slap-burst-star,
.fx-slap-burst-text {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) rotate(var(--fx-rot)) scale(1);
  animation: fx-burst 600ms cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.fx-slap-burst-star {
  width: 260px;
  height: 200px;
  background: #fdd835;
  clip-path: polygon(50% 0, 60% 28%, 88% 6%, 74% 36%, 100% 42%, 76% 58%, 96% 86%, 64% 72%, 54% 100%, 44% 74%,
    14% 96%, 26% 64%, 0 52%, 26% 40%, 8% 12%, 38% 28%);
  filter: drop-shadow(0 0 0 #d32f2f);
  box-shadow: inset 0 0 0 6px #e53935;
}
.fx-slap-burst-text {
  font: 900 64px/1 Impact, "Arial Black", "Google Sans", sans-serif;
  color: #e53935;
  letter-spacing: 2px;
  white-space: nowrap;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #202124;
}
@keyframes fx-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--fx-rot)) scale(.2); }
  25% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--fx-rot)) scale(1.15); }
  70% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--fx-rot)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--fx-rot)) scale(1.1); }
}
.fx-slapped { animation: fx-tile-shake 380ms cubic-bezier(.36, .07, .19, .97); }
@keyframes fx-tile-shake {
  10%, 90% { translate: -3px 0; }
  20%, 80% { translate: 6px 2px; }
  30%, 50%, 70% { translate: -12px -2px; rotate: -1.5deg; }
  40%, 60% { translate: 12px 2px; rotate: 1.5deg; }
  100% { translate: 0 0; rotate: 0deg; }
}
.fx-stage-shake { animation: fx-stage-shake 260ms ease-out; }
@keyframes fx-stage-shake {
  25% { translate: 4px -3px; }
  50% { translate: -4px 3px; }
  75% { translate: 2px 1px; }
  100% { translate: 0 0; }
}
.fx-slap-cheek {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--fx-cheek-x, 60%) 55%, rgba(244, 67, 54, .6) 0, rgba(244, 67, 54, .25) 18%, transparent 38%);
}
.fx-slap-cheek.is-hit { animation: fx-cheek 1.6s ease-out forwards; }
@keyframes fx-cheek { 0% { opacity: 1; } 60% { opacity: .8; } 100% { opacity: .35; } }
.fx-slap-banner {
  position: fixed;
  top: calc(var(--topbar-h, 56px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 61;
  max-width: calc(100vw - 32px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface, #303134);
  color: var(--text, #e8eaed);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  font: 500 15px/20px "Google Sans", Roboto, Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: fx-banner-in 250ms ease-out;
}
@keyframes fx-banner-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --------------------------------------------------------- recording modal */
.fx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fx-modal {
  width: min(400px, 100%);
  padding: 24px 24px 12px;
  border-radius: 8px;
  background: var(--surface, #303134);
  color: var(--text, #e8eaed);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
.fx-modal-title { margin: 0 0 12px; font: 400 22px/28px "Google Sans", Roboto, Arial, sans-serif; }
.fx-modal-body { margin: 0 0 20px; color: var(--text-2, #9aa0a6); font: 400 14px/20px Roboto, Arial, sans-serif; }
.fx-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.fx-btn-text {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--accent, #8ab4f8);
  font: 500 14px/36px "Google Sans", Roboto, Arial, sans-serif;
  cursor: pointer;
}
.fx-btn-text:hover { background: rgba(138, 180, 248, .08); }
.fx-btn-text:focus-visible { outline: 2px solid var(--accent, #8ab4f8); }
.fx-btn-text-strong { background: var(--accent, #8ab4f8); color: var(--accent-on, #202124); padding: 0 20px; border-radius: 999px; }
.fx-btn-text-strong:hover { background: #aecbfa; }

/* ------------------------------------------------------- emoji picker */
.fx-reaction-more {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text, #e8eaed);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.fx-reaction-more:hover { background: var(--btn-hover, #4a4e52); }
.fx-reaction-more.is-active { background: var(--accent, #8ab4f8); color: var(--accent-on, #202124); }
.fx-reaction-more:focus-visible { outline: 2px solid var(--accent, #8ab4f8); outline-offset: 1px; }

.fx-picker {
  position: fixed;
  left: 50%;
  bottom: calc(var(--controls-h, 80px) + 72px);
  transform: translateX(-50%);
  z-index: 41;
  width: min(392px, calc(100vw - 16px));
  height: min(420px, calc(100vh - var(--controls-h, 80px) - 140px));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface, #303134);
  color: var(--text, #e8eaed);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: fx-picker-in 140ms ease-out;
}
.fx-picker[hidden] { display: none; }
@keyframes fx-picker-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.fx-picker-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 12px 4px;
  padding: 0 12px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-2, #3c4043);
  color: var(--text-2, #9aa0a6);
}
.fx-picker-search:focus-within { box-shadow: inset 0 0 0 2px var(--accent, #8ab4f8); }
.fx-picker-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text, #e8eaed);
  font: 400 14px/20px Roboto, Arial, sans-serif;
}
.fx-picker-input::placeholder { color: var(--text-2, #9aa0a6); }
.fx-picker-tabs {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.fx-picker-tab {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2, #9aa0a6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fx-picker-tab[hidden] { display: none; }
.fx-picker-tab .msr { font-size: 20px; }
.fx-picker-tab:hover { background: var(--btn-hover, #4a4e52); color: var(--text, #e8eaed); }
.fx-picker-tab.is-active { color: var(--accent, #8ab4f8); box-shadow: inset 0 -2px 0 var(--accent, #8ab4f8); border-radius: 0; }
.fx-picker-tab:focus-visible { outline: 2px solid var(--accent, #8ab4f8); }
.fx-picker-body { position: relative; flex: 1; overflow-y: auto; padding: 0 8px 8px; scrollbar-width: thin; }
.fx-picker-section[hidden] { display: none; }
.fx-picker-section-title {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 10px 6px 6px;
  background: var(--surface, #303134);
  color: var(--text-2, #9aa0a6);
  font: 500 12px/16px "Google Sans", Roboto, Arial, sans-serif;
}
.fx-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, 40px); justify-content: space-between; }
.fx-picker-cell {
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: 26px/40px "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  text-align: center;
  transition: transform 100ms ease;
}
.fx-picker-cell:hover { background: var(--btn-hover, #4a4e52); transform: scale(1.12); }
.fx-picker-cell:focus-visible { outline: 2px solid var(--accent, #8ab4f8); }
.fx-picker-cell.is-pressed { animation: fx-press 220ms ease; }

/* ---------------------------------------------------- custom poll form */
.fx-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.fx-pollform { display: flex; flex-direction: column; gap: 8px; }
.fx-field { display: block; }
.fx-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: var(--panel-text, #202124);
  font: 400 14px/20px Roboto, Arial, sans-serif;
}
.fx-input:focus { outline: 0; border-color: #1a73e8; box-shadow: inset 0 0 0 1px #1a73e8; }
.fx-pollform-q { background: #f1f3f4; border-color: transparent; border-bottom: 1px solid #80868b; border-radius: 4px 4px 0 0; }
.fx-pollform-opts { display: flex; flex-direction: column; gap: 8px; }
.fx-pollform-row { position: relative; display: flex; align-items: center; }
.fx-pollform-row .fx-input { padding-right: 40px; }
.fx-pollform-rm {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--panel-text-2, #5f6368);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fx-pollform-rm:hover { background: #f1f3f4; }
.fx-pollform-rm:focus-visible { outline: 2px solid #1a73e8; }
.fx-btn-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1a73e8;
  font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif;
  cursor: pointer;
}
.fx-btn-link[hidden] { display: none; }
.fx-btn-link:hover { background: rgba(26, 115, 232, .06); }
.fx-btn-link:focus-visible { outline: 2px solid #1a73e8; }
.fx-pollform-actions { display: flex; justify-content: flex-end; }
.fx-pollform-hint { color: #d93025; margin: 0; }
.fx-act-icon-slap { background: #fef7e0; color: #b06000; }
.fx-act-icon-sound { background: #e6f4ea; color: #137333; }
.fx-poll-card.is-slap .fx-poll-icon { color: #b06000; }

/* -------------------------------------------------- sound toggle row */
.fx-act-toggle-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.fx-act-toggle-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fx-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 36px;
  height: 14px;
  margin: 0 4px;
  border-radius: 999px;
  background: #bdc1c6;
  cursor: pointer;
  transition: background 150ms ease;
}
.fx-switch::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .4);
  transition: transform 150ms ease, background 150ms ease;
}
.fx-switch:checked { background: #8ab4f8; }
.fx-switch:checked::before { transform: translateX(24px); background: #1a73e8; }
.fx-switch:focus-visible { outline: 2px solid #1a73e8; outline-offset: 4px; }

/* ------------------------------------------------- recording options */
.fx-rec-modal { width: min(460px, 100%); }
.fx-rec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fx-rec-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.fx-rec-legend { padding: 0; margin-bottom: 6px; color: var(--text, #e8eaed); font: 500 14px/20px "Google Sans", Roboto, Arial, sans-serif; }
.fx-radio { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; border-radius: 6px; cursor: pointer; }
.fx-radio:hover:not(.is-disabled) { background: rgba(255, 255, 255, .05); }
.fx-radio.is-disabled { cursor: default; opacity: .5; }
.fx-radio input { margin: 2px 0 0; accent-color: var(--accent, #8ab4f8); width: 18px; height: 18px; flex: none; }
.fx-radio-text { display: flex; flex-direction: column; min-width: 0; }
.fx-radio-label { font: 400 14px/20px Roboto, Arial, sans-serif; }
.fx-radio-hint { color: var(--text-2, #9aa0a6); font: 400 12px/16px Roboto, Arial, sans-serif; }
@media (max-width: 480px) { .fx-rec-groups { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fx-reaction-bar,
  .fx-picker,
  .fx-slap-banner { animation: none; }
  .fx-picker-cell { transition: none; }
  .fx-picker-cell:hover { transform: none; }
  .fx-reaction-btn-emoji { transition: none; }
  .fx-reaction-btn:hover .fx-reaction-btn-emoji { transform: none; }
  .fx-float { animation: fx-fade-only var(--fx-dur, 4s) linear forwards; bottom: 40px; }
  .fx-float-sway { animation: none; }
  .fx-tile-reaction { animation: fx-fade-only 2s linear forwards; }
  .fx-slapped,
  .fx-stage-shake { animation: none; }
  .fx-slap-burst-star,
  .fx-slap-burst-text { animation: fx-fade-only 600ms linear forwards; }
  .fx-poll-fill { transition: none; }
}
@keyframes fx-fade-only { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 700px) {
  .fx-reaction-bar { max-width: calc(100vw - 16px); overflow-x: auto; }
  .fx-reaction-btn, .fx-reaction-close, .fx-reaction-more { width: 38px; height: 38px; flex: none; }
  .fx-reaction-btn-emoji { width: 28px; height: 28px; }
  .fx-reactions-layer { left: 8px; width: 160px; }
  .fx-slap-burst-text { font-size: 44px; }
  .fx-slap-burst-star { width: 180px; height: 140px; }
}
