:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;--bg-gradient-start: #667eea;--bg-gradient-end: #764ba2;--text-primary: rgba(255, 255, 255, .87);--text-secondary: rgba(255, 255, 255, .7);--card-bg: rgba(255, 255, 255, .1);--card-border: rgba(255, 255, 255, .2);--card-hover-bg: rgba(255, 255, 255, .15);--input-bg: rgba(255, 255, 255, .1);--input-border: rgba(255, 255, 255, .3);--input-focus-border: rgba(255, 255, 255, .6);--button-bg: rgba(255, 255, 255, .2);--button-border: rgba(255, 255, 255, .3);--button-hover-bg: rgba(255, 255, 255, .3);--link-color: #a5b4fc;--link-hover-color: #c7d2fe;--success-color: #4CAF50;--success-bg: rgba(76, 175, 80, .2);--success-border: rgba(76, 175, 80, .4);--warning-color: #FFC107;--warning-bg: rgba(255, 193, 7, .2);--warning-border: rgba(255, 193, 7, .4);--error-color: #ff6b6b;--error-bg: rgba(255, 107, 107, .2);--error-border: #ff6b6b;--shadow-light: rgba(0, 0, 0, .1);--shadow-medium: rgba(0, 0, 0, .2);--shadow-heavy: rgba(0, 0, 0, .3);color-scheme:light dark;color:var(--text-primary);background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root.dark-mode{--bg-gradient-start: #0f0f23;--bg-gradient-end: #1a1a2e;--text-primary: #e0e0e0;--text-secondary: #b0b0b0;--card-bg: rgba(30, 30, 50, .8);--card-border: rgba(100, 100, 120, .3);--card-hover-bg: rgba(40, 40, 60, .9);--input-bg: rgba(20, 20, 35, .8);--input-border: rgba(100, 100, 120, .4);--input-focus-border: rgba(100, 149, 237, .6);--button-bg: rgba(40, 40, 60, .8);--button-border: rgba(100, 100, 120, .4);--button-hover-bg: rgba(50, 50, 70, .9);--link-color: #6495ed;--link-hover-color: #7ba7f0;--success-color: #66bb6a;--success-bg: rgba(102, 187, 106, .15);--success-border: rgba(102, 187, 106, .3);--warning-color: #ffa726;--warning-bg: rgba(255, 167, 38, .15);--warning-border: rgba(255, 167, 38, .3);--error-color: #ef5350;--error-bg: rgba(239, 83, 80, .15);--error-border: rgba(239, 83, 80, .4);--shadow-light: rgba(0, 0, 0, .3);--shadow-medium: rgba(0, 0, 0, .5);--shadow-heavy: rgba(0, 0, 0, .7)}a{font-weight:500;color:var(--link-color);text-decoration:inherit}a:hover{color:var(--link-hover-color)}body{margin:0;display:justify;min-width:100vw;min-height:100vh;background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%);color:var(--text-primary)}html{background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%)}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:var(--text-primary);background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%)}html,body{background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%)}a:hover{color:var(--link-hover-color)}}.dark-mode-toggle{display:flex;align-items:center;gap:.5rem;background:var(--button-bg);border:2px solid var(--button-border);border-radius:10px;padding:.6rem 1rem;color:var(--text-primary);cursor:pointer;font-size:.95rem;font-weight:600;transition:all .3s ease;white-space:nowrap;box-shadow:0 2px 8px var(--shadow-medium)}.dark-mode-toggle:hover{background:var(--button-hover-bg);border-color:var(--input-focus-border);transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow-medium)}.dark-mode-toggle svg{width:20px;height:20px;transition:transform .3s ease}.dark-mode-toggle:hover svg{transform:rotate(15deg)}.toggle-label{font-size:.9rem;font-weight:600}@media (max-width: 768px){.dark-mode-toggle{padding:.5rem .8rem;font-size:.85rem}.dark-mode-toggle svg{width:18px;height:18px}.toggle-label{font-size:.85rem}}@media (max-width: 480px){.toggle-label{display:none}.dark-mode-toggle{padding:.6rem}}.login-container{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%)}.dark-mode-toggle-wrapper{margin-bottom:20px}.login-header{text-align:center;margin-bottom:30px}.login-header h1{font-size:2.5rem;margin-bottom:10px;text-shadow:2px 2px 4px rgba(0,0,0,.3);color:var(--text-primary)}.subtitle{font-size:1.1rem;opacity:.9;color:var(--text-secondary)}.login-form{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;padding:40px;max-width:450px;width:100%;box-shadow:0 8px 32px var(--shadow-heavy)}.form-group{margin-bottom:25px}.form-group label{display:block;margin-bottom:8px;font-weight:600;font-size:1rem;color:var(--text-primary)}.form-control{width:100%;padding:15px;border:2px solid var(--input-border);border-radius:12px;background:var(--input-bg);color:var(--text-primary);font-size:1rem;transition:all .3s ease;box-sizing:border-box}.form-control::placeholder{color:var(--text-secondary)}.form-control:focus{outline:none;border-color:var(--input-focus-border);background:var(--card-hover-bg);box-shadow:0 0 0 3px var(--card-border)}.form-control.error{border-color:var(--error-border);background:var(--error-bg)}.help-text{font-size:.9rem;opacity:.8;margin-top:8px;line-height:1.4;color:var(--text-secondary)}.error-message{color:var(--error-color);font-size:.9rem;margin-top:8px}.general-error{background:var(--error-bg);border:1px solid var(--error-border);border-radius:8px;padding:12px;margin-bottom:20px;text-align:center}.role-explanation{background:var(--card-bg);border-radius:12px;padding:20px;margin:25px 0}.option-divider{display:flex;align-items:center;margin:20px 0;opacity:.6}.option-divider:before,.option-divider:after{content:"";flex:1;height:1px;background:var(--card-border)}.option-divider span{padding:0 15px;font-size:.9rem;color:var(--text-primary)}.role-info{border-radius:8px;padding:15px;text-align:left}.role-info.spectator{background:var(--warning-bg);border:1px solid var(--warning-border)}.role-info.voter{background:var(--success-bg);border:1px solid var(--success-border)}.role-info h4{margin-bottom:8px;font-size:1rem;color:var(--text-primary)}.role-info ul{margin-left:20px;font-size:.9rem;opacity:.9;color:var(--text-primary)}.role-info li{margin-bottom:4px}.captcha-container{margin:30px 0}.captcha-wrapper{display:flex;justify-content:center;margin:15px 0;padding:10px;background:var(--card-bg);border-radius:10px}.captcha-help{text-align:center;font-size:.85rem;opacity:.75;margin-top:10px}.btn-submit{width:100%;margin-top:20px;display:flex;justify-content:center;align-items:center}.btn-submit:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 480px){.login-container{padding:15px}.login-form{padding:30px 20px}.login-header h1{font-size:2rem}}.consensus-notification{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%) scale(.8);z-index:9999;opacity:0;transition:all .5s cubic-bezier(.68,-.55,.265,1.55);pointer-events:none}.consensus-notification.visible{opacity:1;transform:translate(-50%,-50%) scale(1);pointer-events:auto}.consensus-content{position:relative;background:linear-gradient(135deg,#4caf50f2,#388e3cf2);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:3rem 4rem;box-shadow:0 20px 60px #0006;border:3px solid rgba(255,255,255,.3);min-width:400px;max-width:600px;display:flex;flex-direction:column;align-items:center;gap:1rem;animation:bounceIn .6s cubic-bezier(.68,-.55,.265,1.55)}@keyframes bounceIn{0%{transform:scale(0);opacity:0}50%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}.consensus-icon{font-size:5rem;animation:rotate 1s ease-in-out infinite alternate;filter:drop-shadow(0 4px 8px rgba(0,0,0,.3))}@keyframes rotate{0%{transform:rotate(-10deg) scale(1)}to{transform:rotate(10deg) scale(1.1)}}.consensus-message{text-align:center;color:#fff}.consensus-message h3{font-size:2.5rem;margin:0 0 .5rem;font-weight:700;text-shadow:2px 2px 8px rgba(0,0,0,.3);animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.consensus-message p{font-size:1.3rem;margin:0;opacity:.95;text-shadow:1px 1px 4px rgba(0,0,0,.3)}.consensus-message strong{font-size:1.8rem;font-weight:800;color:gold;text-shadow:2px 2px 4px rgba(0,0,0,.5);display:inline-block;padding:.2rem .8rem;background:#fff3;border-radius:8px;margin:0 .3rem}.consensus-close{position:absolute;top:1rem;right:1rem;background:#fff3;border:2px solid rgba(255,255,255,.3);border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.5rem;color:#fff;transition:all .3s ease;padding:0}.consensus-close:hover{background:#ffffff4d;transform:rotate(90deg)}.consensus-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:24px}.confetti{position:absolute;width:10px;height:10px;top:-10px;opacity:0;animation:confettiFall 3s ease-out forwards}@keyframes confettiFall{0%{top:-10px;opacity:1;transform:translate(0) rotate(0)}to{top:100%;opacity:0;transform:translate(calc(var(--random-x, 0) * 1px)) rotate(720deg)}}@media (max-width: 768px){.consensus-content{min-width:300px;max-width:90vw;padding:2rem 2.5rem}.consensus-icon{font-size:4rem}.consensus-message h3{font-size:2rem}.consensus-message p{font-size:1.1rem}.consensus-message strong{font-size:1.5rem}}@media (max-width: 480px){.consensus-content{padding:1.5rem 2rem;min-width:280px}.consensus-icon{font-size:3rem}.consensus-message h3{font-size:1.75rem}.consensus-message p{font-size:1rem}.consensus-message strong{font-size:1.3rem;padding:.1rem .5rem}.consensus-close{width:32px;height:32px;font-size:1.2rem}}.spectator-view{min-height:100vh;width:100%;background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%);color:var(--text-primary);padding:2rem 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.session-status-card{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;margin:0 auto 2rem;max-width:1400px;width:calc(100% - 4rem);border:1px solid var(--card-border);box-shadow:0 8px 32px var(--shadow-light)}.session-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;gap:1rem}.section-title{font-size:1.5rem;font-weight:600;margin:0;text-align:center;color:var(--text-primary);flex:1}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;text-align:center}.status-item{display:flex;flex-direction:column;gap:.5rem}.status-label{font-size:1rem;font-weight:500;color:var(--text-secondary);opacity:.8}.status-value{font-size:1.5rem;font-weight:700;color:var(--text-primary)}.session-id-display{display:flex;align-items:center;justify-content:center;gap:.75rem}.copy-btn{background:var(--button-bg);border:none;border-radius:6px;padding:.5rem;color:var(--text-primary);cursor:pointer;transition:all .3s ease;font-size:1rem;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center}.copy-btn.success{background:var(--success-color);color:#fff}.participants-section{margin:0 auto 2rem;max-width:1400px;width:calc(100% - 4rem)}.participants-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;margin-top:1rem}.participant-card{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:1.5rem;border:2px solid var(--card-border);transition:all .3s ease;display:flex;justify-content:space-between;align-items:center}.participant-info{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}.participant-name{font-size:1.1rem;font-weight:600;color:var(--text-primary)}.participant-role{font-size:.9rem;color:var(--text-secondary);font-style:italic}.vote-indicator{display:flex;align-items:center;justify-content:center;min-width:80px}.vote-value{background:var(--success-color);color:#fff;padding:.5rem 1rem;border-radius:8px;font-weight:700;font-size:1.2rem;border:2px solid var(--success-color);transition:all .3s ease}.vote-value.hidden{background:var(--warning-color);border-color:var(--warning-color)}.vote-value.revealed{background:var(--success-color);border-color:var(--success-color);animation:revealPulse .5s ease}@keyframes revealPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.vote-status.waiting{color:var(--text-secondary);font-size:1.5rem}.no-participants{grid-column:1 / -1;text-align:center;padding:3rem 1rem;background:var(--card-bg);border-radius:12px;border:2px dashed var(--card-border)}.no-participants p{margin:.5rem 0;font-size:1.1rem}.no-participants p:first-child{font-size:1.3rem;font-weight:600}.session-controls{margin:0 auto 2rem;max-width:1400px;width:calc(100% - 4rem);display:flex;flex-direction:column;gap:1rem}.controls-row{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.primary-controls .btn{min-width:180px}.sharing-controls .btn{min-width:160px}.btn{padding:1rem 1.5rem;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #0003;display:flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none}.btn-large{padding:1.25rem 2rem;font-size:1.1rem}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #4caf5066}.btn-primary:disabled{background:#fff3;color:#ffffff80;cursor:not-allowed;transform:none;box-shadow:none}.btn-secondary:hover:not(:disabled){background:var(--button-hover-bg);transform:translateY(-2px);box-shadow:0 6px 20px var(--shadow-medium)}.btn-outline{background:transparent;color:var(--text-primary);border:2px solid var(--card-border);white-space:nowrap}.btn-outline:hover{background:var(--card-bg);border-color:var(--input-focus-border);transform:translateY(-1px)}.results-section{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;margin:0 auto 2rem;max-width:1400px;width:calc(100% - 4rem);border:1px solid var(--card-border)}.results-content{margin-top:1rem}.summary-stats{display:flex;gap:2rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}.stat-item{display:flex;flex-direction:column;align-items:center;gap:.5rem}.stat-label{font-size:1rem;color:var(--text-secondary)}.stat-value{font-size:1.3rem;font-weight:700;color:var(--text-primary)}.spectator-guide{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:2rem;margin:0 auto 2rem;max-width:1400px;width:calc(100% - 4rem);border:1px solid var(--card-border)}.spectator-guide h3{text-align:center;margin:0 0 1.5rem;font-size:1.3rem;color:var(--text-primary)}.guide-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.guide-item{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--card-hover-bg);border-radius:8px}.guide-icon{font-size:1.5rem;min-width:30px}.guide-text{font-size:1rem;color:var(--text-primary)}@media (max-width: 1200px){.session-status-card,.participants-section,.session-controls,.results-section,.spectator-guide{width:calc(100% - 2rem)}}@media (max-width: 768px){.spectator-view{padding:1rem 0}.session-status-card,.participants-section,.session-controls,.results-section,.spectator-guide{width:calc(100% - 1rem);padding:1.5rem}.status-grid{grid-template-columns:repeat(2,1fr);gap:1rem}.participants-grid{grid-template-columns:1fr}.controls-row{flex-direction:column;align-items:stretch}.btn{width:100%}.guide-content{grid-template-columns:1fr}}@media (max-width: 480px){.status-grid{grid-template-columns:1fr}.summary-stats{flex-direction:column;gap:1rem}}.header-controls{display:flex;align-items:center;gap:1rem}.btn-leave-session{padding:.625rem 1rem;font-size:.9rem;min-width:auto;white-space:nowrap}.btn-danger{background:linear-gradient(135deg,#f44336,#d32f2f);color:#fff;border:none}.btn-danger:hover:not(:disabled){background:linear-gradient(135deg,#d32f2f,#c62828);transform:translateY(-2px);box-shadow:0 6px 20px #f4433666}.confirmation-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.confirmation-dialog{background:var(--card-bg);border-radius:16px;padding:2rem;max-width:450px;width:calc(100% - 2rem);border:1px solid var(--card-border);box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.confirmation-dialog h3{margin:0 0 1rem;font-size:1.5rem;color:var(--text-primary)}.confirmation-dialog p{margin:.75rem 0;font-size:1rem;color:var(--text-secondary);line-height:1.5}.confirmation-buttons{display:flex;gap:1rem;margin-top:1.5rem}.confirmation-buttons .btn{flex:1;padding:.875rem 1.5rem;font-size:1rem}.voter-view{width:100%;padding:1rem;display:flex;flex-direction:column;align-items:center;max-width:1400px;margin:0 auto;min-height:0;height:100%;overflow-y:auto}.voter-content{display:flex;gap:1rem;width:100%;align-items:flex-start}.voting-section{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:1rem;border:1px solid var(--card-border);box-shadow:0 8px 32px var(--shadow-light);flex:0 0 auto;width:auto;display:flex;flex-direction:column;align-items:center}.voting-section h3{text-align:center;margin-bottom:.75rem;font-size:1.25rem;color:var(--text-primary)}.voting-cards{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.5rem;align-items:center}.voting-row{display:flex;gap:.75rem;justify-content:center}.vote-card{width:90px;height:120px;border:3px solid var(--card-border);background:var(--card-bg);color:var(--text-primary);border-radius:12px;font-size:2.5rem;font-weight:900;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 15px var(--shadow-heavy);line-height:1}.vote-card:hover:not(:disabled){background:var(--card-hover-bg);transform:translateY(-2px) scale(1.02);box-shadow:0 4px 15px var(--input-focus-border)}.vote-card.selected{background:linear-gradient(135deg,#4caf50,#45a049);border-color:#4caf50;transform:translateY(-2px) scale(1.02);box-shadow:0 6px 20px #4caf5080}.vote-card:disabled{cursor:not-allowed;opacity:.5;transform:none}.vote-confirmation{text-align:center;font-size:.85rem;color:var(--text-primary);margin-top:.5rem;padding:.5rem;background:var(--success-bg);border-radius:8px;border:1px solid var(--success-border);word-wrap:break-word;width:100%}.vote-confirmation strong{color:var(--success-color);font-size:1rem;display:block}.vote-change-hint{display:block;font-size:.75rem;margin-top:.25rem;opacity:.9}.participants-section{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:1rem;border:1px solid var(--card-border);box-shadow:0 8px 32px var(--shadow-light);flex:1 1 auto;min-width:0}.participants-section h3{text-align:center;margin-bottom:.75rem;font-size:1.25rem;color:var(--text-primary)}.participants-list{display:grid;gap:.5rem;grid-template-columns:1fr}.participant-card{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:var(--card-bg);border-radius:8px;border:2px solid var(--card-border);transition:all .3s ease}.participant-card.voted{border-color:var(--success-border);background:var(--success-bg)}.participant-card.waiting{border-color:var(--warning-border);background:var(--warning-bg)}.participant-name{font-size:1rem;font-weight:600;color:var(--text-primary)}.vote-status{font-size:.9rem;font-weight:600;color:var(--text-primary);padding:.4rem .75rem;background:var(--card-hover-bg);border-radius:6px}.participant-card.voted .vote-status{background:var(--success-color);color:#fff}.participant-card.waiting .vote-status{background:var(--warning-bg);color:var(--text-secondary)}.participant-card.revealed{border-color:#ffd70080;background:#ffffff14}.vote-status.revealed-vote{background:#4caf50;color:#fff;font-size:1.5rem;font-weight:900;padding:.5rem 1rem;border-radius:8px;border:3px solid #4CAF50;box-shadow:0 4px 15px #4caf5080,0 0 20px #4caf504d;min-width:60px;text-align:center;letter-spacing:.5px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.results-section{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:1rem;width:100%;border:1px solid var(--card-border);box-shadow:0 8px 32px var(--shadow-light);margin-top:1rem}.results-section h3{text-align:center;margin-bottom:.75rem;font-size:1.25rem;color:var(--text-primary)}.vote-summary{text-align:center;padding:.75rem;background:var(--success-bg);border-radius:8px;border:2px solid var(--success-border)}.vote-summary p{font-size:1rem;color:var(--text-primary);margin:0}@media (max-width: 900px){.voter-content{flex-direction:column}.voting-section{width:100%;max-width:700px;margin:0 auto}.voting-cards{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.75rem}.vote-card{width:140px;height:190px;font-size:3.5rem}.participants-section{width:100%;max-width:700px;margin:0 auto}}@media (max-width: 768px){.voter-view,.voting-section,.participants-section,.results-section{padding:1rem}.participants-list{grid-template-columns:1fr!important}}@media (max-width: 480px){.voting-cards{gap:.5rem}.vote-card{width:110px;height:150px;font-size:2.5rem}.participant-card{flex-direction:column;align-items:flex-start;gap:.5rem}.vote-status{width:100%;text-align:center}.vote-confirmation{font-size:.75rem}.vote-confirmation strong{font-size:.9rem}}.connection-status-container{position:relative;display:inline-block;transition:transform .2s ease}.connection-status-container.clickable{cursor:pointer}.connection-status-container.clickable:hover{transform:scale(1.02)}.connection-status-container.clickable:active{transform:scale(.98)}.connection-status{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:24px;font-size:14px;border:1px solid rgba(255,255,255,.2);transition:all .3s ease}.connection-status-container:hover .connection-status{background:#ffffff26;border-color:#ffffff4d;box-shadow:0 4px 12px #0000001a}.status-indicator{display:flex;align-items:center;gap:12px}.status-dot{width:20px;height:20px;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0003;transition:all .3s ease}.status-dot.pulsing{animation:pulse 2s infinite}.status-dot.pulsing:after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid currentColor;animation:ripple 2s infinite;opacity:.6}.status-icon{color:#fff;font-size:12px;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.3)}.status-info{display:flex;flex-direction:column;gap:2px}.status-text{color:#fff;font-weight:600;font-size:14px;line-height:1.2;text-shadow:0 1px 2px rgba(0,0,0,.2)}.reconnect-attempts{color:#ffffffb3;font-size:11px;font-weight:400}.reconnect-btn{background:#3b82f6;color:#fff;border:none;padding:6px 14px;border-radius:16px;font-size:12px;cursor:pointer;font-weight:600;transition:all .2s ease;box-shadow:0 2px 6px #3b82f64d}.reconnect-btn:hover{background:#2563eb;box-shadow:0 4px 12px #3b82f666;transform:translateY(-1px)}.reconnect-btn:active{transform:translateY(0) scale(.96)}.connection-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);background:#000000f2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:12px 16px;min-width:240px;max-width:320px;box-shadow:0 8px 24px #0006;z-index:1000;animation:tooltipFadeIn .2s ease;pointer-events:none}.connection-tooltip:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:8px solid transparent;border-bottom-color:#000000f2}.tooltip-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tooltip-icon{font-size:16px;font-weight:700}.tooltip-title{color:#fff;font-weight:600;font-size:13px}.tooltip-description{color:#ffffffd9;font-size:12px;line-height:1.4;margin:0 0 8px}.tooltip-details{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#10b98126;border-radius:6px;border-left:3px solid #10b981}.tooltip-details .detail-icon{color:#10b981;font-size:14px}.tooltip-details span:last-child{color:#ffffffe6;font-size:11px;font-weight:500}.tooltip-warning{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#ef444426;border-radius:6px;border-left:3px solid #ef4444}.tooltip-warning .warning-icon{color:#ef4444;font-size:14px;font-weight:700}.tooltip-warning span:last-child{color:#ffffffe6;font-size:11px;font-weight:500}@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.15);opacity:.8}to{transform:scale(1);opacity:1}}@keyframes ripple{0%{transform:scale(1);opacity:.6}to{transform:scale(2);opacity:0}}@keyframes tooltipFadeIn{0%{opacity:0;transform:translate(-50%) translateY(-4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}@media (max-width: 768px){.connection-status{padding:8px 12px;font-size:13px}.status-dot{width:16px;height:16px}.status-icon{font-size:10px}.status-text{font-size:13px}.reconnect-btn{padding:5px 10px;font-size:11px}.connection-tooltip{min-width:200px;max-width:280px;padding:10px 12px}.tooltip-description{font-size:11px}}@media (prefers-contrast: high){.connection-status{border:2px solid rgba(255,255,255,.5)}.status-text{text-shadow:none;font-weight:700}.connection-tooltip{border:2px solid rgba(255,255,255,.3)}}@media (prefers-reduced-motion: reduce){.status-dot.pulsing,.status-dot.pulsing:after{animation:none}.connection-status-container,.reconnect-btn{transition:none}.connection-tooltip{animation:none}}.app-header{background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--card-border);padding:1.5rem 2rem;color:var(--text-primary);box-shadow:0 2px 10px var(--shadow-light)}.header-content{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2rem}.header-left{display:flex;align-items:center;justify-content:flex-start;gap:1rem}.title-version-group{display:flex;flex-direction:column;gap:.25rem}.app-title{font-size:2.5rem;font-weight:800;margin:0;color:var(--text-primary);text-shadow:3px 3px 6px var(--shadow-heavy);letter-spacing:.5px}.version-badge{font-size:.75rem;font-family:Courier New,monospace;color:var(--text-secondary);background:var(--card-bg);padding:.25rem .5rem;border-radius:4px;border:1px solid var(--card-border);width:fit-content;cursor:help;transition:all .3s ease}.version-badge:hover{background:var(--card-hover-bg);color:var(--text-primary)}.header-center{display:flex;justify-content:center;align-items:center}.session-info{display:flex;flex-direction:row;align-items:center;gap:1rem;flex-wrap:wrap;justify-content:center}.session-detail{display:flex;align-items:center;gap:.5rem;background:var(--card-bg);padding:.6rem 1.2rem;border-radius:10px;border:1px solid var(--card-border);box-shadow:0 2px 8px var(--shadow-medium)}.label{font-size:.9rem;opacity:.8;font-weight:500}.value{font-weight:700;font-size:1.1rem}.session-id{font-family:Courier New,monospace;background:var(--button-bg);padding:.25rem .75rem;border-radius:6px}.copy-btn{background:var(--button-bg);border:1px solid var(--button-border);border-radius:6px;padding:.25rem .5rem;color:var(--text-primary);cursor:pointer;font-size:.9rem;transition:all .3s ease}.copy-btn:hover{background:var(--button-hover-bg);transform:translateY(-1px)}.copy-btn.success{background:var(--success-color);border-color:var(--success-color);color:#fff}.participant-count{display:flex;align-items:center;gap:.5rem}.header-right{display:flex;align-items:center;justify-content:flex-end;gap:1rem}.user-info{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.welcome-text{font-size:.85rem;opacity:.8}.user-name{font-weight:700;font-size:1.1rem}.user-role{font-size:.85rem;opacity:.8;font-style:italic}.share-btn,.btn-logout{background:var(--button-bg);border:2px solid var(--button-border);border-radius:10px;padding:.75rem 1.5rem;color:var(--text-primary);cursor:pointer;font-size:1.1rem;font-weight:700;transition:all .3s ease;white-space:nowrap;box-shadow:0 2px 8px var(--shadow-medium);display:flex;align-items:center;gap:.5rem}.share-btn:hover{background:var(--success-bg);border-color:var(--success-border);transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow-medium)}.btn-logout:hover{background:var(--error-bg);border-color:var(--error-border);transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow-medium)}@media (max-width: 1024px){.header-content{grid-template-columns:1fr;gap:1.5rem}.header-left{justify-content:center}.app-title{font-size:2rem}.header-center{order:2}.header-right{order:3;justify-content:center}.user-info{align-items:center}}@media (max-width: 768px){.app-header{padding:1rem}.app-title{font-size:1.75rem}.session-info{flex-direction:column;gap:.5rem}.session-detail{width:100%;justify-content:center}.header-right{flex-direction:column;gap:.75rem;width:100%}.share-btn,.btn-logout{width:100%;max-width:250px;justify-content:center}}@media (max-width: 480px){.app-title{font-size:1.5rem}.version-badge{font-size:.65rem;padding:.2rem .4rem}.value{font-size:1rem}.session-id{font-size:.9rem}.share-btn,.btn-logout{font-size:1rem;padding:.6rem 1.2rem}}.loading-container{display:flex;justify-content:center;align-items:center;min-height:50vh;text-align:center}.loading-spinner{border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;width:50px;height:50px;animation:spin 2s linear infinite;margin-bottom:20px}.game-session{display:flex;flex-direction:column;min-height:100vh}.session-content{flex:1;display:flex;flex-direction:column}.session-content.spectator-mode{padding:0;margin:0;max-width:100%;width:100%}.connecting-container,.error-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;text-align:center}.connecting-message h2,.error-message h2{color:#fff;margin-bottom:1rem}.connecting-message p,.error-message p{color:#fffc;margin-bottom:2rem}.retry-btn{padding:1rem 2rem;background:#4caf50;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.retry-btn:hover{background:#45a049;transform:translateY(-2px)}.game-session-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;text-align:center;padding:2rem}.connection-error{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:3rem;border:1px solid rgba(255,255,255,.2);max-width:500px;margin:0 auto}.session-ended-overlay{position:fixed;inset:0;background:#000c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .3s ease}.session-ended-notification{background:var(--card-bg, rgba(255, 255, 255, .95));border-radius:20px;padding:3rem;max-width:500px;width:calc(100% - 2rem);text-align:center;border:2px solid var(--card-border, rgba(255, 255, 255, .2));box-shadow:0 20px 60px #0006;animation:slideDown .4s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}.session-ended-notification h2{margin:0 0 1rem;font-size:2rem;color:var(--text-primary, #333)}.session-ended-notification p{margin:.75rem 0;font-size:1.1rem;color:var(--text-secondary, #666);line-height:1.6}.session-ended-notification p:last-child{font-style:italic;opacity:.8}.error-boundary{display:flex;justify-content:center;align-items:center;min-height:50vh;text-align:center;padding:20px}.error-content{max-width:500px}.btn{padding:10px 20px;margin:10px;border:none;border-radius:5px;cursor:pointer}.btn-primary{background:#007bff;color:#fff}.btn-secondary{background:#6c757d;color:#fff}.app{min-height:100vh;background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.App{text-align:center;min-height:100vh;background:linear-gradient(135deg,var(--bg-gradient-start) 0%,var(--bg-gradient-end) 100%);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.App-header{padding:2rem;max-width:800px;margin:0 auto}.App-header h1{font-size:3rem;margin-bottom:.5rem;text-shadow:2px 2px 4px rgba(0,0,0,.3)}.App-header p{font-size:1.2rem;opacity:.9;margin-bottom:2rem}.btn{padding:12px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #00000026}.btn-primary{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #4caf504d}.btn-secondary{background:var(--button-bg);color:var(--text-primary);border:2px solid var(--button-border)}.btn-secondary:hover:not(:disabled){background:var(--button-hover-bg);transform:translateY(-2px)}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.game-session{min-height:100vh;display:flex;flex-direction:column}.session-content{flex:1;padding:20px;max-width:1200px;margin:0 auto;width:100%}.game-session-error,.connection-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;text-align:center;padding:20px}.connection-error h2{margin-bottom:16px;font-size:2rem}.connection-error p{margin-bottom:24px;font-size:1.1rem;opacity:.9}.loading-container{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:50vh;text-align:center}.loading-content{display:flex;flex-direction:column;align-items:center}.loading-spinner{position:relative;width:60px;height:60px;margin-bottom:20px}.spinner-ring{position:absolute;border:3px solid transparent;border-top:3px solid #4CAF50;border-radius:50%;animation:spin 1.2s cubic-bezier(.5,0,.5,1) infinite}.spinner-ring:nth-child(1){width:60px;height:60px;animation-delay:-.45s}.spinner-ring:nth-child(2){width:48px;height:48px;top:6px;left:6px;animation-delay:-.3s}.spinner-ring:nth-child(3){width:36px;height:36px;top:12px;left:12px;animation-delay:-.15s}.spinner-ring:nth-child(4){width:24px;height:24px;top:18px;left:18px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-message{font-size:1.1rem;opacity:.9;margin:0}.error-boundary{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center;padding:20px}.error-content{max-width:500px;background:var(--card-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:30px}.error-content h2{margin-bottom:16px;color:var(--error-color)}.error-content p{margin-bottom:24px;opacity:.9}.error-details{text-align:left;margin:20px 0;background:#0003;border-radius:8px;padding:15px}.error-stack{font-size:.85rem;color:#ffeb3b;overflow-x:auto;white-space:pre-wrap;word-break:break-word}.error-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.status-section{background:var(--card-bg);padding:1.5rem;border-radius:12px;margin:2rem 0;text-align:left}.status-item{display:flex;justify-content:space-between;margin-bottom:.5rem;padding:.5rem 0;border-bottom:1px solid var(--card-border)}.status-label{font-weight:700}.status-value.success{color:#4ade80}.status-value.pending{color:#fbbf24}.next-steps{background:var(--card-bg);padding:1.5rem;border-radius:12px;margin:2rem 0;text-align:left}.next-steps ol{padding-left:1.5rem}.next-steps li{margin-bottom:.5rem;font-size:1rem}.fibonacci-preview{margin-top:2rem}.voting-cards{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-top:1rem}.vote-card{width:60px;height:80px;border:2px solid var(--card-border);background:var(--card-bg);color:var(--text-primary);border-radius:8px;font-size:1.5rem;font-weight:700;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center}.vote-card:hover{background:var(--card-hover-bg);transform:translateY(-2px)}.vote-card.selected{background:linear-gradient(135deg,#4caf50,#45a049);border-color:#4caf50;transform:translateY(-4px) scale(1.05)}.vote-card:disabled,.vote-card.disabled{cursor:not-allowed;opacity:.5}@media (max-width: 768px){.App-header{padding:1rem}.App-header h1{font-size:2rem}.session-content{padding:15px}.voting-cards{gap:.5rem}.vote-card{width:50px;height:70px;font-size:1.2rem}.error-actions{flex-direction:column}.btn{width:100%;max-width:200px}}@media (max-width: 480px){.app{padding:10px}.vote-card{width:45px;height:60px;font-size:1rem}.loading-spinner{width:40px;height:40px}}
