  </main>

  <?php require __DIR__ . '/../templates/nav-bottom-v2.php'; ?>

</div>

<div class="toast-wrap" id="toast-wrap"></div>

<script src="/public/js/app.js"></script>
<script>
document.addEventListener('DOMContentLoaded', async () => {
  if (typeof App !== 'undefined' && App.isLoggedIn()) {
    const data = await App.fetch('/api/profile');
    if (data && data.profile) {
      const p = data.profile;
      const elo = document.getElementById('hdr-elo-val');
      if (elo) elo.textContent = p.elo_blitz || 1200;
    }
  }
});
</script>
</body>
</html>
