feat: add exit game button with confirmation dialog

- Add exit game button in top-left corner (door icon)
- Button only visible during active game phases (not in welcome/setup)
- Confirmation dialog prevents accidental exits
- Clears localStorage state and returns to welcome screen
- Fully responsive with mobile-optimized styling
- Bilingual support with Spanish/English confirmation messages
This commit is contained in:
2026-01-06 18:30:42 +01:00
parent 0704f73985
commit b05a59706c
3 changed files with 94 additions and 2 deletions

View File

@@ -17,6 +17,11 @@
<span class="language-text">EN</span>
</button>
<button id="exit-game" class="exit-game" onclick="confirmExitGame()">
<span class="exit-icon">🚪</span>
<span class="exit-text" data-i18n="exitGame">Salir de la partida</span>
</button>
<div class="container">
<!-- Welcome screen -->
<div id="welcome-screen" class="screen active">