@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap";:root{--bg-primary:#0f172a;--bg-secondary:#1e293b;--bg-glass:#1e293bb3;--text-primary:#f8fafc;--text-secondary:#94a3b8;--color-red:#ef4444;--color-blue:#3b82f6;--color-green:#10b981;--color-yellow:#f59e0b;--grad-primary:linear-gradient(135deg, #6366f1 0%, #a855f7 100%);--grad-hover:linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-glow:0 0 20px #6366f14d;--border-glass:1px solid #ffffff1a;--transition-fast:.15s cubic-bezier(.4, 0, .2, 1);--transition-normal:.3s cubic-bezier(.4, 0, .2, 1)}*{box-sizing:border-box;margin:0;padding:0;font-family:Outfit,sans-serif}:focus-visible{outline-offset:3px;outline:3px solid #fbbf24}html{-webkit-text-size-adjust:100%;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;width:100%;overflow:hidden auto}body{background-color:var(--bg-primary);color:var(--text-primary);-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;overscroll-behavior-y:none;width:100%;min-height:100dvh;margin:0;padding:0;overflow:visible}#root{flex-direction:column;width:100%;min-height:100dvh;display:flex;overflow:visible}h1{background:var(--grad-primary);-webkit-text-fill-color:transparent;text-align:center;letter-spacing:-.05em;-webkit-background-clip:text;margin-bottom:2rem;font-size:3rem;font-weight:800}h2{margin-bottom:1rem;font-size:1.5rem;font-weight:600}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:.5s ease-out forwards fadeIn}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.glass-panel{background:var(--bg-glass);-webkit-backdrop-filter:blur(12px);border:var(--border-glass);box-shadow:var(--shadow-lg);border-radius:1rem;padding:2rem}.btn-primary{background:var(--grad-primary);color:#fff;cursor:pointer;transition:all var(--transition-fast);box-shadow:var(--shadow-md);border:none;border-radius:.5rem;justify-content:center;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn-primary:hover{box-shadow:var(--shadow-glow);transform:translateY(-2px)}.btn-primary:active{transform:translateY(0)}.btn-outline{color:var(--text-primary);border:1px solid var(--text-secondary);cursor:pointer;transition:all var(--transition-fast);background:0 0;border-radius:.5rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600}.btn-outline:hover{background:var(--bg-secondary);border-color:var(--text-primary)}.app-container{touch-action:pan-y pinch-zoom;box-sizing:border-box;flex-direction:column;width:100%;min-height:100dvh;display:flex;position:relative;overflow:visible}.bg-decor{-webkit-filter:blur(80px);z-index:0;pointer-events:none;will-change:transform;border-radius:50%;position:fixed;transform:translate(0,0)}.bg-decor.top-left{background:var(--grad-primary);opacity:.15;width:50vw;height:50vw;top:-20vw;left:-20vw}.bg-decor.bottom-right{opacity:.15;background:linear-gradient(135deg,#ec4899 0%,#3b82f6 100%);width:40vw;height:40vw;bottom:-15vw;right:-15vw}.main-content{z-index:1;padding:2rem 1rem calc(4rem + env(safe-area-inset-bottom,20px)) 1rem;box-sizing:border-box;touch-action:pan-y pinch-zoom;flex-direction:column;flex:1 0 auto;justify-content:flex-start;align-items:center;width:100%;max-width:1200px;margin:0 auto;display:flex;position:relative}.game-card-wrapper{animation:.3s cubic-bezier(.4,0,.2,1) forwards fadeIn}.game-header{justify-content:space-between;align-items:center;width:100%;max-width:800px;margin-bottom:2rem;display:flex}.game-title{margin:0;font-size:2.5rem}.app-header-nav{z-index:100;-webkit-backdrop-filter:blur(12px);background:#0f172abf;border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;width:100%;padding:.85rem 1.5rem;display:flex;position:relative}.nav-brand-container{align-items:center;gap:.5rem;display:flex}.nav-brand-btn{cursor:pointer;transition:all var(--transition-fast);background:0 0;border:none;border-radius:.5rem;align-items:center;gap:.5rem;padding:.25rem .5rem;display:flex}.nav-brand-btn:hover{background:#ffffff14}.brand-logo{font-size:1.4rem}.brand-text{background:var(--grad-primary);-webkit-text-fill-color:transparent;letter-spacing:-.02em;-webkit-background-clip:text;font-size:1.25rem;font-weight:800}.nav-breadcrumb{color:var(--text-secondary);font-size:.95rem}.nav-breadcrumb b{color:var(--text-primary);font-weight:600}.nav-controls{align-items:center;gap:.85rem;display:flex}.btn-sound-toggle{color:var(--text-primary);cursor:pointer;width:38px;height:38px;transition:all var(--transition-fast);background:#ffffff0f;border:1px solid #ffffff1a;border-radius:50%;justify-content:center;align-items:center;font-size:1.15rem;display:flex}.btn-sound-toggle:hover{background:#ffffff26;transform:scale(1.05)}.user-profile-badge{background:#ffffff0d;border:1px solid #ffffff14;border-radius:2rem;align-items:center;gap:.45rem;padding:.35rem .75rem;display:flex;position:relative}.user-avatar-circle{background:var(--grad-primary);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:.75rem;font-weight:800;display:flex}.user-name-text{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;max-width:110px;font-size:.85rem;font-weight:600;overflow:hidden}.sync-dot{background:#10b981;border-radius:50%;width:7px;height:7px;animation:2s infinite pulse;box-shadow:0 0 6px #10b981}.nav-logout-btn{border-radius:.5rem;padding:.35rem .85rem;font-size:.82rem}.loader{font-size:1.5rem;font-weight:600;animation:1s infinite alternate pulse}@media (width<=600px){.app-header-nav{gap:.5rem;padding:.5rem .65rem}.nav-controls{gap:.5rem}.brand-text{font-size:1.05rem}.nav-breadcrumb,.user-name-text{display:none}.user-profile-badge{padding:.25rem .45rem}.main-content{padding:.75rem .5rem calc(4.5rem + env(safe-area-inset-bottom,20px)) .5rem}}@media (width<=360px){.app-header-nav{gap:.25rem;padding:.4rem .45rem}.brand-logo{font-size:1.15rem}.brand-text{font-size:.95rem}.nav-controls{gap:.35rem}.btn-sound-toggle{width:34px;height:34px;font-size:1rem}.nav-logout-btn{padding:.3rem .55rem;font-size:.75rem}.main-content{padding:.5rem .25rem calc(4rem + env(safe-area-inset-bottom,20px)) .25rem}}.home-container{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;width:100%;display:flex}.home-header{text-align:center;margin-bottom:4rem}.home-header h1{background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin-bottom:.5rem;font-size:4rem}.subtitle{color:var(--text-secondary);font-size:1.2rem}.game-grid{touch-action:pan-y pinch-zoom;flex-wrap:wrap;justify-content:center;gap:3rem;width:100%;display:flex}.game-card{cursor:pointer;width:min(100%,320px);max-width:320px;color:inherit;font:inherit;text-align:inherit;transition:transform var(--transition-normal), box-shadow var(--transition-normal);touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent;background:linear-gradient(135deg,#ffffff26,#ffffff05);border:0;border-radius:1.5rem;padding:2px;position:relative}.game-card:hover{background:var(--grad-primary);transform:translateY(-8px);box-shadow:0 20px 40px -10px #6366f173}.game-card:active{transform:translateY(-2px)}.card-glass{-webkit-backdrop-filter:blur(12px);text-align:center;height:100%;transition:background var(--transition-normal);touch-action:pan-y pinch-zoom;background:linear-gradient(145deg,#1e293bbf,#0f172ae6);border:1px solid #ffffff14;border-radius:calc(1.5rem - 2px);flex-direction:column;align-items:center;padding:2.5rem 2rem;display:flex;position:relative}.card-glass *{pointer-events:none;touch-action:pan-y pinch-zoom}.card-stat-pill{color:#10b981;letter-spacing:.03em;background:#10b98126;border:1px solid #10b98166;border-radius:1rem;padding:.2rem .6rem;font-size:.75rem;font-weight:700;position:absolute;top:.85rem;right:.85rem;box-shadow:0 0 10px #10b98133}.game-card:hover .card-glass{background:linear-gradient(145deg,#1e293be0,#0f172af5)}.game-icon{width:80px;height:80px;box-shadow:var(--shadow-md);border-radius:1rem;justify-content:center;align-items:center;margin-bottom:1.5rem;font-size:2.5rem;font-weight:800;display:flex;overflow:hidden}.tictactoe-icon{color:#fff;background:linear-gradient(135deg,#fecaca,#ef4444);gap:.5rem;position:relative}.tictactoe-icon span:first-child{transform:translateY(-5px)}.tictactoe-icon span:last-child{transform:translateY(5px)}.ludo-icon{background:linear-gradient(135deg,#10b981 0%,#3b82f6 50%,#ef4444 100%);padding:.65rem;box-shadow:0 8px 20px -4px #3b82f666}.ludo-dots{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172abf;border-radius:.65rem;grid-template-columns:1fr 1fr;gap:.35rem;width:100%;height:100%;padding:.45rem;display:grid}.ludo-dots .dot{border-radius:50%;width:100%;height:100%;box-shadow:0 0 8px}.ludo-dots .dot.red{background:var(--color-red);color:var(--color-red)}.ludo-dots .dot.green{background:var(--color-green);color:var(--color-green)}.ludo-dots .dot.blue{background:var(--color-blue);color:var(--color-blue)}.ludo-dots .dot.yellow{background:var(--color-yellow);color:var(--color-yellow)}.rps-icon{color:#fff;background:linear-gradient(135deg,#06b6d4,#3b82f6);justify-content:center;align-items:center;gap:.25rem;padding:.5rem;display:flex}.rps-icon span{filter:drop-shadow(0 2px 4px #0000004d);justify-content:center;align-items:center;font-size:1.4rem;line-height:1;transition:transform .2s;display:inline-flex}.game-card:hover .rps-icon span:first-child{transform:translateY(-3px)scale(1.1)}.game-card:hover .rps-icon span:nth-child(2){transform:translateY(2px)scale(1.1)}.game-card:hover .rps-icon span:nth-child(3){transform:translateY(-3px)scale(1.1)}.game2048-icon{color:#fff;background:linear-gradient(135deg,#f59e0b,#ec4899);grid-template-columns:1fr 1fr;gap:0;padding:.25rem;display:grid}.game2048-icon span{justify-content:center;align-items:center;font-size:1.2rem;display:flex}.chess-icon{color:#fff;background:linear-gradient(135deg,#8b5cf6,#d946ef);gap:.5rem}.chess-icon span:first-child{transform:translateY(-5px)}.chess-icon span:last-child{transform:translateY(5px)}.card-glass h2{color:var(--text-primary);font-size:1.75rem}.card-glass p{color:var(--text-secondary);flex-grow:1;margin-bottom:2rem;line-height:1.5}.btn-play{color:var(--text-primary);letter-spacing:.02em;transition:all var(--transition-fast);background:#ffffff14;border:1px solid #ffffff26;border-radius:2rem;padding:.75rem 2.25rem;font-size:.95rem;font-weight:700;display:inline-block}.game-card:hover .btn-play{background:var(--grad-primary);color:#fff;border-color:#0000;transform:scale(1.04);box-shadow:0 8px 20px -4px #6366f180}@media (width<=640px){.home-header{margin-bottom:2rem}.home-header h1{font-size:2.5rem}.subtitle{font-size:1.05rem}.game-grid{gap:1.5rem}.game-card{width:100%;max-width:330px}.card-glass{padding:1.75rem 1.25rem}}.tictactoe-container{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;width:100%;max-width:800px;display:flex}.tictactoe-header{justify-content:space-between;align-items:center;gap:1rem;width:100%;max-width:620px;margin-bottom:1.5rem;display:flex}.tictactoe-title{white-space:nowrap;background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0;font-size:1.85rem;font-weight:800}.tictactoe-content{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;width:100%;max-width:520px;display:flex}.ttt-mode-selector{background:var(--bg-secondary);border:1px solid #ffffff1a;border-radius:2rem;padding:.25rem;display:flex}.ttt-mode-btn{color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast);background:0 0;border:none;border-radius:1.75rem;padding:.45rem .9rem;font-size:.9rem;font-weight:600}.ttt-mode-btn.active{background:var(--grad-primary);color:#fff;box-shadow:var(--shadow-sm)}.ttt-scoreboard{justify-content:space-between;align-items:center;gap:1rem;width:100%;margin-bottom:1.5rem;display:flex}.ttt-score-badge{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:all var(--transition-normal);opacity:.7;background:linear-gradient(135deg,#1e293bd9,#0f172ae6);border:1px solid #ffffff1a;border-radius:1.2rem;flex-direction:column;align-items:center;min-width:95px;padding:.75rem 1.4rem;display:flex;box-shadow:0 4px 15px #0003}.ttt-score-badge.active{opacity:1;box-shadow:var(--shadow-md);background:linear-gradient(135deg,#334155f2,#1e293bf2);transform:scale(1.05)}.ttt-score-badge.x-score.active{border-color:#ef444499;box-shadow:0 0 20px #ef444473}.ttt-score-badge.o-score.active{border-color:#3b82f699;box-shadow:0 0 20px #3b82f673}.ttt-player-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;font-weight:700}.ttt-score-value{font-size:2rem;font-weight:800}.x-score .ttt-score-value{color:var(--color-red);text-shadow:0 0 10px #ef444466}.o-score .ttt-score-value{color:var(--color-blue);text-shadow:0 0 10px #3b82f666}.ttt-status-display{text-align:center;flex:1;font-size:1.2rem;font-weight:700}.ttt-winner-announcement{color:#10b981;text-shadow:0 0 15px #10b98199;font-weight:800;animation:1.5s infinite pulse}.ttt-winner-announcement.draw{color:#f59e0b;text-shadow:0 0 15px #f59e0b99}.ttt-turn-indicator{color:var(--text-primary);font-weight:600}.ttt-board-wrapper{touch-action:pan-y pinch-zoom;margin-bottom:1.75rem;position:relative}.ttt-board{touch-action:pan-y pinch-zoom;background:linear-gradient(145deg,#1e293b,#0f172a);border:1px solid #ffffff1f;border-radius:1.5rem;padding:.85rem;box-shadow:0 12px 40px #00000073,inset 0 2px 4px #0000004d;grid-template-rows:repeat(3,105px)!important;grid-template-columns:repeat(3,105px)!important;gap:.75rem!important;display:grid!important}.ttt-cell{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent;background:#1e293be6;border:1px solid #ffffff14;border-radius:1rem;justify-content:center;align-items:center;width:105px;height:105px;font-size:3.4rem;font-weight:800;transition:transform .18s cubic-bezier(.175,.885,.32,1.275),background .18s,box-shadow .18s;display:flex;box-shadow:inset 0 1px 1px #ffffff26,0 4px 10px #0003}.ttt-cell:hover:not(:disabled){background:#334155f2;border-color:#60a5fa66;transform:translateY(-2px)scale(1.03);box-shadow:0 8px 20px #00000059}.ttt-cell.cell-x{color:var(--color-red);text-shadow:0 0 18px #ef4444a6}.ttt-cell.cell-o{color:var(--color-blue);text-shadow:0 0 18px #3b82f6a6}.ttt-cell.winning-cell{animation:.3s ease-out popIn;background:#10b98140!important;border:2px solid #10b981!important;transform:scale(1.06)!important;box-shadow:0 0 25px #10b98199!important}.ttt-cell.filled{animation:.25s cubic-bezier(.175,.885,.32,1.275) popIn}.ttt-controls{justify-content:center;gap:1rem;width:100%;display:flex}.btn-sound-game{border-radius:1.5rem;padding:.4rem .65rem;font-size:1.05rem}@keyframes popIn{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@media (width<=520px){.tictactoe-header{flex-wrap:wrap;justify-content:center;gap:.75rem}.tictactoe-title{text-align:center;width:100%;font-size:1.8rem}.ttt-scoreboard{gap:.5rem}.ttt-score-badge{min-width:75px;padding:.5rem .8rem}.ttt-board{grid-template-rows:repeat(3,min(85px,26vw))!important;grid-template-columns:repeat(3,min(85px,26vw))!important;gap:.4rem!important}.ttt-cell{width:min(85px,26vw);height:min(85px,26vw);font-size:2.2rem}}.game-wrapper.ludo{box-sizing:border-box;touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;width:100%;max-width:1200px;display:flex}.game-wrapper.ludo .game-header.ludo-header{box-sizing:border-box;justify-content:space-between;align-items:center;gap:1.25rem;width:100%;max-width:100%;margin-bottom:1.5rem;display:flex}.ludo-header-top{align-items:center;gap:1rem;display:flex}.game-wrapper.ludo .game-title{white-space:nowrap;margin:0;font-size:clamp(1.4rem,4vw,2.2rem);font-weight:800}.mobile-sound-btn{display:none}.desktop-sound-btn{white-space:nowrap;align-items:center;gap:.4rem;display:inline-flex}.ludo-mode-selector{-webkit-backdrop-filter:blur(12px);box-sizing:border-box;background:#0f172abf;border:1px solid #ffffff1f;border-radius:2rem;align-items:center;gap:.25rem;padding:.3rem;display:inline-flex;box-shadow:0 4px 15px #00000059,inset 0 1px 1px #ffffff14}.ludo-mode-btn{color:var(--text-secondary);cursor:pointer;letter-spacing:.02em;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:none;border-radius:1.5rem;justify-content:center;align-items:center;gap:.45rem;padding:.5rem 1.1rem;font-size:.85rem;font-weight:700;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex}.mode-text-compact,.mode-text-tiny{display:none}.mode-text-full{display:inline}.ludo-mode-btn:hover:not(.active){color:var(--text-primary);background:#ffffff14}.ludo-mode-btn.active{background:var(--grad-primary);color:#fff;transform:scale(1.02);box-shadow:0 4px 14px #6366f180}.ludo-content{touch-action:pan-y pinch-zoom;flex-direction:column-reverse;gap:3rem;width:100%;display:flex}@media (width>=900px){.ludo-content{flex-direction:row;align-items:center}}.ludo-sidebar{touch-action:pan-y pinch-zoom;flex-direction:column;flex:.75;justify-content:center;align-items:center;gap:1.5rem;width:min(100%,320px);padding:2rem 1.5rem 2.75rem;display:flex;position:relative;overflow:visible}.active-player-panel{text-align:center;z-index:2;width:100%;position:relative}.turn-badge{letter-spacing:.12em;text-transform:uppercase;opacity:.8;margin-bottom:.5rem;font-size:.72rem;font-weight:700;display:inline-block}.player-list{flex-direction:column;gap:.55rem;width:100%;margin-top:.2rem;display:flex}.player-row{color:var(--text-primary);background:#0f172a47;border:1px solid #ffffff14;border-radius:12px;align-items:center;gap:.7rem;padding:.65rem .8rem;transition:transform .2s,border-color .2s,box-shadow .2s;display:flex}.player-row.active{background:#0f172a80;border-color:#ffffff38;transform:translate(4px);box-shadow:0 0 0 1px #ffffff14,0 0 18px #94a3b82e,inset 0 0 16px #ffffff08}.player-row.human,.player-row.bot{border-left-style:solid}.player-row.bot{opacity:.88}.player-row.human{opacity:1}.player-swatch{border-radius:50%;width:12px;height:12px;box-shadow:0 0 12px #fff6}.player-name-input{color:var(--text-primary);letter-spacing:.04em;background:#0f172a66;border:1px solid #94a3b840;border-radius:10px;outline:none;flex:1;padding:.55rem .65rem;font-size:.82rem;font-weight:700;transition:border-color .2s,box-shadow .2s}.player-name-input:focus{border-color:#94a3b8bf;box-shadow:0 0 0 2px #94a3b826}.player-row .player-name-input{border-left-width:3px}.player-type{letter-spacing:.06em;text-transform:uppercase;opacity:.85;font-size:.7rem;font-weight:700}.active-player-glow{filter:blur(40px);z-index:-1;opacity:.15;border-radius:50%;width:150%;height:150%;transition:all .5s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.glow-red{background:var(--color-red)}.glow-green{background:var(--color-green)}.glow-yellow{background:var(--color-yellow)}.glow-blue{background:var(--color-blue)}.turn-indicator{text-shadow:0 4px 10px #00000080;margin:0;font-size:1.7rem;font-weight:800;transition:color .4s}.turn-role{opacity:.9;margin-left:.45rem;font-size:.85rem}.ludo-message{color:var(--text-secondary);letter-spacing:.4px;min-height:2.2rem;margin-top:.5rem;font-size:.95rem;font-weight:500}.dice-container{flex-direction:column;justify-content:center;align-items:center;width:100%;margin-top:1rem;display:flex}.dice-scene{perspective:900px;cursor:pointer;width:88px;height:88px;color:inherit;font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0;padding:0}.dice-scene:disabled{cursor:default}.cube{width:100%;height:100%;transform-style:preserve-3d;transition:transform 1.2s cubic-bezier(.175,.885,.32,1.275),box-shadow .2s;position:relative;box-shadow:0 18px 30px #0f172a61,0 0 0 2px #ffffff2e}.cube:hover{transform:translateY(-2px)scale(1.02);box-shadow:0 22px 32px #0f172a6b,0 0 18px #94a3b826}.cube:active{transform:translateY(1px)scale(.98)}.cube-rolling-blur{filter:blur(1.5px)drop-shadow(0 0 14px #ffffff2e);transition:transform 1.2s cubic-bezier(.2,.8,.2,1),filter .2s,box-shadow .2s;animation:.9s cubic-bezier(.22,1,.36,1) both diceLand}@keyframes diceLand{0%{filter:blur()drop-shadow(0 0 #fff0);transform:scale(.92)rotateX(30deg)rotateY(-30deg)}25%{filter:blur(.5px)drop-shadow(0 10px 24px #60a5fa2e);transform:scale(1.08)rotateX(-18deg)rotateY(26deg)}60%{filter:blur()drop-shadow(0 18px 24px #0f172a47);transform:scale(1.02)rotateX(10deg)rotateY(-10deg)}to{filter:blur()drop-shadow(0 10px 18px #0f172a2e);transform:scale(1)rotateX(0)rotateY(0)}}.cube__face{background:linear-gradient(145deg,#fff 0%,#f8fafc 60%,#e2e8f0 100%);border:1.5px solid #ffffffe6;border-radius:16px;width:88px;height:88px;position:absolute;box-shadow:inset 0 0 10px #00000014,inset 0 2px 4px #fffc,0 4px 10px #0000001f}.cube__face--front{transform:rotateY(0)translateZ(44px)}.cube__face--right{transform:rotateY(90deg)translateZ(44px)}.cube__face--back{transform:rotateY(180deg)translateZ(44px)}.cube__face--left{transform:rotateY(-90deg)translateZ(44px)}.cube__face--up{transform:rotateX(90deg)translateZ(44px)}.cube__face--down{transform:rotateX(-90deg)translateZ(44px)}.dot{background:radial-gradient(circle at 35% 35%,#334155,#0f172a);border-radius:50%;width:18px;height:18px;position:absolute;box-shadow:inset 0 3px 5px #000000b3,0 1px 1px #fff9}.cube__face--front .dot.center{background:radial-gradient(circle at 35% 35%,#ef4444,#991b1b);box-shadow:inset 0 2px 4px #0009,0 0 8px #ef444480}.center{top:50%;left:50%;transform:translate(-50%,-50%)}.top-left{top:15%;left:15%}.top-right{top:15%;right:15%}.bottom-left{bottom:15%;left:15%}.bottom-right{bottom:15%;right:15%}.middle-left{top:50%;left:15%;transform:translateY(-50%)}.middle-right{top:50%;right:15%;transform:translateY(-50%)}.roll-hint{text-align:center;color:#60a5fa;letter-spacing:.03em;white-space:nowrap;margin-top:1.1rem;font-size:.88rem;font-weight:700;animation:2s infinite pulse}.ludo-board-wrapper{box-sizing:border-box;touch-action:pan-y pinch-zoom;flex:2;justify-content:center;align-items:center;width:100%;padding:1rem;display:flex}.ludo-board-3d-box{aspect-ratio:1;touch-action:pan-y pinch-zoom;background:linear-gradient(145deg,#0f172afc,#0f172aeb);border-radius:16px;width:100%;max-width:600px;padding:10px;position:relative;transform:perspective(1200px)rotateX(4deg)rotateY(-2deg);box-shadow:0 32px 72px #000000bd,0 10px 28px #60a5fa14,inset 0 2px #ffffff24,inset 0 -12px 18px #020617b3,0 0 0 10px #1e293b,0 0 0 11px #0f172a}.ludo-board{touch-action:pan-y pinch-zoom;background:linear-gradient(145deg,#0a1020,#101827);border:1px solid #ffffff12;border-radius:10px;grid-template-rows:repeat(15,1fr);grid-template-columns:repeat(15,1fr);width:100%;height:100%;display:grid;position:relative;box-shadow:inset 0 0 0 1px #ffffff0a,inset 0 18px 25px #ffffff0a,inset 0 -18px 20px #0206178c,0 0 20px #94a3b80f}.ludo-cell{box-sizing:border-box;touch-action:pan-y pinch-zoom;border-bottom:1px solid #ffffff14;border-right:1px solid #ffffff14}.path{background:#ffffff08}.gradient-glow{position:relative}.home-path-red{background:linear-gradient(135deg,#ef444433,#ef444466);box-shadow:inset 0 0 10px #ef44444d}.home-path-green{background:linear-gradient(135deg,#10b98133,#10b98166);box-shadow:inset 0 0 10px #10b9814d}.home-path-yellow{background:linear-gradient(135deg,#f59e0b33,#f59e0b66);box-shadow:inset 0 0 10px #f59e0b4d}.home-path-blue{background:linear-gradient(135deg,#3b82f633,#3b82f666);box-shadow:inset 0 0 10px #3b82f64d}.safe-red{z-index:1;background:#ef4444cc;border-radius:4px;box-shadow:0 0 15px #ef444480}.safe-green{z-index:1;background:#10b981cc;border-radius:4px;box-shadow:0 0 15px #10b98180}.safe-yellow{z-index:1;background:#f59e0bcc;border-radius:4px;box-shadow:0 0 15px #f59e0b80}.safe-blue{z-index:1;background:#3b82f6cc;border-radius:4px;box-shadow:0 0 15px #3b82f680}.star-cell{background:#ffffff14;position:relative}.glowing-star:after{content:"★";color:#fbbf24;text-shadow:0 0 10px #fbbf24cc;font-size:1.5rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.home-center-graphic{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);z-index:2;background:linear-gradient(135deg,#0f172ae6,#0f172a99);border:2px solid #ffffff1a;width:20%;height:20%;position:absolute;top:40%;left:40%;overflow:hidden;box-shadow:inset 0 0 20px #000c,0 0 18px #94a3b829}.home-center-graphic:before,.home-center-graphic:after{content:"";border:2px solid #ffffff2e;position:absolute;inset:0}.home-center-graphic:before{clip-path:polygon(50% 50%,0 0,100% 0);background:linear-gradient(135deg,#ef4444e6,#ef444426)}.home-center-graphic:after{clip-path:polygon(50% 50%,100% 0,100% 100%);background:linear-gradient(135deg,#10b981e6,#10b9811f)}.home-center-graphic{background-image:linear-gradient(45deg, transparent 0 48.5%, #ffffff2e 48.5% 51.5%, transparent 51.5%), linear-gradient(135deg, transparent 0 48.5%, #ffffff2e 48.5% 51.5%, transparent 51.5%), linear-gradient(225deg, transparent 0 48.5%, #ffffff2e 48.5% 51.5%, transparent 51.5%), linear-gradient(315deg, transparent 0 48.5%, #ffffff2e 48.5% 51.5%, transparent 51.5%), conic-gradient(from 225deg, var(--color-red) 0deg 90deg, var(--color-green) 90deg 180deg, var(--color-yellow) 180deg 270deg, var(--color-blue) 270deg 360deg)}.yard-overlay{z-index:3;pointer-events:none;touch-action:pan-y pinch-zoom;width:40%;height:40%;padding:4%;position:absolute}.yard-inner-jewel{border:1px solid #fff3;border-radius:1rem;justify-content:center;align-items:center;width:100%;height:100%;display:flex;box-shadow:inset 0 2px 20px #00000080,0 5px 15px #0000004d}.block-red .yard-inner-jewel{background:linear-gradient(135deg,#ef44441a,#ef444466)}.block-green .yard-inner-jewel{background:linear-gradient(135deg,#10b9811a,#10b98166)}.block-yellow .yard-inner-jewel{background:linear-gradient(135deg,#f59e0b1a,#f59e0b66)}.block-blue .yard-inner-jewel{background:linear-gradient(135deg,#3b82f61a,#3b82f666)}.dimple-container{grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;gap:15%;width:70%;height:70%;display:grid}.dimple{background:#0006;border-radius:50%;box-shadow:inset 0 5px 10px #0009,0 1px 1px #ffffff1a}.ludo-token{z-index:10;cursor:default;will-change:top, left;touch-action:pan-y pinch-zoom;border-radius:50%;width:5%;height:5%;transition:top .4s ease-in-out,left .4s ease-in-out;position:absolute;transform:translate(-50%,-50%)}.ludo-token.playable-pulse{cursor:pointer;z-index:20;touch-action:manipulation}.token-jewel{border-radius:50%;width:100%;height:100%;transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s;position:relative;box-shadow:0 12px 18px #000000a6,inset -3px -5px 8px #00000073,inset 0 3px 6px #ffffffbf,0 0 10px #ffffff1a}.token-red .token-jewel{background:radial-gradient(circle at 35% 35%,#fca5a5 0%,#ef4444 45%,#991b1b 100%)}.token-green .token-jewel{background:radial-gradient(circle at 35% 35%,#6ee7b7 0%,#10b981 45%,#065f46 100%)}.token-yellow .token-jewel{background:radial-gradient(circle at 35% 35%,#fde68a 0%,#f59e0b 45%,#92400e 100%)}.token-blue .token-jewel{background:radial-gradient(circle at 35% 35%,#93c5fd 0%,#3b82f6 45%,#1e3a8a 100%)}.token-glint{filter:blur(.5px);opacity:.7;background:#fff;border-radius:50%;width:28%;height:28%;position:absolute;top:15%;left:15%}.playable-pulse .token-jewel{animation:1.2s ease-in-out infinite alternate tokenPlayableBounce}.playable-pulse:hover .token-jewel{transform:scale(1.22)translateY(-6px);box-shadow:0 22px 28px #000000b3,inset -2px -4px 8px #00000080,inset 0 4px 6px #ffffffe6,0 0 24px}.playable-pulse.token-red{color:var(--color-red)}.playable-pulse.token-green{color:var(--color-green)}.playable-pulse.token-yellow{color:var(--color-yellow)}.playable-pulse.token-blue{color:var(--color-blue)}@keyframes tokenPlayableBounce{0%{transform:translateY(0)scale(1);box-shadow:0 6px 12px #00000080,0 0 10px}to{transform:translateY(-8px)scale(1.18);box-shadow:0 18px 24px #0006,0 0 24px}}.ludo-token:before{content:"";pointer-events:none;border-radius:50%;width:38px;min-width:38px;height:38px;min-height:38px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ludo-token.playable-pulse:before{pointer-events:auto}.ludo-modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:9999;background:#000c;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.ludo-modal{background:var(--bg-secondary);text-align:center;border:2px solid #ffffff26;border-radius:1.5rem;width:100%;max-width:400px;padding:2.5rem 2rem;animation:.3s cubic-bezier(.175,.885,.32,1.275) popIn;box-shadow:0 25px 50px -12px #000000b3}.victory-crown{margin-bottom:.5rem;font-size:3.5rem;animation:1s infinite alternate bounce}.ludo-modal h2{background:var(--grad-primary);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin-bottom:.75rem;font-size:2.2rem}.winner-declaration{color:var(--text-secondary);margin-bottom:2rem;font-size:1.15rem}.ludo-modal-buttons{justify-content:center;gap:1rem;display:flex}@media (width<=900px){.game-wrapper.ludo .game-header.ludo-header{flex-direction:column;align-items:stretch;gap:.85rem;width:100%;margin-bottom:1.25rem}.ludo-header-top{justify-content:space-between;align-items:center;gap:.5rem;width:100%;display:flex}.game-wrapper.ludo .game-title{text-align:center;flex:1;font-size:1.6rem}.mobile-sound-btn{border-radius:50%;justify-content:center;align-items:center;width:38px;min-width:38px;height:38px;padding:0;font-size:1.15rem;display:inline-flex}.desktop-sound-btn{display:none!important}.ludo-mode-selector{box-sizing:border-box;justify-content:space-between;gap:.25rem;width:100%;max-width:100%;padding:.25rem;display:flex}.ludo-mode-btn{flex:1;gap:.35rem;min-width:0;padding:.55rem .5rem;font-size:.82rem}}@media (width<=768px){.ludo-board-wrapper{box-sizing:border-box;touch-action:pan-y pinch-zoom;width:100%;padding:.25rem 0}.ludo-board-3d-box{box-sizing:border-box;touch-action:pan-y pinch-zoom;border:2px solid #1e293b;max-width:100%;padding:6px;box-shadow:0 10px 25px #00000080,inset 0 1px #ffffff1a;transform:none!important}.ludo-content{touch-action:pan-y pinch-zoom;gap:1.25rem}.ludo-sidebar{box-sizing:border-box;touch-action:pan-y pinch-zoom;width:100%;max-width:100%;padding:1.25rem .75rem}}@media (width<=480px){.mode-text-full{display:none!important}.mode-text-compact{display:inline!important}.ludo-mode-btn{gap:.25rem;padding:.5rem .35rem;font-size:.78rem}.game-wrapper.ludo .game-title{font-size:1.35rem}.game-wrapper.ludo .back-btn{padding:.4rem .75rem;font-size:.85rem}}@media (width<=340px){.mode-text-compact{display:none!important}.mode-text-tiny{display:inline!important}.ludo-mode-btn{gap:.15rem;padding:.45rem .2rem;font-size:.75rem}}.rps-container{touch-action:pan-y pinch-zoom;width:100%;max-width:800px;margin:0 auto;padding:2rem 1rem}.rps-header{justify-content:space-between;align-items:center;gap:.75rem;width:100%;margin-bottom:2rem;display:flex}.rps-header h1{text-align:center;background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0;font-size:clamp(1.4rem,5vw,2.5rem)}.rps-content{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;gap:1.5rem;display:flex}.rps-scores{justify-content:center;align-items:center;gap:1.5rem;width:100%;margin-bottom:1rem;display:flex}.score-box{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;min-width:130px;transition:all var(--transition-normal);background:linear-gradient(135deg,#1e293bd9,#0f172ae6);border:1px solid #60a5fa40;border-radius:1.25rem;padding:1.25rem 1.75rem;box-shadow:0 6px 20px #00000040}.score-box:hover{border-color:#60a5fa8c;transform:translateY(-2px)}.score-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem;font-size:.85rem;font-weight:700}.score-value{color:#60a5fa;text-shadow:0 0 15px #60a5fa66;font-size:2.3rem;font-weight:800}.ties-box{background:#ffffff0f;border:1px solid #ffffff1f;border-radius:1rem;flex-direction:column;align-items:center;padding:.6rem 1.2rem;display:flex;box-shadow:0 4px 12px #0003}.ties-value{color:var(--text-secondary);font-size:1.35rem;font-weight:800}.phase-info{text-align:center;color:var(--text-secondary);background:linear-gradient(135deg,#1e293bcc,#0f172ad9);border:1px solid #60a5fa33;border-radius:1rem;padding:.75rem 1.75rem;box-shadow:0 4px 15px #0003}.turn-indicator{color:#60a5fa;margin:0;font-size:1.15rem;font-weight:700}.rps-game{justify-content:center;align-items:center;width:100%;min-height:280px;display:flex}.countdown-box{background:linear-gradient(145deg,#1e293b,#0f172a);border:2px solid #60a5fa66;border-radius:1.5rem;flex-direction:column;align-items:center;gap:1.5rem;padding:2.5rem;animation:.3s ease-out popIn;display:flex;box-shadow:0 0 35px #6366f159}.countdown-hands{gap:3rem;font-size:4rem;display:flex}.hand-left{animation:.35s ease-in-out infinite alternate shakeLeft}.hand-right{animation:.35s ease-in-out infinite alternate shakeRight;transform:scaleX(-1)}@keyframes shakeLeft{0%{transform:translateY(0)rotate(0)}to{transform:translateY(-16px)rotate(-15deg)}}@keyframes shakeRight{0%{transform:scaleX(-1)translateY(0)rotate(0)}to{transform:scaleX(-1)translateY(-16px)rotate(-15deg)}}.countdown-text{background:linear-gradient(135deg,#60a5fa,#f43f5e);-webkit-text-fill-color:transparent;letter-spacing:.05em;-webkit-background-clip:text;font-size:2.2rem;font-weight:800}.choices-wrapper{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;width:100%;display:flex}.choices-grid{touch-action:pan-y pinch-zoom;grid-template-columns:repeat(3,1fr);gap:1.5rem;width:100%;max-width:520px;padding:1rem;display:grid}.choice-key-hint{color:var(--text-secondary);opacity:.75;font-size:.75rem}.rps-keyboard-hint{color:var(--text-secondary);text-align:center;margin-top:.5rem;font-size:.82rem}.choice-button{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer;color:var(--text-primary);text-transform:capitalize;-webkit-user-select:none;user-select:none;touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent;background:linear-gradient(135deg,#1e293be6,#0f172af2);border:2px solid #60a5fa40;border-radius:1.25rem;flex-direction:column;align-items:center;gap:.75rem;padding:2rem 1rem;font-size:1.1rem;font-weight:700;transition:transform .2s cubic-bezier(.175,.885,.32,1.275),box-shadow .2s,border-color .2s;display:flex;box-shadow:0 6px 20px #00000040,inset 0 1px 1px #ffffff1f}.choice-button *{pointer-events:none;touch-action:pan-y pinch-zoom}.choice-button:hover{background:linear-gradient(135deg,#334155f2,#1e293bf2);border-color:#60a5fa;transform:translateY(-8px)scale(1.04);box-shadow:0 16px 36px -5px #60a5fa73}.choice-button:active{transform:translateY(-1px)}.choice-emoji{filter:drop-shadow(0 4px 8px #0000004d);font-size:3.8rem;transition:transform .2s;display:block}.choice-button:hover .choice-emoji{transform:scale(1.15)}.choice-label{letter-spacing:.04em}.result-display{flex-direction:column;align-items:center;gap:2rem;width:100%;display:flex}.choice-reveal{flex-wrap:wrap;justify-content:center;align-items:center;gap:1.5rem;width:100%;display:flex}.choice-box{background:var(--bg-secondary);border:2px solid #60a5fa4d;border-radius:1rem;flex-direction:column;align-items:center;gap:.75rem;min-width:130px;padding:1.75rem 2rem;animation:.4s ease-out bounce-in;display:flex}.choice-owner{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-size:.8rem;font-weight:700}.choice-box p{text-transform:capitalize;color:var(--text-primary);font-size:1rem;font-weight:700}.result-text{text-align:center;border-radius:.75rem;min-width:180px;padding:1rem 1.5rem;font-size:1.6rem;font-weight:800;animation:.5s ease-out pulse-in}.result-text.player{color:#10b981;background:#10b98126;border:1px solid #10b98166}.result-text.bot{color:#ef4444;background:#ef444426;border:1px solid #ef444466}.result-text.draw{color:#f59e0b;background:#f59e0b26;border:1px solid #f59e0b66}.btn-next-round{padding:.85rem 2rem;font-size:1.05rem}@keyframes bounce-in{0%{opacity:0;transform:scale(.6)}70%{transform:scale(1.08)}to{opacity:1;transform:scale(1)}}@keyframes pulse-in{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media (width<=640px){.rps-header h1{font-size:1.8rem}.rps-scores{gap:.75rem}.score-box{min-width:90px;padding:.75rem 1rem}.score-value{font-size:1.6rem}.choices-grid{gap:.75rem}.choice-button{padding:1.25rem .5rem}.choice-emoji{font-size:2.4rem}.countdown-hands{gap:1.5rem;font-size:2.8rem}.countdown-text{font-size:1.6rem}}@media (width<=480px){.rps-container{padding:.5rem .25rem}.rps-header{gap:.35rem;margin-bottom:1.25rem}.rps-header h1{font-size:1.35rem}.spacer{display:none}.btn-back,.btn-menu{padding:.4rem .65rem;font-size:.82rem}}.game-2048{touch-action:pan-y pinch-zoom;width:100%;max-width:500px;margin:0 auto;padding:1.5rem 1rem}.game-header-2048{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.game-header-2048 h1{background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0;font-size:2.5rem}.game-info-2048{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.score-container-2048{flex:1;gap:.75rem;display:flex}.score-box-2048{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;transition:all var(--transition-normal);background:linear-gradient(135deg,#1e293bd9,#0f172ae6);border:1px solid #60a5fa40;border-radius:1rem;flex:1;padding:.85rem 1rem;box-shadow:0 4px 20px #00000040}.score-box-2048:hover{border-color:#60a5fa8c;transform:translateY(-2px)}.score-label-2048{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.25rem;font-size:.75rem;font-weight:700}.score-value-2048{background:linear-gradient(135deg,#60a5fa,#93c5fd);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0;font-size:1.7rem;font-weight:800}.btn-new-game-2048{background:var(--grad-secondary);color:#fff;cursor:pointer;transition:all var(--transition-normal);white-space:nowrap;border:none;border-radius:.85rem;padding:.85rem 1.4rem;font-size:.95rem;font-weight:700;box-shadow:0 4px 15px #a855f74d}.btn-new-game-2048:hover{transform:translateY(-2px);box-shadow:0 10px 25px -5px #a855f780}.board-2048{aspect-ratio:1;touch-action:manipulation;background:linear-gradient(145deg,#1e293b,#0f172a);border:1px solid #ffffff1f;border-radius:1.25rem;width:100%;max-width:430px;margin:0 auto 1.5rem;padding:.95rem;box-shadow:0 12px 40px #0006,inset 0 2px 4px #0000004d;grid-template-rows:repeat(4,1fr)!important;grid-template-columns:repeat(4,1fr)!important;gap:.75rem!important;display:grid!important}.tile-2048{-webkit-user-select:none;user-select:none;aspect-ratio:1;background:#ffffff0d;border-radius:.75rem;justify-content:center;align-items:center;font-size:2rem;font-weight:800;transition:transform .12s cubic-bezier(.175,.885,.32,1.275),background .12s;display:flex;position:relative;overflow:hidden}.tile-2048.has-value{animation:.18s cubic-bezier(.175,.885,.32,1.275) pop;box-shadow:0 6px 14px #00000059,inset 0 1px 1px #ffffff59}.tile-2048.has-value:after{content:"";pointer-events:none;background:linear-gradient(#ffffff38 0%,#fff0 100%);border-radius:.75rem .75rem 0 0;height:38%;position:absolute;top:0;left:0;right:0}.tile-2048.tile-gold{box-shadow:0 0 25px #eab3088c,inset 0 1px 2px #fff9}.tile-2048.tile-medium{font-size:1.6rem}.tile-2048.tile-small{font-size:1.25rem}.tile-2048.tile-xsmall{font-size:1rem}.dpad-controls-2048{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;gap:.35rem;width:100%;margin-bottom:1.25rem;display:flex}.dpad-row-2048{touch-action:pan-y pinch-zoom;justify-content:center;gap:.35rem;display:flex}.btn-dpad-2048{background:var(--bg-secondary);width:52px;height:44px;color:var(--text-primary);cursor:pointer;transition:all var(--transition-fast);box-shadow:var(--shadow-sm);-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:1px solid #60a5fa4d;border-radius:.6rem;justify-content:center;align-items:center;font-size:1.2rem;display:flex}.btn-dpad-2048:hover{background:#60a5fa33;border-color:#60a5fa;transform:translateY(-2px);box-shadow:0 4px 12px #60a5fa4d}.btn-dpad-2048:active{transform:translateY(1px)}.controls-2048{touch-action:pan-y pinch-zoom;flex-direction:column;align-items:center;gap:.75rem;display:flex}.btn-undo-2048{background:var(--grad-primary);color:#fff;cursor:pointer;transition:all var(--transition-normal);touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:none;border-radius:.75rem;padding:.65rem 1.5rem;font-size:.95rem;font-weight:600}.btn-undo-2048:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px -10px #6366f14d}.btn-undo-2048:disabled{opacity:.45;cursor:not-allowed}.hint-2048{color:var(--text-secondary);text-align:center;margin:0;font-size:.85rem}.modal-overlay-2048{z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#000000bf;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-2048{background:var(--bg-secondary);text-align:center;border:1px solid #60a5fa4d;border-radius:1rem;width:90%;max-width:320px;padding:2rem;animation:.3s ease-out slide-up}.modal-2048.success{border-color:#10b98166}.modal-2048 h2{margin-bottom:.75rem;font-size:1.8rem}.modal-2048 p{color:var(--text-secondary);margin-bottom:1.25rem;font-size:1rem}.modal-2048 strong{color:#60a5fa;font-size:1.2rem}.modal-buttons-2048{flex-direction:column;gap:.75rem;display:flex}.btn-primary-2048,.btn-secondary-2048{cursor:pointer;transition:all var(--transition-normal);border:none;border-radius:.75rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600}.btn-primary-2048{background:var(--grad-primary);color:#fff}.btn-primary-2048:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px #6366f14d}.btn-secondary-2048{background:var(--grad-secondary);color:#fff}.btn-secondary-2048:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px #a855f74d}@keyframes pop{0%{transform:scale(.8)}50%{transform:scale(1.08)}to{transform:scale(1)}}@media (width<=480px){.game-2048{padding:.75rem .25rem}.board-2048{max-width:min(340px,86vw);padding:.5rem;gap:.45rem!important}.tile-2048{font-size:1.4rem}}.chess-container{touch-action:pan-y pinch-zoom;width:100%;max-width:900px;margin:0 auto;padding:2rem 1rem}.chess-header{justify-content:space-between;align-items:center;gap:.75rem;width:100%;margin-bottom:1.5rem;display:flex}.chess-header h1{text-align:center;background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0;font-size:clamp(1.4rem,5vw,2.5rem)}.btn-back,.btn-menu{background:var(--grad-primary);color:#fff;cursor:pointer;white-space:nowrap;transition:all var(--transition-normal);border:none;border-radius:.75rem;padding:.55rem 1.1rem;font-size:clamp(.82rem,2.5vw,.95rem);font-weight:600}.btn-back:hover,.btn-menu:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px #6366f14d}.header-actions{align-items:center;gap:.5rem;display:flex}.spacer{width:clamp(20px,8vw,80px)}.mode-selector{text-align:center}.mode-selector h2{color:var(--text-primary);margin-bottom:2rem;font-size:2rem}.resume-container{width:100%;max-width:440px;margin:0 auto 2rem}.btn-resume{width:100%;color:var(--text-primary);cursor:pointer;text-align:left;transition:all var(--transition-normal);background:linear-gradient(135deg,#10b98126,#6366f126);border:2px solid #10b98173;border-radius:1.25rem;align-items:center;gap:1.25rem;padding:1.25rem 1.5rem;display:flex;box-shadow:0 10px 25px -5px #10b98140}.btn-resume:hover{background:linear-gradient(135deg,#10b98140,#6366f140);border-color:#34d399;transform:translateY(-3px);box-shadow:0 15px 35px -5px #10b98166}.resume-icon{font-size:2.2rem}.resume-text{flex-direction:column;gap:.25rem;display:flex}.resume-text strong{color:#34d399;font-size:1.15rem}.resume-text span{color:var(--text-secondary);font-size:.85rem}.mode-buttons{flex-wrap:wrap;justify-content:center;gap:2rem;display:flex}.btn-mode{background:var(--bg-secondary);cursor:pointer;width:200px;transition:all var(--transition-normal);color:var(--text-primary);border:2px solid #60a5fa4d;border-radius:1rem;flex-direction:column;align-items:center;gap:1rem;padding:2rem;font-size:1.1rem;font-weight:600;display:flex}.btn-mode:hover{background:#60a5fa1a;border-color:#60a5fa;transform:translateY(-4px);box-shadow:0 10px 30px -5px #60a5fa4d}.mode-icon{font-size:3rem}.chess-content{touch-action:pan-y pinch-zoom;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:2rem;display:flex}.info-panel{flex-direction:column;gap:1.5rem;min-width:220px;display:flex}.player-info{background:var(--bg-secondary);border:1px solid #60a5fa4d;border-radius:1rem;padding:1.5rem}.current-player{align-items:center;gap:1rem;display:flex}.player-indicator{font-size:2rem;animation:1s infinite blink}.player-indicator.white{color:#f8fafc;text-shadow:0 0 10px #fffc}.player-indicator.black{color:#1e293b;text-shadow:0 0 10px #60a5fa99}.player-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0;font-size:.85rem}.player-name{color:#60a5fa;margin:.25rem 0 0;font-size:1.5rem;font-weight:800}.status-badge{text-align:center;border-radius:.5rem;margin-top:1rem;padding:.75rem;font-size:.95rem;font-weight:700;animation:1s infinite pulse}.status-badge.check{color:#f59e0b;background:#f59e0b33;border:1px solid #f59e0b}.status-badge.checkmate{color:#10b981;background:#10b98133;border:1px solid #10b981}.status-badge.stalemate{color:#60a5fa;background:#60a5fa33;border:1px solid #60a5fa}.material-badge{color:var(--text-secondary);background:#60a5fa1f;border:1px solid #60a5fa40;border-radius:.5rem;align-items:center;gap:.35rem;margin-top:.75rem;padding:.4rem .75rem;font-size:.85rem;display:inline-flex}.material-badge strong{color:#60a5fa;font-weight:700}.captured-pieces{flex-direction:column;gap:1rem;display:flex}.captured-column{background:var(--bg-secondary);border:1px solid #60a5fa4d;border-radius:.75rem;padding:1rem}.captured-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .5rem;font-size:.8rem}.captured-list{flex-wrap:wrap;align-items:center;gap:.25rem;min-height:2rem;display:flex}.captured-piece{justify-content:center;align-items:center;font-size:1.5rem;display:inline-flex}.board-container{touch-action:pan-y pinch-zoom;justify-content:center;align-items:center;display:flex}.board-wrapper-with-coords{touch-action:pan-y pinch-zoom;background:linear-gradient(145deg,#1e293b,#0f172a);border:1px solid #ffffff14;border-radius:1.25rem;flex-direction:column;padding:.75rem;display:flex;box-shadow:0 25px 50px -12px #000000bf,0 0 0 1px #ffffff14,inset 0 1px #ffffff1f}.board-middle-row{touch-action:pan-y pinch-zoom;align-items:center;display:flex}.board-files{text-align:center;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;touch-action:pan-y pinch-zoom;grid-template-columns:repeat(8,1fr);padding:.35rem 1.25rem;font-size:.75rem;font-weight:700;display:grid}.board-ranks{color:#94a3b8;touch-action:pan-y pinch-zoom;flex-direction:column;justify-content:space-around;height:100%;padding:0 .5rem;font-size:.75rem;font-weight:700;display:flex}.chess-board{touch-action:pan-y pinch-zoom;background:#1e1b18;border-radius:.5rem;grid-template-rows:repeat(8,56px);grid-template-columns:repeat(8,56px);gap:0;display:grid;overflow:hidden;box-shadow:0 8px 24px #00000080,inset 0 0 0 2px #0009}.chess-square{cursor:pointer;font:inherit;-webkit-user-select:none;user-select:none;touch-action:pan-y pinch-zoom;-webkit-tap-highlight-color:transparent;border:2px solid #0000;justify-content:center;align-items:center;padding:0;transition:all .12s ease-out;display:flex;position:relative}.chess-square.light{background:linear-gradient(135deg,#f5ebd7 0%,#e8d5b5 100%)}.chess-square.dark{background:linear-gradient(135deg,#b88b68 0%,#9c6e4b 100%)}@media (hover:hover){.chess-square:hover{filter:brightness(1.08)}}.chess-square.selected{z-index:2;background:linear-gradient(135deg,#38bdf8 0%,#0284c7 100%)!important;box-shadow:inset 0 0 14px #fff9,0 0 20px #38bdf8b3!important}.chess-square.valid-move{border-color:#10b981}.chess-square.last-move{box-shadow:inset 0 0 0 3px #eab308bf}.chess-square.light.last-move{background:linear-gradient(135deg,#fef08a,#facc15)!important}.chess-square.dark.last-move{background:linear-gradient(135deg,#eab308,#ca8a04)!important}.chess-square.in-check{z-index:3;animation:1.2s ease-in-out infinite alternate checkAura;background:radial-gradient(circle,#ef4444 20%,#b91c1c 90%)!important;box-shadow:inset 0 0 16px #ffffff80,0 0 25px #ef4444d9!important}@keyframes checkAura{0%{filter:brightness()drop-shadow(0 0 4px #ef4444)}to{filter:brightness(1.2)drop-shadow(0 0 14px #dc2626)}}.chess-piece{-webkit-user-select:none;user-select:none;pointer-events:none;touch-action:pan-y pinch-zoom;justify-content:center;align-items:center;font-size:2.6rem;line-height:1;transition:transform .15s cubic-bezier(.175,.885,.32,1.275);display:flex}.chess-piece:hover{transform:scale(1.1)}.piece-white{color:#fff;filter:drop-shadow(0 3px 4px #0009)drop-shadow(0 0 1.5px #000)}.piece-black{color:#1a1a1a;filter:drop-shadow(0 3px 4px #ffffff59)drop-shadow(0 0 1.5px #333)}.chess-move-indicator{pointer-events:none;background:radial-gradient(circle,#34d399 20%,#059669 100%);border-radius:50%;width:26%;height:26%;animation:1.4s ease-in-out infinite pulseDot;position:absolute;box-shadow:0 0 10px #10b981d9}.chess-square:has(.chess-piece) .chess-move-indicator{background:0 0;border:3.5px solid #ef4444d9;border-radius:50%;width:86%;height:86%;animation:1.2s ease-in-out infinite targetPulse;box-shadow:0 0 12px #ef444499,inset 0 0 8px #ef444466}@keyframes pulseDot{0%,to{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.18)}}@keyframes targetPulse{0%,to{opacity:.8;transform:scale(.96)}50%{opacity:1;transform:scale(1.03)}}.controls{flex-wrap:wrap;justify-content:center;gap:1rem;width:100%;margin-top:1.5rem;display:flex}.btn-undo,.btn-new-game{background:var(--grad-primary);color:#fff;cursor:pointer;transition:all var(--transition-normal);border:none;border-radius:.75rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600}.btn-undo:hover:not(:disabled),.btn-new-game:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px #6366f14d}.btn-undo:disabled{opacity:.4;cursor:not-allowed}.btn-new-game{background:var(--grad-secondary)}.btn-new-game:hover{box-shadow:0 10px 20px -10px #a855f74d}.thinking{text-align:center;color:#60a5fa;width:100%;margin-top:1rem;font-size:1.05rem;font-weight:600;animation:1.2s infinite pulse}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#000000bf;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--bg-secondary);text-align:center;box-shadow:var(--shadow-lg), 0 0 40px #6366f133;border:1px solid #60a5fa4d;border-radius:1.25rem;width:90%;max-width:380px;padding:2.5rem 2rem;animation:.3s ease-out slide-up}.modal h2{margin-bottom:.75rem;font-size:2rem}.modal p{color:var(--text-secondary);margin-bottom:1.5rem;font-size:1.1rem}.modal strong{color:#60a5fa;font-size:1.2rem}.promotion-choices{grid-template-columns:repeat(4,1fr);gap:.75rem;margin-bottom:1.5rem;display:grid}.promotion-btn{background:var(--bg-primary);cursor:pointer;transition:all var(--transition-fast);border:2px solid #60a5fa4d;border-radius:.75rem;justify-content:center;align-items:center;padding:1rem .5rem;display:flex}.promotion-btn:hover{background:#60a5fa33;border-color:#60a5fa;transform:scale(1.1)}.modal-buttons{flex-direction:column;gap:1rem;display:flex}.btn-primary,.btn-secondary{cursor:pointer;transition:all var(--transition-normal);border:none;border-radius:.75rem;padding:.75rem 1.5rem;font-size:1rem;font-weight:600}.btn-primary{background:var(--grad-primary);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px #6366f14d}.btn-secondary{background:var(--grad-secondary);color:#fff}.btn-secondary:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px #a855f74d}@keyframes blink{0%,49%,to{opacity:1}50%,99%{opacity:.5}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.03)}}@keyframes slide-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (width<=640px){.chess-container{padding:1rem}.chess-header h1{font-size:1.8rem}.chess-content{flex-direction:column;gap:1rem}.info-panel{width:100%;min-width:auto}.chess-board{grid-template-rows:repeat(8,min(38px,12.5vw - 5.5px));grid-template-columns:repeat(8,min(38px,12.5vw - 5.5px))}.chess-piece{font-size:clamp(1.4rem,4.5vw,1.8rem)}.board-files{padding:.15rem .8rem;font-size:.65rem}.board-ranks{padding:0 .25rem;font-size:.65rem}.controls{width:100%}.btn-undo,.btn-new-game{flex:1;min-width:80px}}@media (width<=480px){.chess-container{padding:.5rem .25rem}.chess-header{gap:.35rem;margin-bottom:.85rem}.chess-header h1{font-size:1.35rem}.spacer{display:none}.btn-back,.btn-menu{padding:.4rem .65rem;font-size:.82rem}}.auth-container{width:100%;min-height:calc(100vh - 120px);padding:1.5rem 1rem calc(4.5rem + env(safe-area-inset-bottom,20px)) 1rem;box-sizing:border-box;touch-action:pan-y pinch-zoom;justify-content:center;align-items:center;display:flex}.auth-glass-panel{background:var(--bg-glass);-webkit-backdrop-filter:blur(12px);border:var(--border-glass);box-shadow:var(--shadow-lg), 0 0 40px #6366f126;text-align:center;border-radius:1.5rem;width:100%;max-width:400px;padding:3rem 2.5rem}.auth-title{background:var(--grad-primary);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:.5rem;font-size:2.5rem;font-weight:800}.auth-subtitle{color:var(--text-secondary);margin-bottom:2rem;font-size:1.25rem;font-weight:500}.auth-error{color:var(--color-red);background:#ef44441a;border:1px solid #ef44444d;border-radius:.5rem;margin-bottom:1.5rem;padding:.75rem;font-size:.875rem;font-weight:600}.auth-form{flex-direction:column;gap:1.25rem;display:flex}.input-group{text-align:left;flex-direction:column;gap:.5rem;display:flex}.input-group label{color:var(--text-secondary);font-size:.875rem;font-weight:500}.input-group input{color:var(--text-primary);transition:all var(--transition-fast);background:#0f172a80;border:1px solid #ffffff1a;border-radius:.5rem;padding:.875rem 1rem;font-family:Outfit,sans-serif;font-size:1rem}.input-group input:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px #6366f133}.input-group input::placeholder{color:#475569}.auth-submit{width:100%;margin-top:1rem;padding:1rem;font-size:1.1rem}.input-label-row{justify-content:space-between;align-items:center;display:flex}.btn-toggle-pw{color:#818cf8;cursor:pointer;transition:color var(--transition-fast);background:0 0;border:none;padding:0;font-size:.8rem;font-weight:600}.btn-toggle-pw:hover{color:#a5b4fc}.auth-toggle{color:var(--text-secondary);margin-top:1.75rem;font-size:.875rem}.btn-link{color:#6366f1;cursor:pointer;font-family:inherit;font-weight:600;font-size:inherit;background:0 0;border:none}.btn-link:hover{color:#818cf8;text-decoration:underline}@media (width<=480px){.auth-container{padding:1rem .5rem calc(4.5rem + env(safe-area-inset-bottom,20px)) .5rem;align-items:flex-start}.auth-glass-panel{padding:2rem 1.25rem}}
