: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;--color-bg-gradient: linear-gradient(135deg, #1e4b9e 0%, #00b4db 100%);--color-card-1v1: #ffc107;--color-card-2v2: #42a5f5;--color-card-online: #2ecc71;--color-card-settings: #00bcd4;--color-primary: #0A84FF;--color-secondary: #5AC8FA;--color-accent: #FFD60A}body{margin:0;min-width:320px;min-height:100vh;background:var(--color-bg-gradient);background-attachment:fixed}#root{width:100%;min-height:100vh;display:flex;flex-direction:column}.home-container{width:100%;max-width:1200px;margin:0 auto;padding:2rem;display:flex;flex-direction:column;align-items:center;min-height:100vh;box-sizing:border-box;position:relative;overflow-y:auto}.lobby-container{width:100%;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;box-sizing:border-box;position:relative;overflow-y:auto}.lobby-panel{max-width:600px;width:100%;background:linear-gradient(135deg,#ffffff1f,#ffffff0f);backdrop-filter:blur(40px) saturate(200%);-webkit-backdrop-filter:blur(40px) saturate(200%);border:1px solid rgba(255,255,255,.2);border-radius:32px;box-shadow:0 20px 60px #0006,0 0 0 1px #ffffff1a inset,0 0 40px #ffd7001a;padding:2.5rem;position:relative;overflow:hidden}.lobby-panel:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent)}.lobby-header{margin-bottom:2rem;text-align:center;position:relative;display:flex;align-items:center;justify-content:center}.lobby-back-button-top{position:absolute;left:0;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:linear-gradient(135deg,#ffffff1f,#ffffff0f);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #0000001a,0 0 0 1px #ffffff1a inset}.lobby-back-button-top:hover{background:linear-gradient(135deg,#ffffff2e,#ffffff1a);border-color:#ffffff4d;transform:translateY(-50%) translate(-2px);box-shadow:0 6px 20px #00000026,0 0 0 1px #fff3 inset}.lobby-back-button-top:active{transform:translateY(-50%) translate(0)}.lobby-title-section{display:flex;flex-direction:column;align-items:center;gap:1rem}.lobby-icon{display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 4px 12px rgba(0,0,0,.3))}.lobby-title{font-size:2.5rem;font-weight:800;margin:0;background:linear-gradient(135deg,#fff,#fffc);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.lobby-subtitle{font-size:1rem;opacity:.8;margin:.5rem 0 0;color:#fff}.lobby-content{display:flex;flex-direction:column;gap:1.5rem}.lobby-card{background:linear-gradient(135deg,#ffffff1f,#ffffff0f);backdrop-filter:blur(30px) saturate(200%);-webkit-backdrop-filter:blur(30px) saturate(200%);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:1.5rem;box-shadow:0 8px 32px #00000040,0 0 0 1px #ffffff1a inset,0 0 40px #ffffff0d;transition:all .3s ease;position:relative;overflow:hidden}.lobby-card:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);pointer-events:none}.lobby-card:hover{background:linear-gradient(135deg,#ffffff2e,#ffffff1a);border-color:#ffffff47;transform:translateY(-2px);box-shadow:0 12px 48px #00000059,0 0 0 1px #ffffff26 inset,0 0 60px #ffffff14}.lobby-card .card-icon-wrapper,.lobby-card-content{margin-bottom:1rem}.lobby-card-title{font-size:1.3rem;font-weight:700;margin:0 0 .5rem;color:#fff}.lobby-card-desc{font-size:.9rem;opacity:.8;margin:0;color:#fff}.lobby-primary-btn{width:100%;padding:14px 24px;border-radius:16px;border:none;background:linear-gradient(135deg,var(--color-accent),rgba(255,215,0,.9));color:#1a1a1a;font-weight:700;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .3s ease;box-shadow:0 8px 24px #ffd7004d,0 0 0 1px #ffd70033 inset;margin-top:1rem}.lobby-primary-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 32px #ffd70066,0 0 0 1px #ffd7004d inset}.lobby-primary-btn:disabled{opacity:.6;cursor:not-allowed}.lobby-secondary-btn{width:100%;padding:12px 20px;border-radius:16px;border:1px solid rgba(255,255,255,.22);background:linear-gradient(135deg,#4caf5059,#4caf5040);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);color:#fff;font-weight:600;font-size:.95rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .3s ease;box-shadow:0 4px 16px #00000026,0 0 0 1px #ffffff1a inset;position:relative;overflow:hidden}.lobby-secondary-btn:before{content:"";position:absolute;top:0;left:0;right:0;height:30%;background:linear-gradient(to bottom,rgba(255,255,255,.2),transparent);border-radius:16px 16px 0 0;pointer-events:none}.lobby-secondary-btn:hover:not(:disabled){background:linear-gradient(135deg,#4caf5073,#4caf5059);border-color:#ffffff52;transform:translateY(-2px);box-shadow:0 6px 24px #0003,0 0 0 1px #ffffff26 inset}.lobby-secondary-btn:disabled{opacity:.5;cursor:not-allowed}.lobby-join-btn-active{background:linear-gradient(135deg,#f4433666,#f443364d)!important;border-color:#f4433680!important}.lobby-join-btn-active:hover:not(:disabled){background:linear-gradient(135deg,#f4433680,#f4433666)!important;border-color:#f4433699!important;box-shadow:0 4px 16px #f443364d}.lobby-separator{display:flex;align-items:center;gap:1rem;margin:.5rem 0;opacity:.5}.lobby-separator-line{flex:1;height:1px;background:linear-gradient(90deg,transparent,white,transparent)}.lobby-separator span{font-size:.9rem;color:#ffffffb3;font-weight:600}.lobby-code-input{width:100%;padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.25);background:linear-gradient(135deg,#ffffff26,#ffffff14);backdrop-filter:blur(25px) saturate(180%);-webkit-backdrop-filter:blur(25px) saturate(180%);color:#fff;font-size:1.5rem;text-align:center;letter-spacing:4px;text-transform:uppercase;font-weight:700;box-shadow:inset 0 2px 8px #0003,0 0 0 1px #ffffff1a inset,0 4px 16px #00000026;outline:none;transition:all .3s ease;margin-bottom:.5rem;box-sizing:border-box;position:relative}.lobby-code-input::placeholder{color:#fff6;opacity:1}.lobby-code-input:focus{border-color:#00e5ff99;background:linear-gradient(135deg,#fff3,#ffffff1f);box-shadow:inset 0 2px 8px #0003,0 0 0 1px #00e5ff4d inset,0 0 0 3px #00e5ff33,0 6px 24px #00e5ff26}.lobby-helper-text{font-size:.85rem;opacity:.7;margin:0 0 1rem;color:#fff;text-align:center}.lobby-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.lobby-online-count{font-size:.85rem;opacity:.7;color:#fff}.lobby-games-list{display:flex;flex-direction:column;gap:.75rem}.lobby-game-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:18px;background:linear-gradient(135deg,#ffffff1f,#ffffff0f);backdrop-filter:blur(25px) saturate(180%);-webkit-backdrop-filter:blur(25px) saturate(180%);border:1px solid rgba(255,255,255,.18);cursor:pointer;transition:all .3s ease;box-shadow:0 4px 16px #00000026,0 0 0 1px #ffffff14 inset;position:relative;overflow:hidden}.lobby-game-item:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);pointer-events:none}.lobby-game-item:hover{background:linear-gradient(135deg,#ffffff2e,#ffffff1a);border-color:#ffffff47;transform:translate(4px);box-shadow:0 6px 24px #0003,0 0 0 1px #ffffff1f inset}.lobby-game-item:hover .lobby-game-icon{background:linear-gradient(135deg,#ffffff40,#ffffff26);border-color:#ffffff52;box-shadow:0 4px 12px #00000026,0 0 0 1px #ffffff1f inset;transform:scale(1.05)}.lobby-game-item-in-progress{opacity:.7;cursor:default}.lobby-game-item-in-progress:hover{transform:none}.lobby-game-icon{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#ffffff2e,#ffffff1a);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border:1px solid rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 2px 8px #0000001a,0 0 0 1px #ffffff14 inset;transition:all .3s ease;position:relative;overflow:hidden}.lobby-game-icon:before{content:"";position:absolute;top:0;left:0;right:0;height:30%;background:linear-gradient(to bottom,rgba(255,255,255,.25),transparent);border-radius:14px 14px 0 0;pointer-events:none}.lobby-game-info{flex:1;min-width:0}.lobby-game-name{font-weight:600;color:#fff;font-size:.95rem;margin-bottom:2px}.lobby-game-meta{font-size:.8rem;opacity:.7;color:#fff}.lobby-game-code{padding:6px 12px;border-radius:12px;background:linear-gradient(135deg,#00e5ff40,#00e5ff26);backdrop-filter:blur(15px) saturate(180%);-webkit-backdrop-filter:blur(15px) saturate(180%);border:1px solid rgba(0,229,255,.35);color:#fff;font-weight:700;font-size:.85rem;letter-spacing:1px;flex-shrink:0;box-shadow:0 2px 8px #00e5ff33,0 0 0 1px #ffffff1a inset}.lobby-game-arrow{color:#ffffff80;flex-shrink:0}.lobby-delete-btn{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:8px;border:1px solid rgba(255,82,82,.3);background:linear-gradient(135deg,#ff525233,#ff52521a);backdrop-filter:blur(10px) saturate(180%);-webkit-backdrop-filter:blur(10px) saturate(180%);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;flex-shrink:0;margin-right:8px;box-shadow:0 2px 8px #0000001a}.lobby-delete-btn:hover{background:linear-gradient(135deg,#ff525259,#ff525240);border-color:#ff525280;transform:scale(1.1);box-shadow:0 4px 12px #ff52524d}.lobby-game-code-large{font-size:3rem;font-weight:700;letter-spacing:8px;background:linear-gradient(135deg,#00e5ff33,#00e5ff1a);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(0,229,255,.4);border-radius:20px;padding:1.5rem;text-align:center;color:#fff;cursor:pointer;transition:all .3s ease;-webkit-user-select:all;user-select:all;box-shadow:0 0 20px #00e5ff33;margin-bottom:1rem}.lobby-game-code-large:hover{transform:scale(1.02);border-color:#00e5ff99;box-shadow:0 0 30px #00e5ff4d}.lobby-button-group{display:flex;gap:10px;margin-bottom:1rem}.lobby-button-group .lobby-secondary-btn{flex:1;font-size:.9rem;padding:10px 16px}.lobby-success-message{color:var(--color-accent);font-size:.9rem;text-align:center;margin-top:.5rem;animation:fadeIn .3s ease;display:flex;align-items:center;justify-content:center;gap:6px}.lobby-error{color:#ff5252;background:#ff52521a;padding:12px;border-radius:12px;border:1px solid rgba(255,82,82,.3);font-size:.95rem;margin-top:1rem;text-align:center}.lobby-back-btn{width:100%;margin-top:2rem;padding:12px 20px;border-radius:16px;border:1px solid rgba(255,255,255,.2);background:linear-gradient(135deg,#ffffff14,#ffffff08);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;font-weight:600;font-size:.95rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .3s ease}.lobby-back-btn:hover{background:linear-gradient(135deg,#ffffff1f,#ffffff0f);border-color:#ffffff4d;transform:translateY(-2px)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-15px)}}@media(max-width:768px){.glass-panel,.lobby-panel,.login-panel{will-change:transform;transform:translateZ(0);-webkit-transform:translateZ(0)}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.domino-tile{will-change:transform;transform:translateZ(0);-webkit-transform:translateZ(0)}}.login-container{width:100%;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;box-sizing:border-box;position:relative;overflow-y:auto}.login-panel{max-width:450px;width:100%;background:linear-gradient(135deg,#ffffff1f,#ffffff0f);backdrop-filter:blur(40px) saturate(200%);-webkit-backdrop-filter:blur(40px) saturate(200%);border:1px solid rgba(255,255,255,.2);border-radius:32px;box-shadow:0 20px 60px #0006,0 0 0 1px #ffffff1a inset,0 0 40px #ffd7001a;padding:3rem 2.5rem;position:relative;overflow:hidden;text-align:center}.login-panel:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent)}.login-icon-wrapper{margin-bottom:1.5rem;display:flex;justify-content:center}.login-icon-wrapper img{animation:bounce 2s ease-in-out infinite}.login-domino-icon{width:80px;height:80px;background:linear-gradient(135deg,#ff6b6b,#ee5a6f);border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 24px #ff6b6b4d;position:relative;overflow:hidden}.login-domino-icon .domino-face{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.login-domino-icon .domino-divider{width:2px;height:100%;background:#ffffff4d;position:absolute;left:50%;transform:translate(-50%)}.login-domino-icon .dot{width:8px;height:8px;background:#fff;border-radius:50%;box-shadow:0 2px 4px #0003}.login-title-wrapper{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:.5rem}.login-title{font-size:2.5rem;font-weight:800;margin:0 0 .5rem;background:linear-gradient(135deg,#fff,#ffffffe6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.login-tagline{font-size:1rem;opacity:.8;margin:0 0 2rem;color:#fff}.login-auth-section{margin-bottom:2rem}.login-signin-text{font-size:.95rem;color:#fff;margin:0 0 1.5rem;opacity:.9}.login-google-btn{width:100%;padding:14px 20px;border-radius:16px;border:none;background:#fff;color:#1a1a1a;font-weight:600;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;transition:all .3s ease;box-shadow:0 4px 12px #00000026;margin-bottom:1rem}.login-google-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0003}.login-google-icon{width:20px;height:20px}.login-separator{display:flex;align-items:center;gap:1rem;margin:1rem 0;opacity:.5}.login-separator-line{flex:1;height:1px;background:linear-gradient(90deg,transparent,white,transparent)}.login-separator span{font-size:.9rem;color:#ffffffb3;font-weight:500}.login-guest-btn{width:100%;padding:12px 20px;border-radius:16px;border:1px solid rgba(255,255,255,.2);background:linear-gradient(135deg,#00bcd44d,#00bcd433);color:#fff;font-weight:600;font-size:.95rem;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.login-guest-btn:hover{background:linear-gradient(135deg,#00bcd466,#00bcd44d);border-color:#ffffff4d;transform:translateY(-2px)}.login-features{display:flex;justify-content:center;gap:2rem;margin-bottom:1.5rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1)}.login-feature-item{display:flex;flex-direction:column;align-items:center;gap:8px}.login-feature-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.login-feature-label{font-size:.75rem;color:#fff;opacity:.8;font-weight:500}.login-legal{font-size:.75rem;color:#ffffffb3;margin:0;line-height:1.5}.login-link{color:#fff;text-decoration:underline;opacity:.9;transition:opacity .2s}.login-link:hover{opacity:1}.login-error{color:#ff5252;background:#ff52521a;padding:10px;border-radius:12px;border:1px solid rgba(255,82,82,.3);font-size:.9rem;margin-bottom:1rem;text-align:center}.home-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%}.game-container{display:flex;flex-direction:column;height:100vh;width:100vw;padding:20px;box-sizing:border-box;overflow:hidden}.home-header{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:4rem}.user-pill{display:flex;align-items:center;gap:10px;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);padding:8px 16px;border-radius:50px;color:#fff;font-size:.95rem;transition:all .3s cubic-bezier(.4,0,.2,1)}.user-pill.clickable:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 4px 12px #0003}.user-avatar-small{width:32px;height:32px;background:#42a5f5;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff}.logout-btn,.signin-btn{background:#ffc107;color:#333;border:none;padding:10px 24px;border-radius:50px;font-weight:700;cursor:pointer;transition:transform .2s;text-transform:uppercase;font-size:.9rem}.logout-btn:hover,.signin-btn:hover{transform:scale(1.05)}.home-title-wrapper{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:.5rem}.home-title-wrapper img{animation:bounce 2s ease-in-out infinite}.home-title{font-size:5rem;font-weight:800;margin:0;text-align:center;letter-spacing:-2px;text-shadow:0 4px 20px rgba(0,0,0,.2)}.home-subtitle{font-size:1.2rem;opacity:.8;margin-top:1rem;margin-bottom:4rem;text-align:center}.cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;width:100%;max-width:900px}.game-card{border-radius:32px;padding:32px;display:flex;flex-direction:column;justify-content:space-between;min-height:200px;cursor:pointer;transition:transform .2s,box-shadow .2s;position:relative;overflow:hidden;border:none;text-align:left;color:#fff}.game-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #0003}.card-icon-wrapper{width:64px;height:64px;background:#fff3;border-radius:20px;display:flex;align-items:center;justify-content:center;margin-bottom:24px}.card-title{font-size:2rem;font-weight:800;margin:0 0 8px;text-transform:uppercase}.card-desc{font-size:1rem;opacity:.9;margin:0;max-width:80%;line-height:1.4}.card-dots{position:absolute;bottom:24px;right:24px;display:flex;gap:4px}.dot-ui{width:6px;height:6px;background:#ffffff80;border-radius:50%}.card-1v1{background:var(--color-card-1v1);grid-column:1}.card-2v2{background:var(--color-card-2v2);grid-column:2}.card-online{background:var(--color-card-online);grid-column:1 / -1;min-height:180px}.card-settings{background:var(--color-card-settings);grid-column:1 / -1;min-height:100px;display:flex;flex-direction:row;align-items:center;padding:24px 32px}.card-settings .card-icon-wrapper{margin-bottom:0;margin-right:24px;width:56px;height:56px}.card-settings .card-content{flex:1}.card-settings .card-title{font-size:1.5rem;margin-bottom:4px}.live-badge{position:absolute;top:32px;right:32px;background:#0003;padding:6px 16px;border-radius:20px;font-weight:700;font-size:.9rem;display:flex;align-items:center;gap:6px}.glass-panel{background:#ffffff14;backdrop-filter:blur(40px) saturate(180%);-webkit-backdrop-filter:blur(40px) saturate(180%);border:1px solid rgba(255,255,255,.18);border-radius:24px;box-shadow:0 8px 32px #0000001a;position:relative;z-index:1}.btn{padding:12px 24px;font-size:1rem;font-weight:700;border:none;border-radius:16px;cursor:pointer;transition:all .2s ease;background:#fff3;color:#fff}.btn:hover{transform:translateY(-2px);background:#ffffff4d}.game-board{flex:1;position:relative;overflow:auto;display:flex;justify-content:center;align-items:center;perspective:1000px}.game-board .domino-tile{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important}@media(max-width:768px){.game-board .domino-tile .face .dot{width:4.5px!important;height:4.5px!important}}@media(max-width:480px){.game-board .domino-tile .face .dot{width:3.75px!important;height:3.75px!important}}.player-hand{height:100%;width:100%;display:flex;justify-content:center;align-items:center;gap:10px;padding:10px;box-sizing:border-box}.opponent-hand{height:80px;display:flex;justify-content:center;gap:5px;opacity:.7}.opponent-tile-back{width:40px;height:80px;background:linear-gradient(45deg,var(--color-secondary),var(--color-primary));border-radius:6px;border:1px solid rgba(255,255,255,.3)}.score-board{position:absolute;top:20px;left:20px;background:#0000004d;padding:15px;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);color:#fff;z-index:100}.score-row{display:flex;justify-content:space-between;gap:20px;margin-bottom:5px}.team-score{font-weight:700;color:var(--color-accent)}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.hand-container{position:absolute;display:flex;align-items:center;justify-content:center;z-index:20}.hand-top{top:20px;left:50%;transform:translate(-50%);flex-direction:row;gap:15px}.hand-left{left:20px;top:50%;transform:translateY(-50%);flex-direction:column;gap:15px}.hand-right{right:20px;top:50%;transform:translateY(-50%);flex-direction:column;gap:15px}.hand-vertical{display:flex;flex-direction:column;gap:5px}.tile-vertical{width:40px;height:20px;background:linear-gradient(45deg,var(--color-secondary),var(--color-primary));border-radius:4px;border:1px solid rgba(255,255,255,.3)}.player-info{display:flex;flex-direction:column;align-items:center;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.5);margin:10px}.player-avatar{width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,#fff3,#ffffff1a);border:2px solid rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.2rem;margin-bottom:5px;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);box-shadow:0 4px 8px #0003;position:relative;transition:all .3s ease;overflow:hidden}.player-avatar img{width:100%;height:100%;object-fit:cover}.active-player .player-avatar{box-shadow:0 0 15px var(--color-primary),inset 0 0 10px #ffffff80;border-color:var(--color-primary);animation:pulse-avatar 1.5s infinite}.player-avatar.active-turn{animation:activeTurnPulse 2s ease-in-out infinite}.player-avatar.active-turn:before{content:"";position:absolute;inset:-6px;border-radius:50%!important;background:linear-gradient(135deg,#ffd70080,#ffc8004d,#ffd70080);backdrop-filter:blur(15px) saturate(180%);-webkit-backdrop-filter:blur(15px) saturate(180%);border:2.5px solid rgba(255,215,0,.9);box-shadow:0 0 25px #ffd700b3,0 0 50px #ffd70080,inset 0 0 25px #ffd7004d;z-index:-1;animation:activeTurnRing 2s ease-in-out infinite;pointer-events:none;width:calc(100% + 12px);height:calc(100% + 12px);aspect-ratio:1 / 1}@keyframes pulse-avatar{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.game-layout{display:grid;grid-template-columns:280px 1fr;gap:24px;width:100%;height:100vh;padding:24px;box-sizing:border-box;overflow:hidden}.game-layout .game-sidebar{height:100%;max-height:calc(100vh - 48px)}.game-layout-2v2{display:grid;grid-template-columns:280px 200px 1fr 200px;grid-template-rows:minmax(120px,120px) minmax(0,1fr) minmax(150px,180px);gap:16px;width:100%;height:100vh;padding:16px 16px 24px;box-sizing:border-box;overflow:hidden;align-items:start}.game-layout-2v2 .game-sidebar{grid-column:1;grid-row:1 / -1;height:100%;max-height:calc(100vh - 32px)}.game-layout-2v2 .player-panel-top{grid-column:2 / 5;grid-row:1;height:120px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0;box-sizing:border-box;z-index:5}.game-layout-2v2 .player-hand-wrapper-2v2{grid-column:2 / 5;grid-row:3;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;padding:8px;box-sizing:border-box;width:100%;max-height:200px;z-index:5}.game-layout-2v2 .player-panel-left,.game-layout-2v2 .player-panel-right{z-index:5}.game-layout-2v2 .player-panel-left{grid-column:2;grid-row:2;align-self:stretch;min-height:0;overflow:hidden;position:relative;z-index:3;max-height:100%;height:90%}.game-layout-2v2 .board-panel{grid-column:3;grid-row:2;position:relative;z-index:10;align-self:stretch;min-height:0;overflow:hidden;max-height:100%}.game-layout-2v2 .player-panel-right{grid-column:4;grid-row:2;align-self:stretch;min-height:0;overflow:hidden;position:relative;z-index:3;max-height:100%;height:90%}.game-layout-2v2 .player-panel-bottom{display:none}.game-layout-2v2 .player-hand-wrapper-2v2{grid-column:2 / 5;grid-row:3;margin-top:0;max-height:180px;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;padding:12px 8px;box-sizing:border-box;width:100%;position:relative;z-index:8;margin-bottom:0;align-self:end}.info-card{background:#ffd70026;border-radius:16px;padding:16px;position:relative;overflow:hidden;border:1px solid rgba(255,215,0,.4);margin-bottom:32px}.sidebar-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.sidebar-title{font-size:1.5rem;font-weight:800;margin:0}.sidebar-title-wrapper{display:flex;flex-direction:column;gap:4px}.sidebar-subtitle-wrapper{display:flex;align-items:center;gap:8px}.sidebar-subtitle{font-size:.9rem;opacity:.7;margin:0}.btn-icon{background:#fff3;border:none;border-radius:12px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;transition:background .2s}.btn-icon:hover{background:#ffffff4d}.info-card{background:#ffd70026;border-radius:16px;padding:16px;position:relative;overflow:hidden;border:1px solid rgba(255,215,0,.4);margin-bottom:24px}.turn-card{background:linear-gradient(135deg,#ffd70033,#ffa50033);border:1px solid rgba(255,255,255,.3)}.card-label{font-size:.7rem;font-weight:700;opacity:.8;margin-bottom:8px;letter-spacing:1px}.turn-value{font-size:1.5rem;font-weight:800;color:var(--color-accent)}.turn-indicator{width:10px;height:10px;background:var(--color-accent);border-radius:50%;position:absolute;top:20px;right:20px;box-shadow:0 0 10px var(--color-accent);opacity:0;transition:opacity .3s}.turn-indicator.active{opacity:1}.deck-value{font-size:2rem;font-weight:800}.score-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-weight:600}.score-value{font-size:1.2rem;color:var(--color-accent)}.target-value{font-size:1.5rem;font-weight:800}.sidebar-actions{margin-top:auto;display:flex;flex-direction:column;gap:10px}.player-avatar-small{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;overflow:hidden;box-shadow:0 2px 4px #0003;flex-shrink:0;position:relative;transition:all .3s ease}.player-avatar-small img{width:100%;height:100%;object-fit:cover}.player-avatar-small.active-turn{animation:activeTurnPulse 2s ease-in-out infinite}.player-avatar-small.active-turn:before{content:"";position:absolute;inset:-6px;border-radius:50%!important;background:linear-gradient(135deg,#ffd70080,#ffc8004d,#ffd70080);backdrop-filter:blur(15px) saturate(180%);-webkit-backdrop-filter:blur(15px) saturate(180%);border:2.5px solid rgba(255,215,0,.9);box-shadow:0 0 25px #ffd700b3,0 0 50px #ffd70080,inset 0 0 25px #ffd7004d;z-index:-1;animation:activeTurnRing 2s ease-in-out infinite;pointer-events:none;width:calc(100% + 12px);height:calc(100% + 12px);aspect-ratio:1 / 1}@keyframes activeTurnPulse{0%,to{transform:scale(1);box-shadow:0 2px 4px #0003}50%{transform:scale(1.05);box-shadow:0 4px 12px #ffd70066}}@keyframes activeTurnRing{0%,to{opacity:.8;transform:scale(1);border-radius:50%}50%{opacity:1;transform:scale(1.1);border-radius:50%}}.btn-text{background:transparent;border:none;color:#fff;display:flex;align-items:center;gap:10px;font-size:.9rem;opacity:.8;cursor:pointer;padding:8px;border-radius:8px;transition:background .2s}.btn-text:hover{background:#ffffff1a;opacity:1}.game-main{display:grid;grid-template-rows:auto 1fr auto;gap:24px;height:100%;overflow:hidden;min-height:0}.game-main .board-panel{min-height:0;overflow:hidden}.panel{background:#00a8ff26;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:24px;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;overflow:hidden;position:relative}.opponent-panel{height:100px;justify-content:center}.panel-header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.mobile-back-btn,.opponent-panel .mobile-back-btn,.player-panel-top .mobile-back-btn,.player-panel-left .mobile-back-btn,.player-panel-right .mobile-back-btn{display:none!important}.panel-title-group h3{margin:0;font-size:1.2rem}.status-text{font-size:.8rem;opacity:.7}.opponent-hand-display{display:flex;gap:8px;margin-left:auto}.opponent-tile-back-large{width:30px;height:60px;background:#ffffff1a;border:1px solid rgba(255,255,255,.3);border-radius:4px}.player-panel-left,.player-panel-right{height:100%;max-height:100%;justify-content:flex-start;overflow-y:auto;overflow-x:hidden}.player-panel-left .panel-header,.player-panel-right .panel-header{flex-direction:column;align-items:center;text-align:center;gap:8px;margin-bottom:0;flex-shrink:0}.player-panel-left .opponent-hand-display,.player-panel-right .opponent-hand-display{flex-direction:column;margin-left:0;margin-top:0;align-items:center;justify-content:center;flex:1;gap:6px;min-height:0;overflow-y:auto;overflow-x:hidden;max-height:100%}.player-panel-left .opponent-tile-back-large,.player-panel-right .opponent-tile-back-large{width:50px;height:25px}.player-panel-top{height:120px}.player-panel-top .panel-header{justify-content:center;text-align:center}.player-panel-top .opponent-hand-display{margin:0 auto}.horizontal-layout{flex-direction:row!important;align-items:center;justify-content:center;gap:16px;padding:16px 24px}.horizontal-layout .panel-header{margin-bottom:0;flex-shrink:0}.horizontal-layout .opponent-hand-display{margin:0;flex-direction:row;gap:8px}@media(max-width:768px){.horizontal-layout{gap:8px;padding:8px 12px}.horizontal-layout .panel-header{gap:6px}.horizontal-layout .opponent-hand-display{gap:4px}}.player-hand-wrapper-2v2{display:flex;align-items:center;justify-content:center;gap:16px;background:#00a8ff26;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:16px 24px;border:1px solid rgba(255,255,255,.1);width:100%;box-sizing:border-box}.player-hand-wrapper-2v2 .player-hand{flex:1;display:flex;justify-content:center;max-width:100%;overflow-x:auto}.player-info-inline{display:flex;align-items:center;gap:12px;flex-shrink:0}.player-info-inline .panel-title-group h3{margin:0;font-size:1rem}.player-info-inline .panel-title-group{display:flex;flex-direction:column;gap:4px}.player-actions-inline{flex-shrink:0;display:flex;align-items:center;gap:10px}.board-panel{position:relative;overflow:hidden;flex:1 1 auto;min-height:0;background:#00a8ff26!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;border-radius:24px!important;padding:24px!important}.panel-header-simple{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;padding:8px 12px}.panel-header-simple h3{margin:0}.move-badge{background:#ffffff1a;padding:4px 12px;border-radius:12px;font-size:.8rem;font-weight:600}.board-container{flex:1;position:relative;display:flex;justify-content:center;align-items:center;overflow:auto}.board-footer{display:flex;gap:24px;font-size:.8rem;opacity:.6;margin-top:10px}.player-panel{height:180px;max-height:180px;background:linear-gradient(180deg,#00b4ff33,#008cff33);margin-bottom:0;flex-shrink:0}.player-actions{margin-left:auto;display:flex;gap:10px}.btn-action{padding:12px 24px;border-radius:12px;border:1px solid rgba(255,255,255,.2);font-weight:700;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:.95rem;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 12px #00000026}.btn-action:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00000040}.btn-action:active{transform:translateY(0)}.btn-pass{background:linear-gradient(135deg,#ff52524d,#f4433640);color:#fff;border-color:#ff525266}.btn-pass:hover{background:linear-gradient(135deg,#ff525266,#f4433659);border-color:#ff525280;box-shadow:0 6px 20px #ff52524d}.btn-draw{background:linear-gradient(135deg,#4caf504d,#388e3c40);color:#fff;border-color:#4caf5066}.btn-draw:hover{background:linear-gradient(135deg,#4caf5066,#388e3c59);border-color:#4caf5080;box-shadow:0 6px 20px #4caf504d}.player-hand-wrapper{flex:1;display:flex;justify-content:center;align-items:center}.panel-footer-text{text-align:center;font-size:.8rem;opacity:.6;margin-top:10px}.pass-indicator{position:absolute;top:50%;right:-120px;transform:translateY(-50%);z-index:100;pointer-events:none;animation:fadeInOut 2s ease-in-out;white-space:nowrap}.pass-indicator-content{background:linear-gradient(135deg,#ffd70040,#ffa50033);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border:1px solid rgba(255,215,0,.4);border-radius:16px;padding:10px 20px;box-shadow:0 8px 32px #0000004d,0 0 20px #ffd7004d;color:#fff;font-weight:700;font-size:.9rem;text-transform:uppercase;letter-spacing:1px;text-align:center}.player-panel-left .pass-indicator{right:auto;left:-120px}.player-panel-right .pass-indicator{right:-120px;left:auto}.player-panel-top .pass-indicator{top:auto;bottom:-50px;right:50%;transform:translate(50%)}@keyframes fadeInOut{0%{opacity:0;transform:translateY(-50%) scale(.8)}20%{opacity:1;transform:translateY(-50%) scale(1)}80%{opacity:1;transform:translateY(-50%) scale(1)}to{opacity:0;transform:translateY(-50%) scale(.8)}}.player-panel-left .pass-indicator{animation:fadeInOutLeft 2s ease-in-out}@keyframes fadeInOutLeft{0%{opacity:0;transform:translateY(-50%) scale(.8)}20%{opacity:1;transform:translateY(-50%) scale(1)}80%{opacity:1;transform:translateY(-50%) scale(1)}to{opacity:0;transform:translateY(-50%) scale(.8)}}.player-panel-top .pass-indicator{animation:fadeInOutTop 2s ease-in-out}@keyframes fadeInOutTop{0%{opacity:0;transform:translate(50%) scale(.8)}20%{opacity:1;transform:translate(50%) scale(1)}80%{opacity:1;transform:translate(50%) scale(1)}to{opacity:0;transform:translate(50%) scale(.8)}}.floating-bg{position:absolute;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,rgba(255,255,255,.05) 50%,transparent 100%);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);pointer-events:none;z-index:0;animation:float 8s ease-in-out infinite}.game-layout,.game-layout-2v2{position:relative;overflow:hidden}@keyframes float{0%,to{transform:translate(0) scale(1);opacity:.6}50%{transform:translate(20px,-20px) scale(1.1);opacity:.8}}.game-sidebar{position:relative;z-index:1;background:#ffffff14;backdrop-filter:blur(40px) saturate(180%);-webkit-backdrop-filter:blur(40px) saturate(180%);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:24px;box-shadow:0 8px 32px #0000001a;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;height:100%;max-height:100%;box-sizing:border-box}.waiting-room{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem;box-sizing:border-box}.waiting-header{text-align:center;margin-bottom:3rem}.waiting-header h2{font-size:2.5rem;font-weight:800;margin:0 0 1rem;background:linear-gradient(135deg,#fff,#fffc);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.game-code-display{display:flex;align-items:center;justify-content:center;gap:1rem;background:#ffffff1a;padding:1rem 2rem;border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.game-code-display span{font-size:1.2rem;opacity:.8}.game-code-display .code{font-size:2rem;font-weight:800;letter-spacing:4px;color:var(--color-accent);opacity:1}.slots-container{display:flex;gap:2rem;margin-bottom:3rem;flex-wrap:wrap;justify-content:center}.player-slot{width:200px;height:280px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem;transition:all .3s ease;position:relative}.player-slot.open{border-style:dashed;opacity:.6}.player-slot.host{background:linear-gradient(135deg,#ffd7001a,#ffd7000d);border-color:#ffd7004d}.player-slot.guest{background:linear-gradient(135deg,#4caf501a,#4caf500d);border-color:#4caf504d}.player-slot.bot{background:linear-gradient(135deg,#2196f31a,#2196f30d);border-color:#2196f34d}.slot-icon{width:80px;height:80px;border-radius:50%;background:#ffffff1a;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem;box-shadow:0 8px 24px #0003}.slot-info{text-align:center;margin-bottom:1.5rem}.slot-name{font-size:1.2rem;font-weight:700;margin-bottom:.5rem;color:#fff}.slot-status{font-size:.9rem;opacity:.7}.slot-actions{display:flex;flex-direction:column;gap:.5rem;width:100%}.btn-sm{padding:8px 16px;border-radius:8px;border:none;background:#ffffff1a;color:#fff;cursor:pointer;transition:all .2s ease;font-size:.85rem}.btn-sm:hover{background:#fff3}.btn-danger{background:#ff525233;color:#ff5252}.btn-danger:hover{background:#ff52524d}.waiting-footer{display:flex;justify-content:center}.start-game-btn{padding:16px 48px;font-size:1.2rem;border-radius:16px;background:linear-gradient(135deg,var(--color-accent),#ffca28);color:#1a1a1a;border:none;font-weight:800;cursor:pointer;box-shadow:0 8px 32px #ffd7004d;transition:all .3s ease;display:flex;align-items:center;gap:12px}.start-game-btn:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 12px 48px #ffd70066}.start-game-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-secondary{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:12px 24px;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;transition:all .3s ease}.btn-secondary:hover:not(:disabled){background:#ffffff26;border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 4px 12px #0003}.btn-secondary:disabled{opacity:.5;cursor:not-allowed;transform:none}.waiting-message{font-size:1.2rem;opacity:.7;animation:pulse 2s infinite}@keyframes pulse{0%{opacity:.5}50%{opacity:.8}to{opacity:.5}}.team-group{background:#ffffff0d;border-radius:24px;padding:1.5rem;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;align-items:center}.team-title{text-align:center;margin:0 0 1.5rem;font-size:1.5rem;font-weight:700;color:#fff;opacity:.9}.team-slots{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:center}.indicator{pointer-events:auto}.indicator-pulse{background:linear-gradient(135deg,#667eea59,#764ba24d);backdrop-filter:blur(12px) saturate(180%);-webkit-backdrop-filter:blur(12px) saturate(180%);border:2px solid rgba(102,126,234,.5);border-radius:16px;padding:14px 28px;box-shadow:0 8px 32px #0000004d,0 0 20px #667eea66;color:#fff;font-weight:700;font-size:1rem;text-transform:uppercase;letter-spacing:1.5px;text-align:center;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);animation:pulse 2s ease-in-out infinite;-webkit-user-select:none;user-select:none}.indicator-pulse:hover{background:linear-gradient(135deg,#667eea80,#764ba273);border-color:#667eeab3;box-shadow:0 12px 40px #0006,0 0 30px #667eea99;transform:scale(1.05)}.indicator-pulse:active{transform:scale(.98)}@keyframes pulse{0%,to{box-shadow:0 8px 32px #0000004d,0 0 20px #667eea66}50%{box-shadow:0 8px 32px #0000004d,0 0 35px #667eeab3}}.card-leaderboard{background:linear-gradient(135deg,#ffc1074d,#ff980033);grid-column:1 / -1;min-height:100px;display:flex;flex-direction:row;align-items:center;padding:24px 32px}.card-leaderboard .card-icon-wrapper{margin-bottom:0;margin-right:24px;width:56px;height:56px}.card-leaderboard .card-content{flex:1}.card-leaderboard .card-title{font-size:1.5rem;margin-bottom:4px}.card-leaderboard:hover{background:linear-gradient(135deg,#ffc10766,#ff98004d);transform:translateY(-4px);box-shadow:0 12px 32px #ffc1074d}@media(max-width:768px){button,.btn,.btn-action,.btn-icon,.btn-text,.domino-tile,.lobby-game-item,.lobby-delete-btn,.mobile-back-btn,.card,.game-card,input,select,textarea{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.home-container{padding:1rem;max-width:100%;width:100%}.home-header{margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.home-title-wrapper{flex-direction:column;gap:12px}.home-title-wrapper img{width:100px!important;height:100px!important}.home-title{font-size:3rem!important;letter-spacing:-1px}.home-subtitle{font-size:1rem;margin-bottom:2rem;padding:0 1rem}.home-content{align-items:stretch!important;width:100%!important;max-width:100%!important}.cards-grid{grid-template-columns:1fr!important;gap:16px;max-width:100%!important;width:100%!important;margin:0!important;padding:0}.card-1v1,.card-2v2,.card-online,.card-settings,.card-leaderboard{grid-column:1!important}.game-card{min-height:160px;padding:24px;position:relative;width:100%!important;max-width:100%!important;box-sizing:border-box;margin:0}.live-badge{top:16px;right:16px;padding:4px 12px;font-size:.75rem}.card-title{font-size:1.5rem}.card-desc{font-size:.9rem;max-width:100%}.card-icon-wrapper{width:48px;height:48px;margin-bottom:16px}.card-settings,.card-leaderboard{flex-direction:column!important;align-items:flex-start}.card-settings .card-icon-wrapper,.card-leaderboard .card-icon-wrapper{margin-bottom:16px;margin-right:0}.card-settings .card-content,.card-leaderboard .card-content{width:100%}.card-dots{bottom:16px;right:16px}.game-container{padding:0;height:100vh;height:100dvh;overflow:hidden}.game-layout,.game-layout-2v2{grid-template-columns:1fr;grid-template-rows:1fr auto;gap:0;padding:0;min-height:100vh;min-height:100dvh;overflow-y:auto;display:flex;flex-direction:column}.game-sidebar{order:999;margin-top:auto;padding:6px 8px;border-radius:12px 12px 0 0;height:auto!important;min-height:200px!important;max-height:none!important;overflow-y:visible!important;flex-shrink:0;display:grid!important;grid-template-columns:repeat(4,1fr);grid-auto-rows:min-content;gap:4px;align-items:start;flex-direction:row!important}.game-sidebar .sidebar-header{grid-column:1 / -1;margin-bottom:2px;padding:0;display:flex;justify-content:space-between;align-items:center;min-height:20px;height:auto}.game-sidebar .sidebar-header .btn-icon{display:none}.game-sidebar .sidebar-title{font-size:.7rem;margin:0;line-height:1}.game-sidebar .sidebar-subtitle{display:none}.game-sidebar .btn-icon{width:24px;height:24px;padding:2px}.game-sidebar .info-card{padding:3px 5px;margin-bottom:4px;border-radius:6px;height:50px;min-height:50px;max-height:50px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.game-sidebar .card-label{font-size:.5rem;margin-bottom:1px;letter-spacing:.3px;line-height:1}.game-sidebar .turn-value,.game-sidebar .deck-value,.game-sidebar .target-value{font-size:.8rem;line-height:1;margin:0}.game-sidebar .score-value{font-size:.75rem;line-height:1}.game-sidebar .score-row{font-size:.55rem;margin-bottom:0;gap:4px;line-height:1;display:flex;justify-content:space-between;align-items:center}.game-sidebar .info-card.scores-card{justify-content:center;gap:2px;padding:2px 5px}.game-sidebar .info-card.scores-card .card-label{margin-bottom:0}.game-sidebar .sidebar-actions{grid-column:1 / -1;margin-top:2px;gap:2px;flex-direction:row;justify-content:flex-start;height:auto;min-height:auto}.game-sidebar .btn-text{font-size:.6rem;padding:3px 5px;min-height:24px;line-height:1.1}.game-sidebar .sidebar-actions .btn-text:first-child{position:fixed!important;left:12px!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;z-index:200!important;background:#ff5252e6!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3)!important;border-radius:12px!important;padding:8px 12px!important;min-height:36px!important;box-shadow:0 4px 12px #0003!important;color:#fff!important;font-weight:600!important;margin:0!important;flex:none!important}.game-sidebar .sidebar-actions .btn-text:first-child:hover{background:#ff5252!important;transform:scale(1.05)}.game-sidebar .sidebar-actions .btn-text:first-child:active{transform:scale(.95)}.game-sidebar .sidebar-actions .btn-text:last-child{position:fixed!important;right:12px!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;z-index:200!important;background:#ffd700e6!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3)!important;border-radius:12px!important;padding:8px 12px!important;min-height:36px!important;box-shadow:0 4px 12px #0003!important;color:#333!important;font-weight:600!important;margin:0!important;flex:none!important}.game-sidebar .sidebar-actions .btn-text:last-child:hover{background:gold!important;transform:scale(1.05)}.game-sidebar .sidebar-actions .btn-text:last-child:active{transform:scale(.95)}.game-sidebar .sidebar-title{font-size:.85rem!important}.game-sidebar .info-card{padding:6px 8px!important;margin-bottom:4px!important}.game-sidebar .turn-value,.game-sidebar .deck-value{font-size:1rem!important}.game-sidebar .score-value{font-size:.9rem!important}.game-sidebar .target-value{font-size:1rem!important}.game-main{display:flex;flex-direction:column;gap:0;min-height:0;flex:0 0 100vh;flex:0 0 100dvh;height:100vh;height:100dvh;overflow:hidden;order:1;width:100%}.opponent-panel{height:60px;padding:8px 12px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between}.opponent-panel .panel-header{margin-bottom:0;gap:8px;width:100%;justify-content:center;position:relative;flex:1;padding-left:40px}.opponent-panel{position:relative}.opponent-panel .mobile-back-btn{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;position:absolute;top:8px;left:8px;z-index:10;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#fff;cursor:pointer;transition:all .2s ease;flex-shrink:0}.opponent-panel .mobile-back-btn:hover{background:#fff3;transform:scale(1.05)}.opponent-panel .mobile-back-btn:active{transform:scale(.95)}.opponent-panel .player-avatar-small{width:36px;height:36px}.opponent-panel .panel-title-group h3{font-size:.9rem}.opponent-panel .status-text{font-size:.7rem}.opponent-hand-display{gap:3px}.opponent-tile-back-large{width:20px;height:40px}.board-panel{flex:1;min-height:0;padding:8px;overflow:hidden;display:flex;flex-direction:column;height:100%;position:relative;background:#00a8ff26!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;border-radius:24px!important}.board-panel .panel-header-simple{padding:8px;margin-bottom:4px;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.board-panel .panel-header-simple h3{font-size:.9rem;margin:0}.move-badge{background:#ffd7004d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:6px 12px;border-radius:16px;font-size:.85rem;font-weight:700;border:1px solid rgba(255,215,0,.5);box-shadow:0 2px 8px #ffd7004d}.board-container{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:4px}.game-board .domino-tile{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important}.board-footer{position:absolute;bottom:8px;left:50%;transform:translate(-50%);background:#0006;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:6px 12px;border-radius:20px;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center;font-size:.75rem;opacity:.9;z-index:10;border:1px solid rgba(255,255,255,.2)}.player-panel{height:auto;min-height:160px;max-height:180px;padding:10px;flex-shrink:0;border-radius:16px}.player-panel .panel-header{margin-bottom:8px;gap:10px}.player-panel .player-avatar-small{width:40px;height:40px}.player-panel .panel-title-group h3{font-size:1rem}.player-panel .status-text{font-size:.8rem}.player-hand-wrapper{width:100%;overflow:hidden;position:relative;flex:1;display:flex;align-items:center;min-width:0;border-radius:16px}.player-hand.glass-panel{width:max-content!important;max-width:none!important;min-width:100%!important}.player-hand{display:flex!important;flex-direction:row!important;gap:6px;padding:8px 16px;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;position:relative;width:max-content!important;min-width:100%!important;height:auto!important;flex-wrap:nowrap!important;align-items:center;justify-content:center!important;box-sizing:content-box;border-radius:16px!important}.player-hand .domino-tile{flex-shrink:0!important;flex-grow:0!important;width:40px!important;height:80px!important;min-width:40px!important;min-height:80px!important;max-width:40px!important;max-height:80px!important}.player-hand .domino-tile.horizontal{width:80px!important;height:40px!important;min-width:80px!important;min-height:40px!important;max-width:80px!important;max-height:40px!important}.player-hand::-webkit-scrollbar{height:6px}.player-hand::-webkit-scrollbar-thumb{background:#ffd70099;border-radius:3px}.player-hand::-webkit-scrollbar-track{background:#ffffff1a;border-radius:3px}.player-hand>*{scroll-snap-align:start;flex-shrink:0}.player-hand-wrapper:after{content:"← Scroll →";position:absolute;bottom:-20px;left:50%;transform:translate(-50%);font-size:.7rem;opacity:.6;color:#fff;pointer-events:none;animation:fadeInOut 3s ease-in-out infinite}@keyframes fadeInOut{0%,to{opacity:.3}50%{opacity:.8}}.game-layout-2v2{grid-template-columns:1fr;grid-template-rows:1fr auto;gap:0;padding:0;min-height:100vh;min-height:100dvh;overflow-y:auto;display:flex;flex-direction:column;width:100%}.game-main-2v2{display:flex;flex-direction:column;gap:0;min-height:0;flex:0 0 100vh;flex:0 0 100dvh;height:100vh;height:100dvh;overflow:hidden;order:1;width:100%}}@media(min-width:769px){.game-layout-2v2 .rival-hand-count-left.mobile-only,.game-layout-2v2 .rival-hand-count-right.mobile-only{display:none!important}.game-main-2v2{display:contents!important;flex:none!important;height:auto!important;overflow:visible!important;order:0!important;width:auto!important;min-height:0!important}.game-layout-2v2{display:grid!important;grid-template-columns:280px 200px 1fr 200px!important;grid-template-rows:minmax(120px,120px) minmax(0,1fr) minmax(150px,180px)!important;gap:16px!important;padding:16px 16px 24px!important;overflow:hidden!important;height:100vh!important;width:100%!important;box-sizing:border-box!important;align-items:start!important;flex-direction:row!important;min-height:auto!important;position:relative!important}.game-layout-2v2 .player-panel-top{grid-column:2 / 5!important;grid-row:1!important;height:120px!important;order:0!important;flex:none!important;min-height:auto!important;max-height:none!important}.game-layout-2v2 .board-panel{grid-column:3!important;grid-row:2!important;order:0!important;flex:none!important;height:auto!important;max-height:100%!important;min-height:0!important;align-self:stretch!important}.game-layout-2v2 .player-hand-wrapper-2v2{grid-column:2 / 5!important;grid-row:3!important;order:0!important;flex:none!important;height:auto!important;min-height:auto!important;max-height:200px!important;align-self:end!important}.game-layout-2v2 .player-panel-left{display:flex!important;grid-column:2!important;grid-row:2!important;order:0!important;flex:none!important;height:90%!important;align-self:stretch!important}.game-layout-2v2 .player-panel-right{display:flex!important;grid-column:4!important;grid-row:2!important;order:0!important;flex:none!important;height:90%!important;align-self:stretch!important}.game-layout-2v2 .game-sidebar{grid-column:1!important;grid-row:1 / -1!important;order:0!important;margin-top:0!important;height:100%!important;max-height:calc(100vh - 32px)!important;width:auto!important;display:flex!important;flex-direction:column!important;padding:12px!important;border-radius:16px!important;grid-template-columns:1fr!important;grid-auto-rows:auto!important;gap:12px!important;min-height:auto!important;overflow-y:auto!important;flex-shrink:1!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important;align-items:stretch!important}.game-layout-2v2 .game-sidebar .sidebar-header{grid-column:auto!important;margin-bottom:16px!important;padding:0!important;min-height:auto!important}.game-layout-2v2 .game-sidebar .info-card{padding:12px!important;margin-bottom:12px!important;height:auto!important;min-height:auto!important;max-height:none!important}.game-layout-2v2 .game-sidebar .sidebar-actions{grid-column:auto!important;margin-top:16px!important;gap:12px!important;flex-direction:column!important}.game-layout-2v2 .game-sidebar .sidebar-actions .btn-text{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;font-size:.9rem!important;padding:8px 16px!important;min-height:auto!important}}@media(max-width:768px){.game-layout-2v2 .game-sidebar{order:999;margin-top:auto;padding:6px 8px!important;border-radius:12px 12px 0 0!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:200px!important;max-height:none!important;overflow-y:visible!important;grid-column:1!important;grid-row:auto!important;position:relative!important;flex-shrink:0!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;grid-auto-rows:min-content!important;gap:4px!important;align-items:start!important;flex-direction:row!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important}.game-layout-2v2 .player-panel-top{grid-column:1;grid-row:1;order:0!important;flex:0 0 60px!important;height:60px!important;min-height:60px!important;max-height:60px!important;padding:8px 12px;display:flex;align-items:center;justify-content:space-between}.game-layout-2v2 .player-panel-top.horizontal-layout{justify-content:space-between!important}.game-layout-2v2 .player-panel-top .panel-header{margin-bottom:0;gap:8px;width:100%;justify-content:center;position:relative;flex:1;padding-left:40px}.game-layout-2v2 .player-panel-top.horizontal-layout .panel-header{flex-shrink:0;flex:1!important;padding-left:40px}.game-layout-2v2 .player-panel-top .player-avatar-small{width:36px;height:36px;flex-shrink:0}.game-layout-2v2 .player-panel-top .panel-title-group{flex:1;min-width:0}.game-layout-2v2 .player-panel-top .panel-title-group h3{font-size:.9rem;margin:0}.game-layout-2v2 .player-panel-top .status-text{font-size:.7rem}.game-layout-2v2 .player-panel-top .opponent-hand-display{gap:3px;flex-shrink:0;margin-left:auto}.game-layout-2v2 .player-panel-top.horizontal-layout .opponent-hand-display{margin:0;margin-left:auto!important}.game-layout-2v2 .player-panel-top .opponent-tile-back-large{width:20px;height:40px}.game-layout-2v2 .player-panel-top{position:relative}.game-layout-2v2 .player-panel-top .mobile-back-btn{display:flex!important;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;position:absolute;top:8px;left:8px;z-index:10;background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#fff;cursor:pointer;transition:all .2s ease;flex-shrink:0}.game-layout-2v2 .player-panel-top .mobile-back-btn:hover{background:#fff3;transform:scale(1.05)}.game-layout-2v2 .player-panel-top .mobile-back-btn:active{transform:scale(.95)}.game-layout-2v2 .player-panel-left,.game-layout-2v2 .player-panel-right{display:none!important}.game-layout-2v2 .board-panel{grid-column:1;grid-row:2;flex:1 1 0!important;min-height:0!important;padding:8px;overflow:hidden;display:flex;flex-direction:column;width:85%;margin:0 auto;order:1!important;height:100%;position:relative;background:#00a8ff26!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;border-radius:24px!important;max-height:calc(100vh - 240px)!important;max-height:calc(100dvh - 240px)!important}.game-layout-2v2 .board-panel .board-container{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:4px}.game-layout-2v2 .player-hand-wrapper-2v2{grid-column:1;grid-row:3;order:2!important;height:auto;min-height:160px;max-height:180px;padding:16px 10px 10px;flex-direction:column;gap:8px;flex-shrink:0;background:linear-gradient(180deg,#00b4ff33,#008cff33);width:100%;border-radius:16px;position:relative;z-index:10}.mobile-only{display:none}.game-layout-2v2 .rival-hand-count-left.mobile-only,.game-layout-2v2 .rival-hand-count-right.mobile-only{display:flex;flex-direction:column;position:fixed;top:50%;transform:translateY(-50%);z-index:20;align-items:center;justify-content:center;gap:8px}.game-layout-2v2 .rival-hand-count-left{left:8px}.game-layout-2v2 .rival-hand-count-right{right:8px}.game-layout-2v2 .rival-hand-count-badge{background:#0009;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.3);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:700;color:#fff;box-shadow:0 4px 12px #0000004d}.game-layout-2v2 .rival-hand-count-name{background:#00000080;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:12px;padding:4px 8px;font-size:.75rem;font-weight:600;color:#fff;text-align:center;white-space:nowrap;box-shadow:0 2px 8px #0003}.game-layout-2v2 .player-info-inline{flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;margin-bottom:8px}.game-layout-2v2 .player-info-inline .player-avatar-small{width:40px;height:40px;flex-shrink:0}.game-layout-2v2 .player-info-inline .panel-title-group h3{font-size:1rem}.game-layout-2v2 .player-info-inline .status-text{font-size:.8rem}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand{display:flex!important;flex-direction:row!important;gap:6px;padding:8px 16px;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;width:max-content!important;min-width:100%!important;height:auto!important;flex-wrap:nowrap!important;align-items:center;justify-content:center!important;box-sizing:content-box;border-radius:16px}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand.glass-panel{padding:55px!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand .domino-tile{flex-shrink:0!important;flex-grow:0!important;width:40px!important;height:80px!important;min-width:40px!important;min-height:80px!important;max-width:40px!important;max-height:80px!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand .domino-tile.horizontal{width:80px!important;height:40px!important;min-width:80px!important;min-height:40px!important;max-width:80px!important;max-height:40px!important}.game-layout-2v2 .player-actions-inline{width:100%;justify-content:flex-end;gap:8px;margin-top:8px}.game-layout-2v2 .player-actions-inline .btn-action{padding:14px 20px;font-size:1rem;min-height:44px}.game-layout-2v2 .rival-hand-count-left.mobile-only,.game-layout-2v2 .rival-hand-count-right.mobile-only{display:flex!important}.player-info-inline{flex-direction:row;justify-content:center}.player-actions-inline{width:100%;justify-content:center}.btn,.btn-action{padding:14px 20px;font-size:1rem;min-height:44px}.btn-icon{width:44px;height:44px;min-width:44px;min-height:44px}.btn-text{padding:12px;font-size:1rem;min-height:44px;min-width:44px}.modal-overlay{padding:1rem;align-items:flex-start;overflow-y:auto}.glass-panel{max-width:100%;width:100%;padding:24px;margin:auto;max-height:90vh;overflow-y:auto}.player-hand.glass-panel{width:max-content!important;max-width:none!important;min-width:100%!important;padding:8px 16px!important;margin:0!important;max-height:none!important;overflow-y:hidden!important;border-radius:16px!important;overflow-x:auto!important}.lobby-container{padding:1rem;padding-top:calc(1rem + env(safe-area-inset-top));padding-bottom:calc(1rem + env(safe-area-inset-bottom));padding-left:calc(1rem + env(safe-area-inset-left));padding-right:calc(1rem + env(safe-area-inset-right))}.lobby-panel{padding:1.5rem;border-radius:24px}.waiting-room{padding:2rem 1rem 1rem;min-height:100vh;justify-content:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch}.waiting-header{margin-bottom:2rem;width:100%}.waiting-header h2{font-size:1.8rem;margin-bottom:1rem}.game-code-display{flex-direction:column;gap:.5rem;padding:1rem;width:100%;max-width:100%}.game-code-display span{font-size:1rem}.game-code-display .code{font-size:1.5rem;letter-spacing:2px}.slots-container{flex-direction:column;gap:1.5rem;margin-bottom:2rem;width:100%;max-width:100%}.team-group{width:90%;max-width:400px;padding:1rem;border-radius:16px;margin:0 auto}.team-title{font-size:1.2rem;margin-bottom:1rem}.team-slots{flex-direction:column;gap:.75rem;width:100%}.player-slot{width:85%;max-width:320px;height:auto;min-height:160px;padding:1rem;margin:0 auto}.slot-icon{width:60px;height:60px;margin-bottom:1rem}.slot-name{font-size:1rem;margin-bottom:.4rem}.slot-status{font-size:.8rem}.waiting-footer{width:100%;padding:1rem 0;display:flex;justify-content:center;align-items:center}.start-game-btn{width:80%;max-width:300px;padding:16px;font-size:1.1rem}.waiting-message{width:100%;text-align:center;padding:1rem;font-size:1rem}.lobby-title{font-size:2rem}.lobby-code-input{font-size:1.2rem;padding:14px;letter-spacing:2px;min-height:56px}.lobby-game-code-large{font-size:2rem;letter-spacing:4px;padding:1rem}.login-container{padding:1rem}.login-panel{padding:2rem 1.5rem}.login-title{font-size:2rem}.login-features{flex-direction:row;gap:.75rem;justify-content:space-around}.login-feature-item{flex:1;gap:6px}.login-feature-icon{width:40px;height:40px}.login-feature-label{font-size:.75rem}.user-pill{padding:6px 12px;font-size:.85rem}.user-avatar-small{width:28px;height:28px}.logout-btn,.signin-btn{padding:8px 16px;font-size:.85rem}.board-footer{flex-direction:row;gap:12px;font-size:.75rem;margin-top:8px;align-items:center;justify-content:center}.pass-indicator{right:-80px;font-size:.8rem}.pass-indicator-content{padding:8px 16px;font-size:.85rem}.sidebar-actions{gap:8px}.opponent-hand-display{gap:4px}.opponent-tile-back-large{width:24px;height:48px}.panel-header{gap:12px}.panel-title-group h3{font-size:1rem}.status-text{font-size:.75rem}.player-avatar-small.active-turn{animation:activeTurnPulseMobile 2s ease-in-out infinite;box-shadow:0 0 20px #ffd70099,0 0 40px #ffd70066}@keyframes activeTurnPulseMobile{0%,to{transform:scale(1);box-shadow:0 0 20px #ffd70099,0 0 40px #ffd70066}50%{transform:scale(1.1);box-shadow:0 0 30px #ffd700cc,0 0 60px #ffd70099}}.panel{border-radius:16px}.game-container{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)}.panel-title-group h3,.status-text{text-shadow:0 1px 2px rgba(0,0,0,.3)}.btn-action{min-height:44px;padding:12px 20px;font-size:.95rem;border-radius:12px}.btn-pass,.btn-draw{font-weight:700;box-shadow:0 4px 12px #0003}.player-actions-inline{gap:8px}.player-actions-inline .btn-action{flex:1;min-width:100px}.board-panel .panel-header-simple{background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;margin-bottom:4px}.panel-footer-text{display:none}.playable-glow{position:relative}.playable-glow:after{content:"";position:absolute;inset:-2px;border-radius:12px;background:linear-gradient(135deg,#ffd7004d,#ffc80033);z-index:-1;animation:glowPulse 2s ease-in-out infinite}@keyframes glowPulse{0%,to{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.05)}}.btn-icon{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}}@media(max-width:480px){.home-title-wrapper img{width:90px!important;height:90px!important}.home-title{font-size:2.5rem!important}.home-subtitle{font-size:.9rem}.cards-grid{width:100%!important;max-width:100%!important}.game-card{min-height:140px;padding:20px;width:100%;box-sizing:border-box}.card-title{font-size:1.3rem}.card-desc{font-size:.85rem}.card-icon-wrapper{width:40px;height:40px}.live-badge{top:12px;right:12px;padding:3px 10px;font-size:.7rem}.lobby-title,.login-title{font-size:1.75rem}.game-sidebar{padding:12px}.info-card{padding:10px}}@media(min-width:769px){.game-layout-2v2 .rival-hand-count-left.mobile-only,.game-layout-2v2 .rival-hand-count-right.mobile-only{display:none!important}.game-main-2v2{display:contents!important;flex:none!important;height:auto!important;overflow:visible!important;order:0!important;width:auto!important;min-height:0!important}.game-layout-2v2{display:grid!important;grid-template-columns:280px 200px 1fr 200px!important;grid-template-rows:minmax(120px,120px) minmax(0,1fr) minmax(150px,180px)!important;gap:16px!important;padding:16px 16px 24px!important;overflow:hidden!important;height:100vh!important;width:100%!important;box-sizing:border-box!important;align-items:start!important;flex-direction:row!important;min-height:auto!important;position:relative!important}.game-layout-2v2 .player-panel-top{grid-column:2 / 5!important;grid-row:1!important;height:120px!important;order:0!important;flex:none!important;min-height:auto!important;max-height:none!important}.game-layout-2v2 .board-panel{grid-column:3!important;grid-row:2!important;order:0!important;flex:none!important;height:auto!important;max-height:100%!important;min-height:0!important;align-self:stretch!important;position:relative!important;z-index:3!important;overflow:hidden!important;width:100%!important;box-sizing:border-box!important}.game-layout-2v2 .player-hand-wrapper-2v2{grid-column:2 / 5!important;grid-row:3!important;order:0!important;flex:none!important;height:auto!important;min-height:auto!important;max-height:200px!important;align-self:end!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;overflow:hidden!important;padding:12px 8px!important;box-sizing:border-box!important;width:100%!important;position:relative!important;z-index:8!important;margin-bottom:0!important;margin-top:0!important;background:#00a8ff26!important;-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;border-radius:24px!important;border:1px solid rgba(255,255,255,.1)!important;gap:16px!important;flex-direction:row!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand{flex:1!important;display:flex!important;justify-content:center!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;padding:12px 0!important;width:auto!important;min-width:0!important;height:auto!important;align-items:center!important;box-sizing:border-box!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand .domino-tile{flex-shrink:0!important;flex-grow:0!important;width:60px!important;height:120px!important;min-width:60px!important;min-height:120px!important;max-width:60px!important;max-height:120px!important;box-sizing:border-box!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-hand .domino-tile.horizontal{width:120px!important;height:60px!important;min-width:120px!important;min-height:60px!important;max-width:120px!important;max-height:60px!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-info-inline{flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;flex-shrink:0!important;margin-bottom:0!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-actions-inline{flex-shrink:0!important;display:flex!important;align-items:center!important;gap:10px!important;width:auto!important;justify-content:flex-start!important;margin-top:0!important}.game-layout-2v2 .player-hand-wrapper-2v2 .player-actions-inline .btn-action{padding:12px 24px!important;font-size:.9rem!important;min-height:auto!important}.game-layout-2v2 .player-panel-left{display:flex!important;grid-column:2!important;grid-row:2!important;order:0!important;flex:none!important;height:90%!important;align-self:stretch!important}.game-layout-2v2 .player-panel-right{display:flex!important;grid-column:4!important;grid-row:2!important;order:0!important;flex:none!important;height:90%!important;align-self:stretch!important;position:relative!important;z-index:5!important;overflow:hidden!important;width:100%!important;box-sizing:border-box!important}.game-layout-2v2 .player-panel-top .mobile-back-btn,.game-layout-2v2 .player-panel-left .mobile-back-btn,.game-layout-2v2 .player-panel-right .mobile-back-btn,.opponent-panel .mobile-back-btn{display:none!important}.game-layout-2v2 .game-sidebar{grid-column:1!important;grid-row:1 / -1!important;order:0!important;margin-top:0!important;height:100%!important;max-height:calc(100vh - 32px)!important;width:auto!important;display:flex!important;flex-direction:column!important;padding:12px!important;border-radius:16px!important;grid-template-columns:1fr!important;grid-auto-rows:auto!important;gap:12px!important;min-height:auto!important;overflow-y:auto!important;flex-shrink:1!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important;align-items:stretch!important}.game-layout-2v2 .game-sidebar .sidebar-header{grid-column:auto!important;margin-bottom:16px!important;padding:0!important;min-height:auto!important}.game-layout-2v2 .game-sidebar .info-card{padding:12px!important;margin-bottom:12px!important;height:auto!important;min-height:auto!important;max-height:none!important}.game-layout-2v2 .game-sidebar .sidebar-actions{grid-column:auto!important;margin-top:16px!important;gap:12px!important;flex-direction:column!important}.game-layout-2v2 .game-sidebar .sidebar-actions .btn-text{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;font-size:.9rem!important;padding:8px 16px!important;min-height:auto!important}}@media(max-width:768px)and (orientation:landscape){.game-layout,.game-layout-2v2{grid-template-rows:auto 1fr auto}.game-sidebar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}.info-card{margin-bottom:8px}.player-panel{min-height:140px}.board-panel{min-height:150px}}@media(hover:none)and (pointer:coarse){.game-card:hover{transform:none}.domino-tile:not(.disabled):hover{transform:none}.domino-tile:not(.disabled){cursor:pointer}.domino-tile:not(.disabled):active{transform:scale(.95)}.btn-action:active{transform:scale(.98)}}.domino-tile,.btn-action,.btn{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.game-container,.lobby-container,.login-container,.home-container{-webkit-overflow-scrolling:touch}.domino-tile{background:linear-gradient(135deg,#ffd70066,#ffc80059,#ffb4004d);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-radius:18px;border:1.5px solid rgba(255,215,0,.5);box-shadow:0 8px 32px #0000004d,0 0 0 1px #ffffff1a inset,0 2px 8px #ffd70033 inset,0 0 20px #ffd70026;display:flex;flex-direction:column;width:60px;height:120px;min-width:60px;min-height:120px;max-width:60px;max-height:120px;overflow:hidden;transition:all .3s ease;position:relative;box-sizing:border-box;flex-shrink:0;flex-grow:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.domino-tile:before{content:"";position:absolute;top:0;left:0;right:0;height:30%;background:linear-gradient(180deg,rgba(255,255,255,.3) 0%,rgba(255,255,255,.1) 50%,transparent 100%);border-radius:18px 18px 0 0;pointer-events:none;z-index:1}.domino-tile:not(.disabled):hover{transform:translateY(-4px) scale(1.02);box-shadow:0 16px 48px #0006,0 0 0 1px #fff3 inset,0 4px 12px #ffd7004d inset,0 0 30px #ffd70040;border-color:#ffd700b3;background:linear-gradient(135deg,#ffd70080,#ffc80073,#ffb40066)}.domino-tile.disabled{opacity:.6;filter:grayscale(.3)}.domino-half{flex:1;width:100%;height:50%;padding:8px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;position:relative;min-height:0;min-width:0;z-index:2}.domino-divider{height:1.5px;width:80%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.4) 20%,rgba(255,255,255,.5) 50%,rgba(255,255,255,.4) 80%,transparent 100%);box-shadow:0 1px 2px #0003,0 -1px #ffffff1a;margin:0 auto;position:relative;z-index:2}.face{width:100%;height:100%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px;padding:2px;box-sizing:border-box;min-height:100%;min-width:100%;flex-shrink:0}.face-0{min-height:100%;min-width:100%}.face .dot{width:11px;height:11px;background:radial-gradient(circle at 30% 30%,#2a2a2a,#000);border-radius:50%;align-self:center;justify-self:center;box-shadow:0 2px 4px #0006,0 0 0 1px #0003 inset,0 1px #ffffff1a inset;position:relative;z-index:3}.face-1 .dot:nth-child(1){grid-area:2 / 2}.face-2 .dot:nth-child(1){grid-area:1 / 3}.face-2 .dot:nth-child(2){grid-area:3 / 1}.face-3 .dot:nth-child(1){grid-area:1 / 3}.face-3 .dot:nth-child(2){grid-area:2 / 2}.face-3 .dot:nth-child(3){grid-area:3 / 1}.face-4 .dot:nth-child(1){grid-area:1 / 1}.face-4 .dot:nth-child(2){grid-area:1 / 3}.face-4 .dot:nth-child(3){grid-area:3 / 1}.face-4 .dot:nth-child(4){grid-area:3 / 3}.face-5 .dot:nth-child(1){grid-area:1 / 1}.face-5 .dot:nth-child(2){grid-area:1 / 3}.face-5 .dot:nth-child(3){grid-area:2 / 2}.face-5 .dot:nth-child(4){grid-area:3 / 1}.face-5 .dot:nth-child(5){grid-area:3 / 3}.face-6 .dot:nth-child(1){grid-area:1 / 1}.face-6 .dot:nth-child(2){grid-area:1 / 3}.face-6 .dot:nth-child(3){grid-area:2 / 1}.face-6 .dot:nth-child(4){grid-area:2 / 3}.face-6 .dot:nth-child(5){grid-area:3 / 1}.face-6 .dot:nth-child(6){grid-area:3 / 3}.domino-tile.horizontal .face{transform:rotate(-90deg)}.domino-tile.horizontal .face .dot{transform:rotate(90deg)}.domino-tile.horizontal{width:120px;height:60px;min-width:120px;min-height:60px;max-width:120px;max-height:60px;flex-direction:row;box-sizing:border-box;flex-shrink:0;flex-grow:0}.domino-tile.horizontal .domino-divider{width:2px;height:80%;margin:auto 2px}.domino-tile.horizontal .domino-half{width:50%;height:100%}@media(max-width:768px){.domino-tile{width:40px!important;height:80px!important;border-radius:8px;border-width:1px}.domino-tile.horizontal{width:80px!important;height:40px!important}.domino-half{padding:3px}.face .dot{width:4.5px;height:4.5px}.domino-tile:not(.disabled):active{transform:scale(.95);transition:transform .1s ease}.domino-tile.playable-glow{box-shadow:0 8px 32px #0000004d,0 0 0 2px #ffd700cc inset,0 0 20px #ffd70099,0 0 40px #ffd70066;animation:playablePulse 2s ease-in-out infinite}@keyframes playablePulse{0%,to{box-shadow:0 8px 32px #0000004d,0 0 0 2px #ffd700cc inset,0 0 20px #ffd70099,0 0 40px #ffd70066}50%{box-shadow:0 8px 32px #0000004d,0 0 0 2px gold inset,0 0 30px #ffd700cc,0 0 60px #ffd70099}}}@media(max-width:480px){.domino-tile{width:38px!important;height:76px!important}.domino-tile.horizontal{width:76px!important;height:38px!important}.face .dot{width:3.75px;height:3.75px}}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.settings-modal-overlay{background:#000000b3;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}.settings-modal{max-width:550px;width:90%;background:linear-gradient(135deg,#ffffff1a,#ffffff0d);backdrop-filter:blur(40px) saturate(200%);-webkit-backdrop-filter:blur(40px) saturate(200%);border:1px solid rgba(255,255,255,.2);border-radius:32px;box-shadow:0 20px 60px #0006,0 0 0 1px #ffffff1a inset,0 0 40px #ffd7001a;padding:0;overflow:hidden;position:relative}.settings-modal:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent)}.settings-modal-header{display:flex;justify-content:space-between;align-items:center;padding:28px 32px;border-bottom:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(255,255,255,.1),transparent)}.settings-modal-title{font-size:2rem;font-weight:800;margin:0;background:linear-gradient(135deg,#fff,#fffc);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.settings-close-btn{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.settings-close-btn:hover{background:#fff3;transform:scale(1.1);border-color:#fff6}.settings-content{padding:32px}.settings-section{margin-bottom:28px}.settings-section:last-of-type{margin-bottom:0}.settings-label{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-weight:700;font-size:1rem;color:#fff}.settings-sublabel{display:block;font-size:.85rem;font-weight:400;opacity:.7;margin-top:4px}.settings-button-group{display:flex;gap:10px}.settings-option-btn{flex:1;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.2);background:linear-gradient(135deg,#ffffff14,#ffffff08);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.settings-option-btn:hover{background:linear-gradient(135deg,#ffffff26,#ffffff14);border-color:#ffffff4d;transform:translateY(-2px);box-shadow:0 6px 20px #0003}.settings-option-btn.active{background:linear-gradient(135deg,var(--color-accent),rgba(255,215,0,.9));border-color:#ffd70099;color:#1a1a1a;font-weight:700;box-shadow:0 0 20px #ffd70066,0 4px 16px #0000004d,inset 0 1px #ffffff4d;transform:translateY(-2px)}.settings-select{width:100%;padding:14px 18px;border-radius:16px;border:1px solid rgba(255,255,255,.2);background:linear-gradient(135deg,#ffffff14,#ffffff08);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-size:1rem;font-weight:500;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #0000001a}.settings-select:hover{background:linear-gradient(135deg,#ffffff1f,#ffffff0f);border-color:#ffffff4d}.settings-select:focus{outline:none;border-color:var(--color-accent);box-shadow:0 0 0 3px #ffd70033}.settings-select option{background:#1a1a1a;color:#fff}.settings-section-toggle{display:flex;align-items:center;justify-content:space-between}.settings-toggle{width:60px;height:32px;border-radius:16px;border:1px solid rgba(255,255,255,.2);background:linear-gradient(135deg,#0000004d,#0003);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative;cursor:pointer;transition:all .3s ease;padding:3px;box-shadow:inset 0 2px 4px #0000004d}.settings-toggle.active{background:linear-gradient(135deg,var(--color-primary),rgba(10,132,255,.8));border-color:#0a84ff80;box-shadow:0 0 20px #0a84ff66,inset 0 2px 4px #0003}.settings-toggle-slider{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#ffffffe6,#ffffffb3);box-shadow:0 2px 8px #0000004d,0 0 0 1px #fff3 inset;transition:transform .3s ease;transform:translate(0)}.settings-toggle.active .settings-toggle-slider{transform:translate(28px)}.settings-footer{padding:24px 32px;border-top:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,transparent,rgba(255,255,255,.05));display:flex;justify-content:center}.settings-save-btn{display:flex;align-items:center;gap:10px;padding:16px 40px;border-radius:20px;border:none;background:linear-gradient(135deg,var(--color-accent),rgba(255,215,0,.9));color:#1a1a1a;font-weight:700;font-size:1rem;text-transform:uppercase;letter-spacing:1px;cursor:pointer;transition:all .3s ease;box-shadow:0 8px 24px #ffd7004d,0 0 0 1px #ffd70033 inset,0 4px 12px #0003}.settings-save-btn:hover{transform:translateY(-2px);box-shadow:0 12px 32px #ffd70066,0 0 0 1px #ffd7004d inset,0 6px 16px #0000004d}.settings-save-btn:active{transform:translateY(0)}.btn{padding:10px 20px;border:none;border-radius:8px;background:var(--color-accent);color:#333;font-weight:700;cursor:pointer;transition:transform .1s}.btn:hover{transform:scale(1.05)}.settings-label svg{color:var(--color-accent);filter:drop-shadow(0 0 8px rgba(255,215,0,.5))}
