/**
 * Images base64 des 66 races de Dragodindes, extraites du monolithe v1.1.5.
 */
export const DD_IMAGES: Record<string, string> = {
  'Amande': 'data:image/png;base64,[encoded data, 6800 characters]',
  'Amande et Dorée': 'data:image/png;base64,[encoded data, 7072 characters]',
  'Amande et Ebène': 'data:image/png;base64,[encoded data, 6052 characters]',
  'Amande et Emeraude': 'data:image/png;base64,[encoded data, 6912 characters]',
  'Amande et Indigo': 'data:image/png;base64,[encoded data, 6472 characters]',
  'Amande et Ivoire': 'data:image/png;base64,[encoded data, 6644 characters]',
  'Amande et Orchidée': 'data:image/png;base64,[encoded data, 7084 characters]',
  'Amande et Pourpre': 'data:image/png;base64,[encoded data, 6784 characters]',
  'Amande et Rousse': 'data:image/png;base64,[encoded data, 7048 characters]',
  'Amande et Turquoise': 'data:image/png;base64,[encoded data, 6972 characters]',
  'Dorée': 'data:image/png;base64,[encoded data, 7172 characters]',
  'Dorée et Ebène': 'data:image/png;base64,[encoded data, 6608 characters]',
  'Dorée et Emeraude': 'data:image/png;base64,[encoded data, 7160 characters]',
  'Dorée et Indigo': 'data:image/png;base64,[encoded data, 6748 characters]',
  'Dorée et Ivoire': 'data:image/png;base64,[encoded data, 7132 characters]',
  'Dorée et Orchidée': 'data:image/png;base64,[encoded data, 7260 characters]',
  'Dorée et Pourpre': 'data:image/png;base64,[encoded data, 7040 characters]',
  'Dorée et Rousse': 'data:image/png;base64,[encoded data, 7136 characters]',
  'Dorée et Turquoise': 'data:image/png;base64,[encoded data, 7292 characters]',
  'Ebène': 'data:image/png;base64,[encoded data, 4328 characters]',
  'Ebène et Emeraude': 'data:image/png;base64,[encoded data, 6232 characters]',
  'Ebène et Indigo': 'data:image/png;base64,[encoded data, 5172 characters]',
  'Ebène et Ivoire': 'data:image/png;base64,[encoded data, 6216 characters]',
  'Ebène et Orchidée': 'data:image/png;base64,[encoded data, 5960 characters]',
  'Ebène et Pourpre': 'data:image/png;base64,[encoded data, 5652 characters]',
  'Ebène et Rousse': 'data:image/png;base64,[encoded data, 6364 characters]',
  'Ebène et Turquoise': 'data:image/png;base64,[encoded data, 6368 characters]',
  'Emeraude': 'data:image/png;base64,[encoded data, 6832 characters]',
  'Emeraude et Indigo': 'data:image/png;base64,[encoded data, 6520 characters]',
  'Emeraude et Ivoire': 'data:image/png;base64,[encoded data, 7020 characters]',
  'Emeraude et Orchidée': 'data:image/png;base64,[encoded data, 6996 characters]',
  'Emeraude et Pourpre': 'data:image/png;base64,[encoded data, 6704 characters]',
  'Emeraude et Rousse': 'data:image/png;base64,[encoded data, 6976 characters]',
  'Emeraude et Turquoise': 'data:image/png;base64,[encoded data, 6900 characters]',
  'Indigo': 'data:image/png;base64,[encoded data, 5936 characters]',
  'Indigo et Ivoire': 'data:image/png;base64,[encoded data, 6684 characters]',
  'Indigo et Orchidée': 'data:image/png;base64,[encoded data, 6312 characters]',
  'Indigo et Pourpre': 'data:image/png;base64,[encoded data, 6024 characters]',
  'Indigo et Rousse': 'data:image/png;base64,[encoded data, 6712 characters]',
  'Indigo et Turquoise': 'data:image/png;base64,[encoded data, 6688 characters]',
  'Ivoire': 'data:image/png;base64,[encoded data, 6560 characters]',
  'Ivoire et Orchidée': 'data:image/png;base64,[encoded data, 6960 characters]',
  'Ivoire et Pourpre': 'data:image/png;base64,[encoded data, 6840 characters]',
  'Ivoire et Rousse': 'data:image/png;base64,[encoded data, 7088 characters]',
  'Ivoire et Turquoise': 'data:image/png;base64,[encoded data, 6936 characters]',
  'Orchidée': 'data:image/png;base64,[encoded data, 6680 characters]',
  'Orchidée et Pourpre': 'data:image/png;base64,[encoded data, 6560 characters]',
  'Orchidée et Rousse': 'data:image/png;base64,[encoded data, 6880 characters]',
  'Pourpre': 'data:image/png;base64,[encoded data, 6376 characters]',
  'Pourpre et Rousse': 'data:image/png;base64,[encoded data, 6824 characters]',
  'Prune': 'data:image/png;base64,[encoded data, 6692 characters]',
  'Prune et Amande': 'data:image/png;base64,[encoded data, 6708 characters]',
  'Prune et Dorée': 'data:image/png;base64,[encoded data, 7012 characters]',
  'Prune et Ebène': 'data:image/png;base64,[encoded data, 5988 characters]',
  'Prune et Indigo': 'data:image/png;base64,[encoded data, 6280 characters]',
  'Prune et Ivoire': 'data:image/png;base64,[encoded data, 6692 characters]',
  'Prune et Orchidée': 'data:image/png;base64,[encoded data, 6876 characters]',
  'Prune et Pourpre': 'data:image/png;base64,[encoded data, 6644 characters]',
  'Prune et Rousse': 'data:image/jpeg;base64,[encoded data, 6908 characters]',
  'Rousse': 'data:image/jpeg;base64,[encoded data, 6952 characters]',
  'Turquoise': 'data:image/jpeg;base64,[encoded data, 6944 characters]',
  'Turquoise et Rousse': 'data:image/jpeg;base64,[encoded data, 7168 characters]',
  'Turquoise et Pourpre': 'data:image/jpeg;base64,[encoded data, 6844 characters]',
  'Turquoise et Orchidée': 'data:image/jpeg;base64,[encoded data, 7048 characters]',
  'Prune et Turquoise': 'data:image/jpeg;base64,[encoded data, 6844 characters]',
  'Prune et Emeraude': 'data:image/png;base64,[encoded data, 6860 characters]',
};

export function getDDImage(raceName: string): string {
  const img = DD_IMAGES[raceName];
  if (img) {
    return `<div class="race-card-avatar"><img src="${img}" alt="${raceName}"></div>`;
  }
  return `<div class="race-card-avatar" style="background:#888"><span style="font-size:1.8rem">🐦</span></div>`;
}
