Files
web-imposter-game/styles.css
Dasemu 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

98 lines
6.7 KiB
CSS

/* Estilos móviles y UI principal */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 10px; color: white; overflow: hidden; }
.container { width: 100%; max-width: 480px; max-height: 100vh; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 16px; padding: 16px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37); display: flex; flex-direction: column; }
h1 { text-align: center; margin-bottom: 12px; font-size: 1.5em; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
h2 { text-align: center; margin: 8px 0; font-size: 1.2em; }
.screen { display: none; animation: fadeIn 0.25s ease; flex: 1; overflow-y: auto; }
.screen.active { display: flex; flex-direction: column; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 10px; }
.form-group.compact { margin-bottom: 6px; }
label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 0.9em; }
input { width: 100%; padding: 8px 10px; border: none; border-radius: 8px; font-size: 0.95em; background: rgba(255, 255, 255, 0.92); color: #333; }
input:focus { outline: 2px solid #f5576c; }
button { width: 100%; padding: 12px; border: none; border-radius: 10px; font-size: 1em; font-weight: 800; cursor: pointer; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.15s, box-shadow 0.15s; margin-top: 8px; }
button:active { transform: scale(0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
button.secondary { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #333; }
button.ghost { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.player-names-list { max-height: 280px; overflow-y: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.player-name-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; background: rgba(255,255,255,0.18); padding: 8px; border-radius: 8px; }
.player-name-item span { font-weight: 700; min-width: 76px; font-size: 0.9em; }
.player-name-item input { flex: 1; padding: 8px; margin: 0; font-size: 0.9em; }
.curtain { position: relative; width: 100%; height: 280px; background: #2d3748; border-radius: 14px; overflow: hidden; margin: 12px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.curtain-cover { position: absolute; inset: 0; background: linear-gradient(135deg, #ffa585 0%, #ffeda0 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 1.1em; font-weight: 800; color: #333; transition: transform 0.5s ease; z-index: 10; }
.curtain-cover.lifted { transform: translateY(-100%); }
.curtain-icon { font-size: 2.2em; }
.curtain-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; }
.role { font-size: 2em; font-weight: 800; padding: 10px 20px; border-radius: 12px; text-transform: uppercase; border: 3px solid transparent; }
.role.civil { background: rgba(74, 222, 128, 0.26); color: #4ade80; border-color: #4ade80; }
.role.impostor { background: rgba(239, 68, 68, 0.28); color: #ef4444; border-color: #ef4444; }
.word { font-size: 1.7em; font-weight: 800; background: rgba(255,255,255,0.16); padding: 16px 24px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.28); }
.timer { font-size: 2.8em; font-weight: 800; text-align: center; margin: 16px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); padding: 14px; background: rgba(0,0,0,0.22); border-radius: 12px; }
.timer.warning { color: #fbbf24; animation: pulse 1s infinite; }
.timer.danger { color: #ef4444; animation: pulse 0.55s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.info-text { text-align: center; margin: 10px 0; font-size: 0.95em; line-height: 1.5; background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; }
.player-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.player-item { padding: 14px 10px; background: rgba(255,255,255,0.2); border-radius: 10px; text-align: center; cursor: pointer; transition: transform 0.18s, background 0.18s, border 0.18s; font-weight: 700; font-size: 0.95em; border: 2px solid transparent; }
.player-item:active { transform: scale(0.96); }
.player-item.selected { background: #f5576c; border-color: #fff; box-shadow: 0 0 14px rgba(245, 87, 108, 0.6); }
.player-item .vote-count { display: block; font-size: 0.85em; margin-top: 4px; opacity: 0.88; }
.results { background: rgba(255,255,255,0.16); border-radius: 10px; padding: 14px; margin: 10px 0; max-height: 400px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.role-reveal { background: rgba(0,0,0,0.3); padding: 10px; border-radius: 8px; margin: 5px 0; border-left: 4px solid transparent; font-size: 0.9em; }
.role-reveal.civil-reveal { border-left-color: #4ade80; }
.role-reveal.impostor-reveal { border-left-color: #ef4444; }
.role-reveal.executed { opacity: 0.6; background: rgba(0,0,0,0.45); }
.tag { display: inline-block; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,0.18); margin: 3px 0; font-weight: 700; font-size: 0.85em; }
.pool-buttons {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
max-height: 200px;
overflow-y: auto;
padding: 4px 0;
-webkit-overflow-scrolling: touch;
/* Ocultar scrollbar en todos los navegadores */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
.pool-buttons::-webkit-scrollbar {
display: none; /* Chrome/Safari/Opera */
}
/* Wrapper para el efecto de degradado */
.pool-buttons-wrapper {
position: relative;
}
.pool-buttons-wrapper::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.4));
pointer-events: none;
border-radius: 0 0 8px 8px;
}
.pool-btn {
padding: 8px 6px;
border-radius: 8px;
border: 2px solid rgba(255,255,255,0.25);
background: rgba(255,255,255,0.16);
color: #fff;
font-weight: 700;
font-size: 0.85em;
cursor: pointer;
transition: transform 0.12s, border 0.12s, background 0.12s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pool-btn:hover { transform: translateY(-1px); }
.pool-btn.selected { border-color: #f093fb; background: rgba(240,147,251,0.3); box-shadow: 0 0 8px rgba(240,147,251,0.5); }