body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.login-screen{align-items:center;animation:fadeIn .5s ease;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;overflow:hidden;padding:20px;position:relative}.login-background{height:100%;left:0;opacity:.1;pointer-events:none;position:absolute;top:0;width:100%}.chess-piece{animation:float 20s ease-in-out infinite;color:#fff;font-size:80px;position:absolute}.piece-1{animation-delay:0s;left:10%;top:10%}.piece-2{animation-delay:2s;right:15%;top:20%}.piece-3{animation-delay:4s;bottom:15%;left:15%}.piece-4{animation-delay:1s;bottom:30%;right:10%}.piece-5{animation-delay:3s;left:5%;top:50%}.piece-6{animation-delay:5s;right:5%;top:40%}@keyframes float{0%,to{transform:translateY(0) rotate(0deg)}25%{transform:translateY(-30px) rotate(5deg)}50%{transform:translateY(0) rotate(0deg)}75%{transform:translateY(30px) rotate(-5deg)}}.login-container{animation:slideUp .6s ease;max-width:500px;width:100%;z-index:10}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-logo{margin-bottom:30px;text-align:center}.logo-icon{animation:bounce 2s infinite;display:inline-block;font-size:80px}.login-logo h1{color:#fff;font-size:3rem;font-weight:800;margin:10px 0;text-shadow:2px 2px 10px #0000004d}.tagline{color:#ffffffe6;font-size:1.1rem;margin:0}.login-card{background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000004d;margin-bottom:30px;padding:40px}.login-card h2{color:#333;font-size:1.8rem;margin:0 0 10px;text-align:center}.login-subtitle{color:#666;font-size:.95rem;line-height:1.5;margin:0 0 30px;text-align:center}.google-login-btn{align-items:center;background:#fff;border:2px solid #e0e0e0;border-radius:12px;box-shadow:0 4px 15px #0000001a;color:#333;cursor:pointer;display:flex;font-size:1.1rem;font-weight:600;gap:12px;justify-content:center;padding:15px;transition:all .3s;width:100%}.google-login-btn:hover:not(:disabled){border-color:#667eea;box-shadow:0 8px 25px #00000026;transform:translateY(-3px)}.google-login-btn:disabled{cursor:not-allowed;opacity:.6}.google-login-btn img{height:24px;width:24px}.btn-spinner{animation:spin .8s linear infinite;border:3px solid #f3f3f3;border-radius:50%;border-top-color:#667eea;height:20px;width:20px}.divider{align-items:center;color:#999;display:flex;margin:25px 0}.divider:after,.divider:before{background:#e0e0e0;content:"";flex:1 1;height:1px}.divider span{font-size:.9rem;font-weight:600;padding:0 15px}.guest-btn{align-items:center;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:12px;color:#666;cursor:pointer;display:flex;font-size:1.1rem;font-weight:600;gap:12px;justify-content:center;padding:15px;transition:all .3s;width:100%}.guest-btn:hover:not(:disabled){background:#e9ecef;box-shadow:0 5px 15px #0000001a;transform:translateY(-2px)}.guest-btn:disabled{cursor:not-allowed;opacity:.6}.login-benefits{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(2,1fr);margin:30px 0 20px}.benefit-item{align-items:center;background:#f8f9fa;border-radius:10px;color:#555;display:flex;font-size:.9rem;gap:10px;padding:12px;transition:all .3s}.benefit-item:hover{background:#e9ecef;transform:translateY(-2px)}.benefit-icon{font-size:1.5rem}.login-privacy{color:#999;font-size:.8rem;line-height:1.5;margin:20px 0 0;text-align:center}.login-stats{display:flex;gap:20px;justify-content:space-around}.stat-box{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff3;border:2px solid #ffffff4d;border-radius:15px;flex:1 1;padding:20px;text-align:center;transition:all .3s}.stat-box:hover{background:#ffffff4d;transform:translateY(-5px)}.stat-number{color:#fff;display:block;font-size:1.8rem;font-weight:700;margin-bottom:5px}.stat-label{color:#ffffffe6;font-size:.9rem}.welcome-animation{text-align:center}.success-icon{animation:scaleIn .5s ease;font-size:80px;margin-bottom:20px}@keyframes scaleIn{0%{transform:scale(0)}to{transform:scale(1)}}.welcome-animation h2{color:#333;font-size:2rem;margin-bottom:10px}.welcome-animation p{color:#666;margin-bottom:20px}.loading-bar{background:#e0e0e0;border-radius:10px;height:6px;overflow:hidden;width:100%}.loading-progress{animation:loadProgress 1.5s ease-in-out;background:linear-gradient(90deg,#667eea,#764ba2);border-radius:10px;height:100%}@keyframes loadProgress{0%{width:0}to{width:100%}}@media (max-width:768px){.login-screen{padding:10px}.login-container{max-width:100%}.login-card{padding:25px 20px}.login-logo h1{font-size:2.2rem}.logo-icon{font-size:60px}.tagline{font-size:1rem}.login-card h2{font-size:1.5rem}.login-subtitle{font-size:.9rem}.google-login-btn,.guest-btn{font-size:1rem;padding:13px}.login-benefits{gap:12px;grid-template-columns:1fr}.benefit-item{font-size:.85rem;padding:10px}.benefit-icon{font-size:1.3rem}.login-stats{flex-direction:column;gap:15px}.stat-box{padding:15px}.stat-number{font-size:1.5rem}.chess-piece{font-size:50px}.welcome-animation h2{font-size:1.6rem}}@media (max-width:480px){.login-card{padding:20px 15px}.login-logo h1{font-size:1.8rem}.logo-icon{font-size:50px}.login-card h2{font-size:1.3rem}.google-login-btn,.guest-btn{font-size:.95rem;padding:12px}.chess-piece{font-size:40px}}@media (max-height:500px) and (orientation:landscape){.login-screen{padding:10px}.logo-icon{font-size:40px}.login-logo h1{font-size:1.8rem;margin:5px 0}.login-card{padding:20px}.login-stats{display:none}}.auth-container{position:relative;z-index:1000}.auth-loading{align-items:center;display:flex;justify-content:center;padding:10px}.spinner{animation:spin .8s linear infinite;border:3px solid #ffffff4d;border-radius:50%;border-top-color:#fff;height:30px;width:30px}@keyframes spin{to{transform:rotate(1turn)}}.login-btn{align-items:center;background:#fff;border:none;border-radius:8px;box-shadow:0 4px 15px #0003;color:#333;cursor:pointer;display:flex;font-size:1rem;font-weight:600;gap:10px;padding:10px 20px;transition:all .3s}.login-btn:hover{box-shadow:0 6px 20px #0000004d;transform:translateY(-2px)}.login-btn img{height:20px;width:20px}.profile-btn{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff3;border:2px solid #ffffff4d;border-radius:50px;color:#fff;cursor:pointer;display:flex;font-size:1rem;font-weight:600;gap:10px;padding:8px 15px;transition:all .3s}.profile-btn:hover{background:#ffffff4d;transform:translateY(-2px)}.profile-avatar{border:2px solid #fff;border-radius:50%;height:35px;object-fit:cover;width:35px}.profile-name{font-size:.95rem}.premium-badge{animation:shimmer 2s infinite;background:linear-gradient(135deg,gold,#ffed4e);border-radius:12px;color:#333;font-size:.75rem;font-weight:700;padding:3px 8px}@keyframes shimmer{0%,to{opacity:1}50%{opacity:.8}}.profile-dropdown{animation:slideDown .3s ease;background:#fff;border-radius:15px;box-shadow:0 10px 40px #0000004d;padding:20px;position:absolute;right:0;top:60px;width:320px;z-index:2000}.profile-header{align-items:center;border-bottom:2px solid #f0f0f0;display:flex;gap:15px;margin-bottom:15px;padding-bottom:15px}.profile-header img{border:3px solid #667eea;border-radius:50%;height:60px;object-fit:cover;width:60px}.profile-header h3{color:#333;font-size:1.1rem;margin:0}.profile-header p{color:#666;font-size:.85rem;margin:5px 0 0}.profile-stats{grid-gap:10px;display:grid;gap:10px;grid-template-columns:repeat(2,1fr);margin-bottom:15px}.stat-item{background:#f8f9fa;border:2px solid #0000;border-radius:10px;padding:12px;text-align:center;transition:all .3s}.stat-item:hover{border-color:#667eea;transform:translateY(-2px)}.stat-label{color:#666;display:block;font-size:.8rem;font-weight:600;margin-bottom:5px}.stat-value{color:#333;display:block;font-size:1.3rem;font-weight:700}.profile-actions{display:flex;flex-direction:column;gap:10px}.upgrade-btn{background:linear-gradient(135deg,gold,#ffed4e);border:none;border-radius:8px;color:#333;cursor:pointer;font-size:1rem;font-weight:700;padding:12px;transition:all .3s;width:100%}.upgrade-btn:hover{box-shadow:0 5px 15px #ffd70066;transform:translateY(-2px)}.logout-btn{background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;color:#666;cursor:pointer;font-size:1rem;font-weight:600;padding:12px;transition:all .3s;width:100%}.logout-btn:hover{background:#ff6b6b;border-color:#ff6b6b;color:#fff}@media (max-width:768px){.profile-dropdown{right:-10px;width:280px}.profile-name{display:none}.premium-badge{font-size:.7rem;padding:2px 6px}}.welcome-screen{align-items:center;animation:fadeIn .6s ease;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;justify-content:center;min-height:100vh;padding:20px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.welcome-content{max-width:600px;width:100%}.logo-section{margin-bottom:40px;text-align:center}.logo-animation{animation:bounce 2s infinite;display:inline-block;font-size:80px}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.title{color:#fff;font-size:3.5rem;font-weight:800;margin:20px 0 10px;text-shadow:2px 2px 8px #0000004d}.subtitle{color:#ffffffe6;font-size:1.2rem;margin:0}.selection-panel{background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000004d;margin-bottom:30px;padding:30px}.color-selector h3,.difficulty-selector h3,.theme-selector h3{color:#333;font-size:1.3rem;font-weight:700;margin:0 0 20px}.difficulty-buttons{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(3,1fr);margin-bottom:25px}.diff-btn{align-items:center;background:#f8f9fa;border:3px solid #0000;border-radius:15px;cursor:pointer;display:flex;flex-direction:column;gap:8px;padding:20px 15px;transition:all .3s}.diff-btn:hover{box-shadow:0 10px 25px #667eea33;transform:translateY(-5px)}.diff-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#667eea;color:#fff}.diff-btn.active .diff-desc{color:#ffffffe6}.diff-icon{font-size:2rem}.diff-name{font-size:1.1rem;font-weight:700}.diff-desc{color:#666;font-size:.85rem;text-align:center}.color-selector{border-top:2px solid #f0f0f0;margin-bottom:25px;padding-top:10px}.color-selector h3{color:#333;font-size:1.2rem;margin:15px 0}.color-buttons{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(3,1fr)}.color-btn{align-items:center;background:#f8f9fa;border:3px solid #0000;border-radius:12px;color:#333;cursor:pointer;display:flex;flex-direction:column;font-weight:600;gap:8px;overflow:hidden;padding:18px 12px;position:relative;transition:all .3s}.color-btn:before{background:linear-gradient(135deg,#667eea1a,#764ba21a);content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%}.color-btn:hover{box-shadow:0 8px 20px #667eea33;transform:translateY(-3px)}.color-btn:hover:before{opacity:1}.color-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);border-color:#667eea;box-shadow:0 10px 30px #667eea66;color:#fff}.color-btn.active .color-desc{color:#ffffffe6}.color-icon{font-size:2rem}.color-desc,.color-icon{position:relative;z-index:1}.color-desc{color:#888;font-size:.75rem;font-weight:500;text-align:center}.theme-toggle{background:#f8f9fa;border:2px solid #e0e0e0;border-radius:10px;color:#333;cursor:pointer;font-size:1rem;font-weight:600;margin-bottom:15px;padding:15px;transition:all .3s;width:100%}.theme-toggle:hover{background:#e9ecef;border-color:#667eea;transform:translateY(-2px)}.theme-selector{animation:slideDown .3s ease;background:#f8f9fa;border-radius:15px;margin-top:20px;padding:20px}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.theme-grid{grid-gap:15px;display:grid;gap:15px;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.theme-btn{align-items:center;background:#fff;border:3px solid #0000;border-radius:12px;cursor:pointer;display:flex;flex-direction:column;gap:10px;padding:15px 10px;transition:all .3s}.theme-btn:hover{box-shadow:0 5px 15px #0000001a;transform:scale(1.05)}.theme-btn.active{background:linear-gradient(135deg,#667eea1a,#764ba21a);border-color:#667eea;box-shadow:0 8px 20px #667eea33}.theme-preview{display:flex;gap:3px}.theme-square{border-radius:4px;box-shadow:0 2px 5px #0000001a;height:25px;width:25px}.theme-btn span{color:#333;font-size:.9rem;font-weight:600}.start-btn{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:12px;color:#fff;cursor:pointer;display:flex;font-size:1.3rem;font-weight:700;gap:10px;justify-content:center;margin-top:15px;overflow:hidden;padding:18px;position:relative;transition:all .3s;width:100%}.start-btn:before{background:#ffffff4d;border-radius:50%;content:"";height:0;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .6s,height .6s;width:0}.start-btn:hover:before{height:300px;width:300px}.start-btn:hover{box-shadow:0 15px 40px #667eea66;transform:translateY(-3px)}.start-btn:active{transform:translateY(0)}.start-arrow,.start-icon{font-size:1.5rem;position:relative;z-index:1}.features-list{display:flex;flex-wrap:wrap;gap:30px;justify-content:center}.feature{align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffff1a;border-radius:20px;color:#fff;display:flex;font-size:1rem;gap:8px;padding:10px 15px;transition:all .3s}.feature:hover{background:#fff3;transform:translateY(-2px)}.feature-icon{font-size:1.5rem}@media (max-width:768px){.title{font-size:2.5rem}.color-buttons,.difficulty-buttons{grid-template-columns:1fr}.features-list{align-items:center;flex-direction:column;gap:15px}.theme-grid{grid-template-columns:repeat(2,1fr)}.logo-animation{font-size:60px}}@media (max-width:480px){.selection-panel{padding:20px}.title{font-size:2rem}.subtitle{font-size:1rem}}.App{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;min-height:100vh;overflow:hidden;padding:20px;text-align:center}.App,.App-header{position:relative}.App-header{align-items:center;display:flex;gap:20px;justify-content:center;margin-bottom:30px}.back-btn{background:#fff3;border:2px solid #ffffff4d;border-radius:10px;color:#fff;cursor:pointer;font-size:1rem;font-weight:600;left:0;padding:10px 20px;position:absolute;transition:all .3s}.back-btn:hover{background:#ffffff4d;transform:translateX(-5px)}.App-header h1{font-size:3rem;margin:0;text-shadow:2px 2px 4px #0000004d}.App-header p{font-size:1.2rem;margin:5px 0 0;opacity:.9}.game-container{display:flex;flex-wrap:wrap;gap:30px;justify-content:center;margin:0 auto;max-width:1400px}.board-section{background:#fff;border-radius:15px;box-shadow:0 10px 40px #0003;padding:20px}.controls{align-items:center;display:flex;flex-wrap:wrap;gap:15px;justify-content:center;margin-bottom:20px}.controls button{background:#667eea;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:1rem;font-weight:700;padding:10px 20px;transition:all .3s}.controls button:hover{background:#5568d3;box-shadow:0 5px 15px #667eea66;transform:translateY(-2px)}.controls button:disabled{background:#ccc;cursor:not-allowed;transform:none}.training-active{background:#51cf66!important;border:2px solid #40c057}.training-active:hover{background:#40c057!important}.training-legend{background:#f8f9fa;border-radius:10px;display:flex;flex-wrap:wrap;gap:15px;justify-content:center;margin-bottom:15px;padding:12px}.legend-item{align-items:center;color:#333;display:flex;font-size:.85rem;font-weight:600;gap:6px}.legend-color{border:2px solid #333;border-radius:3px;height:18px;width:18px}.training-hint{background:#e3f2fd;border-left:4px solid #1976d2;border-radius:8px;color:#1976d2;font-size:.95rem;margin-top:10px;padding:10px}.chessboard-wrapper{display:flex;height:500px;justify-content:center;margin:20px auto;position:relative;width:500px}.chessboard-wrapper>div{height:500px!important;width:500px!important}.game-info{background:#f8f9fa;border-radius:10px;color:#333;padding:15px}.game-info p{font-size:1.1rem;margin:10px 0}.alert{animation:pulse 1s infinite;color:#ff6b6b;font-weight:700}.victory{animation:victoryPulse .5s ease-in-out infinite;color:#51cf66;font-size:1.3rem;font-weight:700}.ai-thinking{align-items:center;animation:pulse 1.5s infinite;color:#667eea;display:flex;font-weight:700;gap:8px}.thinking-icon{animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes victoryPulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.confetti-container{height:100%;left:0;overflow:hidden;pointer-events:none;position:fixed;top:0;width:100%;z-index:9999}.confetti{animation:confettiFall 3s ease-in-out forwards;height:10px;opacity:0;position:absolute;top:-10px;width:10px}@keyframes confettiFall{0%{opacity:1;transform:translateY(0) rotate(0deg)}to{opacity:0;transform:translateY(100vh) rotate(2turn)}}.skull-overlay{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1000}.skull-animation{animation:skullAppear .5s ease-out,skullFloat 2s ease-in-out infinite;filter:drop-shadow(0 0 15px rgba(255,0,0,.9));font-size:60px;position:relative;text-shadow:0 0 20px red;transform-origin:center}@keyframes skullAppear{0%{opacity:0;transform:scale(0) rotate(-180deg)}50%{transform:scale(1.2) rotate(10deg)}to{opacity:1;transform:scale(1) rotate(0deg)}}@keyframes skullFloat{0%,to{transform:translateY(0) rotate(0deg) scale(1)}25%{transform:translateY(-8px) rotate(3deg) scale(1.05)}75%{transform:translateY(8px) rotate(-3deg) scale(.95)}}.analysis-section{background:#fff;border-radius:15px;box-shadow:0 10px 40px #0003;color:#333;max-width:500px;padding:20px}.analysis-section h2{color:#667eea;margin-top:0}.analysis-box{background:#f8f9fa;border-radius:10px;margin-bottom:20px;min-height:200px;padding:20px;text-align:left}.analysis-box pre{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.6;margin:0;white-space:pre-wrap}.placeholder{color:#999;font-style:italic}.history{background:#f8f9fa;border-radius:10px;max-height:300px;overflow-y:auto;padding:15px}.history h3{color:#667eea;margin-top:0}.moves-list{line-height:2;text-align:left}.move{display:inline-block;font-family:monospace;font-size:1rem;margin:0 8px}footer{margin-top:50px;opacity:.8}footer p{margin:10px 0}@media (max-width:768px){.App{padding:10px}.game-container{flex-direction:column;gap:15px}.App-header{flex-direction:column;gap:10px;margin-bottom:15px}.App-header h1{font-size:1.8rem}.App-header p{font-size:.9rem;text-align:center}.back-btn{margin-bottom:10px;position:static;width:100%}.chessboard-wrapper{height:auto;margin:0 auto;max-width:calc(100vw - 20px);width:100vw}.chessboard-wrapper>div{aspect-ratio:1/1;height:auto!important;margin:0 auto;max-width:400px!important;width:100%!important}.controls{flex-direction:column;gap:10px}.controls button{font-size:1rem;padding:12px;width:100%}.training-legend{flex-wrap:wrap;gap:8px;padding:10px}.legend-item{font-size:.75rem;gap:4px}.legend-color{height:15px;width:15px}.game-info{padding:12px}.game-info p{font-size:.95rem;margin:8px 0}.analysis-section{max-width:100%;padding:15px}.analysis-section h2{font-size:1.3rem}.analysis-box{font-size:.9rem;min-height:150px;padding:15px}.history{max-height:200px;padding:12px}.moves-list{font-size:.9rem}.skull-animation{font-size:40px}.confetti{height:6px;width:6px}footer{font-size:.85rem;margin-top:30px}}@media (max-width:375px){.App-header h1{font-size:1.5rem}.chessboard-wrapper>div{max-width:320px!important}.controls button{font-size:.9rem;padding:10px}.legend-item{font-size:.7rem}}@media (min-width:769px) and (max-width:1024px){.chessboard-wrapper>div{max-width:450px!important}.game-container{flex-direction:column}.analysis-section{max-width:100%}}.chessboard-wrapper:before{background:linear-gradient(45deg,#0000 30%,#667eea1a 50%,#0000 70%);border-radius:15px;bottom:-10px;content:"";left:-10px;pointer-events:none;position:absolute;right:-10px;top:-10px;z-index:-1}