Commit Graph

7 Commits

Author SHA1 Message Date
49e981a4b5 feat: enhance UI with screen lock, timer improvements and better styles
- Implement screen lock for iOS/Android (Wake Lock API + video workaround)
- Fix curtain reveal animation to prevent visual confusion
- Add audio alarm when timer ends for game and deliberation phases
- Improve overall UI/UX with scroll enhancements and mobile optimizations
2026-01-14 04:09:32 +01:00
f4b361016e feat: disable language toggle during active game
- Hide language toggle button when game is in progress
- Prevents language changes mid-game that could cause confusion
- Language button only visible in welcome and setup screens
- Auto-restores when returning to menu via exit button
2026-01-06 18:32:27 +01:00
b05a59706c 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
2026-01-06 18:30:42 +01:00
0704f73985 feat(i18n): add bilingual support with language detection and switching
- Implement comprehensive i18n system with Spanish and English translations
- Add automatic browser language detection with localStorage persistence
- Add language toggle button to switch between Spanish and English
- Create English word pools (Animals & Nature, Everyday Objects)
- Add language filtering system to show only pools matching current language
- Update all code comments and documentation to English
- Fix mobile layout issues (scroll, button sizing, responsive design)
- Add lang field to all word pools in manifest.json for proper filtering
2026-01-05 23:37:52 +01:00
3f3208a2cf Implement swipe-to-reveal card interaction with gravity effect
- Replace tap/click with swipe-up gesture for role reveal
- Add gravity effect: curtain falls back when released
- Support both touch (mobile) and mouse (desktop) events
- Real-time visual feedback while dragging
- Update UI text: "Mantén levantada la cortina para ver tu rol"
- Add grab/grabbing cursor for better UX

This creates a more secure and immersive reveal experience that
prevents accidental spoilers.
2026-01-05 22:42:24 +01:00
3693804d4e Add 22 word pools with impostor variants, multi-pool selection, and mobile-optimized UI
Features:
- Impostor-specific words: Each civilian word now has a related impostor word
- 22 word pools total (2 local offline, 20 remote)
- Multi-pool selection: Combine multiple categories simultaneously
- Descriptive category names based on content analysis

Word pools added:
- Local: Animales y Naturaleza (88), Objetos Cotidianos (99)
- Remote: Marcas y Empresas, Profesiones, Comida y Bebidas, Lugares del Mundo,
  Deportes, Películas y Series, Escuela, Tecnología, Vehículos, Instrumentos,
  Videojuegos, Personajes (Anime, Disney, Ficción), Artistas Latinos,
  Marcas de Lujo, Cuerpo Humano, Playa y Verano, Amor y Romance, Navidad

UI improvements:
- Mobile-first: No scrolling on main setup screen
- Compact layout: Reduced padding, margins, and font sizes
- Hidden scrollbar: Pool selector with gradient fade effect
- Responsive grid: 2-column pool buttons with smooth touch scrolling
- Updated labels: Shortened for better mobile fit

Technical changes:
- New word format: civilian_word|impostor_word in .txt files
- Updated manifest.json with all 22 pools
- Enhanced pickWords() to merge multiple selected pools
- Improved caching system for remote pools
- Cross-browser scrollbar hiding

Documentation:
- Updated README.md with all 22 pools and new features
- Added CHANGELOG.md with detailed changes
- Documented impostor word format and usage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 16:27:28 +01:00
8687cc638a Add offline impostor game with local word pools, voting tiebreaks, and docs 2025-12-27 17:47:00 +01:00