:root{--bg: #060b10;--card: #111925;--panel: #151f2d;--accent: #4f7cff;--text: #e4ebf7;--text-muted: #97a3bb;--text-strong: #f5f7ff;--chip-bg: rgba(255, 255, 255, .08);--chip-text: #d7e2ff;--border: rgba(255, 255, 255, .08);--grade-great: #2ecc71;--grade-good: #27ae60;--grade-inaccurate: #f1c40f;--grade-mistake: #e67e22;--grade-blunder: #e74c3c;font-family:Inter,SF Pro Display,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:var(--text);background-color:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top,#18253a,#05070b 60%)}#root{min-height:100vh}.board-panel{display:flex;flex-direction:column;gap:.75rem}.board-wrapper{width:min(520px,90vw);margin:0 auto}.board-wrapper #player-board{width:100%!important;height:auto!important}.status-chip{align-self:flex-start;background:var(--chip-bg);color:var(--chip-text);padding:.25rem .75rem;border-radius:999px;font-size:.9rem}.game-result{font-weight:600;text-align:center;color:var(--text-strong)}.app-shell{max-width:1200px;margin:0 auto;padding:2rem}.app-header{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}.app-header h1{margin:0;font-size:2rem}.subtitle{margin:.2rem 0 0;color:var(--text-muted)}.support-note{margin:.2rem 0 0;font-size:.85rem;color:var(--text-muted)}.support-note a{color:var(--accent)}.controls-panel{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.select-label{display:flex;flex-direction:column;font-size:.85rem;color:var(--text-muted)}.control-hint{font-size:.8rem;color:var(--text-muted);margin-top:.2rem}.control-select{margin-top:.25rem;min-width:180px;padding:.4rem .6rem;border-radius:8px;border:1px solid var(--border);background:var(--panel);color:var(--text)}.primary-btn{background:var(--accent);color:#fff;border:none;border-radius:999px;padding:.45rem 1.4rem;font-weight:600;cursor:pointer;transition:opacity .2s ease}.primary-btn:disabled{opacity:.5;cursor:not-allowed}.secondary-btn{background:transparent;color:var(--text);border:1px solid var(--border);border-radius:999px;padding:.4rem 1.2rem;font-weight:500;cursor:pointer;transition:color .2s ease,border-color .2s ease}.secondary-btn:disabled{opacity:.4;cursor:not-allowed}.danger-btn{background:#e74c3c26;color:var(--grade-blunder);border:1px solid rgba(231,76,60,.6);border-radius:999px;padding:.4rem 1.2rem;font-weight:600;cursor:pointer}.danger-btn:disabled{opacity:.4;cursor:not-allowed}.engine-status{font-size:.9rem;color:var(--text-muted)}.board-layout{display:flex;flex-direction:column;gap:1.5rem}.board-section,.evaluation-section,.move-section,.summary-section,.insights-section,.lesson-section,.training-section{display:contents}.board-section>*,.evaluation-section>*,.move-section>*,.summary-section>*,.insights-section>*,.lesson-section>*,.training-section>*{width:100%}.move-list{margin-top:1rem;background:var(--panel);border-radius:16px;padding:1rem;box-shadow:0 20px 40px #00000040}.move-list-header,.move-row{display:grid;grid-template-columns:40px 1fr 1fr;gap:.5rem;font-size:.95rem}.move-list-header{font-weight:600;color:var(--text-muted);border-bottom:1px solid var(--border);padding-bottom:.4rem;margin-bottom:.4rem}.move-list-body{max-height:240px;overflow-y:auto}.move-row{padding:.25rem 0;border-bottom:1px solid rgba(255,255,255,.04)}.evaluation-panel{display:flex;flex-direction:column;gap:1rem}.api-key-card{background:var(--panel);border-radius:16px;padding:1rem;box-shadow:0 10px 30px #00000040;width:100%;max-width:420px}.game-summary-card{background:var(--panel);border-radius:16px;padding:1rem;box-shadow:0 10px 30px #00000040;margin-top:1rem}.game-summary-card h3{margin:.2rem 0}.game-summary-card ul{padding-left:1.1rem;margin:.5rem 0 0}.long-term-insights{background:var(--panel);border-radius:16px;padding:1rem;box-shadow:0 10px 30px #00000040;margin-top:1rem}.long-term-insights section{margin-top:1rem}.long-term-insights ul{padding-left:1.1rem;margin:.5rem 0 0}.practice-ideas-list{list-style:none;padding-left:0;margin:0}.practice-ideas-list li{display:flex;justify-content:space-between;align-items:center;background:#ffffff0a;border-radius:10px;padding:.5rem .75rem;margin-bottom:.4rem}.practice-ideas-list span{color:var(--text-muted);font-size:.85rem}.lesson-panel{background:var(--panel);border-radius:16px;padding:1rem;box-shadow:0 10px 30px #00000040;margin-top:1rem}.panel-header{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}.lesson-body ul{margin:.4rem 0 .8rem;padding-left:1.2rem}.lesson-body ul li{margin-bottom:.4rem}.muted.small{font-size:.8rem}.lesson-scenarios ul{list-style:none;padding-left:0;margin:.5rem 0 0;display:flex;flex-direction:column;gap:.5rem}.lesson-scenarios li{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#ffffff0a;border-radius:10px;padding:.6rem .8rem}.training-panel{background:var(--panel);border-radius:16px;padding:1rem;box-shadow:0 10px 30px #00000040;margin-top:1rem}.training-actions{display:flex;gap:.5rem}.elo-sparkline{width:100%;height:60px;margin:.4rem 0 .2rem}.elo-sparkline polyline{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-up{color:#7ed957;font-weight:600}.trend-down{color:#ff6b6b;font-weight:600}.api-key-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.api-key-editor{margin-top:.75rem;display:flex;flex-direction:column;gap:.5rem}.api-key-input{width:100%;padding:.5rem .75rem;border-radius:8px;border:1px solid var(--border);background:var(--card);color:var(--text)}.api-key-hint{margin:0;font-size:.85rem;color:var(--text-muted)}.api-key-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.text-btn{background:none;border:none;color:var(--accent);cursor:pointer;padding:.25rem .5rem}.error-text{color:var(--grade-blunder);font-size:.85rem;margin:0}.panel-card{background:var(--panel);border-radius:16px;padding:1.25rem;box-shadow:0 20px 40px #00000059}.panel-label{font-size:.85rem;color:var(--text-muted);margin-bottom:.25rem}.eval-value{font-size:2rem;font-weight:600}.engine-status-note{margin-top:.5rem;color:var(--text-muted)}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.panel-title{margin:0}.grade-chip{padding:.45rem .9rem;border-radius:999px;font-weight:600;text-transform:uppercase;font-size:.85rem}.grade-great{background:#2ecc711a;color:var(--grade-great)}.grade-good{background:#27ae601a;color:var(--grade-good)}.grade-inaccurate{background:#f1c40f26;color:var(--grade-inaccurate)}.grade-mistake{background:#e67e2226;color:var(--grade-mistake)}.grade-blunder{background:#e74c3c26;color:var(--grade-blunder)}.feedback-body{display:flex;flex-direction:column;gap:.75rem}.short-label{font-weight:600}.explanation{color:var(--text-muted);margin:0}.score-change{font-size:.9rem;color:var(--text-muted)}.better-moves h3,.principles h3,.principle-resources h3{margin:0;font-size:.95rem;color:var(--text-muted)}.better-moves ul{list-style:none;padding:0;margin:.4rem 0 0;display:flex;flex-direction:column;gap:.35rem}.better-moves li{display:flex;flex-direction:column;background:#ffffff08;padding:.5rem .75rem;border-radius:10px;gap:.2rem}.better-moves strong{font-size:.95rem}.principle-tags{margin-top:.35rem;display:flex;flex-wrap:wrap;gap:.4rem}.principle-tag{background:#ffffff12;padding:.3rem .7rem;border-radius:999px;font-size:.85rem}.principle-resources ul{list-style:none;padding:0;margin:.4rem 0 0;display:flex;flex-direction:column;gap:.45rem}.principle-resources li{display:flex;flex-direction:column;gap:.1rem}.principle-resources a{color:var(--accent);text-decoration:none;font-weight:600}.principle-resources a:hover{text-decoration:underline}.principle-resources span{color:var(--text-muted);font-size:.85rem}.loader{display:flex;align-items:center;gap:.75rem}.spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-callout{border:1px solid rgba(231,76,60,.6);padding:.5rem .75rem;border-radius:10px}.muted{color:var(--text-muted)}@media(max-width:768px){.app-shell{padding:1.5rem 1rem}}@media(min-width:960px){.board-layout{display:grid;grid-template-columns:minmax(320px,640px) minmax(260px,1fr);gap:2rem;align-items:start}.board-section{grid-column:1;grid-row:1}.evaluation-section{grid-column:2;grid-row:1 / span 3}.move-section{grid-column:1;grid-row:2}.summary-section{grid-column:1;grid-row:3}.insights-section{grid-column:1;grid-row:4}.lesson-section{grid-column:1;grid-row:5}.training-section{grid-column:1 / span 2;grid-row:6}}
