.ai-status-graph{background:linear-gradient(135deg,#1a1a1a,#0f0f0f);border:2px solid #333;border-radius:12px;padding:30px;color:#fff;width:100%;max-width:900px;margin:0 auto;font-family:Courier New,monospace;box-shadow:0 8px 32px #00000080}.graph-title{margin:0 0 25px;text-align:center;font-size:1.6em;font-weight:700;color:#0ff;text-transform:uppercase;letter-spacing:2px;text-shadow:0 0 10px rgba(0,255,255,.5)}.graph-title.warning{color:#f44;text-shadow:0 0 20px rgba(255,68,68,.8);animation:warningFlash 1s infinite}.scientific-graph-container{background:#000;border:3px solid #333;border-radius:8px;padding:10px;margin-bottom:20px;box-shadow:inset 0 0 20px #000c;display:flex;justify-content:center;align-items:center;overflow-x:auto}.scientific-graph{background:#000;border-radius:4px;max-width:100%;height:auto}.phase-info{display:flex;justify-content:center;align-items:center;margin-top:15px}.phase-indicator{padding:8px 16px;border-radius:6px;font-weight:700;font-size:1.1em;border:2px solid;background:#000000b3;text-transform:uppercase;letter-spacing:1px}.phase-indicator.phase-1{border-color:#4caf50;color:#4caf50;box-shadow:0 0 15px #4caf504d}.phase-indicator.phase-2{border-color:#ffc107;color:#ffc107;box-shadow:0 0 15px #ffc1074d}.phase-indicator.phase-3{border-color:#f44336;color:#f44336;box-shadow:0 0 15px #f443364d}.legend text{font-family:Courier New,monospace}@media (max-width: 768px){.ai-status-graph{padding:15px}.scientific-graph-container{overflow-x:auto}.scientific-graph{min-width:600px}.graph-title,.graph-title.warning{font-size:1.3em}}@keyframes pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}.scientific-graph circle{animation:pulse 2s infinite}@keyframes warningFlash{0%{text-shadow:0 0 20px rgba(255,68,68,.8)}50%{text-shadow:0 0 30px rgba(255,68,68,1)}to{text-shadow:0 0 20px rgba(255,68,68,.8)}}@keyframes backgroundFlash{0%{background:#000;box-shadow:inset 0 0 20px #000c}50%{background:#ff44441a;box-shadow:inset 0 0 20px #ff44444d}to{background:#000;box-shadow:inset 0 0 20px #000c}}.scientific-graph-container.warning-background{animation:backgroundFlash 1.5s infinite;border-color:#f44}.player-leaders{background:#1a1a1a;border-radius:8px;padding:12px;color:#fff;width:100%;max-width:800px;margin:0 auto}.player-leaders h3{margin:0 0 20px;text-align:center;font-size:1.5em;color:#ff4d4d;border-bottom:2px solid #333;padding-bottom:10px}.leader-item{display:flex;justify-content:space-between;align-items:center;padding:8px;margin:4px 0;background:#ffffff0d;border-radius:6px;transition:background .2s ease}.leader-item:hover{background:#ffffff1a}.leader-role{font-weight:700;display:flex;align-items:center;gap:8px}.leader-name{color:#4caf50}.leadership-info{margin-top:20px;padding:15px;background:#ffffff0d;border-radius:6px}.leadership-info p{margin:0 0 10px;color:#ff4d4d}.leadership-info ul{list-style:none;padding:0;margin:0}.leadership-info li{margin:8px 0;padding-left:20px;position:relative}.leadership-info li:before{content:"•";position:absolute;left:0;color:#4caf50}.leadership-info strong{color:#ffc107}.legacy-leader{margin-top:0;margin-bottom:8px;padding:10px;background:linear-gradient(45deg,#ffd7001a,#ffd70033);border-radius:6px;border:1px solid rgba(255,215,0,.3)}.legacy-leader-title{display:flex;align-items:center;gap:8px;color:gold;font-weight:700;margin-bottom:8px}.legacy-leader-name{color:gold;font-size:1.1em}.legacy-leaderboard{display:flex;flex-direction:column;gap:4px}.legacy-player-item{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;background:#0003;border-radius:4px;transition:background .2s ease}.legacy-player-item:hover{background:#0000004d}.legacy-player-item.rank-1{background:#ffd70033;border:1px solid rgba(255,215,0,.4)}.legacy-player-item.rank-2{background:#c0c0c026;border:1px solid rgba(192,192,192,.3)}.legacy-player-item.rank-3{background:#cd7f3226;border:1px solid rgba(205,127,50,.3)}.rank-indicator{display:flex;align-items:center;gap:6px;font-size:1.1em}.rank-number{font-size:.9em;color:#ccc}.legacy-player-name{flex:1;margin-left:12px;font-weight:700;color:gold}.legacy-player-item.rank-2 .legacy-player-name{color:silver}.legacy-player-item.rank-3 .legacy-player-name{color:#cd7f32}.legacy-player-points{font-weight:700;color:#4caf50;font-size:.95em}.confirmation-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.confirmation-dialog{background:#ffffff1a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:30px;max-width:500px;width:100%;box-shadow:0 20px 40px #0006;animation:dialogAppear .3s ease-out}@keyframes dialogAppear{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.dialog-header{display:flex;align-items:center;gap:15px;margin-bottom:20px}.dialog-icon{font-size:2em;flex-shrink:0}.dialog-title{color:#f1f5f9;font-size:1.5em;font-weight:600;margin:0}.dialog-content{margin-bottom:30px}.dialog-message{color:#cbd5e1;font-size:1.1em;line-height:1.6;margin:0;text-align:left}.dialog-actions{display:flex;gap:15px;justify-content:flex-end}.dialog-button{padding:12px 24px;border:none;border-radius:12px;font-size:1em;font-weight:600;cursor:pointer;transition:all .3s ease;min-width:100px}.cancel-button{background:#64748b33;border:2px solid rgba(100,116,139,.4);color:#94a3b8}.cancel-button:hover{background:#64748b4d;border-color:#64748b99;color:#fff;transform:translateY(-2px)}.confirm-button{color:#fff;font-weight:700}.confirm-button.warning{background:linear-gradient(135deg,#f59e0b,#d97706);border:2px solid rgba(245,158,11,.4);box-shadow:0 4px 15px #f59e0b4d}.confirm-button.warning:hover{background:linear-gradient(135deg,#fbbf24,#f59e0b);transform:translateY(-2px);box-shadow:0 6px 20px #f59e0b66}.confirm-button.danger{background:linear-gradient(135deg,#ef4444,#dc2626);border:2px solid rgba(239,68,68,.4);box-shadow:0 4px 15px #ef44444d}.confirm-button.danger:hover{background:linear-gradient(135deg,#f87171,#ef4444);transform:translateY(-2px);box-shadow:0 6px 20px #ef444466}.confirm-button.info{background:linear-gradient(135deg,#3b82f6,#2563eb);border:2px solid rgba(59,130,246,.4);box-shadow:0 4px 15px #3b82f64d}.confirm-button.info:hover{background:linear-gradient(135deg,#60a5fa,#3b82f6);transform:translateY(-2px);box-shadow:0 6px 20px #3b82f666}.dialog-button:active{transform:translateY(0)}@media (max-width: 768px){.confirmation-dialog{padding:25px 20px;margin:20px}.dialog-title{font-size:1.3em}.dialog-message{font-size:1em}.dialog-actions{flex-direction:column-reverse;gap:10px}.dialog-button{width:100%;padding:14px 20px}}.session-creation-screen{min-height:100vh;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f172a);display:flex;align-items:center;justify-content:center;padding:20px;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.session-creation-container{max-width:800px;width:100%;background:#ffffff14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;border:1px solid rgba(255,255,255,.2);padding:40px;text-align:center;box-shadow:0 20px 40px #0000004d;position:relative}.session-header h1{color:#fff;font-size:3em;margin:20px 0 10px;font-weight:700;text-shadow:0 2px 10px rgba(0,0,0,.5)}.session-header .subtitle{color:#94a3b8;font-size:1.2em;margin:0 0 40px;font-weight:300}.session-quick-actions{display:flex;justify-content:center;gap:12px;margin:-10px 0 20px}.quick-action{background:#ffffff14;border:1px solid rgba(255,255,255,.18);color:#e2e8f0;padding:10px 14px;border-radius:12px;font-size:.95em;font-weight:600;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.quick-action:hover{background:#ffffff1f;transform:translateY(-1px)}.quick-action.trailer{border-color:#ef444459}.quick-action.tutorial{border-color:#3b82f659}.quick-action.feedback{border-color:#10b981a6;background:linear-gradient(135deg,#10b98140,#22c55e33);box-shadow:0 8px 24px #22c55e59}.quick-action.feedback:hover{background:linear-gradient(135deg,#10b98159,#22c55e4d)}.qa-icon{font-size:1.1em}.session-content{display:flex;flex-direction:column;gap:40px}.welcome-section h2{color:#f1f5f9;font-size:2.2em;margin:0 0 20px;font-weight:600}.welcome-section p{color:#cbd5e1;font-size:1.1em;line-height:1.6;max-width:600px;margin:0 auto}.game-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin:20px 0}.info-card{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:15px;padding:25px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:transform .2s ease,background-color .2s ease}.info-card:hover{transform:translateY(-2px);background:#ffffff14}.info-icon{font-size:2.5em;margin-bottom:15px}.info-text h3{color:#f1f5f9;font-size:1.3em;margin:0 0 10px;font-weight:600}.info-text p{color:#94a3b8;font-size:1em;margin:0;line-height:1.4}.create-session-section{display:flex;flex-direction:column;align-items:center;gap:20px}.password-section{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:400px}.password-label{color:#f1f5f9;font-size:1.1em;font-weight:600;text-align:center}.password-input{width:100%;max-width:320px;padding:15px 20px;border:2px solid rgba(255,255,255,.2);border-radius:12px;background:#ffffff14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#f1f5f9;font-size:1.1em;text-align:center;transition:all .3s ease}.password-input::placeholder{color:#94a3b8;font-style:italic}.password-input:focus{outline:none;border-color:#10b98199;background:#ffffff1f;box-shadow:0 0 20px #10b98133}.password-input.error{border-color:#ef444499;background:#ef44440d;box-shadow:0 0 20px #ef444433}.password-input:disabled{opacity:.6;cursor:not-allowed}.error-message{display:flex;align-items:center;gap:8px;color:#f87171;font-size:1em;font-weight:500;text-align:center;max-width:320px;line-height:1.4}.error-icon{font-size:1.2em;flex-shrink:0}.create-lobby-button{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border:none;border-radius:15px;padding:20px 40px;font-size:1.3em;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:12px;min-width:300px;justify-content:center;box-shadow:0 8px 25px #dc26264d}.create-lobby-button:hover:not(:disabled){background:linear-gradient(135deg,#ef4444,#dc2626);transform:translateY(-2px);box-shadow:0 12px 35px #dc262666}.create-lobby-button:active:not(:disabled){transform:translateY(0)}.create-lobby-button:disabled,.create-lobby-button.disabled{opacity:.5;cursor:not-allowed;transform:none;background:linear-gradient(135deg,#64748b,#475569);box-shadow:0 8px 25px #64748b33}.create-lobby-button.loading{background:linear-gradient(135deg,#94a3b8,#64748b);box-shadow:0 8px 25px #64748b4d}.loading-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.create-help-text{color:#94a3b8;font-size:1em;margin:0;max-width:400px;line-height:1.5}.session-header-actions{position:absolute;top:16px;right:16px;display:flex;align-items:center;gap:10px}.user-pill{background:#ffffff14;border:1px solid rgba(255,255,255,.18);color:#e2e8f0;padding:6px 10px;border-radius:999px;font-size:.95em}.signout-button{background:linear-gradient(135deg,#64748b,#475569);color:#fff;border:none;border-radius:10px;padding:10px 12px;font-size:.95em;font-weight:600;cursor:pointer;transition:all .25s ease;box-shadow:0 6px 16px #47556959}.signout-button:hover{background:linear-gradient(135deg,#94a3b8,#64748b);transform:translateY(-1px);box-shadow:0 10px 22px #47556973}.signout-button:active{transform:translateY(0)}.session-created-section{text-align:center}.join-code-display{background:#22c55e1a;border:2px solid rgba(34,197,94,.3);border-radius:15px;padding:30px;margin:20px 0}.join-code-display h3{color:#22c55e;font-size:1.8em;margin:0 0 20px;font-weight:600}.join-code{display:flex;align-items:center;justify-content:center;gap:15px;margin:20px 0}.join-code-label{color:#94a3b8;font-size:1.1em;font-weight:500}.join-code-value{background:#22c55e33;color:#22c55e;font-size:2.5em;font-weight:700;font-family:Courier New,monospace;padding:15px 25px;border-radius:12px;border:2px solid rgba(34,197,94,.4);letter-spacing:.15em;text-shadow:0 2px 4px rgba(34,197,94,.3)}.join-instructions{color:#e2e8f0;font-size:1.1em;margin:20px 0 0;line-height:1.5}.session-footer{border-top:1px solid rgba(255,255,255,.1);padding-top:30px;margin-top:20px}.connection-status{margin:0}.status{display:inline-flex;align-items:center;gap:8px;font-size:1.1em;font-weight:500}.status.connecting{color:#fbbf24}.floating-feedback{position:fixed;right:22px;bottom:22px;padding:14px 18px;border-radius:999px;border:none;cursor:pointer;background:linear-gradient(135deg,#10b981,#22c55e);color:#fff;font-weight:700;box-shadow:0 12px 30px #10b98173;z-index:999;animation:fb-pulse 2.4s ease-in-out infinite}.floating-feedback:hover{transform:translateY(-1px);box-shadow:0 16px 36px #10b9818c}@keyframes fb-pulse{0%,to{filter:saturate(1)}50%{filter:saturate(1.25)}}.status.ready{color:#10b981}@media (max-width: 768px){.session-creation-container{padding:30px 20px;margin:10px}.session-header h1{font-size:2.2em}.welcome-section h2{font-size:1.8em}.game-info{grid-template-columns:1fr}.create-lobby-button{min-width:280px;padding:18px 35px;font-size:1.2em}}@media (max-width: 480px){.session-creation-container{padding:25px 15px}.session-header h1{font-size:1.8em}.session-header .subtitle{font-size:1em}.welcome-section h2{font-size:1.5em}.create-lobby-button{min-width:260px;padding:16px 30px;font-size:1.1em}}.feedback-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.feedback-modal{width:min(680px,92vw);background:#101317;color:#e6ebf2;border:1px solid #223044;border-radius:12px;box-shadow:0 10px 30px #00000080}.feedback-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #223044}.feedback-header h3{margin:0;font-size:18px}.close-btn{border:none;background:transparent;color:#9fb3c8;font-size:22px;cursor:pointer}.feedback-body{padding:16px}.helper{margin:0 0 8px;color:#9fb3c8;font-size:13px}.sliders{display:grid;gap:12px}.slider-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px}.slider-label{color:#c8d6e5}.slider-value{width:20px;text-align:right;color:#9fb3c8}.slider-row input[type=range]{width:100%}.comments{display:grid;gap:8px;margin-top:16px}.comments textarea{width:100%;resize:vertical;background:#0c0f13;color:#e6ebf2;border:1px solid #223044;border-radius:8px;padding:10px}.feedback-footer{padding:14px 16px 16px;display:flex;align-items:center;gap:12px;border-top:1px solid #223044}.submit-btn{margin-left:auto;background:#2b8a3e;color:#fff;border:none;border-radius:8px;padding:10px 14px;cursor:pointer}.error{color:#ff6b6b;font-size:14px}.success{color:#51cf66;font-size:14px}.login-trailer-screen{position:relative;width:100vw;height:100vh;overflow:hidden;background:#0b1020}.trailer-video{position:absolute;top:50%;left:50%;min-width:100%;min-height:100%;width:auto;height:auto;transform:translate(-50%,-50%);object-fit:cover;filter:saturate(1.05) contrast(1.02) brightness(.9)}.trailer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#060b1973,#060b1999 40%,#060b19d9)}.video-vignette{pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;box-shadow:inset 0 0 180px 80px #000000a6}.beta-banner{position:absolute;top:18px;right:18px;display:inline-flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#0f172a99;border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#e2e8f0;z-index:4}.beta-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.08em;color:#fff;background:linear-gradient(135deg,#f59e0b,#d97706);box-shadow:0 6px 18px #f59e0b59}.beta-copy{font-size:13px;font-weight:700;color:#f1f5f9}.trailer-content{position:absolute;left:50%;bottom:12vh;transform:translate(-50%);width:min(920px,calc(100% - 40px));display:flex;flex-direction:column;align-items:center;text-align:center;color:#e2e8f0}.brand{display:flex;align-items:center;gap:14px;margin-bottom:10px}.brand-mark{font-size:32px;filter:drop-shadow(0 4px 12px rgba(255,255,255,.18))}.brand-title{margin:0;font-size:clamp(28px,5vw,56px);font-weight:800;letter-spacing:.02em;color:#fff;text-shadow:0 10px 24px rgba(0,0,0,.5)}.tagline{margin:6px 0 26px;font-size:clamp(14px,2.2vw,20px);color:#cbd5e1;opacity:.95}.login-cta{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border:none;border-radius:14px;padding:16px 28px;font-size:clamp(14px,2.4vw,18px);font-weight:700;cursor:pointer;transition:all .25s ease;display:inline-flex;align-items:center;gap:10px;box-shadow:0 12px 30px #dc262659}.login-cta:hover:not(:disabled){transform:translateY(-2px);background:linear-gradient(135deg,#ef4444,#dc2626);box-shadow:0 16px 42px #dc262673}.login-cta:disabled,.login-cta.loading{opacity:.7;cursor:not-allowed;background:linear-gradient(135deg,#64748b,#475569);box-shadow:0 10px 24px #64748b4d}.loading-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.footnote{margin-top:12px;font-size:12px;color:#94a3b8;opacity:.9}.login-error{margin:0 0 14px;color:#f87171;display:inline-flex;align-items:center;gap:8px;background:#f8717114;border:1px solid rgba(248,113,113,.25);padding:8px 10px;border-radius:10px}.consent-row{margin:10px 0 12px;color:#cbd5e1;font-size:13px;max-width:680px}.consent-label{display:inline-flex;align-items:flex-start;gap:10px;-webkit-user-select:none;user-select:none}.consent-checkbox{width:18px;height:18px;margin-top:2px}.consent-row a{color:#93c5fd;text-decoration:underline}.consent-row a:hover{color:#bfdbfe}@media (max-width: 640px){.trailer-content{bottom:10vh;width:calc(100% - 28px)}.beta-banner{top:12px;right:12px;gap:8px;padding:8px 10px}.beta-copy{font-size:12px}}.tablet-app{width:100vw;height:100vh;background:linear-gradient(135deg,#0f0f23,#1a1a2e,#16213e);color:#e94560;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;display:flex;flex-direction:column;overflow:auto}.tablet-app.connecting{justify-content:center;align-items:center}.connection-status{text-align:center;padding:2rem}.connection-status h1{color:#e94560;margin-bottom:1rem}.loading-spinner{width:50px;height:50px;border:3px solid #1a1a2e;border-top:3px solid #e94560;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}.app-header{background:#e945601a;padding:1rem 2rem;border-bottom:2px solid #e94560;display:flex;justify-content:space-between;align-items:center}.app-header h1{margin:0;font-size:1.8rem;color:#e94560}.header-info{display:flex;align-items:center;gap:20px}.game-code{font-size:1.2em;padding:8px 16px;background:#ffffff1a;border-radius:8px;display:flex;align-items:center}.game-code strong{margin-left:8px;color:#4caf50;letter-spacing:2px}.connection-indicator{display:flex;align-items:center;gap:8px;font-size:.9em;opacity:.8}.status-dot{width:8px;height:8px;border-radius:50%;margin-right:4px}.status-dot.connected{background-color:#4caf50;box-shadow:0 0 8px #4caf50}.status-dot.disconnected{background-color:#f44336;box-shadow:0 0 8px #f44336}.app-content{flex:1;display:flex;flex-direction:column;padding:2rem;overflow-y:auto}.lobby-display{min-height:100vh;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);padding:2rem;display:flex;flex-direction:column;gap:2rem}.lobby-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;background:#ffffff14;border-radius:20px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1)}.game-title h1{color:#fff;font-size:2.5rem;margin:0;font-weight:700;background:linear-gradient(135deg,#ff6b6b,orange,#4ecdc4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.game-title .subtitle{color:#a0a0a0;font-size:1rem;margin:.5rem 0 0;font-weight:400}.header-actions{display:flex;gap:1rem}.header-button{display:flex;align-items:center;gap:.75rem;padding:.75rem 1.5rem;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1)}.intro-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.tutorial-button{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff}.header-button:hover{transform:translateY(-2px);box-shadow:0 10px 25px #0000004d}.button-icon{font-size:1.2rem}.lobby-content{display:flex;flex-direction:column;gap:2rem;flex:1}.lobby-main{display:grid;grid-template-columns:1fr 2fr;gap:2rem}.join-card,.players-card{background:#ffffff14;border-radius:20px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);overflow:hidden}.card-header{padding:1.5rem 2rem 1rem;border-bottom:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center}.card-header h3{color:#fff;font-size:1.5rem;margin:0;font-weight:600}.card-content{padding:2rem}.join-code-display{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-bottom:2rem}.join-label{color:#a0a0a0;font-size:.9rem;font-weight:500;text-transform:uppercase;letter-spacing:.1rem}.join-code{font-size:3rem;font-weight:900;color:#fff;letter-spacing:.5rem;text-shadow:0 0 20px rgba(255,255,255,.3)}.divider{display:flex;align-items:center;margin:1.5rem 0;color:#666;font-size:.9rem;font-weight:600}.divider:before,.divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);margin:0 1rem}.qr-section{display:flex;flex-direction:column;align-items:center;gap:1rem}.qr-label{color:#a0a0a0;font-size:.9rem;font-weight:500;text-transform:uppercase;letter-spacing:.1rem}.qr-container{padding:1rem;background:#fff;border-radius:16px;box-shadow:0 10px 30px #0000004d}.qr-code{width:150px;height:150px;border-radius:8px}.join-section{display:grid;grid-template-columns:2fr 3fr;gap:1.5rem;margin-bottom:1.5rem;flex-shrink:0}.join-code{background:#e9456033;border:2px solid #e94560;border-radius:10px;padding:1.2rem;display:flex;flex-direction:column;justify-content:center}.qr-code-section{background:#2ed57333;border:2px solid #2ed573;border-radius:10px;padding:1.2rem;text-align:center;display:flex;flex-direction:column;justify-content:center}.qr-code-section h3{margin:0 0 .5rem;color:#2ed573}.qr-code-section p{margin:0 0 1rem;color:#fff;font-size:.9rem}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:.5rem}.qr-code{border-radius:8px;background:#fff;padding:10px;box-shadow:0 4px 8px #0000004d}.mobile-url{font-size:.8rem!important;color:#a4b0be!important;font-family:monospace;margin:0!important}.player-counter{display:flex;align-items:center;gap:.25rem;background:#ffffff1a;padding:.5rem 1rem;border-radius:20px;font-weight:600}.player-counter .count{color:#4ecdc4;font-size:1.1rem}.player-counter .max{color:#a0a0a0;font-size:1rem}.empty-state{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:3rem 1rem;color:#a0a0a0;text-align:center}.empty-icon{font-size:3rem;opacity:.5}.players-grid{display:flex;flex-direction:column;gap:1rem}.player-card{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:#ffffff0d;border-radius:16px;transition:all .3s ease;border:1px solid rgba(255,255,255,.1)}.player-card:hover{background:#ffffff14;transform:translateY(-2px);box-shadow:0 8px 25px #0003}.player-card.just-joined{animation:playerJoin 2s ease}@keyframes playerJoin{0%{background:#4ccdc44d;transform:scale(.95);box-shadow:0 0 30px #4ccdc480}50%{transform:scale(1.02)}to{background:#ffffff0d;transform:scale(1);box-shadow:0 8px 25px #0003}}.player-avatar{position:relative;width:60px;height:60px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;color:#fff;flex-shrink:0}.status-indicator{position:absolute;bottom:2px;right:2px;width:18px;height:18px;border-radius:50%;border:3px solid #1a1a2e;transition:all .3s ease}.status-indicator.online{background:#4ecdc4;box-shadow:0 0 10px #4ecdc499}.status-indicator.offline{background:#ff6b6b;box-shadow:0 0 10px #ff6b6b99}.player-details{flex:1;display:flex;flex-direction:column;gap:.75rem}.player-name{color:#fff;font-size:1.2rem;font-weight:600;margin:0}.player-badges{display:flex;gap:.75rem}.badge{padding:.375rem .875rem;border-radius:20px;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.05rem}.badge.ready{background:linear-gradient(135deg,#4ecdc4,#44a08d);color:#fff}.badge.waiting{background:linear-gradient(135deg,#ffa726,#fb8c00);color:#fff}.badge.online{background:#4ecdc433;color:#4ecdc4;border:1px solid rgba(78,205,196,.3)}.badge.offline{background:#ff6b6b33;color:#ff6b6b;border:1px solid rgba(255,107,107,.3)}.game-status-card{background:#ffffff14;border-radius:20px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);padding:2rem;display:flex;justify-content:space-between;align-items:center;gap:2rem}.status-info{display:flex;align-items:center;gap:2rem}.ready-indicator{display:flex;align-items:center;gap:1.5rem}.ready-circle{width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:900;transition:all .3s ease;border:4px solid transparent}.ready-circle.waiting{background:linear-gradient(135deg,#ffa726,#fb8c00);color:#fff;border-color:#ffa7264d;box-shadow:0 0 20px #ffa72666}.ready-circle.all-ready{background:linear-gradient(135deg,#4ecdc4,#44a08d);color:#fff;border-color:#4ecdc44d;box-shadow:0 0 25px #4ecdc499;animation:readyPulse 2s ease-in-out infinite}@keyframes readyPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.ready-text{display:flex;flex-direction:column;gap:.5rem}.status-ready{color:#4ecdc4;font-size:1.5rem;font-weight:700}.status-waiting{color:#ffa726;font-size:1.5rem;font-weight:700}.start-game-btn{padding:1rem 2.5rem;font-size:1.3rem;font-weight:700;border:none;border-radius:16px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:1rem;min-width:200px;justify-content:center}.start-game-btn.ready{background:linear-gradient(135deg,#4ecdc4,#44a08d);color:#fff;box-shadow:0 10px 30px #4ecdc466}.start-game-btn.ready:hover{background:linear-gradient(135deg,#44a08d,#4ecdc4);transform:translateY(-3px);box-shadow:0 15px 40px #4ecdc499}.start-game-btn.disabled{background:#ffffff1a;color:#666;cursor:not-allowed;box-shadow:none}.start-icon{font-size:1.5rem}.spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,.3);border-top:3px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.lobby-footer{display:flex;justify-content:center;gap:1rem;padding:1rem 0}.footer-button{display:flex;align-items:center;gap:.75rem;padding:.875rem 1.75rem;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1)}.refresh-button{background:linear-gradient(135deg,#64748b,#475569);color:#fff}.reset-button{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.footer-button:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0003}.game-interface{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto;gap:2rem;height:100%;min-height:0}.game-header{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center}.ai-status-section{grid-column:1 / -1;display:flex;gap:2rem}.ai-graph-container{flex:2}.resources-container{flex:1}.game-info{grid-column:1 / -1;display:flex;justify-content:space-between;align-items:center}.game-display{width:100%;height:100vh;display:flex;flex-direction:column;overflow:auto}.main-content{flex:1;display:grid;grid-template-columns:7fr 3fr;gap:2rem;padding:2rem;min-height:0}.left-column,.right-column{display:flex;flex-direction:column;gap:1.5rem;min-height:0;width:100%}.ai-status-graph{background:#ffffff0d;border-radius:15px;padding:1rem;border:2px solid #e94560;min-width:400px;max-width:100%;box-sizing:border-box}.ai-status-graph h3{margin:0 0 .5rem;color:#e94560;text-align:center}.graph-container{position:relative;width:100%;height:150px;min-height:130px;background:#0000004d;border-radius:10px;overflow:hidden}.graph-background{position:absolute;top:0;left:0;right:0;bottom:0}.phase-zone{position:absolute;top:0;bottom:0;opacity:.3}.phase-1{background:#2ed573}.phase-2{background:#ffa502}.phase-3{background:#ff4757}.ai-position{position:absolute;width:20px;height:20px;background:#e94560;border-radius:50%;border:3px solid #ffffff;transform:translate(-50%,-50%);z-index:10}.graph-labels{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.axis-label{position:absolute;color:#fff;font-size:.7rem;font-weight:700}.x-axis-label{bottom:5px;left:50%;transform:translate(-50%)}.y-axis-label{top:50%;left:5px;transform:translateY(-50%) rotate(-90deg)}.resource-bars{background:#ffffff0d;border-radius:15px;padding:1.6rem;border:3px solid #e94560;width:100%;box-sizing:border-box;box-shadow:0 0 20px #e945604d}.resource-bars h3{margin:0 0 1.2rem;color:#e94560;text-align:center;font-size:.9rem;font-weight:700}.resource-item{display:flex;align-items:center;margin-bottom:1rem;color:#fff;font-weight:500;font-size:.9rem;padding:.6rem;background:#ffffff08;border-radius:10px;border:1px solid rgba(233,69,96,.2)}.resource-item:last-child{margin-bottom:0}.resource-icon{font-size:1.3rem;margin-right:.8rem;width:2rem;text-align:center;filter:drop-shadow(0 0 5px rgba(255,255,255,.5))}.resource-text{color:#fff;font-size:.9rem}.resource-number{color:#e94560;font-weight:700;font-size:1.1em;transition:all .3s ease;text-shadow:0 0 5px rgba(233,69,96,.5)}.resource-number-animate{animation:futuristicPulse 1s ease-out;text-shadow:0 0 12px #e94560,0 0 20px #e94560,0 0 28px #e94560}@keyframes futuristicPulse{0%{transform:scale(1);color:#e94560;text-shadow:0 0 6px #e94560}25%{transform:scale(1.2);color:#0ff;text-shadow:0 0 16px #00ffff,0 0 28px #00ffff,0 0 40px #00ffff,0 0 52px #00ffff}50%{transform:scale(1.1);color:#fff;text-shadow:0 0 20px #ffffff,0 0 32px #00ffff,0 0 44px #e94560}75%{transform:scale(1.05);color:#e94560;text-shadow:0 0 16px #e94560,0 0 28px #e94560,0 0 40px #e94560}to{transform:scale(1);color:#e94560;text-shadow:0 0 12px #e94560}}.player-leaders{background:#ffffff0d;border-radius:15px;padding:1.5rem;border:2px solid #e94560;width:100%;box-sizing:border-box;display:flex;flex-direction:column;margin-bottom:1rem}.player-leaders h3{margin:0 0 1rem;color:#e94560;text-align:center;flex-shrink:0}.leaders-list{display:flex;flex-direction:column;gap:.5rem}.leader-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#ffffff0d;border-radius:8px;width:100%;box-sizing:border-box}.leader-role{color:#e94560;font-weight:700;font-size:.9rem;display:flex;align-items:center;gap:.5rem}.leader-name{color:#fff;font-weight:500;display:flex;align-items:center;gap:.5rem}.leader-points{background:#ffffff1a;padding:.25rem .5rem;border-radius:4px;font-size:.8rem}.game-phase-indicator{background:#0000004d;border-radius:12px;padding:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);width:100%;max-width:100%;overflow:hidden;box-sizing:border-box;min-height:190px;display:flex;flex-direction:column;justify-content:space-between}.phase-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.phase-header h3{margin:0;color:#00d4ff;font-size:1.5rem}.phase-timer{background:#ffffff1a;padding:.5rem 1rem;border-radius:20px;color:#0f8;font-weight:700;font-size:1.2rem;min-width:60px;text-align:center}.phase-description{color:#ccc;margin:0;font-size:1.1rem}.generation-info{margin:1rem 0;padding:.5rem;background:#ffffff1a;border-radius:8px;text-align:center;color:#0f8;font-weight:700;font-size:1.2rem}.phase-progress{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;position:relative;gap:8px}.phase-progress:before{content:"";position:absolute;left:50px;right:50px;top:25px;height:2px;background:#fff3;z-index:1}.phase-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:#0f0f23e6;border:1px solid rgba(255,255,255,.1);transition:all .3s ease;position:relative;z-index:2;min-width:90px}.phase-item.completed{background:#00ff884d;border-color:#0f8}.phase-item.active{background:#e9456066;border-color:#e94560;box-shadow:0 0 15px #e945604d;transform:scale(1.05)}.phase-item .phase-icon{font-size:1.5rem;opacity:.6;transition:opacity .3s ease}.phase-item.completed .phase-icon{opacity:.8;filter:grayscale(.3)}.phase-item.active .phase-icon{opacity:1;animation:activePhaseGlow 2s ease-in-out infinite alternate}.phase-item .phase-name{font-size:.75rem;font-weight:600;color:#fff9;text-align:center;text-transform:uppercase;letter-spacing:.5px;line-height:1.2;transition:color .3s ease}.phase-item.completed .phase-name{color:#0f8}.phase-item.active .phase-name{color:#e94560;font-weight:700}@keyframes activePhaseGlow{0%{text-shadow:0 0 5px rgba(233,69,96,.5)}to{text-shadow:0 0 15px rgba(233,69,96,.8)}}.year-info{display:flex;justify-content:center;align-items:center;margin-top:1rem;margin-bottom:.5rem}.year-info span{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:linear-gradient(135deg,#e9456033,#e945601a);border:1px solid rgba(233,69,96,.4);border-radius:20px;color:#e94560;font-weight:700;font-size:1rem;text-transform:uppercase;letter-spacing:1px;box-shadow:0 2px 8px #e9456033;transition:all .3s ease}.year-info span:before{content:"📅";font-size:1.1rem}.year-info span:hover{transform:translateY(-1px);box-shadow:0 4px 12px #e945604d}.game-over-indicator{margin-top:1rem;padding:1rem;text-align:center;border-radius:8px;font-size:1.5rem;font-weight:700}.game-over-indicator.players{background:linear-gradient(45deg,#0f8,#00d4ff);color:#1a1a2e}.game-over-indicator.ai{background:linear-gradient(45deg,#f44,#f80);color:#fff}.played-cards-summary{margin-top:0;padding:10px 15px 15px;background:#00d4ff1a;border-radius:8px;border:1px solid rgba(0,212,255,.3);overflow:hidden;box-sizing:border-box;width:100%;max-width:100%;min-width:0}.summary-title{margin:0 0 1rem;color:#00d4ff;font-size:1.1rem;font-weight:700;text-align:center}.cards-played-list{display:flex;flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem 0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin;scrollbar-color:rgba(0,212,255,.5) rgba(0,0,0,.2);width:100%;height:92%;max-width:100%;min-width:0}.cards-played-list::-webkit-scrollbar{height:6px}.cards-played-list::-webkit-scrollbar-track{background:#0003;border-radius:3px}.cards-played-list::-webkit-scrollbar-thumb{background:#00d4ff80;border-radius:3px}.cards-played-list::-webkit-scrollbar-thumb:hover{background:#00d4ffcc}.played-card-item{background:#0006;border-radius:6px;padding:.8rem;border:1px solid rgba(255,255,255,.1);transition:all .2s ease}.played-card-item:hover{background:#0009;border-color:#00d4ff4d}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;flex-wrap:wrap;gap:.5rem}.player-name{color:#0f8;font-weight:700;font-size:.9rem}.card-name{color:#fff;font-size:.85rem;flex:1;text-align:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-info{display:flex;align-items:center;gap:.5rem}.energy-cost{display:flex;align-items:center;gap:.3rem;background:#ff646433;padding:.2rem .5rem;border-radius:12px;color:#ff6464;font-size:.8rem;font-weight:700}.round-info{background:#00d4ff33;padding:.2rem .5rem;border-radius:12px;color:#00d4ff;font-size:.75rem;font-weight:700}.energy-icon{font-size:.9rem}.card-effects{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}.effect-item{display:flex;align-items:center;gap:.3rem;background:#ffffff1a;padding:.3rem .6rem;border-radius:12px;font-size:.8rem;font-weight:700;min-width:0}.effect-icon{font-size:1rem;flex-shrink:0}.effect-value{font-size:.85rem;font-weight:700}@media (max-width: 1024px){.card-header{flex-direction:column;align-items:stretch;text-align:center}.card-name{order:-1;margin-bottom:.3rem}.player-name{align-self:center}.card-info{justify-content:center;align-self:center}.card-effects{justify-content:center}}@keyframes cardEffectAppear{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.played-card-item{animation:cardEffectAppear .3s ease-out}.no-cards-played{text-align:center;color:#ccc;font-style:italic;padding:1rem}.no-cards-played p{margin:.3rem 0;font-size:.85rem}.action-phase-display{display:flex;gap:1rem;width:100%;height:100%}.action-phase-display .played-cards-summary{flex:6;margin-top:0}.player-order-summary{flex:1;padding:5px;background:#00ff881a;border-radius:8px;border:1px solid rgba(0,255,136,.3);overflow:hidden;box-sizing:border-box;min-width:250px}.player-order-list{display:flex;flex-direction:column;gap:.2rem}.player-order-item{display:flex;align-items:center;gap:.75rem;padding:.1rem;background:#0000004d;border-radius:6px;border:1px solid rgba(255,255,255,.1);transition:all .2s ease}.player-order-item.active-player{background:#e9456033;border-color:#e9456080;box-shadow:0 0 10px #e945604d}.player-order-item.passed-player{background:#00000080;opacity:.7;border-color:#ffffff0d}.player-order-number{background:#00d4ff33;color:#00d4ff;font-weight:700;font-size:.8rem;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid rgba(0,212,255,.4);flex-shrink:0}.player-order-name{color:#fff;font-weight:700;font-size:.85rem;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-order-status{font-size:.7rem;font-weight:700;flex-shrink:0}.passed-indicator{color:#666;opacity:.8}.active-indicator{color:#e94560;animation:pulse 2s infinite}.waiting-indicator{color:#0f8}.player-name-compact{color:#0f8;font-weight:700;min-width:60px;font-size:.7rem;text-align:center}.energy-cost-compact{color:#ff6464;font-weight:700;background:#ff646426;padding:.1rem .3rem;border-radius:8px;font-size:.65rem;min-width:25px;text-align:center}.card-effects-compact{display:flex;flex-direction:column;gap:.2rem;align-items:center}.effect-item-compact{font-weight:700;font-size:.65rem;padding:.1rem .25rem;background:#ffffff1a;border-radius:6px;white-space:nowrap}.card-order-badge{position:absolute;top:-8px;right:-8px;background:#00d4ffe6;color:#fff;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:700;border:2px solid rgba(0,212,255,.3)}.played-card-item-compact{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;background:#0000004d;border-radius:4px;padding:.5rem;border:1px solid rgba(255,255,255,.1);margin-bottom:0;font-size:.8rem;min-width:100px;flex-shrink:0;transition:all .3s ease}.played-card-item-compact.latest-card{background:#00ff8826;border:2px solid rgba(0,255,136,.4);box-shadow:0 0 10px #00ff884d;transform:scale(1.05)}.played-card-item-compact.latest-card .card-order-badge{background:#ff6464e6;border-color:#ff64644d;animation:pulse 1.5s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.last-played-label{position:absolute;top:50%;left:-25px;transform:translateY(-50%) rotate(-90deg);transform-origin:center center;background:#ff6464e6;color:#fff;font-size:.45rem;font-weight:700;padding:.15rem .3rem;border-radius:6px;white-space:nowrap;border:1px solid rgba(255,100,100,.3);animation:pulse 1.5s infinite}@media (max-width: 1024px){.played-card-item-compact{flex-direction:column;gap:.2rem;align-items:stretch;text-align:center}.card-effects-compact{justify-content:center}}.active-player-indicator{display:inline-block;padding:.25rem .5rem;background:#0f83;border-radius:4px;color:#0f8;font-weight:700;margin-left:.5rem}@keyframes phaseTransition{0%{transform:translateY(-10px);opacity:0}to{transform:translateY(0);opacity:1}}.phase-info{animation:phaseTransition .3s ease-out}@media screen and (max-width: 1024px) and (max-height: 700px) and (orientation: landscape){.lobby-display{height:100vh;padding:.8rem}.lobby-display h2{font-size:1.8rem;margin-bottom:.8rem}.join-section{grid-template-columns:1fr 2fr;gap:1rem;margin-bottom:1rem}.join-code .code{font-size:2.2rem;letter-spacing:.3rem}.qr-code{width:120px;height:120px;padding:6px}.players-list{min-height:250px;max-height:350px}.player-item{padding:.6rem .8rem}.intro-video-button,.tutorial-video-button{padding:.6rem 1.2rem;font-size:.9rem}.game-controls{padding:1rem}.start-game-button{padding:.8rem 1.5rem;font-size:1.1rem}.ready-summary p{font-size:1rem;margin:.3rem 0}.reload-controls{margin-top:.8rem}.reload-button{padding:.6rem 1.2rem;font-size:.9rem}}@media (max-width: 1024px){.main-content{grid-template-columns:1fr;gap:1.5rem;padding:1.5rem}.left-column,.right-column{gap:1rem}.music-controls-container,.music-toggle-container{margin-top:.5rem}.music-toggle-button{min-width:180px;padding:.6rem 1.2rem;font-size:.9rem}.tablet-music-controls{max-width:280px}}@media (max-width: 768px){.main-content{padding:1rem;gap:1rem}.left-column,.right-column{gap:.75rem}.music-controls-container,.music-toggle-container{margin-top:.5rem}.music-toggle-button{min-width:180px;padding:.6rem 1.2rem;font-size:.9rem}.tablet-music-controls{max-width:250px}.tablet-music-controls .music-controls{padding:12px}.app-header{padding:1rem}.app-header h1{font-size:1.4rem}.join-code .code{font-size:2rem}.graph-container{height:200px}}.phase-indicator{text-align:center;padding:1rem;background:#ffffff1a;border-radius:12px;margin-bottom:2rem}.phase-indicator h2{margin:0 0 .5rem;color:#00d4ff;font-size:1.5rem}.phase-indicator .year{color:#0f8;font-weight:600}.bot-manager{background:#ffffff1a;border-radius:12px;padding:1.5rem;margin:1rem 0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.bot-manager-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.bot-manager-header h3{margin:0;color:#00d4ff;font-size:1.2rem}.bot-controls{display:flex;gap:.5rem}.add-bot-button{background:linear-gradient(45deg,#00d4ff,#0f8);color:#1a1a2e;border:none;padding:.5rem 1rem;border-radius:8px;font-weight:600;cursor:pointer;transition:transform .2s}.add-bot-button:hover:not(:disabled){transform:translateY(-2px)}.add-bot-button:disabled{opacity:.5;cursor:not-allowed}.reset-game-button{background:linear-gradient(45deg,#ff6b6b,orange);color:#fff;border:none;padding:.5rem 1rem;border-radius:8px;font-weight:600;cursor:pointer;transition:transform .2s}.reset-game-button:hover:not(:disabled){transform:translateY(-2px)}.reset-game-button:disabled{opacity:.5;cursor:not-allowed}.phase-warning{background:#ffa50033;border:1px solid #ffa500;border-radius:8px;padding:.75rem;color:orange;font-weight:600;margin-bottom:1rem;text-align:center}.bot-list{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.no-bots{text-align:center;color:#888;padding:2rem;font-style:italic}.bot-card{display:flex;justify-content:space-between;align-items:center;background:#ffffff1a;border-radius:8px;padding:1rem;border:1px solid rgba(255,255,255,.2)}.bot-info{flex:1}.bot-name{font-weight:600;color:#0f8;font-size:1.1rem;margin-bottom:.25rem}.bot-personality{color:#ccc;font-size:.9rem;margin-bottom:.5rem}.bot-stats{display:flex;gap:1rem;font-size:.8rem}.bot-stats span{color:#00d4ff;background:#00d4ff1a;padding:.2rem .5rem;border-radius:4px}.remove-bot-button{background:#ff4757;color:#fff;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:1rem;font-weight:700;transition:background .2s}.remove-bot-button:hover:not(:disabled){background:#ff3838}.remove-bot-button:disabled{opacity:.5;cursor:not-allowed}.available-personalities{border-top:1px solid rgba(255,255,255,.2);padding-top:1rem}.available-personalities h4{margin:0 0 .75rem;color:#00d4ff;font-size:1rem}.personality-list{display:flex;flex-direction:column;gap:.5rem}.personality-preview{display:flex;justify-content:space-between;align-items:center;background:#ffffff0d;border-radius:6px;padding:.5rem;font-size:.9rem}.personality-name{color:#0f8;font-weight:600}.personality-desc{color:#ccc;font-size:.8rem}.intro-video-section{margin-bottom:1.5rem;text-align:center;display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;flex-shrink:0}.intro-video-button{background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;border:none;padding:.8rem 1.5rem;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #6366f14d;display:inline-flex;align-items:center;gap:.5rem}.intro-video-button:hover{background:linear-gradient(135deg,#8b5cf6,#6366f1);transform:translateY(-2px);box-shadow:0 6px 20px #6366f166}.intro-video-button:active{transform:translateY(1px)}.tutorial-video-button{background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;border:none;padding:.8rem 1.5rem;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #f59e0b4d;display:inline-flex;align-items:center;gap:.5rem}.tutorial-video-button:hover{background:linear-gradient(135deg,#f97316,#f59e0b);transform:translateY(-2px);box-shadow:0 6px 20px #f59e0b66}.tutorial-video-button:active{transform:translateY(1px)}.reload-controls{margin-top:1rem;text-align:center;display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;flex-shrink:0}.reload-button{background:linear-gradient(135deg,#64748b,#475569);color:#fff;border:none;padding:.8rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 3px 10px #64748b4d;display:inline-flex;align-items:center;gap:.5rem}.reload-button:hover{background:linear-gradient(135deg,#475569,#334155);transform:translateY(-2px);box-shadow:0 5px 15px #64748b66}.reload-button:active{transform:translateY(1px);box-shadow:0 2px 5px #64748b4d}.reset-session-button{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;padding:.8rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 3px 10px #ef44444d;display:inline-flex;align-items:center;gap:.5rem;min-width:140px;justify-content:center}.reset-session-button:hover{background:linear-gradient(135deg,#f87171,#ef4444);transform:translateY(-2px);box-shadow:0 5px 15px #ef444466}.reset-session-button:active{transform:translateY(1px);box-shadow:0 2px 5px #ef44444d}.game-controls{margin-top:auto;text-align:center;padding:1.2rem;background:#ffffff0d;border-radius:12px;border:1px solid rgba(255,255,255,.1);flex-shrink:0}.ready-summary{margin-bottom:1.5rem}.ready-summary p{margin:.5rem 0;font-size:1.1rem}.all-ready{color:#4ade80!important;font-weight:600}.waiting-ready{color:#fbbf24!important;font-weight:500}.start-game-button{padding:1rem 2rem;font-size:1.2rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;min-width:150px}.start-game-button.ready{background:linear-gradient(135deg,#4ade80,#22c55e);color:#fff;box-shadow:0 4px 15px #4ade804d}.start-game-button.ready:hover{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 6px 20px #4ade8066;transform:translateY(-2px)}.start-game-button.disabled{background:#374151;color:#9ca3af;cursor:not-allowed;box-shadow:none}.start-game-button:disabled{opacity:.5;cursor:not-allowed}.phase-confirmation-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.phase-confirmation-popup{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #e94560;border-radius:15px;padding:2rem;max-width:500px;width:90%;text-align:center;box-shadow:0 20px 40px #00000080;animation:popupSlideIn .3s ease-out}@keyframes popupSlideIn{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.phase-confirmation-popup h3{color:#e94560;margin:0 0 1rem;font-size:1.5rem}.phase-confirmation-popup p{color:#fff;margin:.5rem 0;line-height:1.6}.phase-confirmation-popup p strong{color:#e94560}.advance-button{background:linear-gradient(135deg,#e94560,#ff6b7d);color:#fff;border:none;padding:1rem 2rem;border-radius:10px;font-size:1.1rem;font-weight:700;cursor:pointer;margin-top:1.5rem;transition:all .3s ease;box-shadow:0 4px 15px #e945604d}.advance-button:hover{background:linear-gradient(135deg,#ff6b7d,#e94560);transform:translateY(-2px);box-shadow:0 6px 20px #e9456066}.advance-button:active{transform:translateY(1px)}.introduction-video-popup{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #e94560;border-radius:15px;padding:1.5rem;max-width:900px;width:90%;max-height:90vh;text-align:center;box-shadow:0 20px 40px #00000080;animation:popupSlideIn .3s ease-out;display:flex;flex-direction:column}.introduction-video-popup .video-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.introduction-video-popup .video-header h3{color:#e94560;margin:0;font-size:1.5rem}.introduction-video-popup .close-button{background:none;border:none;color:#fff;font-size:1.5rem;cursor:pointer;padding:.5rem;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.introduction-video-popup .close-button:hover{background:#e9456033;color:#e94560}.introduction-video-popup .video-container{flex-grow:1;display:flex;justify-content:center;align-items:center;margin-bottom:1rem}.introduction-video-popup .introduction-video{width:100%;max-height:60vh;border-radius:10px;outline:none}.introduction-video-popup .video-footer{display:flex;justify-content:center}.introduction-video-popup .close-video-button{background:linear-gradient(135deg,#e94560,#ff6b7d);color:#fff;border:none;padding:.8rem 2rem;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #e945604d}.introduction-video-popup .close-video-button:hover{background:linear-gradient(135deg,#ff6b7d,#e94560);transform:translateY(-2px);box-shadow:0 6px 20px #e9456066}.introduction-video-popup .close-video-button:active{transform:translateY(1px)}@media (max-width: 768px){.introduction-video-popup{max-width:95%;padding:1rem}.introduction-video-popup .video-header h3{font-size:1.2rem}.introduction-video-popup .introduction-video{max-height:50vh}}.voting-status-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.voting-status-popup{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #e94560;border-radius:16px;padding:1.25rem;max-width:900px;width:95%;max-height:85vh;overflow-y:auto;box-shadow:0 15px 30px #00000080;animation:votingPopupSlideIn .3s ease-out}@keyframes votingPopupSlideIn{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.voting-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(233,69,96,.3)}.voting-header h3{margin:0;color:#e94560;font-size:1.25rem;font-weight:700}.voting-timer{display:flex;align-items:center;justify-content:center}.timer-circle{width:64px;height:64px;border:3px solid rgba(233,69,96,.3);border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;background:#e945601a;box-shadow:0 0 15px #e945604d}.timer-text{font-size:1rem;font-weight:700;color:#e94560}.proposal-info{margin-bottom:1rem;padding:.75rem;background:#ffffff0d;border-radius:10px;border-left:3px solid #e94560}.proposal-info h4{margin:0 0 .4rem;color:#fff;font-size:1.15rem}.proposal-description{color:#ccc;margin:0 0 .5rem;line-height:1.35;font-size:.9rem}.proposer-info{color:#e94560;margin:0;font-weight:500;font-size:.85rem}.proposer-info strong{color:#fff}.voting-status h4{margin:0 0 .75rem;color:#e94560;font-size:1.05rem;border-bottom:1px solid rgba(233,69,96,.3);padding-bottom:.4rem}.player-vote-status{display:flex;justify-content:space-between;align-items:center;padding:.6rem .8rem;background:#ffffff0d;border-radius:6px;border:1px solid rgba(255,255,255,.1);transition:all .3s ease}.player-vote-status:hover{background:#ffffff14;border-color:#e945604d}.player-name{font-weight:600;color:#fff;font-size:.9rem}.vote-indicator{display:flex;align-items:center}.vote-choice{padding:.2rem .6rem;border-radius:16px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px}.vote-choice.support{background:linear-gradient(135deg,#2ed573,#00d4aa);color:#fff;box-shadow:0 2px 8px #2ed5734d}.vote-choice.oppose{background:linear-gradient(135deg,#ff4757,#ff3838);color:#fff;box-shadow:0 2px 8px #ff47574d}.vote-pending{color:#ffa502;font-weight:500;font-style:italic;font-size:.8rem;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.voting-rule{color:#ccc;margin:0;font-size:.8rem;line-height:1.35;background:#ffc1071a;padding:.6rem;border-radius:6px;border-left:3px solid #ffc107}.voting-content-layout{display:flex;gap:1.5rem;margin-bottom:1rem}.proposal-section{flex:1;min-width:0}.voting-section{flex:1.2;min-width:0}.player-votes{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.5rem;margin-bottom:1rem}.voting-section .player-vote-status{padding:.5rem .7rem;border-radius:6px}.voting-section .player-name{font-size:.85rem;font-weight:600}.voting-section .vote-choice{padding:.15rem .5rem;font-size:.75rem;border-radius:12px}.voting-section .vote-pending{font-size:.75rem}.vote-results-header{display:flex;gap:1rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(233,69,96,.3)}.header-proposal-section{flex:2;min-width:0}.header-result-section{flex:1;min-width:0;display:flex;align-items:center;justify-content:center}.vote-results-content{display:flex;gap:1rem;margin-bottom:1rem}.vote-results-content .effects-section{flex:1;min-width:0}.vote-results-content .voting-details-section{flex:1.4;min-width:0}.effects-section .proposal-effects{margin:0;padding:.75rem;background:#0003;border-radius:8px}.effects-section .proposal-effects h4{color:#e94560;margin:0 0 .75rem;font-size:.95rem;border-bottom:1px solid rgba(233,69,96,.3);padding-bottom:.25rem}.effects-section .effect-row{margin-bottom:.6rem}.effects-section .effect-row:last-child{margin-bottom:0}.effects-section .effect-content strong{font-size:.85rem;margin-bottom:.25rem}.effects-section .effects-list{grid-template-columns:1fr;gap:.4rem}.effects-section .effect-item{padding:.3rem .5rem;font-size:.8rem;min-width:auto}.voting-details-section .voting-status h4{margin:0 0 .75rem;color:#e94560;font-size:1rem;border-bottom:1px solid rgba(233,69,96,.3);padding-bottom:.25rem}.voting-details-section .player-votes{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem;margin-bottom:1rem}.voting-details-section .voting-footer{padding-top:.75rem;border-top:1px solid rgba(233,69,96,.3);text-align:center}@media (max-width: 900px){.voting-content-layout{gap:1rem}.voting-section{flex:1.1}.vote-results-header,.vote-results-content{gap:.75rem}.vote-results-content .effects-section .effects-list{grid-template-columns:1fr}}@media (max-width: 680px){.voting-status-popup{padding:1rem;max-width:96%;border-radius:12px}.voting-content-layout{flex-direction:column;gap:1rem}.proposal-section,.voting-section{flex:none}.vote-results-header{flex-direction:column;gap:1rem}.header-proposal-section,.header-result-section{flex:none}.header-result-section{justify-content:flex-start}.vote-results-content{flex-direction:column;gap:1rem}.vote-results-content .effects-section,.vote-results-content .voting-details-section{flex:none}.voting-header{flex-direction:column;gap:.75rem;text-align:center;margin-bottom:.75rem;padding-bottom:.6rem}.voting-header h3{font-size:1.1rem}.timer-circle{width:56px;height:56px;border-width:2px}.timer-text{font-size:.9rem}.player-votes{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.proposal-info{margin-bottom:.75rem;padding:.6rem}.proposal-info h4{font-size:1rem;margin-bottom:.3rem}.proposal-description{font-size:.85rem;margin-bottom:.4rem}.proposer-info{font-size:.8rem}.voting-status h4{font-size:.95rem;margin-bottom:.6rem}}@media (max-width: 480px){.voting-status-popup{padding:.8rem;border-radius:10px;max-width:98%}.voting-header h3{font-size:1rem}.timer-circle{width:48px;height:48px;border-width:2px}.timer-text{font-size:.85rem}.player-vote-status{padding:.45rem .6rem;flex-direction:column;gap:.4rem;text-align:center}.player-name{font-size:.85rem}.vote-choice{padding:.15rem .4rem;font-size:.75rem}.vote-pending{font-size:.75rem}.voting-rule{font-size:.75rem;padding:.5rem}}.voting-result{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;margin:8px 0;animation:resultSlideIn .5s ease-out}.voting-result.passed{background:linear-gradient(135deg,#2ed57333,#2ed5731a);border:1px solid #2ed573}.voting-result.failed{background:linear-gradient(135deg,#ff475733,#ff47571a);border:1px solid #ff4757}.result-icon{font-size:1.5rem}.result-text{font-size:1.1rem;font-weight:700;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3)}.voting-result.passed .result-text{color:#2ed573}.voting-result.failed .result-text{color:#ff4757}.result-count{font-size:.9rem;opacity:.9;color:#fff;background:#0003;padding:2px 8px;border-radius:12px;margin-left:auto}.proposal-info{margin-bottom:1rem;padding:.75rem;background:#ffffff0d;border-radius:8px;border-left:3px solid #e94560}.proposal-info h4{margin:0 0 .25rem;color:#fff;font-size:1.1rem}.proposal-description{color:#ccc;margin:0 0 .5rem;line-height:1.3;font-size:.9rem}.proposer-info{color:#e94560;margin:0;font-size:.9rem}.proposal-effects{margin:1rem 0;padding:.75rem;background:#0003;border-radius:8px}.proposal-effects h4{color:#e94560;margin:0 0 .75rem;font-size:1rem;border-bottom:1px solid rgba(233,69,96,.3);padding-bottom:.25rem}.effect-row{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.75rem}.effect-row:last-child{margin-bottom:0}.effect-icon{font-size:1.1rem;padding-top:.2rem}.effect-content{flex:1}.effect-content strong{display:block;font-size:.9rem;margin-bottom:.25rem;color:#fff}.effects-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem}.effect-item{display:flex;align-items:center;gap:.4rem;padding:.4rem .6rem;background:#ffffff0d;border-radius:6px;border:1px solid rgba(255,255,255,.1);font-size:.85rem;min-width:140px}.effect-icon-small{font-size:1rem;flex-shrink:0}.effect-label{font-size:.85rem;color:#ccc;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.effect-value{font-weight:700;font-size:.85rem;flex-shrink:0;min-width:2em;text-align:right}.effects-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.voting-status h4{margin:0 0 .75rem;color:#e94560;font-size:1rem;border-bottom:1px solid rgba(233,69,96,.3);padding-bottom:.25rem}.player-votes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;margin-bottom:1rem}.player-vote-status{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:#ffffff0d;border-radius:6px;border:1px solid rgba(255,255,255,.1)}.player-name{font-weight:500;color:#fff;font-size:.9rem}.vote-choice{padding:.2rem .5rem;border-radius:12px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.voting-footer{padding-top:.75rem;border-top:1px solid rgba(233,69,96,.3);text-align:center}.results-message{text-align:center;font-size:.9rem;color:#fff;background:#e945601a;padding:.5rem .75rem;border-radius:6px;border-left:3px solid #e94560;margin-bottom:.75rem}.advance-button{background:linear-gradient(135deg,#e94560,#ff6b7d);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #e945604d}.advance-button:hover{background:linear-gradient(135deg,#ff6b7d,#e94560);transform:translateY(-1px);box-shadow:0 4px 12px #e9456066}.advance-button:active{transform:translateY(0)}@media (max-width: 768px){.voting-result{padding:8px;gap:8px}.result-icon{font-size:1.2rem}.result-text{font-size:1rem}.result-count{font-size:.8rem}.player-votes{grid-template-columns:1fr}.effects-list{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.effect-item{min-width:120px}.effect-label,.effect-value{font-size:.8rem}}@media (max-width: 480px){.effects-list{grid-template-columns:1fr}.effect-item{padding:.3rem .5rem}}.vote-results-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.vote-results-popup{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #00ff88;border-radius:16px;padding:2rem;max-width:500px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 20px 40px #00ff884d;animation:voteResultsSlideIn .3s ease-out}@keyframes voteResultsSlideIn{0%{transform:translateY(-50px) scale(.9);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.vote-results-popup h3{margin:0 0 1.5rem;color:#0f8;font-size:1.5rem;text-align:center;font-weight:600}.results-info{margin-bottom:1.5rem}.results-info p{margin:.5rem 0;color:#e0e0e0;font-size:1rem;line-height:1.4}.results-info strong{color:#0f8;font-weight:600}.final-result{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;border-radius:12px;margin:16px 0;animation:resultSlideIn .5s ease-out}.final-result.passed{background:linear-gradient(135deg,#2ed57333,#2ed5731a);border:2px solid #2ed573}.final-result.failed{background:linear-gradient(135deg,#ff475733,#ff47571a);border:2px solid #ff4757}.final-result .result-icon{font-size:2.5rem;margin-bottom:4px}.final-result .result-text{font-size:1.4rem;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.3)}.final-result.passed .result-text{color:#2ed573}.final-result.failed .result-text{color:#ff4757}.confirm-button{background:linear-gradient(45deg,#0f8,#00d4ff);color:#1a1a2e;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;width:100%;margin-top:1rem}.confirm-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00ff884d}.confirm-button:active{transform:translateY(0)}.close-button{background:linear-gradient(45deg,#0f8,#00d4ff);color:#1a1a2e;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;width:100%;margin-top:1rem}@media (max-width: 768px){.vote-results-popup{padding:1.5rem;max-width:95%}.vote-results-popup h3{font-size:1.3rem}.results-info p{font-size:.9rem}}@media (max-width: 480px){.vote-results-popup{padding:1rem;border-radius:12px}.vote-results-popup h3{font-size:1.2rem;margin-bottom:1rem}.results-info p{font-size:.85rem;margin:.4rem 0}.close-button{padding:.6rem 1.2rem;font-size:.9rem}.confirm-button{font-size:.9rem;padding:8px 16px}}.random-event-popup{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #e94560;border-radius:15px;padding:1.5rem;max-width:900px;width:95%;max-height:85vh;overflow-y:auto;box-shadow:0 10px 30px #00000080;animation:eventPopupSlideIn .5s ease-out}@keyframes eventPopupSlideIn{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.event-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(233,69,96,.3)}.event-content-layout{display:flex;gap:1.5rem;margin-bottom:1rem}.event-details-section{flex:1.3;min-width:0}.event-effects-section{flex:1;min-width:0}.event-header h3{color:#e94560;margin:0;font-size:1.8rem;display:flex;align-items:center;gap:.5rem}.event-type-badge{padding:.3rem .8rem;border-radius:20px;font-size:.9rem;font-weight:700;display:flex;align-items:center;gap:.3rem}.event-type-badge.good{background:#2ed57333;color:#2ed573;border:1px solid #2ed573}.event-type-badge.bad{background:#ff475733;color:#ff4757;border:1px solid #ff4757}.event-type-badge.neutral{background:#ffa50233;color:#ffa502;border:1px solid #ffa502}.event-content{margin-bottom:0}.event-content h4{color:#fff;margin:0 0 .75rem;font-size:1.3rem}.event-description{color:#ccc;line-height:1.5;margin-bottom:.75rem;font-size:1rem}.event-flavor-text{color:#ffa502;font-style:italic;margin:0 0 .75rem;padding:.6rem;background:#ffa5021a;border-left:3px solid #ffa502;border-radius:0 5px 5px 0;font-size:.9rem}.event-target-info{color:#3742fa;font-weight:500;margin:0;padding:.5rem;background:#3742fa1a;border-left:3px solid #3742fa;border-radius:0 5px 5px 0;font-size:.9rem}.event-effects{margin-bottom:0;background:#0003;border-radius:10px;padding:1rem}.event-effects h4{color:#e94560;margin:0 0 .75rem;font-size:1.1rem}.effects-list{display:flex;flex-direction:column;gap:.75rem}.global-effects,.player-effects{background:#ffffff0d;border-radius:8px;padding:.75rem}.global-effects h5,.player-effects h5{color:#fff;margin:0 0 .5rem;font-size:1rem}.effects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.event-effects-section .effect-item{display:flex;align-items:center;gap:.4rem;padding:.4rem .6rem;background:#ffffff0d;border-radius:6px;border:1px solid rgba(255,255,255,.1);font-size:.85rem}.event-effects-section .effect-icon{font-size:1rem;flex-shrink:0}.event-effects-section .effect-label{font-size:.85rem;color:#ccc;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-effects-section .effect-value{font-weight:700;font-size:.85rem;color:#fff;flex-shrink:0;min-width:2em;text-align:right}.global-effects ul,.player-effects ul{list-style:none;padding:0;margin:0}.global-effects li,.player-effects li{color:#ccc;padding:.3rem 0;display:flex;align-items:center;gap:.5rem}.global-effects li:before,.player-effects li:before{content:"▸";color:#e94560;font-weight:700}.event-footer{text-align:center;padding-top:1rem;border-top:1px solid rgba(233,69,96,.3)}.event-footer p{color:#ccc;margin:0 0 1.5rem;font-size:1rem}@media (max-width: 768px){.random-event-popup{max-width:96vw;padding:1rem}.event-header{flex-direction:column;gap:.75rem;text-align:center;margin-bottom:.75rem;padding-bottom:.6rem}.event-header h3{font-size:1.2rem}.event-content h4{font-size:1.15rem}.event-description{font-size:.9rem}.event-content-layout{gap:1rem}.effects-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.4rem}}@media (max-width: 680px){.event-content-layout{flex-direction:column;gap:1rem}.event-details-section,.event-effects-section{flex:none}}@media (max-width: 480px){.random-event-popup{max-width:98vw;padding:.8rem}.event-header h3{font-size:1.1rem}.event-content h4{font-size:1rem}.event-type-badge{font-size:.8rem;padding:.2rem .6rem}.effects-list{gap:.6rem}.effects-grid{grid-template-columns:1fr;gap:.3rem}.global-effects,.player-effects{padding:.6rem}}.music-controls-container{margin-top:1rem;display:flex;justify-content:center}.control-buttons-container{margin-top:1rem;display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}.music-toggle-button,.fullscreen-toggle-button,.close-session-button{background:#e9456033;border:2px solid rgba(233,69,96,.4);color:#e94560;padding:.75rem 1.5rem;border-radius:12px;cursor:pointer;font-size:1rem;font-weight:600;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;gap:.5rem;min-width:180px;justify-content:center}.close-session-button{background:#ff575733;border-color:#ff575766;color:#ff5757}.music-toggle-button:hover,.fullscreen-toggle-button:hover{background:#e945604d;border-color:#e9456099;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #e945604d}.music-toggle-button:active,.fullscreen-toggle-button:active{transform:translateY(0);box-shadow:0 2px 6px #e9456033}.tablet-music-controls{width:100%;max-width:320px;margin:0 auto}.tablet-music-controls .music-controls{background:#e945601a;border:1px solid rgba(233,69,96,.3);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.tablet-music-controls .music-title{color:#e94560}.tablet-music-controls .control-button.primary{background:#e94560}.tablet-music-controls .control-button.primary:hover{background:#d63447}.tablet-music-controls .volume-slider::-webkit-slider-thumb{background:#e94560}.tablet-music-controls .volume-slider::-moz-range-thumb{background:#e94560}.tablet-music-controls .track-item.active{background:#e945604d}.right-column{display:flex;flex-direction:column;gap:1rem}.proposal-effects{margin:1.5rem 0;padding:1rem;background:#0003;border-radius:12px;width:100%;box-sizing:border-box}.proposal-effects h4{color:#e94560;margin:0 0 1rem;font-size:1.2rem;border-bottom:1px solid rgba(233,69,96,.3);padding-bottom:.5rem}.effects-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin-top:.75rem;width:100%}.effect-item{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#ffffff0d;border-radius:8px;border:1px solid rgba(255,255,255,.1);width:100%;box-sizing:border-box}.effect-icon-small{font-size:1.1rem}.effect-label{font-size:.9rem;color:#ccc}.effect-value{margin-left:auto;font-weight:700}.effect-row.supporters .effect-value{color:#2ed573}.effect-row.opponents .effect-value{color:#ff4757}.effect-row.global .effect-value{color:#00d4ff}@media (max-width: 768px){.effects-list{grid-template-columns:1fr}.effect-item{padding:.4rem .6rem}.effect-icon-small{font-size:1rem}.effect-label{font-size:.8rem}}.game-over-popup{background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid #e94560;border-radius:20px;padding:2rem;max-width:800px;width:90%;max-height:85vh;overflow-y:auto;box-shadow:0 20px 40px #00000080;animation:gameOverSlideIn .5s ease-out}@keyframes gameOverSlideIn{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.game-over-header{text-align:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid rgba(233,69,96,.3)}.game-over-header h3{font-size:2.5rem;margin:0 0 .5rem;text-shadow:0 2px 4px rgba(0,0,0,.3)}.game-over-header h3.victory{color:#2ed573}.game-over-header h3.defeat{color:#ff4757}.game-over-subheader{color:#ccc;font-size:1.2rem}.game-over-content{display:flex;flex-direction:column;gap:2rem}.final-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;padding:1rem;background:#ffffff0d;border-radius:12px}.stat-item{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;background:#0003;border-radius:8px}.stat-label{color:#ccc;font-size:1rem}.stat-value{color:#e94560;font-size:1.5rem;font-weight:700}.outcome-message{text-align:center;padding:1rem;background:#ffffff0d;border-radius:12px}.outcome-message p{color:#fff;font-size:1.1rem;line-height:1.6;margin:0}.ai-status-container{background:#ffffff0d;border-radius:12px;padding:1rem;margin:1rem 0}.ai-status-container .ai-status-graph{background:transparent;padding:10px;margin:0;max-width:100%}.ai-status-container .ai-status-graph h3{font-size:1.2rem;margin-bottom:15px;color:#e94560}.ai-status-container .graph-container{height:250px;margin-bottom:15px}.ai-status-container .phase-info{margin-top:10px}.restart-button{background:linear-gradient(45deg,#e94560,#ff6b7d);color:#fff;border:none;padding:1rem 2rem;border-radius:12px;font-size:1.2rem;font-weight:600;cursor:pointer;transition:all .3s ease;width:100%;margin-top:1rem}.restart-button:hover{background:linear-gradient(45deg,#ff6b7d,#e94560);transform:translateY(-2px);box-shadow:0 4px 15px #e9456066}.restart-button:active{transform:translateY(0)}@media (max-width: 768px){.game-over-popup{padding:1.5rem;max-width:95%}.game-over-header h3{font-size:2rem}.game-over-subheader{font-size:1rem}.final-stats{grid-template-columns:1fr}.stat-value{font-size:1.3rem}.outcome-message p{font-size:1rem}.ai-status-container .graph-container{height:200px}.ai-status-container .ai-status-graph h3{font-size:1rem}}.phase-transition-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;justify-content:center;align-items:center;z-index:2000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.phase-countdown{text-align:center;animation:pulseCountdown 1s ease-in-out infinite}.countdown-text{font-size:1.2rem;color:#ff6b7d;font-weight:700;margin-bottom:1rem;letter-spacing:3px;text-shadow:0 0 10px #ff6b7d}.countdown-number{font-size:8rem;font-weight:700;color:#e94560;text-shadow:0 0 20px #e94560,0 0 40px #e94560,0 0 60px #e94560;margin:1rem 0;animation:countdownPulse 1s ease-in-out}.countdown-warning{font-size:1rem;color:#ff6b7d;font-weight:700;letter-spacing:2px;margin-top:1rem;opacity:.8}@keyframes pulseCountdown{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.9}}@keyframes countdownPulse{0%{transform:scale(.8);opacity:.5}50%{transform:scale(1.2);opacity:1}to{transform:scale(1);opacity:1}}.phase-transition-popup{background:linear-gradient(135deg,#1a1a2e,#2d1b36,#16213e);border:3px solid #e94560;border-radius:20px;padding:2.5rem;max-width:700px;width:90%;max-height:85vh;overflow-y:auto;box-shadow:0 25px 50px #000000b3,0 0 0 1px #e945604d,inset 0 1px #ffffff1a;animation:phasePopupEntrance .8s ease-out;position:relative;scrollbar-width:none;-ms-overflow-style:none}.phase-transition-popup::-webkit-scrollbar{display:none}.phase-transition-popup:before{content:"";position:absolute;top:-3px;left:-3px;right:-3px;bottom:-3px;background:linear-gradient(45deg,#e94560,#ff6b7d,#e94560);border-radius:23px;z-index:-1;animation:glowBorder 2s ease-in-out infinite alternate}@keyframes phasePopupEntrance{0%{opacity:0;transform:translateY(-100px) scale(.8)}60%{transform:translateY(10px) scale(1.05)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes glowBorder{0%{box-shadow:0 0 20px #e9456080}to{box-shadow:0 0 40px #e94560cc}}.popup-header{text-align:center;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:2px solid rgba(233,69,96,.4);position:relative}.warning-icon{font-size:3rem;margin-bottom:1rem;animation:warningBlink 1.5s ease-in-out infinite}.phase-title{color:#e94560;font-size:2rem;font-weight:700;margin:.5rem 0;text-shadow:0 0 10px rgba(233,69,96,.5);letter-spacing:1px}.phase-number{color:#ff6b7d;font-size:1.2rem;font-weight:700;letter-spacing:3px;margin-top:.5rem;opacity:.9}@keyframes warningBlink{0%,50%,to{opacity:1}25%,75%{opacity:.3}}.popup-content{margin-bottom:2rem}.phase-description{color:#fff;font-size:1.2rem;text-align:center;margin-bottom:2rem;line-height:1.6;background:#e945601a;padding:1rem 1.5rem;border-radius:10px;border-left:4px solid #e94560}.effects-container{background:#ffffff0d;border-radius:15px;padding:1.5rem;margin-bottom:2rem;border:1px solid rgba(233,69,96,.3)}.effects-container h3{color:#e94560;margin:0 0 1rem;font-size:1.3rem;text-align:center;text-transform:uppercase;letter-spacing:1px}.effects-list{list-style:none;padding:0;margin:0}.effect-item{color:#fff;font-size:1rem;margin:.8rem 0;display:flex;align-items:flex-start;line-height:1.5;background:#e9456014;padding:.8rem 1rem;border-radius:8px;border-left:3px solid #ff6b7d;transition:all .3s ease}.effect-item:hover{background:#e9456026;transform:translate(5px)}.effect-bullet{color:#e94560;font-weight:700;margin-right:.8rem;font-size:1.2rem;flex-shrink:0}.danger-warning{display:flex;align-items:center;gap:1rem;background:linear-gradient(135deg,#e9456033,#ff6b7d1a);border:2px solid #e94560;border-radius:12px;padding:1.2rem;animation:dangerPulse 2s ease-in-out infinite}.danger-icon{font-size:2rem;animation:shake .8s ease-in-out infinite}.danger-text{color:#fff;font-size:1.1rem;font-weight:600;flex:1}@keyframes dangerPulse{0%,to{box-shadow:0 0 #e94560b3}50%{box-shadow:0 0 0 10px #e9456000}}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-2px)}75%{transform:translate(2px)}}.acknowledge-button{background:linear-gradient(135deg,#e94560,#ff6b7d);color:#fff;border:none;padding:1.2rem 3rem;border-radius:12px;font-size:1.2rem;font-weight:700;cursor:pointer;width:100%;transition:all .3s ease;box-shadow:0 6px 20px #e9456066,inset 0 1px #fff3;text-transform:uppercase;letter-spacing:2px;position:relative;overflow:hidden}.acknowledge-button:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.acknowledge-button:hover:before{left:100%}.acknowledge-button:hover{background:linear-gradient(135deg,#ff6b7d,#e94560);transform:translateY(-3px);box-shadow:0 8px 25px #e9456080,inset 0 1px #ffffff4d}.acknowledge-button:active{transform:translateY(-1px);box-shadow:0 4px 15px #e9456099,inset 0 1px #ffffff1a}.popup-columns{display:flex;gap:2rem;margin-top:1rem}.popup-left-column,.popup-right-column{flex:1;display:flex;flex-direction:column;gap:1.5rem}.popup-left-column .phase-description{margin-bottom:0}.popup-right-column .effects-container{margin-bottom:0;height:fit-content}.phase-transition-popup{max-width:900px;width:95%}@media (max-width: 768px){.phase-transition-popup{padding:2rem;max-width:95%}.popup-columns{flex-direction:column;gap:1.5rem}.phase-title{font-size:1.6rem}.countdown-number{font-size:6rem}.effects-container{padding:1rem}.effect-item{font-size:.9rem;padding:.6rem .8rem}.acknowledge-button{padding:1rem 2rem;font-size:1.1rem}}.close-session-button:hover{background:#ff57574d;border-color:#ff575799;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #ff57574d}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center;padding:2rem}.loading-state h2{font-size:2.5em;margin-bottom:1rem;color:#4ecdc4}.loading-state p{font-size:1.2em;color:#94a3b8;margin-bottom:2rem}.loading-actions{margin-top:2rem}.loading-help{font-size:1em;color:#64748b;margin-bottom:1rem}.reset-session-button{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:1.1em;font-weight:600;cursor:pointer;transition:all .3s ease}.reset-session-button:hover{background:linear-gradient(135deg,#f87171,#ef4444);transform:translateY(-1px)}
