.high-score-card{width:100%;max-width:320px;background:var(--color-surface);border:1px solid rgba(255,255,255,.1);border-radius:var(--border-radius-lg);padding:12px 16px;margin-top:16px;cursor:pointer;transition:all .2s ease;text-align:left}.high-score-card:hover{background:var(--color-surface-light);border-color:#fff3;transform:translateY(-2px)}.high-score-header{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.1)}.trophy-icon{width:20px;height:20px;color:gold;flex-shrink:0}.high-score-title{flex:1;font-size:.875rem;font-weight:600;color:var(--color-text);text-transform:uppercase;letter-spacing:.5px}.chevron-icon{width:16px;height:16px;color:var(--color-text-muted);flex-shrink:0}.high-score-list{display:flex;flex-direction:column;gap:8px}.high-score-entry{display:flex;align-items:center;gap:10px}.rank{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;border-radius:50%;background:#ffffff1a;color:var(--color-text-muted);flex-shrink:0}.rank.gold{background:linear-gradient(135deg,gold,orange);color:#1a1a2e}.rank.silver{background:linear-gradient(135deg,silver,#a0a0a0);color:#1a1a2e}.rank.bronze{background:linear-gradient(135deg,#cd7f32,sienna);color:#1a1a2e}.player-count{flex:1;font-size:.75rem;color:var(--color-text-muted);font-weight:500}.score-value{font-size:.875rem;font-weight:600;color:var(--color-primary);font-variant-numeric:tabular-nums;flex-shrink:0}.view-all-hint{margin-top:10px;padding-top:8px;border-top:1px solid rgba(255,255,255,.05);text-align:center;font-size:.75rem;color:var(--color-text-muted)}.home-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}.home-content{max-width:400px;width:100%}.game-title{font-size:4rem;font-weight:900;letter-spacing:.15em;margin:0;background:linear-gradient(135deg,var(--color-primary),#4ECDC4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:none}.game-subtitle{font-size:1rem;color:var(--color-text-muted);margin:8px 0 40px;letter-spacing:.1em}.menu-buttons{display:flex;flex-direction:column;gap:12px}.menu-btn{width:100%;font-size:1.1rem;padding:16px 24px}.form-container{background:var(--color-surface);border-radius:var(--border-radius-lg);padding:24px;text-align:left}.player-setup{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:.875rem;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em}.color-picker{display:flex;align-items:center;gap:12px}.color-nav{width:40px;height:40px;min-height:40px;padding:0;font-size:1.25rem;background:var(--color-surface-light);border-radius:50%;display:flex;align-items:center;justify-content:center}.color-preview{flex:1;height:48px;border-radius:var(--border-radius);display:flex;align-items:center;justify-content:center;transition:background .2s ease}.color-name{font-weight:600;color:#000000b3;text-shadow:0 1px 2px rgba(255,255,255,.3)}.error-message{background:#ff6b6b26;color:var(--color-error);padding:12px 16px;border-radius:var(--border-radius);font-size:.875rem}.form-actions{display:flex;gap:12px;margin-top:8px}.form-actions button{flex:1}.home-footer{position:absolute;bottom:20px;left:0;right:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}.home-footer p{font-size:.875rem;color:var(--color-text-muted);margin:0}.built-by{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--color-text-muted);font-size:.75rem;opacity:.7;transition:opacity .2s ease}.built-by:hover{opacity:1}.ridvan-logo{height:20px;width:auto}.local-setup{display:flex;flex-direction:column;gap:20px}.local-setup h2{margin:0;font-size:1.5rem;text-align:center}.local-desc{text-align:center;color:var(--color-text-muted);margin:0}.player-count-selector{display:flex;flex-direction:column;gap:12px}.player-count-selector label{font-size:.875rem;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em}.player-count-buttons{display:flex;gap:8px}.count-btn{flex:1;padding:12px;background:var(--color-surface-light);border:2px solid transparent;font-weight:700}.count-btn.selected{border-color:var(--color-primary);background:#e9456026}.control-schemes{background:var(--color-surface-light);border-radius:var(--border-radius);padding:16px}.control-schemes h3{font-size:.875rem;color:var(--color-text-muted);text-transform:uppercase;margin:0 0 12px}.control-scheme{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--color-surface)}.control-scheme:last-child{border-bottom:none}.player-label{font-weight:700;color:var(--color-primary)}.control-keys{color:var(--color-text-muted);font-family:monospace;font-size:.9rem}.solo-btn{margin-top:8px;opacity:.8}.friends-btn{border-color:var(--color-success)!important}.friends-list-container{display:flex;flex-direction:column;gap:16px}.friends-list-container h2{margin:0;font-size:1.5rem;text-align:center}.friends-desc{text-align:center;color:var(--color-text-muted);margin:0;font-size:.875rem}.friends-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow-y:auto}.friend-card{display:flex;align-items:center;gap:12px;padding:12px;background:var(--color-surface-light);border-radius:var(--border-radius);cursor:pointer;transition:all .15s ease;border:2px solid transparent}.friend-card:hover{border-color:var(--color-primary)}.friend-card.checking{opacity:.6;pointer-events:none}.friend-color{width:40px;height:40px;border-radius:50%;flex-shrink:0}.friend-info{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.friend-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.friend-meta{font-size:.75rem;color:var(--color-text-muted)}.remove-friend-btn{width:32px;height:32px;min-height:32px;padding:0;background:transparent;color:var(--color-text-muted);font-size:1.5rem;line-height:1;border-radius:50%;opacity:.5;transition:all .15s ease}.remove-friend-btn:hover{opacity:1;background:var(--color-error);color:#fff}@media(max-width:480px){.game-title{font-size:3rem}.form-container{padding:20px}}.key-binding-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}.key-binding-modal{background:var(--color-surface);border-radius:var(--border-radius-lg);padding:24px;min-width:320px;max-width:90vw;animation:slideUp .2s ease}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1)}.modal-header h2{margin:0;font-size:1.25rem}.modal-header .player-name{font-size:.875rem;color:var(--color-text-muted)}.bindings-list{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.binding-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px;background:#ffffff0d;border-radius:var(--border-radius);transition:background .15s ease}.binding-row.listening{background:#4ecdc41a;box-shadow:0 0 0 1px var(--color-primary)}.action-label{font-size:.875rem;color:var(--color-text);min-width:100px}.key-button{flex:1;max-width:140px;padding:10px 16px;background:var(--color-surface-light);border:1px solid rgba(255,255,255,.15);border-radius:var(--border-radius);color:var(--color-text);font-size:.875rem;font-weight:600;text-align:center;cursor:pointer;transition:all .15s ease;min-height:44px}.key-button:hover{background:#ffffff26;border-color:#ffffff40}.key-button.listening{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.key-display{display:inline-block;min-width:20px}.listening-text{font-weight:400;font-size:.8rem}.error-message{padding:10px 12px;background:#e9456026;border:1px solid rgba(233,69,96,.3);border-radius:var(--border-radius);color:#ff6b6b;font-size:.8rem;margin-bottom:16px;text-align:center}.modal-actions{display:flex;gap:12px;justify-content:flex-end}.modal-actions button{min-width:100px}.lobby-screen{flex:1;display:flex;flex-direction:column;padding:20px;max-width:600px;margin:0 auto;width:100%;overflow-y:auto;min-height:0}.lobby-content{display:flex;flex-direction:column;gap:20px;padding-bottom:20px}.lobby-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.lobby-header h1{font-size:1.5rem;margin:0}.btn-back{background:transparent;color:var(--color-text-muted);padding:8px 16px;min-height:auto}.btn-back:hover{color:var(--color-text)}.room-code-display{display:flex;flex-direction:column;align-items:flex-end}.room-code-label{font-size:.75rem;color:var(--color-text-muted);text-transform:uppercase}.room-code{background:var(--color-surface);color:var(--color-primary);font-size:1.25rem;font-weight:700;letter-spacing:.15em;padding:8px 16px;min-height:auto;border-radius:var(--border-radius)}.room-code:hover{background:var(--color-surface-light)}.share-section{background:var(--color-surface);border-radius:var(--border-radius);padding:12px;display:flex;flex-direction:column;gap:12px}.share-buttons{display:flex;gap:8px}.share-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 8px;min-height:auto;background:var(--color-surface-light);font-size:.75rem;font-weight:600;color:#fff}.share-btn:hover{background:#4ecdc426}.share-btn.active{background:#4ecdc433;border:1px solid var(--color-success)}.share-btn.copied{background:#4ecdc433;color:var(--color-success)}.share-icon{width:20px;height:20px;flex-shrink:0}.qr-code-container{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;background:#fff;border-radius:var(--border-radius)}.qr-code{width:160px;height:160px;image-rendering:pixelated}.qr-hint{margin:0;font-size:.75rem;color:#666}.lobby-body{display:flex;flex-direction:column;gap:24px}.profile-section h2,.players-section h2,.settings-section h2{font-size:1rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px}.profile-card{background:var(--color-surface);padding:16px;border-radius:var(--border-radius)}.profile-display{display:flex;align-items:center;gap:12px}.profile-color{width:48px;height:48px;border-radius:50%;flex-shrink:0}.profile-info{flex:1;display:flex;flex-direction:column;gap:2px}.profile-name{font-weight:700;font-size:1.1rem}.profile-color-name{font-size:.875rem;color:var(--color-text-muted)}.btn-edit{background:var(--color-surface-light);padding:8px 16px;min-height:auto;font-size:.875rem}.profile-edit{display:flex;flex-direction:column;gap:16px}.edit-row{display:flex;flex-direction:column;gap:8px}.edit-row label{font-size:.875rem;font-weight:600;color:var(--color-text-muted)}.color-options{display:flex;flex-wrap:wrap;gap:8px}.color-option{width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;border:3px solid transparent;transition:all .15s ease}.color-option:hover{transform:scale(1.1)}.color-option.selected{border-color:#fff;box-shadow:0 0 0 2px var(--color-primary)}.color-option.used{opacity:.3;cursor:not-allowed;position:relative}.color-option.used:after{content:"✕";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.2rem;font-weight:700;text-shadow:0 0 2px rgba(0,0,0,.8)}.color-option.used:hover{transform:none}.edit-actions{display:flex;gap:8px;margin-top:8px}.edit-actions button{flex:1}.you-badge{font-size:.75rem;background:var(--color-surface-light);color:var(--color-text-muted);padding:2px 8px;border-radius:10px;font-weight:600}.player-card.is-you{background:#4ecdc41a}.players-list{display:flex;flex-direction:column;gap:8px}.player-card{display:flex;align-items:center;gap:12px;background:var(--color-surface);padding:12px 16px;border-radius:var(--border-radius);border:2px solid transparent;transition:border-color .2s ease}.player-card.is-ready{border-color:var(--color-success)}.player-card.empty{opacity:.5}.player-color-wrapper{position:relative;flex-shrink:0}.player-color{width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;flex-shrink:0;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,border-color .15s ease}.player-color:hover{transform:scale(1.1);border-color:#fff}.color-picker-dropdown{position:absolute;top:100%;left:0;margin-top:8px;background:var(--color-surface);border-radius:var(--border-radius);padding:8px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;z-index:100;box-shadow:0 4px 20px #0006}.color-picker-dropdown .color-option{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:all .15s ease}.color-picker-dropdown .color-option:hover:not(.used){transform:scale(1.15);border-color:#fff}.color-picker-dropdown .color-option.selected{border-color:#fff;box-shadow:0 0 0 2px var(--color-primary)}.color-picker-dropdown .color-option.used{opacity:.3;cursor:not-allowed}.color-picker-dropdown .color-option.used:hover{transform:none}.player-color.empty{border:2px dashed var(--color-text-muted);background:transparent}.player-info{flex:1}.player-name{font-weight:600;display:flex;align-items:center;gap:8px}.host-badge{font-size:.75rem;background:var(--color-primary);color:#fff;padding:2px 8px;border-radius:10px;font-weight:600}.player-status{font-size:.875rem;color:var(--color-text-muted)}.player-card.is-ready .player-status{color:var(--color-success)}.difficulty-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.difficulty-option{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:var(--color-surface);padding:16px;text-align:left;border:2px solid transparent;color:#fff}.difficulty-option.selected{border-color:var(--color-primary);background:var(--color-primary)}.difficulty-option.winning{background:#4ecdc433;border-color:var(--color-success)}.difficulty-header{display:flex;align-items:center;justify-content:space-between;width:100%}.difficulty-name{font-weight:700;font-size:1rem}.vote-count{font-size:.75rem;color:var(--color-success);background:#4ecdc433;padding:2px 8px;border-radius:10px}.difficulty-desc{font-size:.75rem;color:var(--color-text-muted)}.lobby-footer{padding-top:16px;border-top:1px solid var(--color-surface-light)}.lobby-footer button{width:100%}.host-controls{display:flex;flex-direction:column;gap:12px;text-align:center}.waiting-text{color:var(--color-text-muted);font-size:.875rem}.start-btn{font-size:1.25rem;padding:20px}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-header h2{margin:0}.btn-add-player{background:var(--color-surface-light);color:var(--color-success);padding:8px 16px;min-height:auto;font-size:.875rem;font-weight:600}.btn-add-player:hover{background:#4ecdc433}.local-player{flex-wrap:wrap}.name-input{background:var(--color-surface-light);border:1px solid var(--color-primary);padding:4px 8px;font-size:1rem;width:120px}.player-controls-config{display:flex;flex-direction:column;gap:4px;margin-left:auto;padding-left:12px}.control-select{background:var(--color-surface-light);color:var(--color-text);border:1px solid transparent;padding:8px 12px;font-size:.875rem;border-radius:var(--border-radius);cursor:pointer;min-width:100px}.control-select:hover{border-color:var(--color-primary)}.control-select:focus{outline:2px solid var(--color-primary);outline-offset:2px}.scheme-select{min-width:80px}.control-select option:disabled{color:var(--color-text-muted);font-style:italic}.btn-configure{width:36px;height:36px;min-height:36px;padding:8px;background:var(--color-surface-light);border:1px solid transparent;border-radius:var(--border-radius);color:var(--color-text-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0}.btn-configure:hover{background:#4ecdc426;border-color:var(--color-primary);color:var(--color-primary)}.btn-configure svg{width:100%;height:100%}.btn-remove-player{width:32px;height:32px;min-height:32px;padding:0;background:transparent;color:var(--color-text-muted);font-size:1.5rem;line-height:1;border-radius:50%;opacity:.6;flex-shrink:0;margin-left:8px}.btn-remove-player:hover{opacity:1;background:var(--color-error);color:#fff}.remote-section{border-top:1px solid var(--color-surface-light);padding-top:16px}.waiting-notice{text-align:center;padding:20px;background:var(--color-surface);border-radius:var(--border-radius);color:var(--color-text-muted)}.waiting-notice p{margin:0}@media(max-width:480px){.lobby-screen{padding:16px 16px 40px}.difficulty-options{grid-template-columns:1fr}.lobby-header{flex-wrap:wrap}.lobby-header h1{order:-1;width:100%;text-align:center;margin-bottom:8px}.lobby-footer{padding-bottom:env(safe-area-inset-bottom,16px)}}.touch-controls{position:fixed;bottom:0;left:0;right:0;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:flex-end;z-index:50;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:none}.controls-side{pointer-events:auto;display:flex;gap:8px}.left-side{flex-direction:row;align-items:flex-end}.right-side{flex-direction:column;align-items:flex-end}.control-btn{width:72px;height:72px;min-height:72px;padding:0;font-size:2rem;font-weight:700;background:#ffffff1f;border:2px solid rgba(255,255,255,.15);border-radius:50%;color:var(--color-text);display:flex;align-items:center;justify-content:center;transition:all .1s ease;-webkit-tap-highlight-color:transparent;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.btn-icon{display:flex;align-items:center;justify-content:center}.control-btn:active{transform:scale(.92);background:#ffffff40;border-color:var(--color-primary)}.left-btn{background:#74b9ff26;border-color:#74b9ff40}.left-btn:active{background:#74b9ff59}.right-btn{background:#74b9ff26;border-color:#74b9ff40}.right-btn:active{background:#74b9ff59}.down-btn{background:#ffab9126;border-color:#ffab9140}.down-btn:active{background:#ffab9159}.rotate-btn{background:#4ecdc426;border-color:#4ecdc440}.rotate-btn:active{background:#4ecdc459}.drop-btn{width:auto;min-width:72px;height:56px;min-height:56px;padding:0 20px;font-size:.8rem;font-weight:700;letter-spacing:.15em;border-radius:28px;background:#e9456033;border-color:#e945604d}.drop-btn:active{background:#e9456066}.desktop-layout{justify-content:flex-end}.desktop-layout .left-side{position:absolute;right:12px;bottom:max(100px,calc(env(safe-area-inset-bottom) + 88px));flex-direction:row}.desktop-layout .right-side{flex-direction:row}@media(min-width:400px){.control-btn{width:80px;height:80px;min-height:80px;font-size:2.25rem}.drop-btn{height:60px;min-height:60px;padding:0 24px;font-size:.875rem}.desktop-layout .left-side{bottom:max(108px,calc(env(safe-area-inset-bottom) + 96px))}}@media(orientation:landscape)and (max-height:500px){.touch-controls{padding:8px 16px}.control-btn{width:56px;height:56px;min-height:56px;font-size:1.5rem}.drop-btn{height:48px;min-height:48px;padding:0 16px;font-size:.75rem}}@media(max-width:360px){.control-btn{width:60px;height:60px;min-height:60px;font-size:1.75rem}.drop-btn{height:52px;min-height:52px;padding:0 16px;font-size:.75rem}}.score-display{display:flex;gap:24px}.score-item{display:flex;flex-direction:column;align-items:flex-start}.score-label{font-size:.625rem;text-transform:uppercase;letter-spacing:.1em;color:var(--color-text-muted)}.score-value{font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}.main-score .score-value{color:var(--color-primary);font-size:1.5rem}@media(max-width:360px){.score-display{gap:16px}.score-value{font-size:1rem}.main-score .score-value{font-size:1.25rem}}.controls-toggle{width:36px;height:36px;min-height:36px;padding:0;font-size:1rem;font-weight:700;background:var(--color-surface-light);border-radius:50%;margin-right:8px}.controls-overlay{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:200;animation:fadeIn .2s ease}.controls-modal{background:var(--color-surface);padding:24px;border-radius:var(--border-radius-lg);max-width:360px;width:90%;text-align:center}.controls-modal h2{margin:0 0 20px;font-size:1.5rem}.controls-section{margin-bottom:20px;text-align:left}.controls-section h3{font-size:.875rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:12px}.control-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}.control-key{background:var(--color-surface-light);padding:4px 10px;border-radius:4px;font-family:monospace;font-size:.875rem;border:1px solid var(--color-text-muted)}.control-desc{color:var(--color-text-muted);margin-left:auto}.touch-note{color:var(--color-text-muted);font-size:.875rem}.controls-modal .btn-primary{width:100%;margin-top:8px}.game-screen{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative}.game-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--color-surface);z-index:10}.header-actions{display:flex;align-items:center;gap:8px}.pause-btn{width:48px;height:48px;min-height:48px;padding:0;font-size:1.25rem;background:var(--color-surface-light);border-radius:50%}.zoom-btn{width:48px;height:48px;min-height:48px;padding:12px;background:var(--color-surface-light);border-radius:50%;color:#fff;transition:background .15s ease}.zoom-btn:hover{background:#4ecdc433}.zoom-btn.zoomed-out{background:var(--color-primary)}.zoom-btn svg{width:100%;height:100%}.game-container{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden}.game-container canvas{max-width:100%;max-height:100%;object-fit:contain}.pause-overlay{position:absolute;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .2s ease}.pause-modal{background:var(--color-surface);padding:32px;border-radius:var(--border-radius-lg);text-align:center;min-width:280px}.pause-modal h2{margin:0 0 24px;font-size:2rem}.pause-actions{display:flex;flex-direction:column;gap:12px}.pause-actions button{width:100%}@media(max-height:600px){.game-header{padding:8px 12px}}@media(orientation:landscape)and (max-height:500px){.game-header{position:absolute;top:0;left:0;right:0;background:#16213ee6}.game-container{padding-top:60px}}.gameover-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center;overflow-y:auto}.gameover-content{max-width:400px;width:100%}.gameover-title{font-size:3rem;font-weight:900;margin:0 0 16px;color:var(--color-primary)}.new-high-score{background:linear-gradient(135deg,var(--color-warning),var(--color-primary));color:#fff;font-size:1.25rem;font-weight:700;padding:8px 24px;border-radius:20px;margin-bottom:16px;display:inline-block;animation:pulse 1s ease infinite}.final-stats{background:var(--color-surface);border-radius:var(--border-radius-lg);padding:24px;margin-bottom:16px}.stat-item{display:flex;flex-direction:column;align-items:center}.stat-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--color-text-muted);margin-bottom:4px}.stat-value{font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums}.main-stat{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--color-surface-light)}.main-stat .stat-value{font-size:2.5rem;color:var(--color-success)}.stat-row{display:flex;justify-content:space-around}.btn-toggle-scores{background:transparent;color:var(--color-text-muted);font-size:.875rem;padding:8px 16px;min-height:auto;margin-bottom:16px}.btn-toggle-scores:hover{color:var(--color-text)}.high-scores-panel{background:var(--color-surface);border-radius:var(--border-radius-lg);padding:16px;margin-bottom:16px;text-align:left}.high-scores-panel h2{font-size:1rem;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;margin:0 0 12px;text-align:center}.no-scores{text-align:center;color:var(--color-text-muted);font-size:.875rem}.scores-list{display:flex;flex-direction:column;gap:8px}.score-entry{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;background:var(--color-surface-light);border-radius:var(--border-radius);border:2px solid transparent}.score-entry.is-current{border-color:var(--color-success);background:#4ecdc41a}.score-rank{font-weight:700;color:var(--color-primary);min-width:28px}.score-details{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.score-points{font-weight:700;font-size:1.1rem;color:var(--color-success)}.score-players{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.score-players .player-dot{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:1px solid rgba(0,0,0,.2)}.score-players .more-players{font-size:.625rem;color:var(--color-text-muted);margin-right:4px}.score-players .player-names-text{font-size:.75rem;color:var(--color-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-meta{font-size:.75rem;color:var(--color-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.score-date{font-size:.7rem;color:var(--color-text-muted);white-space:nowrap}.gameover-actions{display:flex;flex-direction:column;gap:12px}.gameover-actions button{width:100%;font-size:1.1rem}@media(max-width:360px){.gameover-title{font-size:2.5rem}.main-stat .stat-value{font-size:2rem}}.highscores-screen{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--color-background)}.highscores-content{flex:1;display:flex;flex-direction:column;max-width:600px;width:100%;margin:0 auto;padding:16px;overflow:hidden}.highscores-header{display:flex;align-items:center;gap:12px;margin-bottom:24px}.highscores-header .btn-back{width:40px;height:40px;min-height:40px;padding:8px;background:var(--color-surface);border-radius:50%;color:#fff;flex-shrink:0}.highscores-header .btn-back svg{width:100%;height:100%}.header-title{display:flex;align-items:center;gap:10px;flex:1}.header-title .trophy-icon{width:28px;height:28px;color:gold}.header-title h1{font-size:1.5rem;font-weight:700;margin:0}.header-spacer{width:40px}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px;gap:16px}.empty-icon{width:80px;height:80px;color:var(--color-text-muted);opacity:.5}.empty-state h2{font-size:1.25rem;margin:0;color:var(--color-text)}.empty-state p{margin:0;color:var(--color-text-muted)}.empty-state .btn-primary{margin-top:8px}.scores-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:20px}.score-row{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;background:var(--color-surface);border-radius:var(--border-radius);border:1px solid transparent;transition:all .2s ease}.score-row.top-three{padding:14px 16px}.score-row.gold{background:linear-gradient(135deg,#ffd70026,#ffa5001a);border-color:#ffd7004d}.score-row.silver{background:linear-gradient(135deg,#c0c0c026,#a0a0a01a);border-color:#c0c0c04d}.score-row.bronze{background:linear-gradient(135deg,#cd7f3226,#a0522d1a);border-color:#cd7f324d}.rank-badge{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.rank-number{width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;color:var(--color-text-muted);background:#ffffff1a;border-radius:50%}.medal{width:32px;height:32px}.medal.gold{color:gold}.medal.silver{color:silver}.medal.bronze{color:#cd7f32}.score-details{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.score-main{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.player-count{font-size:.75rem;font-weight:600;color:var(--color-text-muted);background:#ffffff1a;padding:2px 6px;border-radius:4px}.score-value{font-size:1.25rem;font-weight:700;color:var(--color-primary);font-variant-numeric:tabular-nums}.top-three .score-value{font-size:1.5rem}.score-meta{font-size:.7rem;color:var(--color-text-muted)}.players-info{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.player-chip{display:inline-flex;align-items:center;gap:4px;font-size:.7rem;color:var(--color-text);background:#ffffff0d;padding:3px 8px 3px 4px;border-radius:12px;border:1px solid rgba(255,255,255,.15)}.player-chip .player-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.more-players{font-size:.65rem;color:var(--color-text-muted);align-self:center}@media(max-width:400px){.score-main{flex-direction:column;gap:2px}}.app{width:100%;height:100%;display:flex;flex-direction:column;background:var(--color-background)}:root{--color-background: #1A1A2E;--color-surface: #16213E;--color-surface-light: #1F2B47;--color-primary: #E94560;--color-primary-hover: #FF6B6B;--color-text: #EAEAEA;--color-text-muted: #8B8B8B;--color-success: #4ECDC4;--color-warning: #FFE66D;--color-error: #FF6B6B;--player-coral: #FF6B6B;--player-ocean: #4ECDC4;--player-sunflower: #FFE66D;--player-lavender: #A06CD5;--player-mint: #95E1D3;--player-peach: #FFAB91;--player-sky: #74B9FF;--player-rose: #FD79A8;--cell-size: 24px;--touch-target: 48px;--border-radius: 8px;--border-radius-lg: 16px;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%;overflow:hidden}body{font-family:var(--font-family);background-color:var(--color-background);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;user-select:none;-webkit-user-select:none}#root{display:flex;flex-direction:column}body{overscroll-behavior:none}button{font-family:inherit;font-size:1rem;font-weight:600;border:none;border-radius:var(--border-radius);cursor:pointer;transition:all .15s ease;min-height:var(--touch-target);padding:12px 24px}button:active{transform:scale(.97)}button:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--color-primary-hover)}.btn-secondary{background:var(--color-surface-light);color:var(--color-text);border:2px solid var(--color-surface-light)}.btn-secondary:hover:not(:disabled){border-color:var(--color-primary)}input{font-family:inherit;font-size:1rem;padding:12px 16px;border:2px solid var(--color-surface-light);border-radius:var(--border-radius);background:var(--color-surface);color:var(--color-text);min-height:var(--touch-target);transition:border-color .15s ease}input:focus{outline:none;border-color:var(--color-primary)}input::placeholder{color:var(--color-text-muted)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.animate-fade-in{animation:fadeIn .3s ease}.animate-slide-up{animation:slideUp .4s ease}
