:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2}button{font-family:inherit;cursor:pointer}.login-page{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:20px}.login-page h1{font-size:2.5rem;margin-bottom:.25rem;color:#2c3e50}.login-page .subtitle{color:#7f8c8d;margin-bottom:2rem}.login-form{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 4px 20px #0000001a;width:100%;max-width:400px}.login-form h2{margin-top:0;margin-bottom:1.5rem;text-align:center;color:#2c3e50}.login-form .error-message{background:#fde8e8;color:#e74c3c;padding:10px;border-radius:6px;margin-bottom:1rem;text-align:center}.login-form .form-field{margin-bottom:1rem}.login-form .form-field label{display:block;margin-bottom:.25rem;font-weight:600;color:#2c3e50}.login-form .form-field input{width:100%;padding:10px 12px;border:2px solid #ddd;border-radius:6px;font-size:1rem;box-sizing:border-box}.login-form .form-field input:focus{border-color:#3498db;outline:none}.login-form .submit-btn{width:100%;padding:12px;background:#3498db;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;margin-top:.5rem}.login-form .submit-btn:hover:not(:disabled){background:#2980b9}.login-form .submit-btn:disabled{opacity:.6;cursor:not-allowed}.login-form .toggle-btn{width:100%;padding:10px;background:none;border:none;color:#3498db;cursor:pointer;margin-top:1rem;font-size:.9rem}.login-form .toggle-btn:hover{text-decoration:underline}.lobby-page{max-width:600px;margin:0 auto;padding:20px}.lobby-page .lobby-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.lobby-page .lobby-header h1{margin:0;color:#2c3e50}.lobby-page .lobby-header .user-info{display:flex;align-items:center;gap:12px;color:#7f8c8d}.lobby-page .lobby-header .logout-btn{padding:6px 12px;background:none;border:1px solid #bdc3c7;border-radius:4px;cursor:pointer;color:#7f8c8d}.lobby-page .lobby-header .logout-btn:hover{background:#ecf0f1}.lobby-page .lobby-header .text-btn{background:none;border:none;color:#3498db;cursor:pointer;font-size:.85rem;padding:0}.lobby-page .lobby-header .text-btn:hover{text-decoration:underline}.lobby-page .password-change-form{display:flex;gap:8px;align-items:center;background:#fff;padding:12px 16px;border-radius:8px;box-shadow:0 2px 8px #00000014;margin-bottom:1rem;flex-wrap:wrap}.lobby-page .password-change-form input{padding:8px 10px;border:1px solid #ddd;border-radius:4px;font-size:.9rem;width:160px}.lobby-page .password-change-form input:focus{border-color:#3498db;outline:none}.lobby-page .password-change-form button{padding:8px 14px;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.lobby-page .password-change-form button[type=submit]{background:#27ae60;color:#fff}.lobby-page .password-change-form button[type=submit]:hover:not(:disabled){background:#219a52}.lobby-page .password-change-form button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.lobby-page .password-change-form button[type=button]{background:#ecf0f1;color:#7f8c8d}.lobby-page .password-change-form button[type=button]:hover{background:#ddd}.lobby-page .connection-status{text-align:center;padding:10px;background:#fef3cd;color:#856404;border-radius:6px;margin-bottom:1rem}.lobby-page .error-banner{text-align:center;padding:10px;background:#fde8e8;color:#e74c3c;border-radius:6px;margin-bottom:1rem}.lobby-actions{display:flex;flex-direction:column;gap:1rem;align-items:center}.lobby-actions .action-card{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 2px 10px #00000014;text-align:center;width:100%}.lobby-actions .action-card h2{margin-top:0;color:#2c3e50}.lobby-actions .action-card p{color:#7f8c8d}.lobby-actions .action-card button{padding:12px 24px;background:#3498db;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer}.lobby-actions .action-card button:hover:not(:disabled){background:#2980b9}.lobby-actions .action-card button:disabled{opacity:.6;cursor:not-allowed}.lobby-actions .action-card .join-form{display:flex;gap:8px;justify-content:center}.lobby-actions .action-card .join-form input{padding:12px;border:2px solid #ddd;border-radius:6px;font-size:1.5rem;text-align:center;width:120px;letter-spacing:4px;text-transform:uppercase}.lobby-actions .action-card .join-form input:focus{border-color:#3498db;outline:none}.lobby-actions .divider{color:#bdc3c7;font-size:1.1rem}.game-lobby{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 2px 10px #00000014;text-align:center}.game-lobby .game-code-display{margin-bottom:2rem}.game-lobby .game-code-display h2{margin-top:0;color:#7f8c8d;font-size:.9rem;text-transform:uppercase;letter-spacing:2px}.game-lobby .game-code-display .code{font-size:3rem;font-weight:700;letter-spacing:8px;color:#2c3e50;margin:.5rem 0}.game-lobby .game-code-display p{color:#7f8c8d;font-size:.9rem}.game-lobby .players-list{text-align:left;margin-bottom:1.5rem}.game-lobby .players-list h3{color:#2c3e50;margin-bottom:.75rem}.game-lobby .players-list .player-item{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:6px;margin-bottom:4px;background:#f8f9fa}.game-lobby .players-list .player-item.me{background:#ebf5fb}.game-lobby .players-list .player-item .player-name{flex:1;font-weight:500}.game-lobby .players-list .player-item .host-badge{background:#f39c12;color:#fff;padding:2px 8px;border-radius:10px;font-size:.75rem;font-weight:600}.game-lobby .players-list .player-item .you-badge{background:#3498db;color:#fff;padding:2px 8px;border-radius:10px;font-size:.75rem;font-weight:600}.game-lobby .start-btn{padding:14px 32px;background:#27ae60;color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer}.game-lobby .start-btn:hover:not(:disabled){background:#219a52}.game-lobby .start-btn:disabled{background:#95a5a6;cursor:not-allowed}.game-lobby .waiting-text{color:#7f8c8d;font-style:italic}.card{position:relative;width:80px;height:120px;background:#fff;border:2px solid #333;border-radius:8px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #0000001a;-webkit-user-select:none;user-select:none}.card:hover:not(.disabled){transform:translateY(-5px);box-shadow:0 4px 8px #0003}.card.selected{transform:translateY(-20px);border-color:#4a90e2;box-shadow:0 8px 16px #4a90e266;z-index:10}.card.disabled{opacity:.6;cursor:not-allowed}.card.red .suit,.card.red .suit-large{color:#e74c3c}.card.black .suit,.card.black .suit-large{color:#2c3e50}.card .card-corner{position:absolute;display:flex;flex-direction:column;align-items:center;font-weight:700}.card .card-corner.top-left{top:4px;left:4px}.card .card-corner.bottom-right{bottom:4px;right:4px;transform:rotate(180deg)}.card .card-corner .rank{font-size:18px;line-height:1}.card .card-corner .suit{font-size:16px;line-height:1}.card .card-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.card .card-center .suit-large{font-size:40px}.card .card-center .joker-label{font-size:10px;font-weight:700;margin-top:4px}.card.color-joker{background:linear-gradient(45deg,#ff6b6b,#4ecdc4,#ffe66d)}.card.color-joker .rank,.card.color-joker .joker-label,.card.black-joker .rank,.card.black-joker .joker-label{font-size:10px}.hand{position:relative;height:140px;margin:0 auto;padding:20px 0}.hand .card-wrapper{transition:z-index 0s;overflow:hidden}.hand .card-wrapper .card{transition:all .2s ease}.hand .card-wrapper:hover{z-index:100!important;overflow:visible}.hand .card-wrapper:hover .card{transform:translateY(-30px) scale(1.1);box-shadow:0 10px 20px #0000004d}.hand .card-wrapper.selected{z-index:50!important;overflow:visible}.hand .card-wrapper.selected .card{transform:translateY(-20px)}@media (max-width: 768px){.hand{gap:5px;padding:10px}.hand .card{width:60px;height:90px}.hand .card .card-corner .rank{font-size:14px}.hand .card .card-corner .suit{font-size:12px}.hand .card .card-center .suit-large{font-size:30px}}.game-board{position:relative;width:100%;max-width:600px;height:500px;margin:0 auto;background:#2ecc71;border-radius:20px;box-shadow:inset 0 0 20px #0003}.game-board .center-area{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.game-board .center-area .played-cards{position:relative}.game-board .center-area .played-cards .played-card-wrapper{position:absolute;display:flex;flex-direction:column;align-items:center;gap:5px}.game-board .center-area .played-cards .played-card-wrapper .player-label{background:#ffffffe6;padding:2px 8px;border-radius:4px;font-size:12px;font-weight:600}.game-board .players-ring{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.game-board .players-ring .player-slot{position:absolute;background:#ffffffe6;padding:10px 20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;text-align:center;transform-origin:center}.game-board .players-ring .player-slot.current-turn{background:#f39c12;color:#fff;box-shadow:0 0 20px #f39c1299}.game-board .players-ring .player-slot.point-player{position:relative}.game-board .players-ring .player-slot .point-indicator{position:absolute;top:-8px;right:-8px;width:16px;height:16px;background:#e74c3c;border-radius:50%;border:2px solid white;box-shadow:0 2px 4px #0003}.game-board .players-ring .player-slot .trick-leader-indicator{position:absolute;top:-8px;left:-8px;width:16px;height:16px;background:#3498db;border-radius:50%;border:2px solid white;box-shadow:0 2px 4px #0003}.game-board .players-ring .player-slot .player-name{font-weight:600;font-size:14px}.game-board .players-ring .player-slot .turn-indicator{font-size:12px;margin-top:4px}.game-board .players-ring .player-score{position:absolute;top:50%;left:50%;font-size:20px;font-weight:700;background:#fff;padding:8px 12px;border-radius:20px;box-shadow:0 2px 8px #00000026;white-space:nowrap;transition:color .3s ease}@media (max-width: 768px){.game-board{height:400px}.game-board .players-ring .player-slot{padding:8px 16px}.game-board .players-ring .player-slot .player-name{font-size:12px}.game-board .players-ring .player-slot .turn-indicator{font-size:10px}}.score-overlay{position:fixed;inset:0;background:#00000080;z-index:999}.score-view{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:12px;box-shadow:0 4px 20px #0003;width:90%;max-width:1000px;max-height:80vh;display:flex;flex-direction:column;z-index:1000}.score-view .score-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e0e0e0}.score-view .score-header h2{margin:0;color:#2c3e50}.score-view .score-header .close-button{background:none;border:none;font-size:28px;color:#7f8c8d;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.score-view .score-header .close-button:hover{color:#2c3e50}.score-view .score-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.score-view .score-table-container{flex:1;overflow-y:auto;padding:20px 20px 0}.score-view .score-total-container{position:sticky;bottom:0;background:#fff;padding:0 20px 20px;border-top:2px solid #2c3e50;box-shadow:0 -2px 10px #0000001a}.score-view .score-table{width:100%;border-collapse:collapse}.score-view .score-table th,.score-view .score-table td{padding:8px 12px;text-align:center;border:1px solid #e0e0e0}.score-view .score-table th{background:#f8f9fa;font-weight:600;color:#2c3e50;position:sticky;top:0;z-index:10}.score-view .score-table tbody tr:hover{background:#f8f9fa}.score-view .score-table .current-round{background:#e8f4fd;font-weight:600}.score-view .score-table .future-round{opacity:.5;color:#7f8c8d}.score-view .score-table .point-player{background:#fff3cd}.score-view .score-table .correct-bid{background:#d4edda}.score-view .score-table .correct-bid.point-player{background:repeating-linear-gradient(45deg,#fff3cd,#fff3cd 10px,#d4edda 10px 20px)}.score-view .score-table .incorrect-bid{background:#f8d7da}.score-view .score-table .incorrect-bid.point-player{background:repeating-linear-gradient(45deg,#fff3cd,#fff3cd 10px,#f8d7da 10px 20px)}.score-view .score-table .total-row{font-weight:700;background:#f8f9fa}.score-view .score-table .total-row td{border-top:2px solid #2c3e50}.game-page{min-height:100vh;padding:20px;background:#ecf0f1;position:relative}.game-page .round-tracker{position:absolute;top:20px;left:20px;background:#fff;padding:15px 20px;border-radius:8px;box-shadow:0 2px 5px #0000001a;color:#2c3e50}.game-page .round-tracker .round-info{font-weight:600;margin-bottom:10px}.game-page .round-tracker .score-button{background:#3498db;color:#fff;border:none;padding:5px 12px;border-radius:4px;font-size:14px;cursor:pointer;font-weight:500;margin-bottom:10px}.game-page .round-tracker .score-button:hover{background:#2980b9}.game-page .round-tracker .help-text{font-size:12px;color:#7f8c8d;line-height:1.4}.game-page .round-tracker .help-text div{margin:2px 0}.game-page .round-tracker .help-text .red-dot{color:#e74c3c;font-size:16px;vertical-align:middle}.game-page .round-tracker .help-text .blue-dot{color:#3498db;font-size:16px;vertical-align:middle}.game-page h1{text-align:center;color:#2c3e50;margin-bottom:30px}.game-page .game-board-container{margin-bottom:40px}.game-page .bidding-phase{text-align:center;max-width:1000px;margin:0 auto}.game-page .bidding-phase h2{color:#2c3e50;margin-bottom:20px}.game-page .bidding-phase .current-bids{display:flex;justify-content:center;gap:20px;margin-bottom:30px;flex-wrap:wrap}.game-page .bidding-phase .current-bids .player-bid{padding:10px 15px;background:#ecf0f1;border-radius:6px;font-weight:500;color:#2c3e50}.game-page .bidding-phase .bid-input{background:#fff;padding:20px;border-radius:12px;box-shadow:0 2px 10px #0000001a;max-width:600px;margin:20px auto 0}.game-page .bidding-phase .bid-input h3{margin:0 0 10px;color:#2c3e50}.game-page .bidding-phase .bid-input p{margin:0 0 15px;color:#7f8c8d}.game-page .bidding-phase .bid-input .bid-selection .bid-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:20px;max-width:600px;margin-left:auto;margin-right:auto}.game-page .bidding-phase .bid-input .bid-selection .bid-buttons .bid-button{width:50px;height:50px;border-radius:50%;border:2px solid #e9ecef;background:#fff;color:#2c3e50;font-size:18px;font-weight:600;cursor:pointer;transition:all .2s}.game-page .bidding-phase .bid-input .bid-selection .bid-buttons .bid-button:hover{border-color:#3498db;transform:scale(1.1)}.game-page .bidding-phase .bid-input .bid-selection .bid-buttons .bid-button.selected{background:#3498db;color:#fff;border-color:#2980b9;transform:scale(1.15)}.game-page .bidding-phase .bid-input .bid-selection .bid-actions{display:flex;flex-direction:column;align-items:center;gap:15px}.game-page .bidding-phase .bid-input .bid-selection .bid-actions .current-bid-display{font-size:18px;color:#2c3e50}.game-page .bidding-phase .bid-input .bid-selection .bid-actions .current-bid-display .bid-value{font-weight:700;color:#3498db;font-size:24px}.game-page .bidding-phase .bid-input .bid-selection .bid-actions .submit-button{padding:12px 36px;font-size:18px;background-color:#27ae60;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s;box-shadow:0 2px 4px #0000001a}.game-page .bidding-phase .bid-input .bid-selection .bid-actions .submit-button:hover{background-color:#229954;transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.game-page .bidding-phase p{color:#7f8c8d;font-style:italic}.game-page .player-area{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 10px #0000001a;max-width:1000px;margin:0 auto}.game-page .player-area h2{text-align:center;color:#2c3e50;margin-bottom:20px}.game-page .player-area .play-button{display:block;margin:20px auto 0;padding:12px 32px;background:#3498db;color:#fff;border:none;border-radius:6px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s}.game-page .player-area .play-button:hover{background:#2980b9}.game-page .game-over-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}.game-page .game-over-overlay .game-over-modal{background:#fff;padding:2rem;border-radius:12px;text-align:center;min-width:300px}.game-page .game-over-overlay .game-over-modal h2{margin-top:0}.game-page .game-over-overlay .game-over-modal .winner{font-size:1.3rem;font-weight:600;color:#27ae60}.game-page .game-over-overlay .game-over-modal .final-scores{margin:1.5rem 0}.game-page .game-over-overlay .game-over-modal .final-scores .score-row{display:flex;justify-content:space-between;padding:8px 12px;border-radius:4px}.game-page .game-over-overlay .game-over-modal .final-scores .score-row.winner{background:#eafaf1;font-weight:600}.game-page .game-over-overlay .game-over-modal .final-scores .score-row .rank{width:30px;text-align:left}.game-page .game-over-overlay .game-over-modal .final-scores .score-row .name{flex:1;text-align:left}.game-page .game-over-overlay .game-over-modal .final-scores .score-row .score{width:50px;text-align:right;font-weight:600}.game-page .game-over-overlay .game-over-modal .game-over-actions{display:flex;flex-direction:column;gap:10px}.game-page .game-over-overlay .game-over-modal .game-over-actions button{padding:12px 24px;background:#3498db;color:#fff;border:none;border-radius:6px;font-size:1rem;cursor:pointer}.game-page .game-over-overlay .game-over-modal .game-over-actions button:hover{background:#2980b9}.game-page .game-over-overlay .game-over-modal .game-over-actions .review-btn{background:#27ae60}.game-page .game-over-overlay .game-over-modal .game-over-actions .review-btn:hover{background:#219a52}@media (max-width: 768px){.game-page{padding:10px}.game-page h1{font-size:24px;margin-bottom:20px}.game-page .player-area{padding:15px}.game-page .player-area h2{font-size:18px}}@keyframes slideIn{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOut{0%{transform:translate(0);opacity:1}to{transform:translate(-100%);opacity:0}}.toast{position:fixed;bottom:20px;left:20px;min-width:300px;max-width:500px;padding:16px 20px;border-radius:8px;box-shadow:0 4px 12px #00000026;display:flex;align-items:center;justify-content:space-between;animation:slideIn .3s ease-out;z-index:1000}.toast.toast-success{background-color:#27ae60;color:#fff}.toast.toast-error{background-color:#e74c3c;color:#fff}.toast.toast-info{background-color:#3498db;color:#fff}.toast .toast-message{flex:1;margin-right:16px;font-weight:500}.toast .toast-close{background:none;border:none;color:#fff;font-size:24px;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;opacity:.8;transition:opacity .2s}.toast .toast-close:hover{opacity:1}#root{width:100%;min-height:100vh}*{box-sizing:border-box}
