.toast-container{position:fixed;top:80px;left:50%;transform:translate(-50%);z-index:1000;pointer-events:none;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translate(-50%) translateY(-10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.toast{background-color:#1f2937;color:#fff;padding:10px 20px;border-radius:8px;box-shadow:0 4px 12px #00000026;font-size:14px;font-weight:400;letter-spacing:.01em;white-space:nowrap}.toast-message{display:block}.header{display:flex;justify-content:space-between;align-items:center;padding:16px 48px;border-bottom:1px solid #E5E7EB;background-color:#fff;height:64px}.header-left{display:flex;align-items:center;gap:48px}.logo{display:flex;align-items:center;gap:0px;font-weight:400;font-size:18px;color:#1f2937;text-decoration:none}.logo-text{margin-left:-2px}.rook-icon{width:32px;height:32px;flex-shrink:0;object-fit:contain}.logo-text{font-weight:700;letter-spacing:.04em;font-size:18px;font-family:Comfortaa,Nunito,-apple-system,BlinkMacSystemFont,sans-serif}.navigation{display:flex;gap:32px;align-items:center}.nav-link{color:#1f2937;font-size:14px;font-weight:400;transition:color .15s ease;letter-spacing:0}.nav-link:hover{color:#3b82f6}.header-right{display:flex;align-items:center}.user-profile{display:flex;align-items:center;gap:4px;cursor:pointer}.profile-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background-color:#e5e7eb}.chess-board-wrapper{width:100%;max-width:400px;display:flex;justify-content:center}.move-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}.move-item{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:#f3f4f6;border-radius:8px;font-size:14px;line-height:1.5}.move-notation{font-weight:600;color:#1f2937!important;min-width:80px;font-size:14px;display:inline-block;opacity:1!important;visibility:visible!important}.move-percentage{font-weight:700;color:#1f2937;margin-left:auto;font-size:15px;letter-spacing:.02em;padding:4px 10px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:6px;border:1px solid #D1D5DB;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 2px #0000000d;min-width:50px}.move-percentage.mistake{background:linear-gradient(135deg,#fee2e2,#fecaca);color:#991b1b;border-color:#fca5a5}.move-percentage.positive:not(.mistake){background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;border-color:#6ee7b7}.move-icons{display:flex;gap:4px;margin-left:8px;align-items:center}.move-label{font-size:12px;color:#9ca3af;margin-left:4px;font-weight:400}.analyze-page{min-height:100vh;background-color:#fff}.analyze-content{display:flex;gap:48px;padding:32px 48px;max-width:1600px;margin:0 auto}.main-content{flex:2;display:flex;flex-direction:column;gap:32px;min-width:0}.title-section{margin-top:24px}.main-title{display:flex;align-items:center;gap:0px;margin-bottom:16px}.main-title h1{margin-left:-4px}.main-title .rook-icon{width:64px;height:64px;flex-shrink:0;object-fit:contain}.main-title h1{font-size:36px;font-weight:700;color:#1f2937;margin:0 0 0 -4px;letter-spacing:.04em;line-height:1.2;font-family:Comfortaa,Nunito,-apple-system,BlinkMacSystemFont,sans-serif}.subtitle{font-size:16px;color:#1f2937;line-height:1.6;margin:0;font-weight:400}.input-section{display:flex;flex-direction:column;gap:16px}.pgn-input{width:100%;height:240px;min-height:240px;padding:16px;background-color:#f3f4f6;border:1px solid #E5E7EB;border-radius:8px;font-size:14px;font-family:Monaco,Menlo,Courier New,monospace;color:#1f2937;resize:none;line-height:1.5;font-weight:400}.pgn-input::placeholder{color:#9ca3af;font-weight:400}.analyze-button{padding:12px 48px;background-color:#3b82f6;color:#fff;border-radius:8px;font-size:16px;font-weight:600;transition:background-color .15s ease;align-self:flex-start;cursor:pointer;letter-spacing:0;min-width:180px}.analyze-button:hover{background-color:#2563eb}.recent-reports{margin-top:8px}.reports-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.reports-header h2{font-size:18px;font-weight:700;color:#1f2937;margin:0;letter-spacing:-.01em}.ddtek-button{padding:4px 16px;background-color:#f3f4f6;border:1px solid #E5E7EB;border-radius:4px;font-size:12px;color:#1f2937;font-weight:400;cursor:pointer;transition:background-color .15s ease}.ddtek-button:hover{background-color:#e5e7eb}.report-item{display:flex;align-items:center;gap:16px;padding:16px;background-color:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;border:1px solid #F3F4F6}.report-avatar{flex-shrink:0}.report-info{flex:1;min-width:0}.report-name{font-size:14px;color:#1f2937;margin-bottom:4px;font-weight:400}.report-name strong{font-weight:600}.report-details{font-size:12px;color:#9ca3af;font-weight:400}.report-meta{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;color:#9ca3af;gap:4px;font-weight:400;flex-shrink:0}.sidebar{flex:1;display:flex;flex-direction:column;gap:16px;background-color:#f9fafb;padding:16px;border-radius:12px;height:fit-content;min-width:300px}.side-selector{display:flex;flex-direction:column;gap:8px;padding:12px;background-color:#fff;border-radius:8px;border:1px solid #E5E7EB}.side-selector-label{font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.side-toggle{display:flex;gap:4px;background-color:#f3f4f6;border-radius:6px;padding:2px}.side-option{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;background:transparent;border:none;border-radius:4px;font-size:14px;font-weight:500;color:#6b7280;cursor:pointer;transition:all .2s ease}.side-option:hover{color:#1f2937;background-color:#e5e7eb}.side-option.active{background-color:#fff;color:#1f2937;box-shadow:0 1px 2px #0000000d;font-weight:600}.side-indicator{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;flex-shrink:0}.white-indicator,.black-indicator{background-color:#f3f4f6;border:1px solid #E5E7EB}.recent-analysis-header{margin-top:8px}.recent-analysis-header h3{font-size:16px;font-weight:700;color:#1f2937;margin:0;letter-spacing:-.01em}.evaluation-bar{display:flex;align-items:center;gap:12px;margin-bottom:16px;width:100%}.evaluation-score{font-size:18px;font-weight:600;color:#3b82f6;min-width:45px;line-height:1}.evaluation-progress-container{flex:1;display:flex;align-items:center}.evaluation-progress{width:100%;height:8px;background-color:#e5e7eb;border-radius:4px;overflow:hidden;position:relative}.evaluation-fill{height:100%;background-color:#3b82f6;transition:width .3s ease;border-radius:4px}.evaluation-time,.evaluation-code{font-size:12px;color:#6b7280;white-space:nowrap}.evaluation-depth-container{position:relative}.depth-clickable{cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .15s ease}.depth-clickable:hover{color:#3b82f6}.depth-selector{position:absolute;top:100%;left:0;margin-top:4px;background-color:#fff;border:1px solid #E5E7EB;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:100px;overflow:hidden}.depth-option{display:block;width:100%;padding:8px 12px;background:none;border:none;text-align:left;font-size:12px;color:#1f2937;cursor:pointer;transition:background-color .15s ease}.depth-option:hover{background-color:#f3f4f6}.depth-option.active{background-color:#eff6ff;color:#3b82f6;font-weight:600}.evaluation-bar.checkmate{background:linear-gradient(135deg,#4b5563,#374151);padding:12px 16px;border-radius:8px;color:#fff}.evaluation-bar.checkmate .evaluation-score.checkmate-score{color:#fff;font-size:24px;font-weight:700}.evaluation-bar.checkmate .evaluation-fill.checkmate-fill{background-color:#ffffff40}.evaluation-bar.checkmate .evaluation-time,.evaluation-bar.checkmate .evaluation-code{color:#ffffffe6;font-weight:500}.move-explanation{margin-bottom:24px}.move-header{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border-radius:20px;font-weight:600;font-size:14px;margin-bottom:8px}.move-header.solid{background-color:#3b82f6;color:#fff}.move-header.solid.clickable{cursor:pointer;transition:background-color .2s ease,transform .1s ease}.move-header.solid.clickable:hover{background-color:#2563eb;transform:scale(1.02)}.evaluation-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#3b82f6;margin-bottom:12px;font-weight:400;letter-spacing:.5px}.dot{width:4px;height:4px;border-radius:50%;background-color:#3b82f6;display:inline-block}.explanation-card{background-color:#fff;border-radius:8px;padding:16px;box-shadow:0 1px 3px #0000001a;position:relative;display:flex;gap:16px;border:1px solid #F3F4F6;transition:transform .3s ease,opacity .3s ease;will-change:transform,opacity}.explanation-text{color:#1f2937;font-size:14px;line-height:1.6;margin:0}.explanation-text strong{color:#1f2937;font-weight:600}.mistake-card .explanation-text strong{color:#dc2626}.card-close{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:4px;font-size:12px;color:#9ca3af;cursor:pointer}.best-moves{background-color:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 3px #0000001a;margin-top:16px;border:1px solid #F3F4F6}.best-moves-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.best-moves-title{font-size:16px;font-weight:700;color:#1f2937;margin:0;letter-spacing:-.01em}.header-percentages{display:flex;gap:8px;font-size:14px;color:#9ca3af;font-weight:400}.moves-list{display:flex;flex-direction:column;gap:12px;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #E5E7EB}.move-entry-wrapper{display:flex;flex-direction:column;gap:8px}.move-entry{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.5}.move-item-box{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:#f3f4f6;border-radius:8px;font-size:14px;line-height:1.5;margin-left:0;transition:background-color .2s ease}.move-item-box:hover{background-color:#e5e7eb}.move-sequence-container{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.move-item-notation{font-weight:700;color:#1f2937;font-size:14px;display:inline-block;background-color:#e5e7eb;padding:2px 6px;border-radius:4px;letter-spacing:.01em}.clickable-move{cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none}.clickable-move:hover{background-color:#3b82f6;color:#fff;transform:scale(1.05)}.move-separator{color:#9ca3af;font-size:14px;font-weight:400;margin:0 2px}.move-continuation{color:#6b7280;font-size:14px;font-weight:600;letter-spacing:.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;gap:4px;flex-wrap:wrap}.continuation-move{display:inline-block;background-color:#e5e7eb;padding:2px 6px;border-radius:4px;font-weight:600;color:#1f2937;transition:all .2s ease;cursor:pointer;-webkit-user-select:none;user-select:none}.continuation-move:hover{background-color:#3b82f6;color:#fff;transform:scale(1.05)}.move-item-percentage{font-weight:700;color:#1f2937;margin-left:auto;font-size:15px;flex-shrink:0;letter-spacing:.02em;padding:4px 10px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:6px;border:1px solid #D1D5DB;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 2px #0000000d;min-width:50px}.move-item-percentage.mistake{background:linear-gradient(135deg,#fee2e2,#fecaca);color:#991b1b;border-color:#fca5a5}.move-item-percentage.positive:not(.mistake){background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;border-color:#6ee7b7}.move-item-percentage.mate{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;border-color:#60a5fa;font-weight:800;box-shadow:0 2px 4px #3b82f633}.move-item-icons{display:flex;gap:4px;margin-left:8px;align-items:center;flex-shrink:0}.show-in-explanation-btn{background:none;border:none;padding:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s ease,transform .1s ease}.show-in-explanation-btn:hover{background-color:#eff6ff;transform:scale(1.1)}.show-in-explanation-btn:active{transform:scale(.95)}.move-item-label{font-size:12px;color:#9ca3af;margin-left:4px;font-weight:400;flex-shrink:0}.move-number{font-weight:600;color:#1f2937;min-width:20px}.move-notation{font-weight:600;color:#1f2937;min-width:60px}.move-progress-bar{flex:1;height:6px;background-color:#f3f4f6;border-radius:4px;overflow:hidden;margin:0 8px}.progress-fill{height:100%;background-color:#6b7280;transition:width .3s ease;border-radius:4px}.move-percentage{font-size:15px;color:#1f2937;min-width:50px;text-align:right;font-weight:700;letter-spacing:.02em;padding:4px 10px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb);border-radius:6px;border:1px solid #D1D5DB;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 2px #0000000d}.move-percentage.positive{background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;border-color:#6ee7b7}.move-percentage.negative{background:linear-gradient(135deg,#fee2e2,#fecaca);color:#991b1b;border-color:#fca5a5}.move-percentage.mate{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;border-color:#60a5fa;font-weight:800;box-shadow:0 2px 4px #3b82f633}.highlight-icon{color:#3b82f6;font-size:12px;margin-left:4px;line-height:1}.current-move-feedback{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:#eff6ff;border-radius:8px;margin-bottom:16px;font-size:14px}.move-text{font-weight:500;color:#1f2937}.orange-indicator{width:12px;height:12px;background-color:#f97316;border-radius:2px;flex-shrink:0}.feedback-text{font-weight:600;color:#3b82f6}.action-buttons{display:flex;gap:8px}.action-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;background-color:#f3f4f6;border:1px solid #E5E7EB;border-radius:8px;font-size:12px;color:#1f2937;transition:background-color .15s ease;font-weight:400}.action-btn:hover{background-color:#e5e7eb}.best-moves.checkmate-moves{background:linear-gradient(135deg,#f9fafb,#f3f4f6);border:1px solid #E5E7EB}.checkmate-content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;text-align:center;gap:16px}.checkmate-icon{font-size:64px;font-weight:700;color:#4b5563;line-height:1;margin-bottom:8px}.checkmate-message{display:flex;flex-direction:column;gap:8px}.checkmate-title{font-size:24px;font-weight:700;color:#1f2937;margin:0;letter-spacing:-.02em}.checkmate-winner{font-size:18px;font-weight:600;color:#3b82f6;margin:0}.checkmate-description{font-size:14px;color:#6b7280;margin:0;line-height:1.5;max-width:300px}.best-moves{position:relative}.key-moments-pending-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#ffffffe6;border-radius:12px;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.pending-message{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:500;color:#3b82f6}.pending-spinner{width:16px;height:16px;border:2px solid #E5E7EB;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.pro-waitlist-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .3s ease-out}.pro-waitlist-modal{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:24px;padding:0;max-width:520px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d;position:relative;animation:slideUp .4s cubic-bezier(.16,1,.3,1)}@keyframes slideUp{0%{transform:translateY(30px) scale(.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.pro-waitlist-close{position:absolute;top:20px;right:20px;background:#fff3;border:none;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:all .2s ease;z-index:10}.pro-waitlist-close:hover{background:#ffffff4d;transform:rotate(90deg)}.pro-waitlist-content{padding:48px 40px;color:#fff}.pro-waitlist-header{text-align:center;margin-bottom:32px}.pro-badge{display:inline-flex;align-items:center;gap:6px;background:#ffffff40;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:8px 16px;border-radius:20px;font-size:14px;font-weight:700;letter-spacing:.5px;margin-bottom:20px;border:1px solid rgba(255,255,255,.3)}.pro-badge svg{color:gold}.pro-waitlist-header h2{font-size:32px;font-weight:700;margin:0 0 12px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.2)}.pro-waitlist-subtitle{font-size:16px;color:#ffffffe6;margin:0;line-height:1.5}.pro-features{display:flex;flex-direction:column;gap:20px;margin-bottom:32px}.pro-feature{display:flex;align-items:flex-start;gap:16px;background:#ffffff26;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:20px;border-radius:16px;border:1px solid rgba(255,255,255,.2);transition:transform .2s ease,background .2s ease}.pro-feature:hover{transform:translateY(-2px);background:#fff3}.pro-feature-icon{flex-shrink:0;width:48px;height:48px;background:#ffffff40;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff}.pro-feature-text h3{font-size:18px;font-weight:700;margin:0 0 6px;color:#fff}.pro-feature-text p{font-size:14px;color:#ffffffd9;margin:0;line-height:1.5}.pro-waitlist-form{margin-top:8px}.pro-waitlist-input-group{display:flex;gap:12px;margin-bottom:12px;transition:all .3s ease}.pro-waitlist-input{flex:1;padding:14px 18px;border:2px solid rgba(255,255,255,.3);border-radius:12px;font-size:16px;background:#fffffff2;color:#1f2937;transition:all .3s ease}.pro-waitlist-input-group:has(.pro-waitlist-submit-success) .pro-waitlist-input{opacity:0;width:0;padding:0;margin:0;border:none;overflow:hidden}.pro-waitlist-input:focus{outline:none;border-color:#fff;background:#fff;box-shadow:0 0 0 4px #fff3}.pro-waitlist-input::placeholder{color:#9ca3af}.pro-waitlist-input:disabled{opacity:.6;cursor:not-allowed}.pro-waitlist-submit{padding:14px 28px;background:#fff;color:#667eea;border:none;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 4px 12px #00000026}.pro-waitlist-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #0003}.pro-waitlist-submit:active:not(:disabled){transform:translateY(0)}.pro-waitlist-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}.pro-waitlist-submit-success{background:#10b981;color:#fff;display:flex;align-items:center;gap:8px;animation:successPulse .5s ease-out}@keyframes successPulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.pro-waitlist-submit-success svg{animation:checkmarkIn .4s cubic-bezier(.34,1.56,.64,1)}@keyframes checkmarkIn{0%{transform:scale(0) rotate(-180deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.pro-waitlist-note{font-size:13px;color:#fffc;text-align:center;margin:0;line-height:1.5}.pro-waitlist-success{padding:48px 40px;text-align:center;color:#fff}.success-icon{margin:0 auto 24px;width:80px;height:80px;background:#ffffff40;border-radius:50%;display:flex;align-items:center;justify-content:center;animation:scaleIn .5s cubic-bezier(.34,1.56,.64,1)}@keyframes scaleIn{0%{transform:scale(0)}50%{transform:scale(1.1)}to{transform:scale(1)}}.success-icon svg{color:#10b981;filter:drop-shadow(0 2px 8px rgba(16,185,129,.3))}.pro-waitlist-success h2{font-size:28px;font-weight:700;margin:0 0 12px;color:#fff}.pro-waitlist-success p{font-size:16px;color:#ffffffe6;margin:0 0 32px;line-height:1.5}.pro-waitlist-close-btn{padding:14px 32px;background:#fff;color:#667eea;border:none;border-radius:12px;font-size:16px;font-weight:700;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #00000026}.pro-waitlist-close-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #0003}@media (max-width: 640px){.pro-waitlist-modal{width:95%;border-radius:20px}.pro-waitlist-content{padding:32px 24px}.pro-waitlist-header h2{font-size:24px}.pro-waitlist-input-group{flex-direction:column}.pro-waitlist-submit{width:100%}}.chat-panel{position:fixed;top:64px;right:0;width:400px;height:calc(100vh - 64px);background-color:#fff;border-left:1px solid #E5E7EB;box-shadow:-2px 0 8px #0000001a;display:flex;flex-direction:column;z-index:1000;animation:slideIn .3s ease-out}@keyframes slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}.chat-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #E5E7EB;background-color:#fff}.chat-title{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;color:#1f2937;flex-wrap:wrap}.chat-pro-badge{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:700;letter-spacing:.3px;margin-left:4px;animation:pulse 2s ease-in-out infinite}.chat-pro-badge svg{width:12px;height:12px}@keyframes pulse{0%,to{opacity:1}50%{opacity:.8}}.chat-close{background:none;border:none;cursor:pointer;color:#6b7280;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .15s ease}.chat-close:hover{background-color:#f3f4f6}.chat-content{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.chat-prompt{background-color:#eff6ff;border-radius:8px;padding:12px 16px;display:flex;gap:12px;align-items:flex-start}.prompt-icon{display:flex;gap:4px;flex-shrink:0;margin-top:2px}.prompt-icon svg{color:#3b82f6}.chat-prompt p{font-size:14px;color:#1f2937;margin:0;line-height:1.5}.chat-messages{display:flex;flex-direction:column;gap:16px;flex:1}.chat-message{display:flex;gap:12px;align-items:flex-start}.chat-message.user{flex-direction:row-reverse}.message-avatar{position:relative;flex-shrink:0}.question-mark{position:absolute;bottom:-2px;right:-2px;width:16px;height:16px;background-color:#3b82f6;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;border:2px solid white}.message-bubble{max-width:75%;padding:12px 16px;border-radius:12px}.chat-message.user .message-bubble{background-color:#3b82f6;color:#fff;border-bottom-right-radius:4px}.chat-message.assistant .message-bubble{background-color:#f9fafb;color:#111827;border:1px solid #D1D5DB;border-bottom-left-radius:4px;box-shadow:0 1px 2px #0000000d}.message-text{font-size:14px;line-height:1.6;margin:0 0 8px}.chat-message.assistant .message-text{margin-bottom:12px;color:#111827;font-weight:400}.message-points{margin:12px 0 0;padding-left:20px;padding-top:12px;border-top:1px solid #E5E7EB;font-size:14px;line-height:1.7;color:#374151}.message-points li{margin-bottom:12px}.message-points li:last-child{margin-bottom:0}.message-points strong{font-weight:700;color:#111827;display:block;margin-bottom:4px}.chat-input-section{padding:16px 20px;border-top:1px solid #E5E7EB;background-color:#fff}.chat-input-container{display:flex;gap:8px;margin-bottom:12px}.chat-input{flex:1;padding:10px 16px;border:1px solid #E5E7EB;border-radius:8px;font-size:14px;color:#1f2937;background-color:#fff}.chat-input:focus{outline:none;border-color:#3b82f6}.chat-send{padding:10px 16px;background-color:#3b82f6;color:#fff;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .15s ease}.chat-send:hover{background-color:#2563eb}.suggested-questions{display:flex;flex-wrap:wrap;gap:8px}.suggested-question-btn{padding:6px 12px;background-color:#f3f4f6;border:1px solid #E5E7EB;border-radius:6px;font-size:12px;color:#1f2937;cursor:pointer;transition:background-color .15s ease;font-weight:400}.suggested-question-btn:hover{background-color:#e5e7eb}.deep-analysis-page{min-height:100vh;background-color:#fff}.deep-analysis-content{display:flex;gap:48px;padding:32px 48px;max-width:1600px;margin:0 auto;transition:margin-right .3s ease-out}.deep-analysis-content.chat-open{margin-right:400px}.analysis-main{flex:2;display:flex;flex-direction:column;gap:24px;min-width:0;max-height:calc(100vh - 120px);overflow:hidden}.analysis-header{margin-top:24px}.analysis-title{font-size:28px;font-weight:700;color:#1f2937;margin-bottom:8px;margin-top:0;letter-spacing:-.02em;line-height:1.3}.analysis-subtitle{font-size:14px;color:#6b7280;display:flex;align-items:center;gap:4px;margin:0;font-weight:400}.current-recommended-move{position:sticky;top:0;z-index:10;background-color:#fff;margin-bottom:0;padding:24px 24px 16px;border-bottom:1px solid #E5E7EB;box-shadow:0 4px 6px -1px #0000001a;transition:box-shadow .3s ease;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.current-recommended-move .move-header{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border-radius:20px;font-weight:600;font-size:14px;margin-bottom:8px;background-color:#3b82f6;color:#fff;cursor:pointer;transition:background-color .2s ease,transform .1s ease}.current-recommended-move .move-header:hover{background-color:#2563eb;transform:scale(1.02)}.current-recommended-move .move-notation{color:#fff}.current-recommended-move .evaluation-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#3b82f6;margin-bottom:0;font-weight:400;letter-spacing:.5px}.current-recommended-move .dot{width:4px;height:4px;border-radius:50%;background-color:#3b82f6;display:inline-block}.move-explanations-wrapper{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.move-explanations-container{background-color:#fff;border:1px solid #E5E7EB;border-radius:12px;padding:0;box-shadow:0 1px 3px #0000001a;display:flex;flex-direction:column;gap:0;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;position:relative;scrollbar-width:none;-ms-overflow-style:none;margin-bottom:80px}.move-explanations-container::-webkit-scrollbar{display:none}.move-explanations:before{content:"";position:sticky;top:72px;left:0;right:0;height:50px;background:linear-gradient(to bottom,#fff,#fff 50%,#ffffffe6 70%,#ffffff80,#fff0);pointer-events:none;z-index:8;margin-top:-50px;margin-left:-24px;margin-right:-24px}.move-explanations{display:flex;flex-direction:column;gap:0;position:relative;z-index:1;padding:100px 24px;flex:1;min-height:0}.mistake-header{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:600;color:#1f2937;margin-top:16px;margin-bottom:0}.mistake-number,.mistake-move{color:#1f2937}.review-button{display:flex;align-items:center;gap:8px;padding:12px 32px;background-color:#3b82f6;color:#fff;border-radius:8px;font-size:16px;font-weight:600;transition:background-color .15s ease;align-self:flex-start;margin-top:8px;cursor:pointer;letter-spacing:0}.review-button:hover{background-color:#2563eb}.review-button .rook-icon{font-size:20px;line-height:1}.analysis-sidebar{flex:1;display:flex;flex-direction:column;gap:16px;height:fit-content;min-width:300px}.ask-position-button{display:flex;align-items:center;gap:12px;padding:14px 20px;background-color:#fff;border:2px solid #3B82F6;border-radius:8px;font-size:14px;color:#3b82f6;cursor:pointer;transition:all .2s ease;width:fit-content;justify-content:space-between;font-weight:600;box-shadow:0 2px 8px #3b82f626;position:absolute;bottom:16px;left:24px;z-index:20;margin:0;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.ask-position-button:hover{background-color:#3b82f6;color:#fff;box-shadow:0 4px 6px #3b82f633;transform:translateY(-1px)}.ask-position-button span{white-space:nowrap}.ask-position-button .ask-button-icon{color:inherit;transition:color .2s ease}.chat-overlay{position:fixed;top:64px;left:0;right:0;bottom:0;background-color:#0000001a;z-index:999;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.severity-badge{display:inline-block;padding:4px 8px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.severity-badge[data-severity=blunder]{background-color:#fee2e2;color:#dc2626}.severity-badge[data-severity=mistake]{background-color:#fef3c7;color:#d97706}.severity-badge[data-severity=inaccuracy]{background-color:#dbeafe;color:#2563eb}.severity-badge[data-severity=brilliant]{background-color:#fef3c7;color:#d97706;font-weight:700}.phase-summary-card{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;padding:16px;margin-bottom:16px;color:#fff}.phase-summary-header{font-weight:600;font-size:14px;margin-bottom:8px;text-transform:uppercase;letter-spacing:.5px}.phase-summary-text{font-size:13px;line-height:1.5;opacity:.95}.model-upgrade-indicator{text-align:center;padding:12px;color:#6b7280;font-size:12px;font-style:italic;margin-top:16px}.webllm-loading-indicator{padding:32px 24px;background:linear-gradient(135deg,#f9fafb,#fff);border-radius:12px;border:1px solid #E5E7EB;margin-bottom:24px;box-shadow:0 1px 3px #0000000d}.webllm-loading-content{max-width:500px;margin:0 auto}.webllm-loading-header{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:20px}.webllm-loading-spinner{width:24px;height:24px;border:3px solid #E5E7EB;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.webllm-loading-title{font-size:16px;font-weight:600;color:#1f2937;letter-spacing:-.01em}.webllm-progress-container{margin-bottom:12px}.webllm-progress-bar{width:100%;height:8px;background-color:#e5e7eb;border-radius:4px;overflow:hidden;margin-bottom:8px}.webllm-progress-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#2563eb);border-radius:4px;transition:width .3s ease-out;box-shadow:0 0 8px #3b82f666}.webllm-progress-text{text-align:center;font-size:13px;font-weight:500;color:#6b7280}.webllm-loading-hint{text-align:center;font-size:12px;color:#9ca3af;font-style:italic;margin-top:8px}.move-timeline{background:linear-gradient(135deg,#f9fafb,#fff);border-radius:12px;padding:20px;margin-bottom:24px;border:1px solid #E5E7EB;box-shadow:0 1px 3px #0000000d}.move-timeline-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #E5E7EB;transition:background-color .2s ease;border-radius:4px;padding:8px 12px;margin:-8px -12px 8px}.move-timeline-header:hover{background-color:#f9fafb}.move-timeline-title{font-size:16px;font-weight:600;color:#1f2937;margin:0;letter-spacing:-.01em}.move-timeline-subtitle{font-size:13px;color:#6b7280;font-weight:400}.move-timeline-list{display:flex;flex-wrap:wrap;gap:8px;max-height:200px;overflow-y:auto;padding-right:4px;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:200px}}} .move-timeline-list::-webkit-scrollbar{width:6px}.move-timeline-list::-webkit-scrollbar-track{background:#f3f4f6;border-radius:3px}.move-timeline-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.move-timeline-list::-webkit-scrollbar-thumb:hover{background:#9ca3af}.move-timeline-item{display:flex;align-items:center;gap:8px;padding:8px 12px;background-color:#fff;border:1px solid #E5E7EB;border-radius:8px;font-size:13px;transition:all .2s ease;min-width:120px}.move-timeline-item:hover{background-color:#f9fafb;border-color:#d1d5db;transform:translateY(-1px);box-shadow:0 2px 4px #0000000d}.move-timeline-item.key-moment{background:linear-gradient(135deg,#fef3c7,#fde68a);border-color:#fcd34d;font-weight:600}.move-timeline-item.best{background:linear-gradient(135deg,#d1fae5,#a7f3d0);border-color:#10b981;font-weight:600}.move-timeline-item.key-moment.blunder{background:linear-gradient(135deg,#fee2e2,#fecaca);border-color:#fca5a5}.move-timeline-item.key-moment.highlight{background:linear-gradient(135deg,#dbeafe,#bfdbfe);border-color:#93c5fd}.move-timeline-number{font-weight:600;color:#6b7280;font-size:12px;min-width:24px}.move-timeline-item.key-moment .move-timeline-number{color:#1f2937}.move-timeline-notation{font-weight:500;color:#1f2937;cursor:pointer;padding:2px 6px;border-radius:4px;transition:all .15s ease;white-space:nowrap}.move-timeline-notation:hover{background-color:#3b82f61a;color:#2563eb}.move-timeline-notation.key-move{font-weight:600;color:#111827}.move-timeline-notation.blunder-move{color:#dc2626;font-weight:600}.move-timeline-notation.blunder-move:hover{background-color:#dc26261a;color:#b91c1c}.move-timeline-notation.highlight-move{color:#2563eb;font-weight:600}.move-timeline-notation.highlight-move:hover{background-color:#3b82f626;color:#1d4ed8}.move-timeline-notation.best-move{color:#047857;font-weight:600}.move-timeline-notation.best-move:hover{background-color:#10b9811a;color:#059669}.move-timeline-item.key-moment .move-timeline-notation{color:#111827}.move-timeline-item.best .move-timeline-notation{color:#047857}.move-timeline-badge{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;font-size:12px;font-weight:700;flex-shrink:0}.move-timeline-badge[data-severity=brilliant]{background-color:#3b82f6;color:#fff}.move-timeline-badge[data-severity=blunder]{background-color:#dc2626;color:#fff}.move-timeline-badge[data-severity=mistake]{background-color:#f59e0b;color:#fff}.move-timeline-badge[data-severity=inaccuracy]{background-color:#fcd34d;color:#92400e}.move-timeline-badge[data-severity=best]{background-color:#10b981;color:#fff}.move-timeline-badge[data-severity=key]{background-color:#6b7280;color:#fff}.key-moment-section{display:flex;flex-direction:column;gap:0}.key-moment-move-header{position:relative;display:flex;align-items:center;gap:16px;margin-bottom:24px;padding:20px 24px;border-radius:16px;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 20px #0000001a}.key-moment-move-header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;opacity:.1;background:radial-gradient(circle at 30% 50%,rgba(255,255,255,.3) 0%,transparent 70%);pointer-events:none}.key-moment-move-icon-wrapper{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:#fff3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 2px 8px #0003,inset 0 1px #ffffff4d;flex-shrink:0;z-index:1}.severity-indicator-text{font-size:24px;font-weight:900;color:#fff;line-height:1;text-shadow:0 2px 8px rgba(0,0,0,.3)}.key-moment-move-notation{font-size:32px;font-weight:900;color:#fff;letter-spacing:-.02em;line-height:1.1;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;text-shadow:0 2px 8px rgba(0,0,0,.3),0 0 20px rgba(0,0,0,.2);z-index:1;position:relative;flex:1}.key-moment-move-accent{position:absolute;bottom:0;left:0;width:100%;height:4px;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.4) 50%,transparent 100%);z-index:1}.key-moment-blunder{background:linear-gradient(135deg,#dc2626,#b91c1c,#991b1b);box-shadow:0 8px 32px #dc262666,0 0 0 1px #dc262633}.key-moment-blunder:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 12px 40px #dc262680,0 0 0 1px #dc26264d}.key-moment-mistake{background:linear-gradient(135deg,#f59e0b,#d97706,#b45309);box-shadow:0 8px 32px #f59e0b4d,0 0 0 1px #f59e0b26}.key-moment-mistake:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 12px 40px #f59e0b66,0 0 0 1px #f59e0b33}.key-moment-inaccuracy{background:linear-gradient(135deg,#fcd34d,#fbbf24,#f59e0b);box-shadow:0 8px 32px #fbbf2440,0 0 0 1px #fbbf241a}.key-moment-inaccuracy:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 12px 40px #fbbf244d,0 0 0 1px #fbbf2426}.key-moment-brilliant{background:linear-gradient(135deg,#3b82f6,#2563eb,#1d4ed8);box-shadow:0 8px 32px #3b82f666,0 0 0 1px #3b82f633;animation:pulse-glow 3s ease-in-out infinite}.key-moment-brilliant:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 12px 40px #3b82f699,0 0 0 1px #3b82f64d}@keyframes pulse-glow{0%,to{box-shadow:0 8px 32px #3b82f666,0 0 0 1px #3b82f633}50%{box-shadow:0 8px 32px #3b82f699,0 0 20px #3b82f64d}}.key-moment-best{background:linear-gradient(135deg,#10b981,#059669,#047857);box-shadow:0 8px 32px #10b9814d,0 0 0 1px #10b98126}.key-moment-best:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 12px 40px #10b98166,0 0 0 1px #10b98133}.key-moment-key{background:linear-gradient(135deg,#64748b,#475569,#334155);box-shadow:0 8px 32px #64748b33,0 0 0 1px #64748b1a}.key-moment-key:hover{transform:translateY(-2px) scale(1.01);box-shadow:0 12px 40px #64748b4d,0 0 0 1px #64748b26}.explanation-card{background-color:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0000000f;position:relative;display:flex;gap:20px;border:1px solid #F3F4F6;transition:all .3s ease;will-change:transform,opacity;margin-top:4px}.explanation-card:hover{box-shadow:0 4px 12px #0000001a;border-color:#e5e7eb}.explanation-icon{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.queen-icon{font-size:32px;line-height:1;color:#1f2937}.bishop-icon{width:24px;height:24px;border:2px solid #1F2937;border-radius:2px;background-color:transparent}.explanation-content{flex:1}.explanation-heading{font-size:17px;font-weight:600;color:#111827;line-height:1.5;margin:0 0 16px;letter-spacing:-.015em;padding-bottom:16px;border-bottom:2px solid #F3F4F6;position:relative}.explanation-heading:after{content:"";position:absolute;bottom:-2px;left:0;width:60px;height:2px;background:linear-gradient(90deg,#3B82F6 0%,transparent 100%)}.explanation-text{color:#4b5563;font-size:15px;line-height:1.75;margin:0;padding-top:8px}.blunder-card .explanation-heading{color:#dc2626;border-bottom-color:#fee2e2}.blunder-card .explanation-heading:after{background:linear-gradient(90deg,#DC2626 0%,transparent 100%)}.blunder-card .explanation-text{color:#6b7280}.error-card .explanation-heading{color:#d97706;border-bottom-color:#fef3c7}.error-card .explanation-heading:after{background:linear-gradient(90deg,#F59E0B 0%,transparent 100%)}.error-card .explanation-text{color:#6b7280}.best-moves-explanation-card{background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #BFDBFE;border-radius:12px;padding:20px;box-shadow:0 2px 8px #3b82f61a;transition:transform .2s ease,box-shadow .2s ease}.best-moves-explanation-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3b82f626}.best-moves-explanation-header{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.best-moves-explanation-icon{flex-shrink:0;width:40px;height:40px;background:linear-gradient(135deg,#3b82f6,#2563eb);border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #3b82f633}.best-moves-explanation-title{flex:1}.best-moves-explanation-title-text{font-size:18px;font-weight:700;color:#1e40af;margin:0 0 4px;letter-spacing:-.01em}.best-moves-explanation-subtitle{font-size:12px;color:#60a5fa;margin:0;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.best-moves-explanation-content{display:flex;flex-direction:column;gap:12px}.best-moves-sequence{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;background-color:#fff;border-radius:8px;border:1px solid #DBEAFE}.best-move-item{display:flex;align-items:center;gap:8px}.best-move-notation{font-size:16px;font-weight:700;color:#1e40af;background:linear-gradient(135deg,#dbeafe,#bfdbfe);padding:6px 12px;border-radius:6px;border:1px solid #93C5FD;letter-spacing:.02em;box-shadow:0 1px 2px #3b82f61a;transition:all .2s ease}.best-move-notation:hover{background:linear-gradient(135deg,#bfdbfe,#93c5fd);transform:scale(1.05);box-shadow:0 2px 4px #3b82f633}.best-move-arrow{color:#60a5fa;font-size:18px;font-weight:600;margin:0 4px}.best-moves-meta{display:flex;align-items:center;gap:12px;padding-top:8px;border-top:1px solid #BFDBFE}.best-moves-score{font-size:14px;font-weight:700;color:#1e40af;background-color:#fff;padding:4px 10px;border-radius:6px;border:1px solid #93C5FD;letter-spacing:.02em}.best-moves-count{font-size:12px;color:#60a5fa;font-weight:500}.best-moves-explanation-text{margin-top:16px;padding-top:16px;border-top:1px solid #BFDBFE}.best-moves-explanation-text p{color:#1e40af;font-size:15px;line-height:1.7;margin:0;font-weight:400}.best-moves-explanation-text.loading{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px}.best-moves-explanation-text.loading p{color:#60a5fa;font-size:14px;font-style:italic}.explanation-loading{display:flex;gap:6px;align-items:center}.loading-dot{width:8px;height:8px;background-color:#3b82f6;border-radius:50%;animation:loadingBounce 1.4s infinite ease-in-out}.loading-dot:nth-child(1){animation-delay:-.32s}.loading-dot:nth-child(2){animation-delay:-.16s}.loading-dot:nth-child(3){animation-delay:0s}@keyframes loadingBounce{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1.2);opacity:1}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff;color:#1f2937;line-height:1.5}#root{min-height:100vh}button{font-family:inherit;cursor:pointer;border:none;outline:none}input,textarea{font-family:inherit;outline:none}a{text-decoration:none;color:inherit}
