:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px}#root{min-height:100vh}*{box-sizing:border-box;margin:0;padding:0}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:linear-gradient(135deg,#0a1628,#1a2744);min-height:100vh;color:#e5e7eb}.app{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:1rem}.app-content{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.app-footer{width:100%;max-width:500px;padding:1.5rem 1rem;text-align:center;color:#9ca3af;font-size:.9rem;margin-top:2rem}.app-footer .copyright{margin-bottom:.5rem}.app-footer .creator{margin:0;display:flex;justify-content:center;gap:1rem;align-items:center}.app-footer .social-link{color:#9ca3af;text-decoration:none;font-size:1.5rem;transition:all .3s;display:inline-flex;align-items:center;justify-content:center}.app-footer .social-link:hover{color:#6366f1;transform:translateY(-2px)}.app-footer .social-link i{transition:transform .3s}.app-footer .social-link:hover i{transform:scale(1.1)}.top-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.rules-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.9rem;font-weight:600;background:#ffffff1a;color:#9ca3af;border:2px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;transition:all .3s}.rules-button:hover{background:#ffffff26;color:#e5e7eb;border-color:#ffffff4d}.rules-button i{font-size:1rem}.modal-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.rules-modal{background:#1e293b;border-radius:16px;max-width:600px;width:100%;max-height:85vh;overflow-y:auto;position:relative;border:1px solid rgba(255,255,255,.1);box-shadow:0 25px 50px -12px #00000080;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-close{position:absolute;top:1rem;right:1rem;background:#ffffff1a;border:none;color:#9ca3af;width:36px;height:36px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.1rem;transition:all .2s;z-index:10}.modal-close:hover{background:#fff3;color:#fff}.rules-content{padding:2rem}.rules-section{color:#e5e7eb}.rules-section h2{font-size:1.4rem;margin-bottom:1rem;color:#fff;display:flex;align-items:center;gap:.5rem}.rules-section ol{padding-left:1.5rem;margin-bottom:1rem}.rules-section li{margin-bottom:.6rem;line-height:1.5}.rules-section strong{color:#a5b4fc}.rules-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);margin:1.5rem 0}.mode-explanation{background:#6366f11a;border:1px solid rgba(99,102,241,.3);border-radius:10px;padding:1rem;margin-top:1rem}.mode-explanation h4{color:#a5b4fc;margin-bottom:.5rem;font-size:1rem}.mode-explanation ul{padding-left:1.2rem;margin:0}.mode-explanation li{margin-bottom:.4rem;font-size:.95rem}.language-switcher{display:flex;gap:.5rem}.lang-button{padding:.5rem 1rem;font-size:.9rem;font-weight:600;background:#ffffff1a;color:#9ca3af;border:2px solid rgba(255,255,255,.2);border-radius:8px;cursor:pointer;transition:all .3s}.lang-button:hover{background:#ffffff26;color:#e5e7eb}.lang-button.active{background:#6366f14d;border-color:#6366f1;color:#fff}.header-logo{text-align:center;margin-bottom:2rem}.header-logo img{max-width:100%;height:auto;max-height:120px}.setup-screen{background:#1e293b;border-radius:20px;padding:2rem;max-width:500px;width:100%;box-shadow:0 20px 60px #00000080;border:1px solid rgba(255,255,255,.1)}.game-title{font-size:2.5rem;color:#fff;margin-bottom:2rem;text-align:center}.setup-section{margin-bottom:1.5rem}.setup-label{display:block;font-size:1.1rem;font-weight:600;color:#f3f4f6;margin-bottom:.5rem;text-align:left}.number-input{width:100%;padding:.75rem;font-size:1.2rem;border:2px solid rgba(255,255,255,.2);border-radius:10px;margin-top:.5rem;background:#ffffff0d;color:#fff;transition:all .3s}.number-input:focus{outline:none;border-color:#6366f1;background:#ffffff1a}.select-input{width:100%;padding:.75rem;font-size:1.1rem;border:2px solid rgba(255,255,255,.2);border-radius:10px;background:#ffffff0d;color:#fff;cursor:pointer;transition:all .3s}.select-input option{background:#1e293b;color:#fff}.select-input:focus{outline:none;border-color:#6366f1;background:#ffffff1a}.category-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.category-header .setup-label{margin-bottom:0}.select-all-btn{padding:.4rem .8rem;font-size:.85rem;background:#6366f133;border:1px solid rgba(99,102,241,.4);border-radius:6px;color:#a5b4fc;cursor:pointer;transition:all .2s}.select-all-btn:hover{background:#6366f14d;color:#c7d2fe}.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.category-checkbox{display:flex;align-items:center;gap:.5rem;padding:.6rem .8rem;background:#ffffff0d;border:2px solid rgba(255,255,255,.15);border-radius:8px;cursor:pointer;transition:all .2s;-webkit-user-select:none;user-select:none}.category-checkbox:hover{background:#ffffff14;border-color:#ffffff40}.category-checkbox.selected{background:#6366f133;border-color:#6366f1}.category-checkbox input[type=checkbox]{width:18px;height:18px;accent-color:#6366f1;cursor:pointer}.category-checkbox .category-name{font-size:.95rem;color:#e5e7eb;font-weight:500}.category-checkbox.selected .category-name{color:#fff}.button-group{display:flex;gap:.5rem;flex-wrap:wrap}.option-button{flex:1;min-width:100px;padding:.75rem 1rem;font-size:1rem;border:2px solid rgba(255,255,255,.2);border-radius:10px;background:#ffffff0d;color:#e5e7eb;cursor:pointer;transition:all .3s;font-weight:500}.option-button:hover{border-color:#6366f1;background:#6366f126;color:#fff}.option-button.active{border-color:#6366f1;background:#6366f1;color:#fff}.error-message{background:#ef444426;color:#fca5a5;padding:1rem;border-radius:10px;margin-top:1rem;text-align:center;font-weight:500;border:1px solid rgba(239,68,68,.3)}.start-button{width:100%;padding:1rem;font-size:1.3rem;font-weight:700;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:15px;cursor:pointer;margin-top:2rem;box-shadow:0 10px 30px #6366f166;transition:transform .2s,box-shadow .2s}.start-button:hover{transform:translateY(-2px);box-shadow:0 15px 40px #6366f180}.start-button:active{transform:translateY(0)}.reveal-screen{background:#1e293b;border-radius:20px;padding:2rem;max-width:500px;width:100%;box-shadow:0 20px 60px #00000080;border:1px solid rgba(255,255,255,.1);min-height:400px;display:flex;flex-direction:column}.progress-indicator{text-align:center;font-size:1.1rem;color:#9ca3af;margin-bottom:2rem;font-weight:600}.reveal-prompt{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.reveal-prompt h2{font-size:2.5rem;color:#fff;margin-bottom:1rem}.instruction{font-size:1.1rem;color:#9ca3af;margin-bottom:2rem}.reveal-button{padding:1.5rem 3rem;font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:15px;cursor:pointer;box-shadow:0 10px 30px #6366f166;transition:transform .2s,box-shadow .2s}.reveal-button:hover{transform:translateY(-2px);box-shadow:0 15px 40px #6366f180}.reveal-button:active{transform:scale(.98)}.role-display{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1rem}.role-display h2{font-size:2rem;margin-bottom:1.5rem}.word-display{font-size:3rem;font-weight:700;padding:1.5rem 2rem;border-radius:15px;margin-bottom:1rem}.hint-display{font-size:1.2rem;color:#9ca3af;margin-bottom:1.5rem;font-style:italic}.message{font-size:1.1rem;color:#9ca3af;margin-bottom:2rem;max-width:400px}.player-role h2{color:#10b981}.player-role .word-display{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.imposter-role h2{color:#ef4444}.imposter-role .word-display{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.next-button{padding:1rem 2rem;font-size:1.2rem;font-weight:700;background:#6366f1;color:#fff;border:none;border-radius:12px;cursor:pointer;transition:all .2s}.next-button:hover{background:#4f46e5;transform:translateY(-2px)}.discussion-screen{background:#1e293b;border-radius:20px;padding:2rem;max-width:500px;width:100%;box-shadow:0 20px 60px #00000080;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column}.discussion-content{display:flex;flex-direction:column;align-items:center;text-align:center}.discussion-title{font-size:2.5rem;color:#fff;margin-bottom:2rem}.discussion-instructions{width:100%;margin-bottom:2rem}.discussion-text{font-size:1.1rem;color:#e5e7eb;line-height:1.6;margin-bottom:2rem}.discussion-tips{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:15px;padding:1.5rem;text-align:left}.discussion-tips h3{font-size:1.2rem;color:#818cf8;margin-bottom:1rem}.discussion-tips ul{list-style-position:inside;color:#9ca3af;line-height:1.8}.discussion-tips li{font-size:1rem;margin-bottom:.5rem}.discussion-tips li:last-child{margin-bottom:0}.reveal-imposters-button{width:100%;padding:1rem;font-size:1.3rem;font-weight:700;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;border-radius:15px;cursor:pointer;margin-top:2rem;box-shadow:0 10px 30px #ef444466;transition:transform .2s,box-shadow .2s}.reveal-imposters-button:hover{transform:translateY(-2px);box-shadow:0 15px 40px #ef444480}.reveal-imposters-button:active{transform:translateY(0)}.complete-screen{background:#1e293b;border-radius:20px;padding:2rem;max-width:600px;width:100%;box-shadow:0 20px 60px #00000080;border:1px solid rgba(255,255,255,.1);max-height:90vh;overflow-y:auto}.complete-title{font-size:2.5rem;color:#fff;margin-bottom:2rem;text-align:center}.game-info{background:#ffffff0d;border-radius:15px;padding:1.5rem;margin-bottom:2rem;border:1px solid rgba(255,255,255,.1)}.info-section{margin-bottom:1rem}.info-section:last-child{margin-bottom:0}.info-section h2{font-size:1.1rem;color:#9ca3af;margin-bottom:.5rem}.word-reveal{font-size:2rem;font-weight:700;color:#10b981}.category-reveal,.mode-reveal{font-size:1.3rem;color:#818cf8;font-weight:600}.imposters-section{margin-bottom:2rem}.imposters-section h2{font-size:1.5rem;color:#f87171;margin-bottom:1rem}.imposters-list{display:flex;flex-wrap:wrap;gap:.5rem}.imposter-item{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;padding:.75rem 1.5rem;border-radius:10px;font-weight:600}.players-summary h3{font-size:1.3rem;color:#f3f4f6;margin-bottom:1rem}.players-grid{display:grid;gap:.5rem}.player-summary{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#ffffff0d;border-radius:10px;border:2px solid rgba(255,255,255,.1)}.player-summary.was-imposter{background:#ef444426;border-color:#ef44444d}.player-num{font-weight:600;color:#f3f4f6}.player-word{color:#9ca3af;font-size:.95rem}.new-game-button{width:100%;padding:1rem;font-size:1.3rem;font-weight:700;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;border-radius:15px;cursor:pointer;margin-top:2rem;box-shadow:0 10px 30px #6366f166;transition:transform .2s,box-shadow .2s}.new-game-button:hover{transform:translateY(-2px);box-shadow:0 15px 40px #6366f180}.new-game-button:active{transform:translateY(0)}@media(max-width:640px){.setup-screen,.reveal-screen,.complete-screen{padding:1.5rem;border-radius:15px}.game-title,.complete-title{font-size:2rem}.word-display{font-size:2.5rem}.button-group{flex-direction:column}.option-button{width:100%}.players-grid{grid-template-columns:1fr}}@media(max-width:400px){.game-title,.complete-title{font-size:1.5rem}.word-display{font-size:2rem;padding:1rem}.reveal-prompt h2{font-size:2rem}}
