52 lines
5.7 KiB
CSS
52 lines
5.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: 20px; color: white; }
|
|
.container { width: 100%; max-width: 520px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 28px; box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37); }
|
|
h1 { text-align: center; margin-bottom: 22px; font-size: 1.9em; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
|
|
h2 { text-align: center; margin: 14px 0; font-size: 1.35em; }
|
|
.screen { display: none; animation: fadeIn 0.25s ease; }
|
|
.screen.active { display: block; }
|
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
|
|
.form-group { margin-bottom: 16px; }
|
|
label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 1.02em; }
|
|
input { width: 100%; padding: 12px 14px; border: none; border-radius: 10px; font-size: 1em; background: rgba(255, 255, 255, 0.92); color: #333; }
|
|
input:focus { outline: 2px solid #f5576c; }
|
|
button { width: 100%; padding: 16px; border: none; border-radius: 10px; font-size: 1.12em; 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: 10px; }
|
|
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: 300px; overflow-y: auto; margin-bottom: 10px; }
|
|
.player-name-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; background: rgba(255,255,255,0.18); padding: 10px; border-radius: 9px; }
|
|
.player-name-item span { font-weight: 700; min-width: 86px; }
|
|
.player-name-item input { flex: 1; padding: 10px; margin: 0; }
|
|
.curtain { position: relative; width: 100%; height: 340px; background: #2d3748; border-radius: 16px; overflow: hidden; margin: 18px 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: 14px; font-size: 1.24em; font-weight: 800; color: #333; transition: transform 0.5s ease; z-index: 10; }
|
|
.curtain-cover.lifted { transform: translateY(-100%); }
|
|
.curtain-icon { font-size: 2.6em; }
|
|
.curtain-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; text-align: center; }
|
|
.role { font-size: 2.4em; font-weight: 800; padding: 12px 24px; border-radius: 15px; 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: 2em; font-weight: 800; background: rgba(255,255,255,0.16); padding: 22px 32px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.28); }
|
|
.timer { font-size: 3.4em; font-weight: 800; text-align: center; margin: 24px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); padding: 18px; background: rgba(0,0,0,0.22); border-radius: 14px; }
|
|
.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: 16px 0; font-size: 1.05em; line-height: 1.6; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 10px; }
|
|
.player-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 18px 0; max-height: 360px; overflow-y: auto; }
|
|
.player-item { padding: 18px 12px; background: rgba(255,255,255,0.2); border-radius: 12px; text-align: center; cursor: pointer; transition: transform 0.18s, background 0.18s, border 0.18s; font-weight: 700; font-size: 1.04em; border: 2px solid transparent; }
|
|
.player-item:active { transform: scale(0.96); }
|
|
.player-item.selected { background: #f5576c; border-color: #fff; box-shadow: 0 0 18px rgba(245, 87, 108, 0.6); }
|
|
.player-item .vote-count { display: block; font-size: 0.9em; margin-top: 6px; opacity: 0.88; }
|
|
.results { background: rgba(255,255,255,0.16); border-radius: 12px; padding: 20px; margin: 18px 0; }
|
|
.role-reveal { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 10px; margin: 7px 0; border-left: 4px solid transparent; }
|
|
.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: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.18); margin: 4px 0; font-weight: 700; }
|
|
.pool-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 0; }
|
|
.pool-btn { padding: 10px 12px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.16); color: #fff; font-weight: 700; cursor: pointer; transition: transform 0.12s, border 0.12s, background 0.12s; }
|
|
.pool-btn:hover { transform: translateY(-1px); }
|
|
.pool-btn.selected { border-color: #f093fb; background: rgba(240,147,251,0.2); box-shadow: 0 0 10px rgba(240,147,251,0.4); }
|
|
|