export function findJumboEmojiElement(targetEventId: string): HTMLElement | null {
  const message = document.querySelector(`[data-message-id="${CSS.escape(targetEventId)}"]`);
  if (!message) return null;

  const jumbo = message.querySelector('[data-jumbo-emoji]');
  return jumbo instanceof HTMLElement ? jumbo : null;
}

export function getLocalBurstCanvasSize(maskRadius: number): number {
  return Math.max(300, Math.round(maskRadius * 6.5));
}
