{% include 'webapp/_pwa_head.html' %}
{% for lc in ['en','fa','tr','ar'] %}
{% endfor %}
{% if session.get('user_id') %} {{ t('enter_webapp') }} {% else %} {% endif %}
{{ t('tagline') }}

{{ t('hero_title_1') }} {{ t('hero_title_2') }} {{ t('hero_title_3') }}

{{ t('hero_subtitle') }}

0 {{ t('players_online') | default('Players Online') }}
0 {{ t('tournaments_live') | default('Tournaments Live') }}
${{ "{:,}".format(total_prizes or 12450) }} {{ t('prize_pool') }}
{% if live_matches or upcoming_matches %} {% endif %}
{{ t('view_all') }}
🎮 0 {{ t('matches_played') | default('Matches Played') }} 🎮
🏆 0 {{ t('prizes_awarded') | default('Prizes Awarded') }} 🏆
🌍 0 {{ t('countries') | default('Countries') }} 🌍
0 {{ t('uptime') | default('Uptime %') }}

{{ t('active_tournaments') }}

{{ t('tournaments_section_desc') }}

{% if session.get('user_id') %} {{ t('view_all') }} {% else %} {{ t('view_all') }} {% endif %}
{% set showcase = (live_matches + upcoming_matches)[:6] %} {% for m in showcase %}
{% if m.game and m.game.image %} {{ m.title }} {% endif %}
{% if m.status == 'live' %} {{ t('live') }} {% else %} {{ t('upcoming') }} {% endif %} {{ m.game.icon if m.game }} {{ m.game.name if m.game else '—' }}

{{ m.title }}

{{ t('free_entry') if m.entry_fee == 0 else '$' ~ m.entry_fee }} {{ t('team') if m.team_mode else t('solo') }} {% if m.prize_pool > 0 %} 💰 ${{ "{:,}".format(m.prize_pool) }} {% endif %}
{{ t('players_count') }} {{ m.current_players }}/{{ m.capacity }}
{{ t('start_time') }} {{ m.starts_at.strftime('%b %d · %H:%M') if m.starts_at else '—' }}
{{ (m.current_players / (m.capacity or 1) * 100) | round(0) }}%
{% if m.status == 'upcoming' and m.starts_at %}
{{ t('starts_in_label') }} 00:00:00
{% endif %}
{% if session.get('user_id') %} {{ t('join_tournament_btn') }} → {% else %} {{ t('view_tournament') }} → {% endif %}
{% else %}
🏆

{{ t('no_tournaments') | default('No Tournaments Found') }}

{{ t('no_tournaments_desc') | default('No active tournaments right now. Check back soon!') }}

{% endfor %}

{{ t('popular_games') }}

{{ t('popular_games_desc') }}

{% for g in active_games[:8] %}
{% if g.image %} {{ g.name }} {% endif %}
{{ g.icon if g.icon else '🎮' }}
{{ g.modes.filter_by(is_active=True).count() }} {{ t('modes') | default('modes') }}

{{ g.name }}

{{ g.modes.filter_by(is_active=True).count() }} {{ t('modes') | default('modes') }} {{ t('play') | default('PLAY') }} →
{% else %}
🎮

{{ t('no_games') | default('No Games Available') }}

{{ t('no_games_desc') | default('Games are being added. Check back soon!') }}

{% endfor %}
{% if upcoming_matches %}

{{ t('upcoming_matches_section') }}

{% for m in upcoming_matches[:6] %}
{{ m.game.icon if m.game else '🎮' }}

{{ m.title }}

{{ m.game.name if m.game else '—' }}
{{ t('free_entry') if m.entry_fee == 0 else '$' ~ m.entry_fee }} {% if m.prize_pool > 0 %} ${{ "{:,}".format(m.prize_pool) }} {% endif %}
{{ m.starts_at.strftime('%b %d') if m.starts_at else '—' }} {{ m.starts_at.strftime('%H:%M') if m.starts_at else '—' }}
{% if session.get('user_id') %} {{ t('view') | default('VIEW') }} → {% else %} {{ t('view') | default('VIEW') }} → {% endif %}
{% endfor %}
{% endif %}

{{ t('how_it_works') }}

{{ t('how_it_works_desc') | default('FIGHTSKILL makes competing in esports tournaments simple.') }}

1
👤

{{ t('create_account') }}

{{ t('create_account_long') | default('Sign up for FIGHTSKILL using your email or connect your social accounts.') }}

2
🏆

{{ t('join_tournament_desc') }}

{{ t('tournaments_section_desc') }}

3
🎮

{{ t('play_and_win') }}

{{ t('play_and_win_long') | default('At match time, room codes and passwords are published. Enter and dominate.') }}

4
📊

{{ t('climb_leaderboard') }}

{{ t('climb_lb_long') | default('Climb the leaderboards, earn XP, level up, and unlock exclusive rewards.') }}

{{ t('why_fightskill') }}

{{ t('why_fightskill_desc') }}

🏆

{{ t('feature_tournaments') }}

{{ t('tournaments_desc') | default('Compete in daily tournaments across all your favorite games.') }}

👥

{{ t('feature_teams') }}

{{ t('team_desc') | default('Build your squad, manage rosters, and dominate the leaderboard.') }}

💰

{{ t('feature_wallet') }}

{{ t('wallet_desc') | default('Secure wallet system with instant deposits and withdrawals.') }}

📊

{{ t('feature_leaderboard') }}

{{ t('leaderboard_desc') | default('Compete for the top spot and earn exclusive rewards.') }}

{{ t('feature_special') }}

{{ t('about_desc_2') }}

🔒

{{ t('feature_security') }}

{{ t('security_warning') | default('Enterprise-grade security. Your account and data are always protected.') }}

{{ t('chip_low_latency') | default('Low-Latency Servers') }} 🛡️ {{ t('chip_anti_cheat') | default('Anti-Cheat Shield') }} 💳 {{ t('chip_instant_payouts') | default('Instant Payouts') }} 📶 {{ t('chip_matchmaking') | default('Smart Matchmaking') }} 🌐 {{ t('chip_multilang') | default('Multi-Language UI') }} 📞 {{ t('chip_support_247') | default('24/7 Live Support') }} 📈 {{ t('chip_analytics') | default('Player Analytics') }} 🎁 {{ t('chip_rewards') | default('Daily Rewards') }}

{{ t('join_the_competition') }}

{{ t('join_the_competition_desc') }}

{% include 'webapp/_pwa.html' %}