:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}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:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.video-ad-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.video-ad-modal{background:#1a1a1a;border-radius:12px;padding:20px;max-width:600px;width:90%;box-shadow:0 10px 30px #00000080}.video-ad-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;color:#fff}.video-ad-header h3{margin:0;font-size:18px}.video-ad-close{background:#f44;border:none;color:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}.video-ad-close:hover{background:#c33}.video-ad-content{display:flex;justify-content:center;margin-bottom:15px}.video-ad-content iframe{border-radius:8px;max-width:100%}.video-ad-footer{text-align:center;color:#ccc;font-size:14px}.App{width:100vw;height:100vh;margin:0;padding:0;overflow:hidden}*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden}canvas{display:block;outline:none}.game-ui{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1000;font-family:Arial,sans-serif}.start-screen{position:absolute;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;pointer-events:all}.start-screen-content{background:#fff;padding:2rem;border-radius:20px;text-align:center;box-shadow:0 10px 30px #0000004d;max-width:400px}.start-screen-content h1{margin:0 0 1rem;color:#333;font-size:2.5rem}.start-screen-content p{margin:0 0 2rem;color:#666;font-size:1.1rem}.start-button{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;border:none;padding:1rem 2rem;font-size:1.2rem;border-radius:10px;cursor:pointer;transition:transform .2s,box-shadow .2s;pointer-events:all}.start-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #4caf5066}.game-hud{position:absolute;top:20px;right:20px;transform:translate(0);background:#000000b3;color:#fff;padding:1rem 2rem;border-radius:15px;text-align:center;pointer-events:all;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.turn-indicator h2{margin:0 0 .5rem;font-size:1.5rem}.penalty-warning{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff;padding:.5rem 1rem;border-radius:10px;font-size:1rem;font-weight:600;margin-top:.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.3)}.special-effect-notice{background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;padding:.5rem 1rem;border-radius:10px;font-size:1rem;font-weight:600;margin-top:.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.3)}.hand-info{display:flex;flex-direction:column;gap:.8rem;justify-content:center;font-size:1rem;align-items:center}.player-info,.ai-info{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.5rem;background:#ccc;border-radius:8px;min-width:200px}.player-name{font-weight:700;color:#000}.card-indicators{display:flex;gap:2px;flex-wrap:wrap;justify-content:center;max-width:300px}.card-dot{width:8px;height:8px;border-radius:50%;display:inline-block;transition:transform .2s ease}.card-dot:hover{transform:scale(1.2)}.player-dot{background:linear-gradient(135deg,#4caf50,#45a049);box-shadow:0 1px 3px #4caf504d}.ai-dot{background:linear-gradient(135deg,#ff5722,#e64a19);box-shadow:0 1px 3px #ff57224d}.current-color{padding:.5rem;margin-top:.5rem}.color-indicator{margin-left:.5rem;font-size:1.2rem}.activity-log{position:absolute;top:20px;left:20px;background:#000c;color:#fff;border-radius:10px;padding:1rem;max-width:300px;max-height:400px;overflow-y:auto;pointer-events:all;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1)}.activity-log-header{margin-bottom:.8rem;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:.5rem}.activity-log-header h3{margin:0;font-size:1rem;color:#fff}.activity-log-content{display:flex;flex-direction:column;gap:.5rem}.activity-entry{display:flex;flex-direction:column;gap:.2rem;padding:.5rem;background:#ffffff0d;border-radius:5px;font-size:.85rem;line-height:1.3}.activity-entry.empty{opacity:.6;font-style:italic}.activity-time{color:#888;font-size:.75rem}.activity-message{color:#fff;word-wrap:break-word}.activity-entry.activity-turn{border-left:3px solid #3498db}.activity-entry.activity-play{border-left:3px solid #e74c3c}.activity-entry.activity-draw{border-left:3px solid #f39c12}.activity-entry.activity-skip{border-left:3px solid #9b59b6}.activity-entry.activity-win{border-left:3px solid #2ecc71;background:#2ecc711a}.activity-entry.activity-game{border-left:3px solid #1abc9c}.activity-entry.activity-default{border-left:3px solid rgba(255,255,255,.3)}.win-screen{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000e6;display:flex;justify-content:center;align-items:center;pointer-events:all}.win-screen-content{background:#fff;padding:3rem;border-radius:20px;text-align:center;box-shadow:0 15px 40px #0006;max-width:500px}.win-title{margin:0 0 1rem;font-size:3rem;color:#333}.win-screen-content p{margin:0 0 2rem;color:#666;font-size:1.2rem;line-height:1.5}.play-again-button{background:linear-gradient(135deg,#2196f3,#1976d2);color:#fff;border:none;padding:1rem 2rem;font-size:1.2rem;border-radius:10px;cursor:pointer;transition:transform .2s,box-shadow .2s;pointer-events:all}.play-again-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #2196f366}.player-controls{position:absolute;bottom:20px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:all}.instructions{background:#ffffffe6;color:#333;padding:.8rem 1.5rem;border-radius:25px;text-align:center;font-size:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 5px 15px #0003}.instructions p{margin:0;font-weight:500}.skip-button{background:linear-gradient(135deg,#ff9800,#f57c00);color:#fff;border:none;padding:.8rem 1.5rem;font-size:1rem;border-radius:25px;cursor:pointer;transition:transform .2s,box-shadow .2s;font-weight:600;min-width:120px;z-index:1002;position:absolute;bottom:60px}.skip-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #ff980066}.color-picker-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;justify-content:center;align-items:center;pointer-events:all;z-index:2000}.color-picker-content{background:#fff;padding:2.5rem;border-radius:20px;text-align:center;box-shadow:0 15px 40px #0006;max-width:500px;min-width:400px}.color-picker-content h2{margin:0 0 1rem;color:#333;font-size:2rem}.color-picker-content p{margin:0 0 2rem;color:#666;font-size:1.1rem}.color-buttons{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.color-button{padding:1.2rem 1.5rem;border:none;border-radius:15px;font-size:1.3rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;color:#fff;text-shadow:1px 1px 2px rgba(0,0,0,.3)}.color-button:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0000004d}.color-button.red{background:linear-gradient(135deg,#e74c3c,#c0392b)}.color-button.red:hover{box-shadow:0 8px 20px #e74c3c66}.color-button.blue{background:linear-gradient(135deg,#3498db,#2980b9)}.color-button.blue:hover{box-shadow:0 8px 20px #3498db66}.color-button.green{background:linear-gradient(135deg,#27ae60,#229954)}.color-button.green:hover{box-shadow:0 8px 20px #27ae6066}.color-button.yellow{background:linear-gradient(135deg,#f1c40f,#d4ac0d);color:#333;text-shadow:1px 1px 2px rgba(255,255,255,.3)}.color-button.yellow:hover{background:#f1c40f;transform:translateY(-2px)}.bottom-controls{position:absolute;bottom:20px;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-end;padding:0 20px;pointer-events:all;z-index:1001}.quit-section,.help-section{position:relative}.quit-button,.help-button{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff;border:none;padding:.8rem 1.5rem;font-size:1rem;border-radius:10px;cursor:pointer;transition:all .2s ease;font-weight:600;box-shadow:0 4px 8px #e74c3c4d}.quit-button:hover,.help-button:hover{transform:translateY(-2px);box-shadow:0 6px 12px #e74c3c66}.help-button{background:linear-gradient(135deg,#3498db,#2980b9);box-shadow:0 4px 8px #3498db4d}.help-button:hover{box-shadow:0 6px 12px #3498db66}.quit-confirmation{background:#000000e6;color:#fff;padding:1rem;border-radius:10px;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);min-width:200px}.quit-confirmation p{margin:0 0 1rem;font-size:1rem;font-weight:600}.quit-buttons{display:flex;gap:.5rem;justify-content:center}.confirm-quit-button,.cancel-quit-button{padding:.5rem 1rem;border:none;border-radius:5px;cursor:pointer;font-weight:600;transition:all .2s ease}.confirm-quit-button{background:linear-gradient(135deg,#e74c3c,#c0392b);color:#fff}.confirm-quit-button:hover{background:linear-gradient(135deg,#c0392b,#a93226);transform:translateY(-1px)}.cancel-quit-button{background:linear-gradient(135deg,#95a5a6,#7f8c8d);color:#fff}.cancel-quit-button:hover{background:linear-gradient(135deg,#7f8c8d,#6c7b7d);transform:translateY(-1px)}.help-tooltip{position:absolute;bottom:100%;right:0;background:#000000f2;color:#fff;padding:1.5rem;border-radius:10px;width:500px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);box-shadow:0 10px 30px #00000080;z-index:1002;margin-bottom:10px}.help-tooltip h3{margin:0 0 1rem;color:#3498db;font-size:1.2rem;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:.5rem}.help-tooltip h4{margin:1rem 0 .5rem;color:#f39c12;font-size:1rem}.help-tooltip p{margin:0 0 1rem;line-height:1.4}.help-tooltip ul{margin:.5rem 0;padding-left:1.5rem}.help-tooltip li{margin:.3rem 0;line-height:1.3}.help-tooltip strong{color:#f39c12}@media (max-width: 768px){.bottom-controls{flex-direction:column;gap:1rem;align-items:center}.help-tooltip{max-width:300px;right:-50px}}.welcome-screen,.mode-selection-screen,.player-count-screen,.screen-name-screen,.matchmaking-screen{position:absolute;top:80px;left:0;width:100%;height:calc(100% - 80px);display:flex;align-items:center;justify-content:center;z-index:1000}.welcome-content,.mode-selection-content,.player-count-content,.screen-name-content,.matchmaking-content{background:#fffffff2;border-radius:20px;padding:40px;text-align:center;box-shadow:0 20px 40px #0000001a;max-width:500px;width:90%;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.player-count-content{max-width:800px}.screen-title{font-size:2.5rem;margin-bottom:20px;color:#333;font-weight:700}.screen-description{font-size:1.1rem;color:#666;margin-bottom:30px;line-height:1.5}.game-title{font-size:3rem;margin-bottom:20px;background:linear-gradient(45deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:700}.welcome-message{font-size:1.2rem;color:#555;margin-bottom:40px}.next-button{background:linear-gradient(45deg,#667eea,#764ba2);color:#fff;border:none;padding:15px 40px;border-radius:50px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 5px 15px #667eea66}.next-button:hover{transform:translateY(-2px);box-shadow:0 8px 25px #667eea99}.mode-buttons{display:flex;flex-direction:row;gap:20px;margin-top:30px}.mode-button{background:#fff;border:2px solid #e0e0e0;border-radius:15px;padding:25px;cursor:pointer;transition:all .3s ease;text-align:left;display:flex;flex-direction:column;gap:8px}.mode-button:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 10px 25px #0000001a}.mode-icon{font-size:2rem;margin-bottom:5px}.mode-title{font-size:1.3rem;font-weight:700;color:#333}.mode-description{font-size:.9rem;color:#666}.player-count-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px;margin-top:30px}.player-count-button{background:#fff;border:2px solid #e0e0e0;border-radius:15px;padding:25px;cursor:pointer;transition:all .3s ease;text-align:center;display:flex;flex-direction:column;gap:8px}.player-count-button:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 10px 25px #0000001a}.count-number{font-size:2.5rem;font-weight:700;color:#667eea}.count-label{font-size:1.1rem;font-weight:700;color:#333}.count-description{font-size:.9rem;color:#666}.screen-name-form{margin-top:30px}.input-group{margin-bottom:20px;text-align:left}.input-group label{display:block;margin-bottom:8px;font-weight:700;color:#333;font-size:.9rem}.screen-name-input,.room-code-input{width:100%;padding:15px 20px;border:2px solid #e0e0e0;border-radius:10px;font-size:1.1rem;transition:border-color .3s ease;box-sizing:border-box}.screen-name-input:focus,.room-code-input:focus{outline:none;border-color:#667eea}.screen-name-input:disabled,.room-code-input:disabled{background-color:#f5f5f5;cursor:not-allowed}.error-message{color:#e74c3c;font-size:.9rem;margin-top:5px;display:block;text-align:left}.mode-selector{display:flex;gap:15px;margin-bottom:30px;justify-content:center}.mode-button{background:#fff;border:2px solid #e0e0e0;border-radius:12px;padding:15px 25px;cursor:pointer;transition:all .3s ease;font-size:1rem;font-weight:700;color:#333;flex:1;max-width:200px}.mode-button.active{border-color:#667eea;background:linear-gradient(45deg,#667eea,#764ba2);color:#fff;transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.mode-button:hover:not(.active){border-color:#667eea;transform:translateY(-1px);box-shadow:0 3px 10px #0000001a}.info-box{margin-top:30px;padding:20px;background:#667eea1a;border-radius:12px;text-align:left}.info-box h3{margin-bottom:15px;color:#333;font-size:1.1rem}.info-box ul{list-style:none;padding:0;margin:0}.info-box li{color:#666;font-size:.9rem;position:relative;padding:5px 0 5px 20px}.info-box li:before{content:"•";color:#667eea;font-weight:700;position:absolute;left:0}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #ffffff;border-radius:50%;border-top-color:transparent;animation:spin 1s ease-in-out infinite;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.room-info{margin-bottom:30px}.room-code-section{background:#667eea1a;padding:20px;border-radius:12px;margin-bottom:20px}.room-code-section h3{margin-bottom:15px;color:#333;font-size:1.1rem}.room-code-display{display:flex;align-items:center;justify-content:center;gap:15px;margin-bottom:10px}.room-code{font-size:2rem;font-weight:700;color:#667eea;letter-spacing:2px;font-family:Courier New,monospace;background:#fff;padding:10px 20px;border-radius:8px;border:2px solid #e0e0e0}.copy-button{background:#667eea;color:#fff;border:none;padding:10px;border-radius:8px;cursor:pointer;font-size:1.2rem;transition:all .3s ease}.copy-button:hover{background:#5a6fd8;transform:scale(1.1)}.room-code-hint{font-size:.9rem;color:#666;margin:0}.connection-status{margin-bottom:30px}.status-indicator{display:inline-block;padding:8px 16px;border-radius:20px;font-size:.9rem;font-weight:700;margin-bottom:10px}.status-indicator.connected{background:#2ecc7133;color:#27ae60}.status-indicator.connecting{background:#f1c40f33;color:#f39c12}.status-indicator.disconnected{background:#e74c3c33;color:#e74c3c}.connection-error{color:#e74c3c;font-size:.9rem;margin-top:10px;text-align:center}.room-status{margin:20px 0;padding:15px;background:#ffffff1a;border-radius:10px}.room-status h3{margin-bottom:10px;color:#333;font-size:1.1rem}.status-indicator{padding:8px 15px;border-radius:20px;font-size:.9rem;font-weight:700;text-align:center;margin-bottom:10px}.status-indicator.waiting{background:linear-gradient(45deg,#f39c12,#e67e22);color:#fff}.status-indicator.active{background:linear-gradient(45deg,#27ae60,#2ecc71);color:#fff}.status-indicator.closed{background:linear-gradient(45deg,#e74c3c,#c0392b);color:#fff}.host-indicator{color:#f39c12;font-weight:700;margin-top:5px;font-size:.9rem}.waiting-message{background:#ffffff1a;padding:10px;border-radius:8px;text-align:center;color:#666;font-style:italic}.players-section{margin-bottom:30px}.players-section h3{margin-bottom:20px;color:#333;font-size:1.2rem}.players-list{display:flex;flex-direction:column;gap:12px}.player-item{display:flex;align-items:center;padding:15px;background:#fff;border-radius:12px;border:2px solid #e0e0e0;transition:all .3s ease}.player-item.host{border-color:#667eea;background:#667eea0d}.player-item.empty{opacity:.6}.player-avatar{font-size:1.5rem;margin-right:15px;width:40px;text-align:center}.player-info{flex:1;text-align:left}.player-name{display:block;font-weight:700;color:#333;font-size:1rem}.player-status{display:block;font-size:.8rem;color:#666;margin-top:2px}.player-cards{font-size:.9rem;color:#667eea;font-weight:700}.game-controls{display:flex;gap:15px;justify-content:center;margin-bottom:30px}.leave-button{background:#e74c3c;color:#fff;border:none;padding:12px 25px;border-radius:25px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.leave-button:hover{background:#c0392b;transform:translateY(-2px)}.start-button{background:linear-gradient(45deg,#27ae60,#2ecc71);color:#fff;border:none;padding:12px 25px;border-radius:25px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.start-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #27ae6066}.start-button:disabled{opacity:.6;cursor:not-allowed}.matchmaking-tips{background:#667eea1a;padding:20px;border-radius:12px;text-align:left}.matchmaking-tips h3{margin-bottom:15px;color:#333;font-size:1.1rem}.matchmaking-tips ul{list-style:none;padding:0;margin:0}.matchmaking-tips li{color:#666;font-size:.9rem;position:relative;padding:5px 0 5px 20px}.matchmaking-tips li:before{content:"💡";position:absolute;left:0}@media (max-width: 768px){.welcome-content,.mode-selection-content,.player-count-content,.screen-name-content,.matchmaking-content{padding:30px 20px;margin:20px}.screen-title{font-size:2rem}.game-title{font-size:2.5rem}.player-count-buttons{grid-template-columns:1fr}.mode-buttons{gap:15px}}.auth-screen{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;z-index:1000}.auth-content{background:#fffffff2;border-radius:20px;padding:40px;text-align:center;box-shadow:0 20px 40px #0000001a;max-width:500px;width:90%;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.auth-mode-selector{display:flex;gap:15px;margin-bottom:30px;justify-content:center}.auth-mode-button{background:#fff;border:2px solid #e0e0e0;border-radius:12px;padding:15px 25px;cursor:pointer;transition:all .3s ease;font-size:1rem;font-weight:700;color:#333;flex:1;max-width:200px}.auth-mode-button.active{border-color:#667eea;background:linear-gradient(45deg,#667eea,#764ba2);color:#fff;transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.auth-mode-button:hover:not(.active){border-color:#667eea;transform:translateY(-1px);box-shadow:0 3px 10px #0000001a}.auth-form{margin-top:30px}.auth-input{width:100%;padding:15px 20px;border:2px solid #e0e0e0;border-radius:10px;font-size:1.1rem;transition:border-color .3s ease;box-sizing:border-box}.auth-input:focus{outline:none;border-color:#667eea}.auth-input:disabled{background-color:#f5f5f5;cursor:not-allowed}.auth-button{background:linear-gradient(45deg,#667eea,#764ba2);color:#fff;border:none;padding:15px 40px;border-radius:50px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 5px 15px #667eea66;width:100%;margin-top:20px}.auth-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 25px #667eea99}.auth-button:disabled{opacity:.6;cursor:not-allowed}.auth-info{margin-top:20px;padding:15px;background:#667eea1a;border-radius:10px}.auth-info p{margin:0;color:#666;font-size:.9rem}.link-button{background:none;border:none;color:#667eea;text-decoration:underline;cursor:pointer;font-size:.9rem;margin-left:5px}.link-button:hover{color:#5a6fd8}.auth-benefits{margin-top:30px;padding:20px;background:#667eea1a;border-radius:12px;text-align:left}.auth-benefits h3{margin-bottom:15px;color:#333;font-size:1.1rem}.auth-benefits ul{list-style:none;padding:0;margin:0}.auth-benefits li{color:#666;font-size:.9rem;position:relative;padding:5px 0 5px 20px}.auth-benefits li:before{content:"✓";color:#27ae60;font-weight:700;position:absolute;left:0}.game-header{position:fixed;top:0;left:0;width:100%;height:80px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(0,0,0,.1);z-index:2000;display:flex;align-items:center;justify-content:center}.header-content{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1400px;padding:0 20px;height:100%}.header-left{display:flex;align-items:center;gap:15px}.header-center{display:flex;align-items:center;justify-content:center}.header-title{font-size:1.8rem;font-weight:700;color:#333;margin:0;background:linear-gradient(45deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-right{display:flex;align-items:center;gap:10px}.header-button{display:flex;align-items:center;gap:8px;padding:8px 12px;border:none;border-radius:8px;font-size:.8rem;font-weight:700;cursor:pointer;transition:all .3s ease;background:transparent;color:#333;text-decoration:none;white-space:nowrap}.header-button:hover{transform:translateY(-1px);box-shadow:0 3px 8px #0000001a}.youtube-button{background:red;color:#fff}.youtube-button:hover{background:#c00}.discord-button{background:#5865f2;color:#fff;flex-direction:column;gap:2px;padding:6px 10px}.discord-button:hover{background:#4752c4}.discord-text{font-size:.7rem;font-weight:900}.party-button{background:#87ceeb;color:#333}.party-button:hover{background:#5f9ea0;color:#fff}.leaderboard-button{background:#696969;color:#fff}.leaderboard-button:hover{background:#4a4a4a}.stats-button{background:#8b4513;color:#fff}.stats-button:hover{background:#654321}.account-button{background:#fff;color:#333;border:2px solid #e0e0e0}.account-button:hover{border-color:#667eea;background:#667eea;color:#fff}.settings-button{background:#696969;color:#fff}.settings-button:hover{background:#4a4a4a}.mute-button{background:transparent;color:#333;padding:8px;border-radius:50%}.mute-button:hover{background:#0000001a}.youtube-icon,.discord-icon,.party-icon,.leaderboard-icon,.stats-icon,.account-icon,.settings-icon,.mute-icon{font-size:1rem;display:flex;align-items:center;justify-content:center}@media (max-width: 1200px){.header-content{padding:0 15px}.header-button{padding:6px 10px;font-size:.7rem}.header-title{font-size:1.5rem}}@media (max-width: 768px){.game-header{height:60px}.header-content{padding:0 10px}.header-left{gap:8px}.header-right{gap:6px}.header-button{padding:4px 8px;font-size:.6rem;gap:4px}.header-title{font-size:1.2rem}.discord-button{flex-direction:row;gap:4px}.discord-text{font-size:.6rem}}@media (max-width: 480px){.header-left{display:none}.header-right{gap:4px}.header-button{padding:3px 6px;font-size:.5rem}.header-button span{display:none}.header-button .party-icon,.header-button .leaderboard-icon,.header-button .stats-icon,.header-button .account-icon,.header-button .settings-icon{font-size:.8rem}}.back-button{background:transparent;color:#666;border:2px solid #e0e0e0;padding:10px 20px;border-radius:25px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;margin-top:20px}.back-button:hover{background:#f5f5f5;border-color:#ccc;transform:translateY(-1px);box-shadow:0 3px 8px #0000001a}.guest-notice{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:15px;padding:20px;margin-bottom:25px;display:flex;align-items:flex-start;gap:15px;box-shadow:0 5px 15px #667eea4d}.notice-icon{font-size:1.5rem;flex-shrink:0;margin-top:2px}.notice-content strong{display:block;font-size:1.1rem;margin-bottom:8px;font-weight:700}.notice-content p{margin:0;font-size:.95rem;line-height:1.4;opacity:.9}.auth-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:3000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.auth-modal-content{position:relative;background:#fff;border-radius:20px;padding:0;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 40px #0000004d}.auth-modal-close{position:absolute;top:15px;right:20px;background:none;border:none;font-size:1.5rem;color:#666;cursor:pointer;z-index:10;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.auth-modal-close:hover{background:#f5f5f5;color:#333}.multiplayer-loading,.multiplayer-error,.multiplayer-waiting{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;text-align:center;z-index:100}.multiplayer-loading h2,.multiplayer-error h2,.multiplayer-waiting h2{margin-bottom:1rem;font-size:2rem;color:#fff}.multiplayer-loading p,.multiplayer-error p,.multiplayer-waiting p{font-size:1.1rem;margin-bottom:2rem;opacity:.9}.multiplayer-waiting .players-list{background:#ffffff1a;padding:1.5rem;border-radius:10px;margin:1rem 0;max-width:400px;width:90%}.multiplayer-waiting .players-list h3{margin-bottom:1rem;font-size:1.3rem}.multiplayer-waiting .player-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem;margin-bottom:.5rem;background:#ffffff1a;border-radius:5px}.multiplayer-waiting .player-name{font-weight:700}.multiplayer-waiting .player-status{font-size:.9rem;opacity:.8}.multiplayer-waiting{padding:2rem;max-width:600px;margin:0 auto;background:#000c;border-radius:10px;text-align:center;color:#fff}.multiplayer-waiting h2{color:#4ade80;margin-bottom:1rem;font-size:2rem}.room-info{background:#ffffff1a;padding:1rem;border-radius:8px;margin-bottom:1.5rem}.room-info p{margin:.5rem 0;font-size:1.1rem}.room-info strong{color:#fbbf24}.players-list{margin:1.5rem 0}.players-list h3{color:#60a5fa;margin-bottom:1rem;font-size:1.3rem}.player-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;margin:.5rem 0;background:#ffffff1a;border-radius:6px;border-left:3px solid #4ade80}.player-name{font-weight:700;color:#e5e7eb}.player-status{font-size:.9rem;color:#9ca3af}.game-controls{margin-top:2rem;display:flex;flex-direction:column;gap:1rem;align-items:center}.start-game-button{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:1rem 2rem;border-radius:8px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 6px #0000001a}.start-game-button:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 6px 8px #00000026}.start-button-disabled{background:linear-gradient(135deg,#6b7280,#4b5563)!important;cursor:not-allowed!important;opacity:.6}.start-button-disabled:hover{transform:none!important;box-shadow:0 4px 6px #0000001a!important}.start-disabled-section{display:flex;flex-direction:column;align-items:center;gap:.5rem}.start-hint{color:#9ca3af;font-size:.9rem;margin:0;text-align:center}.no-players{text-align:center;padding:1rem;color:#9ca3af;font-style:italic}.player-summary{margin-top:1rem;padding:.75rem;background:#ffffff0d;border-radius:6px;text-align:center}.player-summary p{margin:.25rem 0;color:#e5e7eb}.need-more-players{color:#fbbf24!important;font-weight:500}.room-header{text-align:center;margin-bottom:1.5rem}.room-header h2{margin:0 0 1rem;color:#f9fafb}.room-status{padding:1rem;border-radius:8px;margin-bottom:1rem}.host-message{background:#10b9811a;border:1px solid rgba(16,185,129,.3);color:#10b981;margin:0;text-align:center}.host-subtitle{font-weight:400;font-size:.9rem;opacity:.8}.player-message{background:#3b82f61a;border:1px solid rgba(59,130,246,.3);color:#3b82f6;margin:0;text-align:center}.player-subtitle{font-weight:400;font-size:.9rem;opacity:.8}.room-details{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding:1rem;background:#ffffff0d;border-radius:8px}.room-code-section label,.player-count-section label{display:block;font-size:.8rem;color:#9ca3af;margin-bottom:.25rem;text-transform:uppercase;letter-spacing:.05em}.room-code-display{display:flex;align-items:center;gap:.5rem}.room-code{font-family:Courier New,monospace;font-size:1.2rem;font-weight:700;color:#3b82f6;background:#3b82f61a;padding:.25rem .5rem;border-radius:4px}.copy-button{padding:.25rem .5rem;background:#3b82f633;border:1px solid rgba(59,130,246,.3);color:#3b82f6;border-radius:4px;cursor:pointer;font-size:.8rem;transition:all .2s}.copy-button:hover{background:#3b82f64d}.room-code-hint{font-size:.75rem;color:#6b7280;margin-top:.25rem;margin-bottom:0}.player-count{font-size:1.2rem;font-weight:700;color:#f9fafb}.leave-button{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:all .3s ease}.leave-button:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);transform:translateY(-1px)}.multiplayer-loading,.multiplayer-error{padding:3rem;text-align:center;color:#fff;background:#000c;border-radius:10px;max-width:500px;margin:0 auto}.loading-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-left:4px solid #4ade80;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.multiplayer-error h2{color:#ef4444;margin-bottom:1rem}.back-button{background:linear-gradient(135deg,#6b7280,#4b5563);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:all .3s ease;margin-top:1rem}.back-button:hover{background:linear-gradient(135deg,#4b5563,#374151);transform:translateY(-1px)}
