.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .3s ease}.profile-modal{background:#fff;border-radius:20px;max-width:600px;width:100%;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.profile-modal-header{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid #e2e8f0}.profile-modal-header h2{margin:0;color:#667eea;font-size:24px}.modal-close-btn{width:32px;height:32px;border-radius:50%;border:none;background:#f0f0f0;color:#666;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease}.modal-close-btn:hover{background:#e0e0e0;transform:rotate(90deg)}.profile-modal-tabs{display:flex;padding:0 24px;border-bottom:1px solid #e2e8f0}.profile-tab{flex:1;padding:16px;background:none;border:none;border-bottom:3px solid transparent;color:#666;font-size:16px;font-weight:500;cursor:pointer;transition:all .3s ease}.profile-tab:hover{color:#667eea}.profile-tab.active{color:#667eea;border-bottom-color:#667eea}.profile-modal-content{flex:1;overflow-y:auto;padding:24px}.avatar-editor{display:flex;flex-direction:column;gap:24px}.avatar-preview{text-align:center}.avatar-preview h3{margin:0 0 16px;color:#333;font-size:18px}.avatar-preview-container{display:flex;justify-content:center;margin-bottom:16px}.avatar-preview-box{width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0000001a}.avatar-preview-emoji{font-size:48px}.avatar-preview-text{font-size:36px;font-weight:700}.avatar-preview-image{width:100%;height:100%;border-radius:50%;background-size:cover;background-position:center}.avatar-colors{margin-top:16px}.avatar-colors h4{margin:0 0 12px;color:#666;font-size:14px;text-transform:uppercase;letter-spacing:.5px}.color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;max-width:300px;margin:0 auto}.color-option{width:32px;height:32px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:all .3s ease}.color-option:hover{transform:scale(1.1)}.color-option.selected{border-color:#333;box-shadow:0 0 0 2px #fff,0 0 0 4px #333}.avatar-selection h3{margin:0 0 16px;color:#333;font-size:18px}.avatar-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.category-btn{padding:8px 16px;border:1px solid #ddd;border-radius:20px;background:#fff;color:#666;font-size:14px;cursor:pointer;transition:all .3s ease}.category-btn:hover{border-color:#667eea;color:#667eea}.category-btn.active{background:#667eea;color:#fff;border-color:#667eea}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(50px,1fr));gap:8px;margin-bottom:24px}.avatar-option{width:50px;height:50px;border:2px solid #e2e8f0;border-radius:8px;background:#fff;font-size:24px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.avatar-option:hover{transform:scale(1.1);border-color:#667eea;box-shadow:0 4px 8px #0000001a}.avatar-upload{padding:20px;background:#f9f9f9;border-radius:12px}.avatar-upload h4{margin:0 0 12px;color:#333;font-size:16px}.upload-btn{width:100%;padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:all .3s ease}.upload-btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px #0000004d}.upload-error{margin:12px 0 0;padding:8px 12px;background:#fee;color:#c00;border-radius:8px;font-size:14px}.upload-hint{margin:8px 0 0;color:#666;font-size:12px;text-align:center}.name-editor{display:flex;flex-direction:column;gap:20px}.name-editor h3{margin:0;color:#333;font-size:18px}.name-input-group{display:flex;gap:8px}.name-input-group input{flex:1;padding:12px;font-size:16px;border:2px solid #ddd;border-radius:8px;transition:border-color .3s ease}.name-input-group input:focus{outline:none;border-color:#667eea}.name-input-group input.error{border-color:#ff6b6b}.name-save-btn{padding:12px 20px;background:#4caf50;color:#fff;border:none;border-radius:8px;font-size:20px;cursor:pointer;transition:all .3s ease}.name-save-btn:hover:not(:disabled){background:#45a049}.name-save-btn:disabled{opacity:.5;cursor:not-allowed}.name-error{margin:0;padding:8px 12px;background:#fee;color:#c00;border-radius:8px;font-size:14px}.name-actions{display:flex;flex-direction:column;gap:16px}.random-name-btn{width:100%;padding:12px;background:#f0f0f0;color:#333;border:2px solid #ddd;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:all .3s ease}.random-name-btn:hover{background:#e0e0e0;border-color:#667eea}.themed-names h4{margin:0 0 12px;color:#666;font-size:14px;text-transform:uppercase;letter-spacing:.5px}.themed-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.themed-buttons button{padding:10px;background:#fff;border:2px solid #e2e8f0;border-radius:8px;font-size:14px;cursor:pointer;transition:all .3s ease}.themed-buttons button:hover{border-color:#667eea;background:#f0f4ff}.name-preview{padding:20px;background:#f9f9f9;border-radius:12px;text-align:center}.name-preview h4{margin:0 0 12px;color:#666;font-size:14px;text-transform:uppercase;letter-spacing:.5px}.name-preview-box{padding:12px 24px;background:#fff;border-radius:8px;font-size:20px;font-weight:600;color:#667eea}.profile-modal-footer{display:flex;gap:12px;padding:24px;border-top:1px solid #e2e8f0}.cancel-btn,.save-btn{flex:1;padding:12px 24px;border:none;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:all .3s ease}.cancel-btn{background:#f0f0f0;color:#666}.cancel-btn:hover{background:#e0e0e0}.save-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.save-btn:hover{transform:translateY(-2px);box-shadow:0 5px 15px #0000004d}@media(max-width:768px){.profile-modal{max-height:100vh;border-radius:0;margin:0}.modal-overlay{padding:0}.avatar-grid{grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}.avatar-option{width:44px;height:44px}.themed-buttons{grid-template-columns:1fr}}@media(hover:none)and (pointer:coarse){.avatar-option,.color-option,.category-btn,.themed-buttons button{min-width:44px;min-height:44px}}.profile{display:flex;align-items:center;gap:var(--space-md, 16px);padding:var(--space-sm, 8px);border-radius:12px;transition:all .3s ease}.profile-editable{cursor:pointer}.profile-editable:hover{background:#667eea1a}.profile-small{gap:8px}.profile-small .profile-avatar-container{width:32px;height:32px}.profile-small .profile-name{font-size:14px}.profile-medium .profile-avatar-container{width:48px;height:48px}.profile-medium .profile-name{font-size:16px}.profile-large{flex-direction:column;text-align:center;gap:16px}.profile-large .profile-avatar-container{width:80px;height:80px}.profile-large .profile-name{font-size:20px}.profile-avatar-container{position:relative;border-radius:50%;overflow:hidden;background:#f0f0f0}.profile-avatar{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;position:relative}.profile-avatar-emoji{font-size:1.5em}.profile-avatar-text{font-weight:700;font-size:1.2em}.profile-avatar-image{width:100%;height:100%;background-size:cover;background-position:center}.profile-edit-btn{position:absolute;bottom:-2px;right:-2px;width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid #667eea;display:flex;align-items:center;justify-content:center;font-size:10px;cursor:pointer;opacity:0;transition:opacity .3s ease}.profile-editable:hover .profile-edit-btn{opacity:1}.profile-info{flex:1}.profile-name{margin:0;color:#333;font-weight:600}.profile-stats{display:flex;gap:16px;margin-top:8px;align-items:center}.profile-stats .stat{display:inline-flex;align-items:center;margin-right:8px;color:#666;font-size:14px}.stats-detail-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;padding:4px 8px;cursor:pointer;font-size:16px;margin-left:8px;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center}.stats-detail-button:hover{transform:scale(1.1);box-shadow:0 2px 8px #667eea66}.profile-stat{display:flex;flex-direction:column;align-items:center}.profile-stat-label{font-size:12px;color:#666;text-transform:uppercase;letter-spacing:.5px}.profile-stat-value{font-size:18px;font-weight:700;color:#667eea}.profile-loading{display:flex;align-items:center;gap:12px}.profile-avatar-skeleton,.profile-name-skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:8px}.profile-avatar-skeleton{width:48px;height:48px;border-radius:50%}.profile-name-skeleton{width:120px;height:20px}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}.mini-profile{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;background:#ffffffe6;border-radius:20px;box-shadow:0 2px 8px #0000001a}.mini-profile-avatar{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;overflow:hidden}.mini-profile-avatar-image{width:100%;height:100%;background-size:cover;background-position:center}.mini-profile-name{font-size:14px;font-weight:500;color:#333;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:768px){.profile-large{flex-direction:row;text-align:left}.profile-large .profile-avatar-container{width:60px;height:60px}.profile-stats{flex-wrap:wrap}}@media(hover:none)and (pointer:coarse){.profile-edit-btn{opacity:1;width:24px;height:24px;font-size:12px}}@media(prefers-color-scheme:dark){.profile{background:#ffffff0d}.profile-name{color:#f0f0f0}.profile-stat-label{color:#aaa}.mini-profile{background:#ffffff1a}.mini-profile-name{color:#f0f0f0}}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}.modal-content{background:#fff;border-radius:20px;padding:30px;max-width:500px;width:90%;max-height:90vh;overflow-y:auto;position:relative;animation:slideUp .3s ease;box-shadow:0 20px 60px #0000004d}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-close{position:absolute;top:15px;right:15px;background:none;border:none;font-size:30px;color:#999;cursor:pointer;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease}.modal-close:hover{background:#f0f0f0;color:#333}.modal-title{font-size:28px;color:#333;margin-bottom:10px;text-align:center}.modal-subtitle{font-size:16px;color:#666;text-align:center;margin-bottom:30px}.modal-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:600;color:#333}.form-group input[type=text],.form-group select{padding:12px;border:2px solid #e0e0e0;border-radius:10px;font-size:16px;transition:border-color .3s ease}.form-group input[type=text]:focus,.form-group select:focus{outline:none;border-color:#667eea}.room-code-input{font-family:Courier New,monospace;font-size:24px;text-align:center;letter-spacing:4px;text-transform:uppercase}.input-hint{font-size:12px;color:#999;text-align:right}.checkbox-label{display:flex;align-items:center;gap:10px;cursor:pointer;padding:10px;background:#f8f9fa;border-radius:10px;transition:background .3s ease}.checkbox-label:hover{background:#e8e9ea}.checkbox-label input[type=checkbox]{width:20px;height:20px;cursor:pointer}.checkbox-label span{font-size:16px;color:#333}.error-message{background:#fee;color:#c00;padding:10px;border-radius:8px;font-size:14px;text-align:center}.modal-actions{display:flex;gap:15px;margin-top:10px}.btn-primary,.btn-secondary{flex:1;padding:12px 24px;border:none;border-radius:25px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:#e0e0e0;color:#666}.btn-secondary:hover{background:#d0d0d0}@media(max-width:600px){.modal-content{padding:20px;width:95%}.modal-title{font-size:24px}.modal-actions{flex-direction:column}}.language-switch-container{display:flex;justify-content:center;margin-top:15px;margin-bottom:10px}.language-switch{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:20px;padding:8px 16px;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px}.language-switch:hover{background:#ffffff26;transform:translateY(-2px);box-shadow:0 4px 12px #0003}.language-option{transition:all .3s ease;opacity:.6}.language-option.active{opacity:1;font-weight:600;color:#4ecdc4}.language-divider{opacity:.3}.game-room .language-switch,.game-board .language-switch{background:#00000080;border-color:#ffffff1a}.game-room .language-switch:hover,.game-board .language-switch:hover{background:#000000b3}@media(max-width:768px){.language-switch-container{margin-top:10px;margin-bottom:8px}.language-switch{font-size:12px;padding:6px 12px}}.home-page{min-height:100vh;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);width:100%}.animated-background{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1}.particle{position:absolute;background:#ffffff1a;border-radius:50%;animation:float 20s infinite}.particle:nth-child(1){width:80px;height:80px;left:10%;animation-duration:15s;animation-delay:0s}.particle:nth-child(2){width:120px;height:120px;left:70%;animation-duration:17s;animation-delay:2s}.particle:nth-child(3){width:60px;height:60px;left:40%;animation-duration:20s;animation-delay:4s}.particle:nth-child(4){width:100px;height:100px;left:85%;animation-duration:18s;animation-delay:1s}.particle:nth-child(5){width:90px;height:90px;left:25%;animation-duration:16s;animation-delay:3s}@keyframes float{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:.4}90%{opacity:.4}to{transform:translateY(-100vh) rotate(720deg);opacity:0}}.home-content{position:relative;z-index:2;width:100%;max-width:1200px;margin:0 auto;padding:20px;text-align:center}.game-header{margin-bottom:50px;min-height:300px}.profile-section{display:flex;justify-content:center;align-items:center;margin-top:20px;padding:20px;background:#ffffff1a;border-radius:20px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);min-height:100px}.profile-placeholder{color:#ffffffb3;font-size:14px}.game-title{font-size:72px;font-weight:700;color:#fff;text-shadow:3px 3px 6px rgba(0,0,0,.3);margin-bottom:10px;letter-spacing:2px}.game-subtitle{font-size:24px;color:#ffffffe6;text-shadow:1px 1px 3px rgba(0,0,0,.3)}.error-message{background:#ff6b6b;color:#fff;padding:15px;border-radius:8px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;animation:slideIn .3s ease-out}.error-message button{background:none;border:none;color:#fff;font-size:24px;cursor:pointer;padding:0 5px}.menu-container{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:20px;margin:0 auto 40px;max-width:1100px;width:100%}.menu-button{background:#fff;border:none;border-radius:15px;padding:25px;cursor:pointer;transition:all .3s ease;box-shadow:0 5px 15px #0003;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;width:200px;flex:0 0 200px}.menu-button:hover{transform:translateY(-5px);box-shadow:0 10px 25px #0000004d}.menu-button:active{transform:translateY(0)}.button-icon{font-size:36px}.button-text{font-size:20px;font-weight:700;color:#333}.button-description{font-size:14px;color:#666}.quick-play:hover{background:linear-gradient(135deg,#ffd89b,#19547b);color:#fff}.quick-play:hover .button-text,.quick-play:hover .button-description{color:#fff}.create-room:hover{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff}.create-room:hover .button-text,.create-room:hover .button-description{color:#fff}.join-room:hover{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff}.join-room:hover .button-text,.join-room:hover .button-description{color:#fff}.tutorial:hover{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.tutorial:hover .button-text,.tutorial:hover .button-description{color:#fff}.settings:hover{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff}.settings:hover .button-text,.settings:hover .button-description{color:#fff}.game-preview{display:flex;justify-content:center;gap:30px;margin-bottom:40px;flex-wrap:wrap}.preview-card{background:#fff;border-radius:10px;padding:15px;box-shadow:0 5px 15px #0003;transition:transform .3s ease;max-width:250px}.preview-card:hover{transform:scale(1.05)}.preview-card img{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:10px;background:#f0f0f0}.preview-card p{color:#333;font-size:14px}.home-footer{color:#fffc;font-size:14px}.home-footer p{margin:5px 0}@keyframes slideDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@media(max-width:768px){.game-title{font-size:48px}.game-subtitle{font-size:18px}.menu-container{flex-direction:column;align-items:center}.menu-button{width:100%;max-width:300px}.game-preview{flex-direction:column;align-items:center}}.game-room{position:fixed;top:0;left:0;width:100%;height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column;padding:20px;overflow-y:auto}.room-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding:20px;background:#fffffff2;border-radius:15px;box-shadow:0 5px 20px #0000001a}.room-header h2{margin:0;font-size:28px;color:#333}.room-code{display:flex;align-items:center;gap:10px;padding:10px 20px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:10px;color:#fff}.room-code span{font-size:16px;font-weight:700}.room-code button{padding:5px 15px;background:#fff;color:#667eea;border:none;border-radius:5px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.room-code button:hover{transform:scale(1.05);box-shadow:0 2px 10px #0003}.players-list{flex:1;background:#fffffff2;border-radius:15px;padding:20px;margin-bottom:20px;box-shadow:0 5px 20px #0000001a;min-height:500px;max-height:60vh;overflow-y:auto}.players-list h3{margin-top:0;margin-bottom:20px;color:#333;font-size:20px}.players-list ul{list-style:none;padding:0;margin:0}.player-item{display:flex;align-items:center;gap:15px;padding:15px;margin-bottom:10px;background:#fff;border-radius:10px;transition:all .3s ease}.player-item.current-player{border:2px solid #667eea;background:linear-gradient(to right,#667eea1a,#764ba21a)}.player-avatar{width:50px;height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:24px;font-weight:700}.player-avatar.default{background:#e0e0e0}.player-avatar.emoji{font-size:30px}.player-name{flex:1;font-size:16px;font-weight:600;color:#333}.ready-status{padding:5px 15px;border-radius:20px;font-size:14px;font-weight:600}.ready-status.ready{background:#00b894;color:#fff}.ready-status.not-ready{background:#e0e0e0;color:#666}.room-actions{display:flex;gap:15px;margin-bottom:20px}.ready-button,.start-button,.leave-button{flex:1;padding:15px 25px;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 3px 15px #0000001a}.ready-button.set-ready{background:#00b894;color:#fff}.ready-button.cancel-ready{background:#fdcb6e;color:#fff}.start-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.start-button:disabled{background:#e0e0e0;color:#999;cursor:not-allowed;opacity:.6}.ready-button:hover:not(:disabled),.start-button:hover:not(:disabled),.leave-button:hover{transform:translateY(-2px);box-shadow:0 5px 20px #0003}.game-rules{background:#fffffff2;border-radius:15px;padding:20px;box-shadow:0 5px 20px #0000001a}.game-rules h3{margin-top:0;margin-bottom:15px;color:#333;font-size:20px}.game-rules ul{margin:0;padding-left:20px}.game-rules li{margin-bottom:10px;color:#666;line-height:1.6}.leave-button-overlay{position:absolute;top:20px;left:20px;z-index:1000;padding:10px 20px;background:#ffffffe6;color:#333;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 10px #0003}.leave-button-overlay:hover{background:#fff;color:#000;transform:translateY(-2px);box-shadow:0 4px 15px #0000004d}.leave-button{background:#ff6b6b;color:#fff;max-width:150px}@media(max-width:768px){.game-room{padding:10px}.room-header{flex-direction:column;gap:15px;padding:15px}.room-actions{flex-direction:column}.leave-button{max-width:none}.players-list{max-height:50vh}}.ready-button.warning,.start-button.warning{animation:pulse-warning 1s ease-in-out infinite;background:linear-gradient(135deg,#ff6b6b,#ee5a24);border-color:#ff4757}.ready-button.warning:hover,.start-button.warning:hover{background:linear-gradient(135deg,#ee5a24,#ff4757);transform:scale(1.05)}@keyframes pulse-warning{0%{box-shadow:0 0 #ff6b6bb3}50%{box-shadow:0 0 0 10px #ff6b6b00}to{box-shadow:0 0 #ff6b6b00}}.confetti-canvas{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.game-end{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px;position:relative;overflow:hidden}.game-end-content{background:#fff;border-radius:20px;padding:40px;box-shadow:0 20px 60px #0000004d;max-width:1200px;width:100%;max-height:90vh;overflow-y:auto;animation:slideUp .6s ease-out}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.game-end-header{text-align:center;margin-bottom:30px}.game-end-title{font-size:3em;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin:0;animation:titlePulse 2s ease-in-out infinite}@keyframes titlePulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.winner-announcement{text-align:center;padding:30px;background:linear-gradient(135deg,gold,#ffed4e);border-radius:20px;margin-bottom:30px;animation:winnerGlow 2s ease-in-out infinite}@keyframes winnerGlow{0%,to{box-shadow:0 5px 20px #ffd7004d}50%{box-shadow:0 5px 30px #ffd70099}}.winner-announcement.is-you{background:linear-gradient(135deg,gold,#ffed4e);border:3px solid #ffd700}.winner-trophy{font-size:80px;animation:trophyBounce 1s ease-in-out infinite}@keyframes trophyBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.winner-label{font-size:2em;color:#333;margin:10px 0}.winner-info{display:flex;align-items:center;justify-content:center;gap:20px;margin:20px 0}.winner-name{font-size:2.5em;font-weight:700;color:#764ba2}.game-end-avatar{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:30px;flex-shrink:0;box-shadow:0 4px 8px #0000001a}.game-end-avatar.default{background:#e0e0e0;color:#666}.game-end-avatar.emoji{color:#fff;font-size:36px}.game-end-avatar.text{font-weight:700;font-size:24px}.winner-profile{display:inline-block;margin:20px 0}.winner-message{font-size:1.2em;color:#666;margin-top:15px}.no-winner{text-align:center;padding:30px;background:#f0f0f0;border-radius:20px;margin-bottom:30px}.no-winner h2{font-size:2em;color:#666;margin-bottom:10px}.game-end-sections{display:flex;justify-content:center;gap:30px;margin:30px 0}.final-standings{background:#f9f9f9;border-radius:15px;padding:20px;max-width:600px;width:100%}.final-standings h3{color:#667eea;margin-bottom:20px;font-size:1.5em;text-align:center}.standings-list{display:flex;flex-direction:column;gap:10px}.standing-item{display:flex;align-items:center;gap:15px;padding:12px;background:#fff;border-radius:10px;transition:all .3s ease}.standing-item:hover{transform:translate(5px);box-shadow:0 3px 10px #0000001a}.standing-item.is-you{background:#e8f4ff;border:2px solid #667eea}.standing-rank{font-size:24px;min-width:40px;text-align:center}.standing-player{flex:1;display:flex;align-items:center;gap:12px}.standing-player .game-end-avatar{width:36px;height:36px;font-size:18px}.standing-player .game-end-avatar.emoji{font-size:20px}.standing-player .game-end-avatar.text{font-size:14px}.standing-name{font-weight:500;color:#333}.standing-status{display:flex;gap:8px}.winner-badge{padding:4px 12px;background:linear-gradient(135deg,gold,#ffed4e);color:#333;border-radius:20px;font-size:12px;font-weight:700}.eliminated-badge{padding:4px 12px;background:#ff6b6b;color:#fff;border-radius:20px;font-size:12px;font-weight:700}.game-statistics{background:#f9f9f9;border-radius:15px;padding:20px}.game-statistics h3{color:#667eea;margin-bottom:20px;font-size:1.5em}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.stat-item{display:flex;flex-direction:column;padding:12px;background:#fff;border-radius:10px;text-align:center}.stat-label{font-size:12px;color:#666;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}.stat-value{font-size:24px;font-weight:700;color:#764ba2}.rematch-status{text-align:center;padding:20px;background:#e8f4ff;border-radius:15px;margin:20px 0}.rematch-status p{font-size:1.2em;color:#333;margin:5px 0}.rematch-ready{color:#4caf50;font-weight:700;animation:pulse 1s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.game-end-actions{display:flex;justify-content:center;gap:20px;margin:30px 0;flex-wrap:wrap}.action-button{padding:15px 30px;font-size:18px;font-weight:700;border:none;border-radius:10px;cursor:pointer;transition:all .3s ease;min-width:150px}.rematch-button{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff}.rematch-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 5px 20px #4caf5066}.rematch-button.voted{background:#e0e0e0;color:#666}.new-game-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.new-game-button:hover{transform:translateY(-3px);box-shadow:0 5px 20px #667eea66}.share-button{background:linear-gradient(135deg,#00bcd4,#0097a7);color:#fff}.share-button:hover{transform:translateY(-3px);box-shadow:0 5px 20px #00bcd466}.action-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.final-board-state{margin-top:30px;padding:20px;background:#f9f9f9;border-radius:15px}.final-board-state h3{color:#667eea;margin-bottom:20px;font-size:1.5em;text-align:center}.final-players-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}.final-player-tiles{background:#fff;padding:15px;border-radius:10px;box-shadow:0 2px 10px #0000001a}.final-player-tiles h4{color:#333;margin-bottom:10px;font-size:1.1em}.revealed-tiles{display:flex;flex-wrap:wrap;gap:8px}.final-tile{width:40px;height:50px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;border:2px solid #333}.final-tile.tile-black{background:#2c2c2c;color:#fff}.final-tile.tile-white{background:#fff;color:#333}@media(max-width:768px){.game-end-content{padding:20px}.game-end-title{font-size:2em}.winner-trophy{font-size:60px}.winner-name{font-size:1.8em}.game-end-sections{flex-direction:column;align-items:center}.stats-grid{grid-template-columns:1fr}.game-end-actions{flex-direction:column;align-items:center}.action-button{width:100%;max-width:300px}.final-players-grid{grid-template-columns:1fr}}.fade-in{animation:fadeIn .5s ease-in}.slide-in{animation:slideIn .5s ease-out}@media(hover:none)and (pointer:coarse){.action-button{min-height:48px}.standing-item:hover{transform:none}.action-button:active{transform:scale(.95)}}.chat-container{position:fixed;bottom:20px;right:20px;width:320px;background:#fff;border:2px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 6px #0000001a;z-index:1000;transition:height .3s ease}.chat-container.minimized{height:40px}.chat-header{padding:10px;background:#4a90e2;color:#fff;border-radius:6px 6px 0 0;display:flex;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.minimize-btn{background:none;border:none;color:#fff;font-size:14px;cursor:pointer;padding:0 5px}.chat-messages{height:300px;overflow-y:auto;padding:10px;background:#f9f9f9}.chat-message{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px;padding:6px 10px;background:#fff;border-radius:6px;word-wrap:break-word}.chat-message.own-message{background:#e3f2fd;flex-direction:row-reverse}.chat-avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.chat-avatar.default{background:#e0e0e0;color:#666;font-size:12px}.chat-avatar.emoji{color:#fff;font-size:16px}.chat-avatar.text{font-weight:700;font-size:11px}.message-content{flex:1;display:flex;flex-direction:column;align-items:flex-start}.chat-message.own-message .message-content{align-items:flex-end}.message-author{font-weight:700;color:#4a90e2;margin-right:5px}.message-text{color:#333}.chat-input-container{display:flex;padding:10px;background:#fff;border-top:1px solid #e0e0e0;border-radius:0 0 6px 6px}.chat-input{flex:1;padding:8px;border:1px solid #ddd;border-radius:4px;font-size:14px;outline:none}.chat-input:focus{border-color:#4a90e2}.chat-send-btn{margin-left:8px;padding:8px 16px;background:#4a90e2;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:700;transition:background .2s}.chat-send-btn:hover{background:#357abd}.chat-send-btn:active{transform:scale(.98)}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:#f1f1f1}.chat-messages::-webkit-scrollbar-thumb{background:#888;border-radius:3px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#555}.spectator-view{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px;display:flex;flex-direction:column}.spectator-header{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:15px;padding:15px 25px;margin-bottom:20px;box-shadow:0 4px 20px #0000001a}.spectator-badge{display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#667eea,#764ba2);padding:8px 20px;border-radius:25px;color:#fff}.spectator-icon{font-size:24px;animation:blink 2s infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.5}}.spectator-label{font-weight:700;font-size:14px;text-transform:uppercase;letter-spacing:1px}.spectator-count{font-size:14px;opacity:.9}.game-timer{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;color:#333}.timer-icon{font-size:24px}.timer-value{font-family:Courier New,monospace}.exit-button{padding:10px 20px;background:#ff6b6b;color:#fff;border:none;border-radius:8px;font-weight:700;cursor:pointer;transition:all .3s ease}.exit-button:hover{background:#ff5252;transform:translateY(-2px);box-shadow:0 4px 15px #ff6b6b4d}.spectator-content{display:grid;grid-template-columns:1fr 350px;gap:20px;flex:1}.spectator-main{background:#fff;border-radius:15px;padding:25px;box-shadow:0 4px 20px #0000001a;overflow-y:auto}.current-turn-info{background:#f0f4ff;border-radius:12px;padding:15px;margin-bottom:25px;border-left:4px solid #667eea}.current-turn-info h3{color:#667eea;margin:0 0 10px;font-size:1.2em}.current-player-display{display:flex;align-items:center;gap:15px}.turn-phase{padding:5px 12px;background:#667eea;color:#fff;border-radius:20px;font-size:14px;font-weight:700;text-transform:capitalize}.active-players-section{margin-bottom:30px}.active-players-section h3{color:#333;margin-bottom:20px;font-size:1.4em}.players-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.spectator-player-area{background:#f9f9f9;border-radius:12px;padding:15px;border:2px solid transparent;transition:all .3s ease}.spectator-player-area.current-turn{border-color:#667eea;background:#f0f4ff;box-shadow:0 4px 15px #667eea33}.player-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #e0e0e0}.player-name{font-weight:700;color:#333;font-size:1.1em}.tile-count{padding:4px 10px;background:#e0e0e0;border-radius:15px;font-size:12px;color:#666}.player-tiles{display:flex;flex-direction:column;gap:10px}.placed-tiles,.hand-info{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tiles-label{font-size:12px;color:#666;text-transform:uppercase;letter-spacing:.5px;min-width:60px}.spectator-tile{width:35px;height:45px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;border:2px solid #333;transition:all .3s ease}.spectator-tile.tile-black{background:#2c2c2c;color:#fff}.spectator-tile.tile-white{background:#fff;color:#333}.spectator-tile.tile-unknown{background:linear-gradient(135deg,#e0e0e0,silver);color:#666;border-style:dashed}.spectator-tile.hidden{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.spectator-tile.revealed{animation:flipReveal .5s ease}@keyframes flipReveal{0%{transform:rotateY(0)}50%{transform:rotateY(90deg)}to{transform:rotateY(0)}}.eliminated-players-section{margin-top:30px;padding-top:30px;border-top:2px solid #e0e0e0}.eliminated-players-section h3{color:#666;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between}.toggle-tiles-btn{padding:5px 12px;background:#667eea;color:#fff;border:none;border-radius:5px;font-size:12px;cursor:pointer;transition:all .3s ease}.toggle-tiles-btn:hover{background:#5a6dc8}.eliminated-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:15px}.eliminated-player{background:#f5f5f5;border-radius:10px;padding:15px;opacity:.8}.player-header.eliminated{opacity:.7}.eliminated-badge{padding:3px 8px;background:#ff6b6b;color:#fff;border-radius:12px;font-size:10px;font-weight:700;text-transform:uppercase}.revealed-tiles{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.spectator-sidebar{display:flex;flex-direction:column;gap:20px}.game-stats-panel{background:#fff;border-radius:15px;padding:20px;box-shadow:0 4px 20px #0000001a}.game-stats-panel h3{color:#667eea;margin-bottom:15px;font-size:1.2em}.stats-list{display:flex;flex-direction:column;gap:12px}.stat-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid #f0f0f0}.stat-row:last-child{border-bottom:none}.stat-label{color:#666;font-size:14px}.stat-value{font-weight:700;color:#333;font-size:16px}.recent-actions-panel{background:#fff;border-radius:15px;padding:20px;box-shadow:0 4px 20px #0000001a;max-height:300px;display:flex;flex-direction:column}.recent-actions-panel h3{color:#667eea;margin-bottom:15px;font-size:1.2em}.actions-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.action-item{padding:10px;background:#f9f9f9;border-radius:8px;font-size:13px;color:#333;border-left:3px solid #667eea;animation:slideIn .3s ease}@keyframes slideIn{0%{transform:translate(-20px);opacity:0}to{transform:translate(0);opacity:1}}.no-actions{text-align:center;color:#999;font-style:italic;padding:20px}.spectator-chat-panel{background:#fff;border-radius:15px;padding:20px;box-shadow:0 4px 20px #0000001a;flex:1;display:flex;flex-direction:column;min-height:300px}.chat-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.chat-header h3{color:#667eea;font-size:1.2em;margin:0}.toggle-chat-btn{width:30px;height:30px;border:2px solid #667eea;background:#fff;color:#667eea;border-radius:50%;font-size:20px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.toggle-chat-btn:hover{background:#667eea;color:#fff}.spectator-chat{flex:1;display:flex;flex-direction:column;min-height:200px}.spectator-instructions{background:#fff;border-radius:10px;padding:15px;margin-top:20px;text-align:center;box-shadow:0 2px 10px #0000001a}.spectator-instructions p{color:#666;margin:0;font-size:14px}.eliminated-notice{color:#ff6b6b;font-weight:700;display:block;margin-top:5px}.spectator-message{background:#fff;border-radius:15px;padding:40px;text-align:center;margin:auto;box-shadow:0 4px 20px #0000001a}.spectator-message h2{color:#666;margin-bottom:20px}.spectator-message button{padding:12px 30px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;transition:all .3s ease}.spectator-message button:hover{transform:translateY(-2px);box-shadow:0 5px 20px #667eea4d}@media(max-width:1200px){.spectator-content{grid-template-columns:1fr}.spectator-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}}@media(max-width:768px){.spectator-header{flex-direction:column;gap:15px;align-items:stretch}.spectator-badge,.game-timer{justify-content:center}.exit-button{width:100%}.players-grid,.eliminated-grid,.spectator-sidebar{grid-template-columns:1fr}}.actions-list::-webkit-scrollbar,.spectator-main::-webkit-scrollbar{width:6px}.actions-list::-webkit-scrollbar-track,.spectator-main::-webkit-scrollbar-track{background:#f0f0f0;border-radius:3px}.actions-list::-webkit-scrollbar-thumb,.spectator-main::-webkit-scrollbar-thumb{background:#667eea;border-radius:3px}.actions-list::-webkit-scrollbar-thumb:hover,.spectator-main::-webkit-scrollbar-thumb:hover{background:#5a6dc8}.tutorial-page{min-height:calc(100vh - 120px);background:linear-gradient(135deg,#667eea,#764ba2);padding:40px 20px}.tutorial-container{max-width:900px;margin:0 auto;background:#fff;border-radius:20px;padding:40px;box-shadow:0 10px 30px #0003}.tutorial-container h1{color:#333;font-size:36px;margin-bottom:30px;text-align:center;border-bottom:3px solid #667eea;padding-bottom:15px}.tutorial-section{margin-bottom:40px}.tutorial-section h2{color:#667eea;font-size:24px;margin-bottom:15px;display:flex;align-items:center;gap:10px}.tutorial-section p{color:#555;line-height:1.8;font-size:16px;margin-bottom:15px}.tutorial-section ul,.tutorial-section ol{color:#555;line-height:1.8;font-size:16px;margin-left:20px}.tutorial-section li{margin-bottom:10px}.tutorial-section strong{color:#333;font-weight:600}.controls-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:20px}.control-item{background:#f8f9fa;padding:15px;border-radius:10px;border-left:4px solid #667eea}.control-key{display:block;font-weight:600;color:#667eea;margin-bottom:8px;font-size:14px}.control-desc{display:block;color:#666;font-size:14px;line-height:1.4}@media(max-width:768px){.tutorial-container{padding:20px}.tutorial-container h1{font-size:28px}.tutorial-section h2{font-size:20px}.controls-grid{grid-template-columns:1fr}}.server-status-bar{background:linear-gradient(135deg,#7b3fe41a,#5279ec1a);border-bottom:1px solid rgba(123,63,228,.2);padding:8px 0;position:relative;overflow:hidden;animation:fadeIn .3s ease-in-out}.server-status-bar:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent);animation:shimmer 3s infinite}@keyframes shimmer{0%{left:-100%}to{left:100%}}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.server-status-container{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}.server-status-loading{text-align:center;color:#ffffffb3;font-size:14px;padding:4px}.server-status-item{display:flex;align-items:center;gap:6px;font-size:14px;color:#fff;transition:all .3s ease;position:relative}.server-status-item:hover{transform:translateY(-1px)}.status-icon{font-size:16px;animation:pulse 2s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.status-label{color:#ffffffe6;font-weight:500}.status-value{color:#fff;font-weight:600;font-size:16px;transition:color .3s ease;animation:valueChange .5s ease}@keyframes valueChange{0%{transform:scale(1.2);color:#fff}to{transform:scale(1);color:#fff}}.status-unit{color:#fffc;font-size:12px;margin-left:2px}.server-status-separator{color:#ffffff80;font-weight:300;margin:0 10px;-webkit-user-select:none;user-select:none}@media(max-width:640px){.server-status-bar{padding:6px 0}.server-status-container{padding:0 10px;gap:10px}.server-status-item{font-size:12px}.status-icon,.status-value{font-size:14px}.status-unit{font-size:10px}.server-status-separator{margin:0 5px}@media(max-width:400px){.status-label{display:none}.server-status-item{gap:4px}}}@media(prefers-color-scheme:dark){.server-status-bar{background:linear-gradient(135deg,#7b3fe433,#5279ec33);border-bottom-color:#7b3fe466}.status-value{color:#fff}.server-status-separator{color:#ffffff80}}.header{background:linear-gradient(135deg,#667eea,#764ba2);box-shadow:0 2px 10px #0000001a;position:sticky;top:0;z-index:100}.header-container{width:100%;padding:0 20px;display:flex;justify-content:space-between;align-items:center;height:60px}.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;font-size:20px;font-weight:700;transition:transform .3s ease;flex:0 0 auto;min-width:200px}.logo:hover{transform:scale(1.05)}.logo-icon{font-size:28px}.logo-text{letter-spacing:1px}.nav{display:flex;gap:20px;align-items:center;flex:1 1 auto;justify-content:center}.nav-link{color:#ffffffe6;text-decoration:none;padding:8px 16px;border-radius:20px;transition:all .3s ease;font-size:14px;font-weight:500;border:none;background:none;cursor:pointer}.nav-link:hover{background:#fff3;color:#fff}.nav-link.active{background:#ffffff40;color:#fff}.leave-button{background:#ef4444cc;color:#fff}.leave-button:hover{background:#ef4444}.header-status{display:flex;align-items:center;gap:20px;flex:0 0 auto;min-width:200px;justify-content:flex-end}.connection-status{display:flex;align-items:center;gap:8px;padding:6px 12px;background:#ffffff26;border-radius:20px}.status-dot{width:8px;height:8px;border-radius:50%;animation:pulse 2s infinite}.connected .status-dot{background:#4ade80}.disconnected .status-dot{background:#ef4444}@keyframes pulse{0%{box-shadow:0 0 #4ade80b3}70%{box-shadow:0 0 0 10px #4ade8000}to{box-shadow:0 0 #4ade8000}}.status-text{color:#fff;font-size:12px;font-weight:500}.room-info{display:flex;align-items:center;gap:10px}.room-code{color:#fff;font-size:14px;font-weight:600;background:#fff3;padding:6px 12px;border-radius:20px}.menu-toggle{display:none;flex-direction:column;gap:4px;background:none;border:none;cursor:pointer;padding:5px}.hamburger{width:25px;height:3px;background:#fff;border-radius:2px;transition:all .3s ease}@media(max-width:768px){.header-container{padding:0 15px}.nav{position:fixed;top:60px;left:0;right:0;background:linear-gradient(135deg,#667eea,#764ba2);flex-direction:column;padding:20px;transform:translateY(-100%);opacity:0;visibility:hidden;transition:all .3s ease;box-shadow:0 2px 10px #0000001a}.nav-open{transform:translateY(0);opacity:1;visibility:visible}.nav-link{width:100%;text-align:center;padding:12px}.menu-toggle{display:flex}.connection-status{display:none}.room-info{font-size:12px}}.footer{background:linear-gradient(135deg,#1e3a8a,#312e81);color:#fff;margin-top:auto;padding:40px 0 0}.footer-container{max-width:1200px;margin:0 auto 30px;padding:0 20px;display:grid;grid-template-columns:repeat(4,1fr);gap:40px}.footer-section h3{font-size:24px;margin-bottom:10px;color:#fff}.footer-section h4{font-size:18px;margin-bottom:15px;color:#ffffffe6}.footer-section p{color:#ffffffb3;line-height:1.6;margin-bottom:10px}.footer-section ul{list-style:none;padding:0;margin:0}.footer-section ul li{color:#ffffffb3;margin-bottom:8px;transition:color .3s ease}.footer-section ul li:hover{color:#fff}.footer-section a{color:#ffffffb3;text-decoration:none;transition:color .3s ease}.footer-section a:hover{color:#fff}.social-links{display:flex;gap:15px;margin-top:15px}.social-links a{font-size:24px;transition:transform .3s ease}.social-links a:hover{transform:scale(1.2)}.footer-bottom{background:#0003;padding:20px;text-align:center;color:#ffffffb3;font-size:14px}@media(max-width:992px){.footer-container{grid-template-columns:repeat(2,1fr);gap:30px}}@media(max-width:768px){.footer-container{grid-template-columns:1fr;gap:30px;text-align:center}.social-links{justify-content:center}}.layout{min-height:100vh;display:flex;flex-direction:column}.main-content{flex:1;display:flex;flex-direction:column;align-items:stretch;width:100%}.view-toggle-container{position:relative;display:inline-flex;align-items:center;gap:12px}.view-toggle-button{display:flex;align-items:center;gap:8px;padding:8px 16px;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:24px;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 12px #667eea4d;position:relative;overflow:hidden}.view-toggle-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.view-toggle-button:active:not(:disabled){transform:translateY(0)}.view-toggle-button:disabled{opacity:.5;cursor:not-allowed}.view-toggle-button.is-3d{background:linear-gradient(135deg,#f093fb,#f5576c);box-shadow:0 4px 12px #f5576c4d}.view-toggle-button.is-3d:hover:not(:disabled){box-shadow:0 6px 20px #f5576c66}.view-toggle-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;animation:rotate .3s ease-in-out}.view-toggle-button.is-3d .view-toggle-icon{animation:rotate3d .6s ease-in-out}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes rotate3d{0%{transform:rotateY(0)}to{transform:rotateY(360deg)}}.view-toggle-label{font-size:14px;font-weight:600;letter-spacing:.5px}.view-toggle-indicators{display:flex;gap:8px;padding:4px;background:#0000001a;border-radius:20px}.view-toggle-indicators .indicator{padding:4px 12px;font-size:12px;font-weight:500;color:#666;border-radius:16px;transition:all .3s ease;background:transparent}.view-toggle-indicators .indicator.active{background:#fff;color:#333;box-shadow:0 2px 8px #0000001a}.view-toggle-tooltip{position:absolute;bottom:-40px;left:50%;transform:translate(-50%);padding:8px 16px;background:#000000e6;color:#fff;font-size:12px;border-radius:6px;white-space:nowrap;z-index:1000;animation:fadeIn .3s ease}.view-toggle-tooltip:before{content:"";position:absolute;top:-4px;left:50%;transform:translate(-50%);width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(0,0,0,.9)}@keyframes fadeIn{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.view-toggle-container.animating .view-toggle-button{animation:pulse .3s ease}.view-transition-overlay{position:fixed;inset:0;background:linear-gradient(135deg,#667eea,#764ba2);opacity:0;pointer-events:none;z-index:9999;transition:opacity .3s ease}.view-transition-overlay.active{opacity:1;pointer-events:all}.view-transition-overlay .transition-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:24px;font-weight:600;animation:fadeInOut .6s ease}@keyframes fadeInOut{0%,to{opacity:0}50%{opacity:1}}.game-view-wrapper{position:fixed;top:0;left:0;width:100%;height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);overflow:hidden}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}.game-overlay-header{position:absolute;top:0;left:0;right:0;z-index:1000;display:flex;justify-content:space-between;align-items:center;padding:20px;background:linear-gradient(to bottom,rgba(0,0,0,.5),transparent);pointer-events:none}.game-overlay-header>*{pointer-events:auto}.game-header-left{display:flex;align-items:center;gap:20px}.leave-game-btn{padding:10px 20px;background:#ffffffe6;color:#333;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 10px #0003}.leave-game-btn:hover{background:#fff;color:#000;transform:translateY(-2px);box-shadow:0 4px 15px #0000004d}.room-code-display{padding:10px 16px;background:#0009;border-radius:8px;color:#fff;font-size:14px}.room-code{font-weight:700;color:gold;margin-left:5px}.game-header-center{flex:1;text-align:center}.game-header-center .current-view-label{font-size:24px;font-weight:700;color:#fff;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.game-header-right{display:flex;align-items:center;gap:15px}.turn-indicator{padding:8px 16px;background:#f00c;border-radius:20px;color:#fff;font-size:14px;font-weight:600;animation:blink 1.5s ease infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.6}}.view-controls{position:absolute;top:20px;right:20px;z-index:100;display:none;align-items:center;gap:16px;padding:12px 20px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;box-shadow:0 4px 20px #0000001a}.view-info{display:flex;flex-direction:column;gap:4px}.current-view-label{font-size:14px;font-weight:600;color:#333}.view-ready-indicator{font-size:11px;color:#00b894;font-weight:500;display:flex;align-items:center;gap:4px}.view-ready-indicator:before{content:"✓";display:inline-block;width:12px;height:12px;background:#00b894;color:#fff;border-radius:50%;font-size:8px;line-height:12px;text-align:center}.game-view-container{width:100%;height:100%;position:relative;transition:opacity .3s ease,transform .3s ease}.game-view-container.transitioning{opacity:.5;transform:scale(.98)}.view-2d,.view-3d{width:100%;height:100%;position:relative}.view-2d{display:flex;gap:20px;padding:20px}.view-3d{background:#1a1a1a}.view-3d-loading{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2)}.loading-spinner{text-align:center;color:#fff}.spinner{width:60px;height:60px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-spinner p{font-size:18px;font-weight:500;margin:0}.game-overlay-footer{position:absolute;bottom:0;left:0;right:0;z-index:1000;display:flex;justify-content:space-between;align-items:center;padding:20px;background:linear-gradient(to top,rgba(0,0,0,.5),transparent);pointer-events:none}.game-overlay-footer>*{pointer-events:auto}.performance-indicator{padding:8px 12px;background:#000000b3;color:#0f0;font-family:Courier New,monospace;font-size:12px;border-radius:4px}.fps-counter{display:flex;align-items:center;gap:4px}.fps-counter:before{content:"●";color:#0f0;animation:pulse 1s ease infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.keyboard-shortcuts-hint{padding:8px 12px;background:#0009;color:#fff;font-size:12px;border-radius:4px;opacity:.7;transition:opacity .3s ease}.keyboard-shortcuts-hint:hover{opacity:1}.keyboard-shortcuts-hint kbd{display:inline-block;padding:2px 6px;background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:3px;font-family:Courier New,monospace;font-size:11px;margin:0 2px}@media(max-width:768px){.view-controls{top:10px;right:10px;padding:8px 12px}.view-info,.keyboard-shortcuts-hint{display:none}.performance-indicator{bottom:10px;left:10px;font-size:10px}}.view-2d.entering{animation:slideInLeft .3s ease}.view-2d.leaving{animation:slideOutLeft .3s ease}.view-3d.entering{animation:slideInRight .3s ease}.view-3d.leaving{animation:slideOutRight .3s ease}@keyframes slideInLeft{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-100%);opacity:0}}@keyframes slideInRight{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}:root{--space-xs: .25rem;--space-sm: .5rem;--space-md: 1rem;--space-lg: 1.5rem;--space-xl: 2rem;--space-2xl: 3rem;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--text-3xl: 1.875rem;--touch-target-min: 44px;--mobile-sm: 320px;--mobile-md: 375px;--mobile-lg: 425px;--tablet: 768px;--desktop: 1024px;--desktop-lg: 1440px}.container{width:100%;margin:0 auto;padding:0 var(--space-md)}.grid{display:grid;gap:var(--space-md)}.grid-cols-1{grid-template-columns:repeat(1,1fr)}.grid-cols-2{grid-template-columns:repeat(2,1fr)}.grid-cols-3{grid-template-columns:repeat(3,1fr)}.grid-cols-4{grid-template-columns:repeat(4,1fr)}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-sm{gap:var(--space-sm)}.gap-md{gap:var(--space-md)}.gap-lg{gap:var(--space-lg)}.mobile-only{display:block}.tablet-only,.desktop-only{display:none}.touch-target{min-width:var(--touch-target-min);min-height:var(--touch-target-min);display:inline-flex;align-items:center;justify-content:center}.no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.scroll-smooth{scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.safe-padding{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}@media(min-width:768px){:root{--space-md: 1.25rem;--space-lg: 2rem;--space-xl: 2.5rem;--text-base: 1.0625rem}.container{max-width:750px;padding:0 var(--space-lg)}.mobile-only{display:none}.tablet-only{display:block}.md\:grid-cols-2{grid-template-columns:repeat(2,1fr)}.md\:grid-cols-3{grid-template-columns:repeat(3,1fr)}.md\:grid-cols-4{grid-template-columns:repeat(4,1fr)}.md\:flex-row{flex-direction:row}.md\:hidden{display:none}.md\:block{display:block}}@media(min-width:1024px){:root{--space-md: 1.5rem;--space-lg: 2.5rem;--space-xl: 3rem}.container{max-width:980px}.tablet-only{display:none}.desktop-only{display:block}.lg\:grid-cols-3{grid-template-columns:repeat(3,1fr)}.lg\:grid-cols-4{grid-template-columns:repeat(4,1fr)}.lg\:grid-cols-5{grid-template-columns:repeat(5,1fr)}.lg\:flex-row{flex-direction:row}.lg\:hidden{display:none}.lg\:block{display:block}}@media(min-width:1440px){.container{max-width:1280px}}@media(orientation:landscape){.landscape\:flex-row{flex-direction:row}.landscape\:grid-cols-2{grid-template-columns:repeat(2,1fr)}}@media(orientation:portrait){.portrait\:flex-col{flex-direction:column}.portrait\:grid-cols-1{grid-template-columns:repeat(1,1fr)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media(prefers-contrast:high){:root{--border-width: 2px}*{border-width:var(--border-width)!important}}@media(prefers-color-scheme:dark){:root{--bg-primary: #1a1a1a;--text-primary: #ffffff}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#1e3c72;min-height:100vh;color:#333;margin:0;padding:0}.app{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:20px}.loading,.error{text-align:center;color:#fff;font-size:1.2em}.lobby{background:#fff;border-radius:20px;padding:40px;box-shadow:0 20px 60px #0000004d;max-width:500px;width:100%}.lobby h1{text-align:center;color:#764ba2;margin-bottom:30px;font-size:2.5em}.connection-status{text-align:center;padding:20px;background:#f0f0f0;border-radius:10px;margin-bottom:20px}.player-name-input{margin-bottom:30px}.player-name-input label{display:block;margin-bottom:10px;font-weight:700;color:#555}.player-name-input input{width:100%;padding:12px;font-size:16px;border:2px solid #ddd;border-radius:8px;transition:border-color .3s}.player-name-input input:focus{outline:none;border-color:#764ba2}.lobby-actions{display:flex;flex-direction:column;gap:20px}.create-room-section,.join-room-section{padding:20px;background:#f9f9f9;border-radius:12px}.create-room-section h2,.join-room-section h2{margin-bottom:15px;color:#667eea}.divider{text-align:center;color:#999;font-weight:700;margin:10px 0}button{padding:12px 24px;font-size:16px;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:all .3s;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #0000004d}button:disabled{opacity:.5;cursor:not-allowed}.error-message{margin-top:20px;padding:12px;background:#ff6b6b;color:#fff;border-radius:8px;text-align:center}.game-room{background:#fff!important;border-radius:20px!important;padding:40px!important;box-shadow:0 20px 60px #0000004d!important;max-width:800px!important;width:90%!important;margin:auto!important;align-self:center!important;position:relative!important}.room-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.room-code{display:flex;gap:10px;align-items:center;padding:10px 15px;background:#f0f0f0;border-radius:8px}.players-list{margin-bottom:30px}.players-list h3{margin-bottom:15px;color:#667eea}.players-list ul{list-style:none}.players-list li{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:8px;background:#f9f9f9;border-radius:8px}.players-list li.current-player{background:#e8f4ff;border:2px solid #667eea}.player-item{display:flex;align-items:center;gap:12px;width:100%}.player-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.player-avatar.default{background:#e0e0e0;color:#666}.player-avatar.emoji{color:#fff;font-size:24px}.player-avatar.text{font-weight:700;font-size:16px}.player-name{flex:1;font-weight:500}.ready-status{padding:4px 12px;border-radius:4px;font-size:14px;font-weight:700}.ready-status.ready{background:#4caf50;color:#fff}.ready-status.not-ready{background:#ff9800;color:#fff}.room-actions{display:flex;gap:10px;margin-bottom:30px}.ready-button.set-ready{background:#4caf50}.ready-button.cancel-ready{background:#ff9800}.start-button{background:linear-gradient(135deg,#4caf50,#45a049)}.leave-button{background:#f44336}.game-rules{padding:20px;background:#f9f9f9;border-radius:12px}.game-rules h3{margin-bottom:15px;color:#667eea}.game-rules ul{list-style:none;padding-left:0}.game-rules li{padding:8px 0;border-bottom:1px solid #e0e0e0}.game-rules li:last-child{border-bottom:none}.game-board{background:#fff;border-radius:20px;padding:30px;box-shadow:0 20px 60px #0000004d;max-width:1200px;width:100%}.game-status{text-align:center;margin-bottom:20px}.turn-info{display:flex;justify-content:center;gap:20px;margin-top:10px}.my-turn{color:#4caf50;font-weight:700;font-size:1.2em}.turn-phase{padding:5px 15px;background:#667eea;color:#fff;border-radius:20px}.draw-pile-info{text-align:center;margin-bottom:20px;font-size:1.1em;color:#666}.players-board{display:grid;gap:20px;margin-bottom:30px}.player-area{padding:20px;background:#f9f9f9;border-radius:12px;border:2px solid transparent}.player-area.own-area{background:#e8f4ff;border-color:#667eea}.player-area.active-turn{border-color:#4caf50;box-shadow:0 0 20px #4caf504d}.player-area.eliminated{opacity:.6}.player-info{display:flex;align-items:center;gap:12px;margin-bottom:15px}.player-details{flex:1;display:flex;justify-content:space-between;align-items:center}.player-info h3{color:#333}.player-avatar-small{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}.player-avatar-small.default{background:#e0e0e0;color:#666}.player-avatar-small.emoji{color:#fff;font-size:20px}.player-avatar-small.text{font-weight:700;font-size:14px}.tile-count{color:#666}.tiles-container{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.tile-wrapper{display:flex;flex-direction:column;align-items:center}.placement-button{width:30px;height:30px;padding:0;margin:5px 0;font-size:18px;background:#4caf50;border-radius:50%}.placement-button:hover{background:#45a049}.tile{width:60px;height:80px;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;border:3px solid #333;position:relative}.tile-black{background:#2c2c2c;color:#fff}.tile-white{background:#fff;color:#333}.tile-hidden{background:linear-gradient(45deg,#667eea,#764ba2);color:#fff;cursor:pointer}.tile-revealed{opacity:.8;border-color:#ff6b6b}.tile-selected{transform:translateY(-10px);box-shadow:0 10px 20px #0000004d;border-color:#4caf50}.tile-joker{background:linear-gradient(45deg,gold,orange)}.tile-content{display:flex;flex-direction:column;align-items:center}.tile-value{font-size:24px;font-weight:700}.tile-color-indicator{font-size:12px;margin-top:5px}.action-panel{padding:20px;background:#f0f0f0;border-radius:12px;text-align:center}.action-button{padding:15px 30px;font-size:18px}.draw-button{background:#4caf50}.placing-instructions{text-align:center;color:#666}.placing-instructions p{margin:10px 0}.guessing-controls{text-align:center}.guess-form{display:flex;flex-direction:column;align-items:center;gap:15px}.guess-form input[type=text]{padding:10px;font-size:16px;border:2px solid #ddd;border-radius:8px;width:200px}.color-selection{display:flex;gap:20px}.color-selection label{display:flex;align-items:center;gap:5px;cursor:pointer}.pass-button{background:#ff9800}.game-end-content{text-align:center;margin:0 auto}.game-end h1{color:#764ba2;margin-bottom:30px;font-size:2.5em}.winner-announcement{margin:30px 0;padding:30px;background:linear-gradient(135deg,gold,#ffed4e);border-radius:15px}.winner-announcement h2{font-size:2em;margin-bottom:15px}.winner-name{font-size:2.5em;font-weight:700;color:#333;margin:20px 0}.no-winner{margin:30px 0;font-size:1.5em;color:#666}.final-standings{margin:30px 0;padding:20px;background:#f9f9f9;border-radius:12px}.final-standings h3{margin-bottom:15px;color:#667eea}.final-standings ol{list-style:none;counter-reset:item;padding:0}.final-standings li{counter-increment:item;padding:10px;margin:5px 0;background:#fff;border-radius:8px}.final-standings li:before{content:counter(item) ". ";font-weight:700;color:#667eea}.return-lobby-button{margin-top:30px;background:linear-gradient(135deg,#667eea,#764ba2);padding:15px 30px;font-size:18px}@media(max-width:768px){.app{padding:10px}.lobby,.game-room,.game-board,.game-end{padding:20px;border-radius:10px}.lobby h1,.game-end h1{font-size:1.8em}.lobby-actions{gap:15px}.room-actions{flex-direction:column}.players-board{grid-template-columns:1fr}.tiles-container{justify-content:center}.tile{width:50px;height:70px}.tile-value{font-size:20px}button{min-height:44px;font-size:14px}input,select{min-height:44px;font-size:16px}.chat-container{height:300px}.modal-content{margin:10px;width:calc(100% - 20px)}}@media(max-width:480px){.lobby h1,.game-end h1{font-size:1.5em}.tile{width:44px;height:60px}.tile-value{font-size:18px}.winner-name{font-size:1.8em}.room-header{flex-direction:column;gap:15px}.turn-info{flex-direction:column;gap:10px}.color-selection{flex-direction:column}}@media(min-width:768px)and (max-width:1024px){.players-board{grid-template-columns:repeat(2,1fr)}.game-board{max-width:100%}}@media(min-width:1440px){.game-board{max-width:1400px}.players-board{grid-template-columns:repeat(2,1fr)}}@media(orientation:landscape)and (max-height:600px){.game-status{margin-bottom:10px}.player-area{padding:10px}.tiles-container{gap:5px}}@media(hover:none)and (pointer:coarse){button:hover{transform:none;box-shadow:none}button:active,.tile:active{transform:scale(.95)}.tile{min-width:44px;min-height:60px}}@media print{body{background:#fff}.app{padding:0}button,.chat-container{display:none}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@keyframes pulseRing{0%{transform:translate(-50%,-50%) scale(.8);opacity:1}to{transform:translate(-50%,-50%) scale(2);opacity:0}}@keyframes fadeInOut{0%,to{opacity:.7}50%{opacity:1}}@keyframes bounceIn{0%{transform:translate(-50%) scale(0)}50%{transform:translate(-50%) scale(1.2)}to{transform:translate(-50%) scale(1)}}.tile-highlighted{background:#ffff004d!important;border:2px solid #ffff00!important;animation:pulse 1s infinite}.placement-button{background:#4caf50;color:#fff;border:none;padding:8px 12px;border-radius:4px;cursor:pointer;font-size:16px;transition:all .3s;margin:0 4px}.placement-button:hover,.placement-button.hovered{background:#45a049;transform:scale(1.1)}.placement-button.selected{background:#2196f3;animation:pulse 1s infinite}.placed-tile-indicator{position:absolute;top:-10px;right:-10px;background:#ff9800;color:#fff;padding:2px 6px;border-radius:12px;font-size:10px;font-weight:700;z-index:10;animation:fadeInOut 2s infinite}.pulse-ring{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;border:2px solid #ff9800;border-radius:50%;animation:pulseRing 2s infinite}.guess-indicator{position:absolute;top:-25px;left:50%;transform:translate(-50%);background:#00bfffe6;color:#fff;padding:4px 8px;border-radius:8px;font-size:12px;z-index:11;animation:bounceIn .5s}.guess-value{font-weight:700;font-size:14px;display:block}.guess-player{font-size:10px;opacity:.9}.continue-choice-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:30px;border-radius:15px;box-shadow:0 10px 40px #0000004d;z-index:1000;text-align:center}.continue-choice-modal h3{color:#4caf50;margin-bottom:15px;font-size:24px}.choice-buttons{display:flex;gap:15px;justify-content:center;margin-top:20px}.continue-button{background:#4caf50;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:16px;cursor:pointer;transition:all .3s}.continue-button:hover{background:#45a049;transform:scale(1.05)}.end-turn-button{background:#f44336;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:16px;cursor:pointer;transition:all .3s}.end-turn-button:hover{background:#da190b;transform:scale(1.05)}.reveal-selection-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;padding:30px;border-radius:15px;box-shadow:0 10px 40px #0000004d;z-index:1000;text-align:center}.reveal-selection-modal h3{color:#f44336;margin-bottom:15px;font-size:20px}.reveal-timer{font-size:24px;font-weight:700;color:#ff9800;margin:15px 0;animation:pulse 1s infinite}.confirm-reveal-button{background:#2196f3;color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:16px;cursor:pointer;transition:all .3s;margin-top:15px}.confirm-reveal-button:hover{background:#0b7dda;transform:scale(1.05)}.developer-mode-toggle{position:absolute;top:10px;right:10px;background:#ffffff1a;padding:5px 10px;border-radius:5px;font-size:12px;color:#fff}.developer-mode-toggle label{display:flex;align-items:center;gap:5px;cursor:pointer}.developer-mode-toggle input[type=checkbox]{cursor:pointer}.drawn-tile-preview{background:#ffffffe6;padding:10px 15px;border-radius:8px;margin-bottom:10px;font-weight:700;color:#333}.tile-wrapper{position:relative;display:inline-block}.center-tiles-container{position:relative;width:400px;height:400px;margin:20px auto;perspective:1000px}.center-tile{position:absolute;width:40px;height:60px;background:#888;border:2px solid #444;border-radius:4px;transition:all .3s;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;box-shadow:0 2px 4px #0000004d}.center-tile:hover{transform:scale(1.1)!important;z-index:10}.center-tile.selected{background:#44f!important;border-color:#ff0!important;box-shadow:0 0 20px #ffff0080!important;z-index:20}.center-tile.animating{animation:tilePickup 1s ease-out;z-index:100}@keyframes tilePickup{0%{transform:translate(0) scale(1)}50%{transform:translate(-100px,-100px) scale(1.5) rotate(180deg)}to{transform:translate(-200px,200px) scale(.8) rotate(360deg);opacity:0}}.preview-tile{display:inline-block;padding:10px;margin:10px;border-radius:8px;font-size:24px;font-weight:700;animation:pulse 1s infinite}.preview-tile.black{background:#333;color:#fff;border:3px solid #ffd700}.preview-tile.white{background:#fff;color:#333;border:3px solid #ffd700}.tile-trajectory{position:absolute;pointer-events:none;z-index:50}.tile-trajectory-line{stroke:gold;stroke-width:2;stroke-dasharray:5,5;fill:none;animation:dashMove .5s linear infinite}@keyframes dashMove{to{stroke-dashoffset:-10}}.connection-status{position:fixed;top:10px;right:10px;padding:10px 20px;background:#f44;color:#fff;border-radius:8px;font-weight:700;z-index:1000;animation:pulse 2s infinite;box-shadow:0 4px 6px #0000001a}.connection-status.reconnecting{background:#fa0}.latency-warning{position:fixed;top:10px;left:10px;padding:5px 10px;background:#fa0;color:#fff;border-radius:4px;font-size:12px;z-index:1000}.latency-warning.high{background:#f44}.pending-actions{position:fixed;bottom:100px;right:10px;padding:10px;background:#000000b3;color:#fff;border-radius:8px;z-index:999;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.pending-action{margin-bottom:5px;display:flex;align-items:center;gap:8px}.pending-action:before{animation:rotate 1s linear infinite;display:inline-block}.typing-indicators{position:fixed;bottom:60px;left:10px;display:flex;flex-direction:column;gap:5px}.typing-indicator{padding:5px 10px;background:#0009;color:#fff;border-radius:4px;font-size:12px;display:flex;align-items:center;gap:5px}.typing-dots{display:flex;gap:2px}.typing-dot{width:4px;height:4px;background:#fff;border-radius:50%;animation:typingDot 1.4s infinite}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typingDot{0%,60%,to{opacity:.2}30%{opacity:1}}.spectator-mode{position:fixed;top:50px;left:50%;transform:translate(-50%);padding:10px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:8px;font-weight:700;z-index:1000;box-shadow:0 4px 6px #0000001a}.spectator-controls{display:flex;gap:10px;margin-top:10px}.spectator-controls button{padding:5px 10px;background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:4px;cursor:pointer;transition:all .3s}.spectator-controls button:hover{background:#ffffff4d}.network-error-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:30px;background:#fff;border-radius:12px;box-shadow:0 10px 30px #0000004d;z-index:10000;max-width:400px;text-align:center}.network-error-modal h3{color:#f44;margin-bottom:15px}.network-error-modal button{padding:10px 20px;background:#44f;color:#fff;border:none;border-radius:6px;cursor:pointer;margin:5px;transition:all .3s}.network-error-modal button:hover{background:#33d;transform:translateY(-2px)}button:disabled{opacity:.5;cursor:not-allowed!important}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes slideIn{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes shakeHorizontal{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-5px)}20%,40%,60%,80%{transform:translate(5px)}}.game-stats{position:fixed;top:60px;right:10px;padding:10px;background:#000c;color:#fff;border-radius:8px;font-size:12px;z-index:900}.game-stats .stat-item{margin-bottom:5px;display:flex;justify-content:space-between;gap:10px}.game-stats .stat-label{opacity:.7}.game-stats .stat-value{font-weight:700}.leaderboard{position:fixed;left:10px;top:60px;padding:15px;background:#000000d9;color:#fff;border-radius:8px;min-width:200px;z-index:900}.leaderboard h4{margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.2)}.leaderboard-item{display:flex;justify-content:space-between;padding:5px 0;transition:all .3s}.leaderboard-item.current-player{color:gold;font-weight:700}.leaderboard-item.eliminated{opacity:.4;text-decoration:line-through}:root{font-family:Inter,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;padding:0;min-width:320px;min-height:100vh;width:100%;overflow-x:hidden}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}@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}to{transform:scale(1);opacity:1}}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{width:100%;height:100vh;margin:0;padding:0}
