// Home — main hub: greeting, level progress, game modes grid, daily mission const Home = ({ profile, onPlay, onMission }) => { const t = window.MP_I18N.t; const lvl = window.MP_DATA.levelFor(profile.points || 0); const modes = [ { id: 'time_attack', cls: 'gc-magenta', title: t('time_attack'), sub: t('time_attack_sub'), icon: '⏱️' }, { id: 'memorama', cls: 'gc-cyan', title: t('memorama'), sub: t('memorama_sub'), icon: '🧩' }, { id: 'escalera', cls: 'gc-violet', title: t('escalera'), sub: t('escalera_sub'), icon: '🪜' }, { id: 'mision', cls: 'gc-yellow', title: t('mision'), sub: t('mision_sub'), icon: '🎯' }, { id: 'tabla', cls: 'gc-lime', title: t('tabla'), sub: t('tabla_sub'), icon: '🔢' }, { id: 'tf', cls: 'gc-coral', title: t('tf'), sub: t('tf_sub'), icon: '⚡' }, { id: 'blank', cls: 'gc-magenta', title: t('blank'), sub: t('blank_sub'), icon: '❓' } ]; return ( <>
★ MULTIPLIER
🔥 {profile.streak || 0} ⭐ {profile.coins || 0}
{t('hello')},
{profile.firstName} {profile.lastInitial}.
{t('level')} {lvl.curr.name[window.MP_I18N.getLang()]} {profile.points} {t('points')}
🎯
{t('todays_mission')}
{t('complete_to_earn')} +50 ⭐

{t('pick_a_mode')}

{modes.map(m => ( ))}
); }; window.Home = Home;