@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;overscroll-behavior:none;touch-action:manipulation;width:100%;overflow:hidden auto}body{background-color:var(--bg-primary);color:var(--text-primary);-webkit-overflow-scrolling:touch;overscroll-behavior:none;touch-action:manipulation;width:100%;min-height:100dvh;margin:0;padding:0;overflow:hidden auto}#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:manipulation;box-sizing:border-box;flex-direction:column;width:100%;min-height:100dvh;display:flex;position:relative;overflow-x:hidden}.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:1.5rem 1rem calc(2rem + env(safe-area-inset-bottom,16px)) 1rem;box-sizing:border-box;touch-action:manipulation;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:.5rem .5rem calc(1rem + env(safe-area-inset-bottom,12px)) .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:.35rem .25rem calc(.75rem + env(safe-area-inset-bottom,10px)) .25rem}}.home-container{touch-action:manipulation;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:manipulation;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:manipulation;-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:manipulation;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:manipulation}.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}.hidden-game-container{justify-content:center;width:100%;margin-top:3.5rem;display:flex}.btn-hidden-game{-webkit-backdrop-filter:blur(8px);color:var(--text-secondary);cursor:pointer;transition:all var(--transition-normal);opacity:.65;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:#1e293b73;border:1px dashed #ffffff26;border-radius:2rem;align-items:center;gap:.6rem;padding:.55rem 1.35rem;font-size:.85rem;display:inline-flex}.btn-hidden-game:hover{opacity:1;color:var(--text-primary);background:#1e293bd9;border-color:#a855f780;transform:translateY(-2px);box-shadow:0 6px 20px #a855f740}.btn-hidden-game:active{transform:translateY(0)}.secret-lock-icon{opacity:.8;font-size:.95rem}.secret-title{letter-spacing:.01em;font-weight:500}.secret-title b{color:#c084fc;font-weight:700}.secret-emojis{margin-left:.15rem;font-size:1rem}.secret-stat-pill{color:#10b981;background:#10b98126;border:1px solid #10b98159;border-radius:1rem;margin-left:.25rem;padding:.15rem .5rem;font-size:.72rem;font-weight:700}@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}.hidden-game-container{margin-top:2rem}.btn-hidden-game{gap:.4rem;padding:.45rem 1rem;font-size:.78rem}}.tictactoe-container{touch-action:manipulation;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:manipulation;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:manipulation;margin-bottom:1.75rem;position:relative}.ttt-board{touch-action:manipulation;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:manipulation;-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:manipulation;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:manipulation;flex-direction:column-reverse;gap:1rem;width:100%;display:flex}@media (width>=900px){.ludo-content{flex-direction:row;align-items:center;gap:2.5rem}}.ludo-sidebar{touch-action:manipulation;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-deck{z-index:2;box-sizing:border-box;background:linear-gradient(145deg,#1e293be6,#0f172af5);border:1.5px solid #ffffff1a;border-radius:1.25rem;flex-direction:column;align-items:center;gap:1rem;width:100%;padding:1.25rem 1rem;transition:border-color .3s,box-shadow .3s;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 25px -5px #00000080}.active-player-deck.turn-red{border-color:#ef444480;box-shadow:0 10px 25px #00000080,0 0 20px #ef444426}.active-player-deck.turn-green{border-color:#10b98180;box-shadow:0 10px 25px #00000080,0 0 20px #10b98126}.active-player-deck.turn-yellow{border-color:#f59e0b80;box-shadow:0 10px 25px #00000080,0 0 20px #f59e0b26}.active-player-deck.turn-blue{border-color:#3b82f680;box-shadow:0 10px 25px #00000080,0 0 20px #3b82f626}.active-turn-info{text-align:center;width:100%}.turn-header-row{justify-content:center;align-items:center;gap:.6rem;margin-bottom:.4rem;display:flex}.turn-badge{letter-spacing:.04em;color:#fff;text-shadow:0 1px 2px #0006;border-radius:2rem;align-items:center;padding:.2rem .65rem;font-size:.75rem;font-weight:800;display:inline-flex;box-shadow:0 2px 8px #00000040}.turn-indicator{text-shadow:0 2px 8px #0006;margin:0;font-size:1.35rem;font-weight:800}.ludo-message{color:var(--text-secondary);min-height:1.35rem;font-size:.88rem;font-weight:500;line-height:1.35}.dice-stage{flex-direction:column;align-items:center;gap:.6rem;width:100%;display:flex}.dice-podium{background:radial-gradient(circle,#1e293bbf 0%,#0f172af2 100%);border:1.5px solid #ffffff1f;border-radius:22px;flex-direction:column;justify-content:center;align-items:center;padding:12px;transition:all .3s cubic-bezier(.4,0,.2,1);display:inline-flex;position:relative;box-shadow:0 14px 30px #00000080,inset 0 1px 1px #fff3}.dice-podium.podium-red{border-color:#ef444480;box-shadow:0 10px 25px #ef444440,inset 0 0 14px #ef44441a}.dice-podium.podium-green{border-color:#10b98180;box-shadow:0 10px 25px #10b98140,inset 0 0 14px #10b9811a}.dice-podium.podium-yellow{border-color:#f59e0b80;box-shadow:0 10px 25px #f59e0b40,inset 0 0 14px #f59e0b1a}.dice-podium.podium-blue{border-color:#3b82f680;box-shadow:0 10px 25px #3b82f640,inset 0 0 14px #3b82f61a}.dice-shadow-ellipse{filter:blur(3px);pointer-events:none;background:radial-gradient(#000c 0%,#0000 75%);border-radius:50%;width:68px;height:18px;transition:transform .3s,opacity .3s;position:absolute;bottom:8px}.dice-shadow-ellipse.shadow-rolling{opacity:.35;transform:scale(.6)}.dice-scene{--dice-size:76px;--dice-half:38px;width:var(--dice-size);height:var(--dice-size);perspective:700px;cursor:pointer;color:inherit;font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;z-index:10;background:0 0;border:0;padding:0;position:relative}.dice-scene:disabled{cursor:default}.dice-scene.pulse-ready{animation:2s ease-in-out infinite diceFloatGlow}@keyframes diceFloatGlow{0%,to{filter:drop-shadow(0 6px 10px #00000059);transform:translateY(0)}50%{filter:drop-shadow(0 14px 16px #00000040)drop-shadow(0 0 10px #ffffff59);transform:translateY(-5px)}}.dice-scene.dice-rolling{animation:.95s cubic-bezier(.25,1,.5,1) diceBouncePhysics}@keyframes diceBouncePhysics{0%{transform:translateY(0)}35%{transform:translateY(-7px)scale(1.03)}75%{transform:translateY(1px)}to{transform:translateY(0)}}.dice-scene.rolled-six{animation:.6s ease-out celebrateSix}@keyframes celebrateSix{0%{transform:scale(1)}50%{filter:drop-shadow(0 0 20px #eab308d9);transform:scale(1.1)}to{transform:scale(1)}}.cube{width:100%;height:100%;transform-style:preserve-3d;transform-origin:50% 50% calc(-1 * var(--dice-half));transition:transform .95s cubic-bezier(.2,.85,.25,1.12),box-shadow .2s;position:relative}.cube:hover{transform:translateY(-2px)scale(1.02)}.cube:active{transform:translateY(1px)scale(.98)}.cube__face{width:var(--dice-size);height:var(--dice-size);-webkit-user-select:none;user-select:none;pointer-events:none;backface-visibility:hidden;background:linear-gradient(145deg,#fff 0%,#f8fafc 40%,#f1f5f9 70%,#e2e8f0 100%);border:1.5px solid #fffffff2;border-radius:16px;position:absolute;box-shadow:inset 0 3px 6px #fff,inset 0 -3px 6px #0f172a2e,inset 0 0 12px #ffffff80,0 4px 12px #0003}.cube__face:after{content:"";pointer-events:none;background:linear-gradient(#fff9 0%,#fff0 100%);border-radius:14px 14px 30px 30px;height:35%;position:absolute;top:2px;left:4px;right:4px}.cube__face--front{transform:rotateY(0deg) translateZ(var(--dice-half))}.cube__face--right{transform:rotateY(90deg) translateZ(var(--dice-half))}.cube__face--back{transform:rotateY(180deg) translateZ(var(--dice-half))}.cube__face--left{transform:rotateY(-90deg) translateZ(var(--dice-half))}.cube__face--up{transform:rotateX(90deg) translateZ(var(--dice-half))}.cube__face--down{transform:rotateX(-90deg) translateZ(var(--dice-half))}.dot{background:radial-gradient(circle at 35% 35%,#475569 0%,#1e293b 60%,#090d16 100%);border-radius:50%;width:15px;height:15px;position:absolute;box-shadow:inset 0 2.5px 4px #000000e6,0 1px 1.5px #ffffffe6}.cube__face--front .dot.center{background:radial-gradient(circle at 35% 35%,#f87171 0%,#ef4444 40%,#b91c1c 80%,#7f1d1d 100%);width:22px;height:22px;box-shadow:inset 0 2.5px 5px #000000bf,0 0 12px #ef4444b3,0 1px 2px #ffffffe6}.center{top:50%;left:50%;transform:translate(-50%,-50%)}.top-left{top:16%;left:16%}.top-right{top:16%;right:16%}.bottom-left{bottom:16%;left:16%}.bottom-right{bottom:16%;right:16%}.middle-left{top:50%;left:16%;transform:translateY(-50%)}.middle-right{top:50%;right:16%;transform:translateY(-50%)}.dice-action-area{flex-direction:column;align-items:center;gap:.4rem;width:100%;display:flex}.btn-roll-action{background:var(--grad-primary);color:#fff;letter-spacing:.04em;cursor:pointer;transition:all var(--transition-fast);touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:none;border-radius:1rem;align-items:center;gap:.5rem;padding:.55rem 1.35rem;font-size:.88rem;font-weight:800;animation:2s infinite rollPulseGlow;display:flex;box-shadow:0 6px 20px #6366f166}.btn-roll-action:hover{transform:translateY(-2px)scale(1.03);box-shadow:0 10px 25px #6366f199}.btn-roll-action:active{transform:translateY(1px)scale(.97)}@keyframes rollPulseGlow{0%,to{box-shadow:0 4px 15px #6366f166}50%{box-shadow:0 0 24px #a855f7bf}}.roll-result-pill{color:var(--text-primary);background:#0f172acc;border:1px solid #60a5fa4d;border-radius:1rem;align-items:center;gap:.5rem;padding:.35rem .85rem;font-size:.82rem;animation:.25s cubic-bezier(.175,.885,.32,1.275) popResult;display:flex}.roll-result-pill.result-six{border-color:#eab30899;box-shadow:0 0 18px #eab30859}.roll-result-badge{color:#60a5fa;background:#60a5fa26;border-radius:.4rem;padding:.1rem .45rem;font-size:1.1rem;font-weight:800}.result-six .roll-result-badge{color:#facc15;background:#eab30833}.roll-result-hint{color:var(--text-secondary);font-weight:600}.bot-turn-badge{color:var(--text-secondary);background:#0f172a99;border:1px solid #ffffff14;border-radius:1rem;align-items:center;gap:.45rem;padding:.35rem .75rem;font-size:.82rem;font-weight:600;display:flex}.bot-pulse-dot{background:#3b82f6;border-radius:50%;width:8px;height:8px;animation:1s infinite pulse;box-shadow:0 0 8px #3b82f6}@keyframes popResult{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.player-meta-badges{align-items:center;gap:.5rem;display:flex}.player-home-score{color:var(--text-secondary);white-space:nowrap;background:#ffffff0d;border-radius:.4rem;padding:.15rem .45rem;font-size:.72rem;font-weight:700}.player-list{flex-direction:column;gap:.45rem;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:.6rem;padding:.5rem .75rem;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{border-left-style:solid}.player-row.bot{opacity:.88;border-left-style:solid}.player-swatch{border-radius:50%;flex-shrink:0;width:12px;height:12px;box-shadow:0 0 12px #fff6}.player-name-input{min-width:0;color:var(--text-primary);letter-spacing:.03em;background:#0f172a66;border:1px solid #94a3b840;border-radius:8px;outline:none;flex:1;padding:.4rem .55rem;font-size:.8rem;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-type{letter-spacing:.05em;text-transform:uppercase;opacity:.85;font-size:.68rem;font-weight:700}.active-player-glow{border-radius:inherit;filter:blur(28px);z-index:0;opacity:.12;pointer-events:none;width:100%;height:100%;transition:all .5s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.active-player-glow.glow-red{background:var(--color-red)}.active-player-glow.glow-green{background:var(--color-green)}.active-player-glow.glow-yellow{background:var(--color-yellow)}.active-player-glow.glow-blue{background:var(--color-blue)}.ludo-board-wrapper{box-sizing:border-box;touch-action:manipulation;flex:2;justify-content:center;align-items:center;width:100%;padding:1rem;display:flex}.ludo-board-3d-box{aspect-ratio:1;touch-action:manipulation;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:manipulation;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:manipulation;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:manipulation;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:manipulation;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){.game-wrapper.ludo{min-height:auto;padding:.5rem .5rem 1.5rem}.game-wrapper.ludo .game-header.ludo-header{gap:.5rem;margin-bottom:.5rem}.ludo-content{touch-action:manipulation;gap:.6rem}.ludo-board-wrapper{box-sizing:border-box;touch-action:manipulation;width:100%;padding:0}.ludo-board-3d-box{box-sizing:border-box;touch-action:manipulation;border:2px solid #1e293b;width:100%;max-width:min(360px,92vw,44vh);margin:0 auto;padding:5px;box-shadow:0 10px 25px #00000080,inset 0 1px #ffffff1a;transform:none!important}.ludo-sidebar{box-sizing:border-box;touch-action:manipulation;gap:.5rem;width:100%;max-width:min(440px,100%);margin:0 auto;padding:.5rem .4rem}.active-player-deck{border-radius:1rem;flex-direction:row;justify-content:space-between;align-items:center;gap:.75rem;padding:.6rem .85rem}.active-turn-info{text-align:left;flex:1;min-width:0}.turn-header-row{justify-content:flex-start;gap:.45rem;margin-bottom:.2rem}.turn-badge{padding:.15rem .5rem;font-size:.7rem}.turn-indicator{font-size:1.1rem}.ludo-message{white-space:normal;text-overflow:ellipsis;min-height:auto;font-size:.78rem;line-height:1.25;overflow:hidden}.dice-stage{flex-direction:row;flex-shrink:0;justify-content:flex-end;align-items:center;gap:.6rem;width:auto}.dice-scene{--dice-size:56px;--dice-half:28px}.dice-podium{border-radius:16px;padding:7px}.dice-shadow-ellipse{width:50px;height:14px;bottom:4px}.cube__face{border-radius:12px}.dot{width:11px;height:11px}.cube__face--front .dot.center{width:16px;height:16px}.dice-action-area{flex-shrink:0;width:auto}.btn-roll-action{letter-spacing:.02em;white-space:nowrap;border-radius:.75rem;gap:.35rem;padding:.45rem .85rem;font-size:.78rem}.roll-result-pill{gap:.35rem;padding:.25rem .6rem;font-size:.75rem}.roll-result-badge{padding:.05rem .35rem;font-size:.95rem}.bot-turn-badge{gap:.35rem;padding:.25rem .55rem;font-size:.75rem}.player-list{box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;width:100%;margin-top:0;display:grid}.player-row{box-sizing:border-box;border-radius:8px;gap:.35rem;min-width:0;padding:.35rem .5rem;overflow:hidden}.player-row.active{transform:none}.player-swatch{flex-shrink:0;width:9px;height:9px}.player-name-input{box-sizing:border-box;border-radius:6px;width:100%;min-width:0;padding:.2rem .35rem;font-size:.72rem}.player-meta-badges{gap:.25rem}.player-type{display:none}.player-home-score{padding:.1rem .3rem;font-size:.65rem}}@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<=360px){.dice-scene{--dice-size:48px;--dice-half:24px}.dice-podium{border-radius:12px;padding:5px}.dot{width:9px;height:9px}.cube__face--front .dot.center{width:13px;height:13px}.turn-indicator{font-size:.95rem}.btn-roll-action{padding:.38rem .65rem;font-size:.72rem}}@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:manipulation;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)}.spacer{width:clamp(20px,8vw,80px)}.mode-selector{text-align:center}.rps-content{touch-action:manipulation;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:manipulation;flex-direction:column;align-items:center;width:100%;display:flex}.choices-grid{touch-action:manipulation;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:manipulation;-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:manipulation}.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:manipulation;overscroll-behavior:none;width:100%;max-width:500px;margin:0 auto;padding:1.25rem 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;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;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;touch-action:none!important;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;touch-action:none;pointer-events: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:manipulation;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:center;gap:.35rem;width:100%;margin-bottom:1.25rem;display:flex}.dpad-row-2048{touch-action:manipulation;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:manipulation;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{max-width:420px;padding:.25rem}.game-header-2048{margin-bottom:.5rem}.game-header-2048 h1{font-size:1.8rem}.game-info-2048{gap:.5rem;margin-bottom:.6rem}.score-box-2048{border-radius:.75rem;padding:.4rem .6rem}.score-label-2048{margin-bottom:.15rem;font-size:.68rem}.score-value-2048{font-size:1.35rem}.btn-new-game-2048{border-radius:.75rem;padding:.5rem .9rem;font-size:.85rem}.board-2048{border-radius:1rem;max-width:min(340px,86vw,42vh);margin:0 auto .65rem;padding:.45rem;touch-action:none!important;gap:.4rem!important}.tile-2048{border-radius:.5rem;font-size:1.4rem}.tile-2048.tile-medium{font-size:1.15rem}.tile-2048.tile-small{font-size:.95rem}.tile-2048.tile-xsmall{font-size:.8rem}.dpad-controls-2048{gap:.25rem;margin-bottom:.5rem}.dpad-row-2048{gap:.25rem}.btn-dpad-2048{width:46px;height:38px;font-size:1rem}.controls-2048{gap:.4rem}.btn-undo-2048{padding:.45rem 1.2rem;font-size:.85rem}.hint-2048{font-size:.75rem}}.theme-emerald{--chess-light-sq:#eeeed2;--chess-dark-sq:#769656;--chess-board-rim:#1e293b;--chess-coords:#c5d4b8;--chess-last-light:#f7ec7d;--chess-last-dark:#baca44;--chess-accent:#10b981}.theme-wood{--chess-light-sq:#f0d9b5;--chess-dark-sq:#b58863;--chess-board-rim:#2d1c13;--chess-coords:#d8c2a3;--chess-last-light:#ced26b;--chess-last-dark:#aaa23a;--chess-accent:#f59e0b}.theme-midnight{--chess-light-sq:#334155;--chess-dark-sq:#0f172a;--chess-board-rim:#020617;--chess-coords:#94a3b8;--chess-last-light:#38bdf8;--chess-last-dark:#0284c7;--chess-accent:#06b6d4}.chess-container{box-sizing:border-box;touch-action:manipulation;width:100%;max-width:1140px;margin:0 auto;padding:1.25rem 1rem}.chess-header{justify-content:space-between;align-items:center;gap:.75rem;width:100%;margin-bottom:1.25rem;display:flex}.chess-title{text-align:center;background:linear-gradient(90deg,#60a5fa,#c084fc);-webkit-text-fill-color:transparent;-webkit-background-clip:text;margin:0;font-size:clamp(1.35rem,4vw,2.2rem)}.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:.5rem 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}.mode-selector{text-align:center;padding:2rem 1rem}.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-main-layout{justify-content:center;align-items:flex-start;gap:1.75rem;width:100%;display:flex}.chess-board-column{flex-direction:column;flex:1;align-items:center;gap:.5rem;width:100%;max-width:660px;display:flex}.chess-console-column{flex-direction:column;flex-shrink:0;gap:.85rem;width:320px;display:flex}.player-strip{box-sizing:border-box;background:#0f172abf;border:1.5px solid #ffffff14;border-radius:12px;justify-content:space-between;align-items:center;width:100%;padding:.45rem .85rem;transition:all .25s;display:flex}.player-strip.active-turn{background:#0f172aeb;border-color:#60a5fa8c;box-shadow:0 0 18px #60a5fa38}.player-strip-left{align-items:center;gap:.65rem;min-width:0;display:flex}.player-avatar-badge{flex-shrink:0;font-size:1.35rem}.player-meta-box{flex-direction:column;gap:.15rem;min-width:0;display:flex}.player-title-row{align-items:center;gap:.45rem;display:flex}.player-display-name{color:#f8fafc;white-space:nowrap;font-size:.9rem;font-weight:700}.bot-difficulty-pill{color:#60a5fa;text-transform:uppercase;background:#60a5fa26;border-radius:4px;padding:.1rem .4rem;font-size:.68rem;font-weight:700}.captured-strip{flex-wrap:wrap;align-items:center;gap:2px;min-height:18px;display:flex}.mini-piece-box{flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.player-strip-right{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.material-pill{color:#f8fafc;background:#ffffff1a;border-radius:6px;padding:.15rem .45rem;font-size:.78rem;font-weight:800}.turn-indicator-pill{border-radius:1rem;align-items:center;gap:.35rem;padding:.2rem .65rem;font-size:.75rem;font-weight:700;display:inline-flex}.turn-indicator-pill.user-turn{color:#34d399;background:#10b98133;border:1px solid #10b98166}.turn-indicator-pill.bot-turn{color:#60a5fa;background:#60a5fa33;border:1px solid #60a5fa66}.thinking-dot{background:#60a5fa;border-radius:50%;width:6px;height:6px;animation:1s infinite pulse;box-shadow:0 0 6px #60a5fa}.board-stage{justify-content:center;align-items:center;width:100%;display:flex}.board-frame-with-coords{--board-size:min(580px, 66vh, 88vw);background:var(--chess-board-rim);box-sizing:border-box;border-radius:18px;flex-direction:column;padding:8px;transition:background .3s;display:flex;box-shadow:0 25px 60px -15px #000000d9,0 0 0 1px #ffffff1a,inset 0 1px #ffffff2e}.board-center-row{align-items:center;display:flex}.board-coords-files{text-align:center;color:var(--chess-coords);text-transform:uppercase;letter-spacing:.05em;opacity:.9;-webkit-user-select:none;user-select:none;grid-template-columns:repeat(8,1fr);padding:.25rem 1.1rem;font-size:.72rem;font-weight:800;display:grid}.board-coords-ranks{color:var(--chess-coords);height:var(--board-size);opacity:.9;-webkit-user-select:none;user-select:none;flex-direction:column;justify-content:space-around;padding:0 .45rem;font-size:.72rem;font-weight:800;display:flex}.chess-board{width:var(--board-size);height:var(--board-size);border-radius:8px;grid-template-rows:repeat(8,1fr);grid-template-columns:repeat(8,1fr);gap:0;display:grid;overflow:hidden;box-shadow:inset 0 0 12px #00000080,0 4px 12px #0006}.chess-square{cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border:none;justify-content:center;align-items:center;margin:0;padding:0;transition:background-color .15s;display:flex;position:relative}.chess-square.light{background-color:var(--chess-light-sq)}.chess-square.dark{background-color:var(--chess-dark-sq)}.chess-square.selected{z-index:2;background-color:#38bdf8!important;box-shadow:inset 0 0 0 3px #0284c7,0 0 16px #38bdf8b3!important}.chess-square.light.last-move{background-color:var(--chess-last-light)!important}.chess-square.dark.last-move{background-color:var(--chess-last-dark)!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-move-dot{pointer-events:none;background:#0000003d;border-radius:50%;width:30%;height:30%;transition:transform .15s,background .15s;position:absolute;box-shadow:0 0 6px #00000026}.chess-square:hover .chess-move-dot{background:#10b98180;transform:scale(1.15)}.chess-capture-ring{pointer-events:none;border:4px solid #ef4444d9;border-radius:50%;width:86%;height:86%;animation:1.2s ease-in-out infinite targetPulse;position:absolute;box-shadow:0 0 12px #ef444499,inset 0 0 8px #ef44444d}@keyframes targetPulse{0%,to{opacity:.8;transform:scale(.96)}50%{opacity:1;transform:scale(1.03)}}.chess-piece{-webkit-user-select:none;user-select:none;pointer-events:none;justify-content:center;align-items:center;width:86%;height:86%;transition:transform .15s cubic-bezier(.175,.885,.32,1.275);display:flex}.chess-square:hover .chess-piece{transform:translateY(-2px)scale(1.04)}.chess-piece-svg{width:100%;height:100%}.chess-piece-svg.piece-white{filter:drop-shadow(0 3px 5px #00000080)}.chess-piece-svg.piece-black{filter:drop-shadow(0 3px 5px #000000a6)drop-shadow(0 0 1px #ffffff59)}.status-banner{text-align:center;border-radius:10px;padding:.65rem 1rem;font-size:.85rem;font-weight:700}.status-banner.check{color:#fbbf24;background:#f59e0b26;border:1px solid #f59e0b66;animation:1.2s infinite pulse}.status-banner.checkmate{color:#34d399;background:#10b98126;border:1px solid #10b98166}.status-banner.stalemate{color:#60a5fa;background:#60a5fa26;border:1px solid #60a5fa66}.console-card{box-sizing:border-box;background:#0f172ab3;border:1px solid #ffffff14;border-radius:14px;padding:.85rem}.console-card-header{justify-content:space-between;align-items:center;margin-bottom:.6rem;display:flex}.card-title{color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;font-size:.82rem;font-weight:700;display:block}.badge-subtle{color:#64748b;background:#ffffff0d;border-radius:4px;padding:.1rem .45rem;font-size:.72rem}.move-history-table{flex-direction:column;gap:.25rem;max-height:180px;display:flex;overflow-y:auto}.empty-history{color:#64748b;text-align:center;padding:1rem .5rem;font-size:.8rem}.move-row{background:#ffffff05;border-radius:6px;grid-template-columns:32px 1fr 1fr;align-items:center;padding:.25rem .45rem;font-size:.82rem;display:grid}.move-row:nth-child(2n){background:#ffffff0a}.move-cell-num{color:#64748b;font-weight:600}.move-cell-move{font-weight:700}.white-cell{color:#f1f5f9}.black-cell{color:#94a3b8}.theme-toggle-group{grid-template-columns:repeat(3,1fr);gap:.45rem;margin-top:.5rem;display:grid}.theme-toggle-btn{color:#cbd5e1;cursor:pointer;background:#ffffff0a;border:1.5px solid #ffffff14;border-radius:8px;flex-direction:column;align-items:center;gap:.35rem;padding:.45rem .3rem;font-size:.75rem;font-weight:600;transition:all .2s;display:flex}.theme-toggle-btn:hover{background:#ffffff14}.theme-toggle-btn.active{color:#fff;background:#60a5fa26;border-color:#60a5fa;box-shadow:0 0 12px #60a5fa40}.swatch{border:1px solid #fff3;border-radius:4px;width:22px;height:22px}.emerald-preview{background:linear-gradient(135deg,#eeeed2 50%,#769656 50%)}.wood-preview{background:linear-gradient(135deg,#f0d9b5 50%,#b58863 50%)}.midnight-preview{background:linear-gradient(135deg,#334155 50%,#0f172a 50%)}.console-actions{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.btn-action-undo,.btn-action-new{cursor:pointer;border:none;border-radius:10px;padding:.65rem .85rem;font-size:.85rem;font-weight:700;transition:all .2s}.btn-action-undo{color:#f1f5f9;background:#ffffff14;border:1px solid #ffffff1f}.btn-action-undo:hover:not(:disabled){background:#ffffff24;transform:translateY(-1px)}.btn-action-undo:disabled{opacity:.35;cursor:not-allowed}.btn-action-new{background:var(--grad-primary);color:#fff;box-shadow:0 4px 14px #6366f159}.btn-action-new:hover{transform:translateY(-1px);box-shadow:0 6px 18px #6366f180}.modal-overlay{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);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:2rem 1.75rem;animation:.3s ease-out slide-up}.modal h2{margin-bottom:.5rem;font-size:1.8rem}.modal p{color:var(--text-secondary);margin-bottom:1.25rem;font-size:1.05rem}.promotion-choices{grid-template-columns:repeat(4,1fr);gap:.65rem;margin-bottom:1.25rem;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:.75rem .4rem;display:flex}.promotion-btn:hover{background:#60a5fa33;border-color:#60a5fa;transform:scale(1.08)}.piece-preview-box{justify-content:center;align-items:center;width:42px;height:42px;display:flex}.modal-buttons{flex-direction:column;gap:.75rem;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 pulse{0%,to{transform:scale(1)}50%{transform:scale(1.04)}}@keyframes slide-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (width<=900px){.chess-main-layout{flex-direction:column;align-items:center;gap:.75rem}.chess-console-column{width:100%;max-width:var(--board-size)}.move-history-table{max-height:120px}}@media (width<=640px){.chess-container{padding:.5rem .5rem 1.5rem}.chess-header{margin-bottom:.45rem}.board-frame-with-coords{--board-size:min(92vw, 48vh, 380px);border-radius:14px;padding:5px}.board-coords-files{padding:.15rem .8rem;font-size:.65rem}.board-coords-ranks{padding:0 .3rem;font-size:.65rem}.player-strip{padding:.35rem .6rem}.player-display-name{font-size:.82rem}.player-avatar-badge{font-size:1.15rem}.btn-back,.btn-menu{padding:.4rem .65rem;font-size:.82rem}}@media (width<=360px){.board-frame-with-coords{--board-size:min(90vw, 44vh, 320px)}}.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:manipulation;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}}
