.cm-chessboard .board.input-enabled .square{cursor:pointer}.cm-chessboard .coordinates,.cm-chessboard .markers-layer,.cm-chessboard .pieces-layer,.cm-chessboard .markers-top-layer{pointer-events:none}.cm-chessboard-content .list-inline{padding-left:0;list-style:none}.cm-chessboard-content .list-inline-item{display:inline-block}.cm-chessboard-content .list-inline-item:not(:last-child){margin-right:1rem}.cm-chessboard-accessibility.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden}.cm-chessboard-accessibility button:disabled,.cm-chessboard-accessibility button:disabled:hover{opacity:.5;cursor:not-allowed;pointer-events:none}.cm-chessboard.default .board .square.white{fill:#ecdab9}.cm-chessboard.default .board .square.black{fill:#c5a076}.cm-chessboard.default.border-type-thin .board .border{stroke:#c5a076;stroke-width:.7%;fill:#c5a076}.cm-chessboard.default.border-type-none .board .border{stroke:#c5a076;stroke-width:0;fill:#c5a076}.cm-chessboard.default.border-type-frame .board .border{fill:#ecdab9;stroke:none}.cm-chessboard.default.border-type-frame .board .border-inner{fill:#c5a076;stroke:#c5a076;stroke-width:.7%}.cm-chessboard.default .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.default .coordinates .coordinate{fill:#b5936d;cursor:default;font-size:7px}.cm-chessboard.default .coordinates .coordinate.black{fill:#eeddbf}.cm-chessboard.default .coordinates .coordinate.white{fill:#b5936d}.cm-chessboard.default-contrast .board .square.white{fill:#ecdab9}.cm-chessboard.default-contrast .board .square.black{fill:#c5a076}.cm-chessboard.default-contrast.border-type-thin .board .border{stroke:#c5a076;stroke-width:.7%;fill:#c5a076}.cm-chessboard.default-contrast.border-type-none .board .border{stroke:#c5a076;stroke-width:0;fill:#c5a076}.cm-chessboard.default-contrast.border-type-frame .board .border{fill:#ecdab9;stroke:none}.cm-chessboard.default-contrast.border-type-frame .board .border-inner{fill:#c5a076;stroke:#c5a076;stroke-width:.7%}.cm-chessboard.default-contrast .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.default-contrast .coordinates .coordinate{fill:#b5936d;cursor:default;font-size:7px}.cm-chessboard.default-contrast .coordinates .coordinate.black,.cm-chessboard.default-contrast .coordinates .coordinate.white{fill:#333}.cm-chessboard.green .board .square.white{fill:#e0ddcc}.cm-chessboard.green .board .square.black{fill:#4c946a}.cm-chessboard.green.border-type-thin .board .border{stroke:#4c946a;stroke-width:.7%;fill:#4c946a}.cm-chessboard.green.border-type-none .board .border{stroke:#4c946a;stroke-width:0;fill:#4c946a}.cm-chessboard.green.border-type-frame .board .border{fill:#e0ddcc;stroke:none}.cm-chessboard.green.border-type-frame .board .border-inner{fill:#4c946a;stroke:#4c946a;stroke-width:.7%}.cm-chessboard.green .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.green .coordinates .coordinate{fill:#468862;cursor:default;font-size:7px}.cm-chessboard.green .coordinates .coordinate.black{fill:#e2e0d0}.cm-chessboard.green .coordinates .coordinate.white{fill:#468862}.cm-chessboard.blue .board .square.white{fill:#d8ecfb}.cm-chessboard.blue .board .square.black{fill:#86afcf}.cm-chessboard.blue.border-type-thin .board .border{stroke:#86afcf;stroke-width:.7%;fill:#86afcf}.cm-chessboard.blue.border-type-none .board .border{stroke:#86afcf;stroke-width:0;fill:#86afcf}.cm-chessboard.blue.border-type-frame .board .border{fill:#d8ecfb;stroke:none}.cm-chessboard.blue.border-type-frame .board .border-inner{fill:#86afcf;stroke:#86afcf;stroke-width:.7%}.cm-chessboard.blue .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.blue .coordinates .coordinate{fill:#7ba1be;cursor:default;font-size:7px}.cm-chessboard.blue .coordinates .coordinate.black{fill:#dbeefb}.cm-chessboard.blue .coordinates .coordinate.white{fill:#7ba1be}.cm-chessboard.chess-club .board .square.white{fill:#e6d3b1}.cm-chessboard.chess-club .board .square.black{fill:#af6b3f}.cm-chessboard.chess-club.border-type-thin .board .border{stroke:#692e2b;stroke-width:.7%;fill:#af6b3f}.cm-chessboard.chess-club.border-type-none .board .border{stroke:#692e2b;stroke-width:0;fill:#af6b3f}.cm-chessboard.chess-club.border-type-frame .board .border{fill:#692e2b;stroke:none}.cm-chessboard.chess-club.border-type-frame .board .border-inner{fill:#af6b3f;stroke:#692e2b;stroke-width:.7%}.cm-chessboard.chess-club .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.chess-club .coordinates .coordinate{fill:#e6d3b1;cursor:default;font-size:7px}.cm-chessboard.chess-club .coordinates .coordinate.black{fill:#e6d3b1}.cm-chessboard.chess-club .coordinates .coordinate.white{fill:#af6b3f}.cm-chessboard.chessboard-js .board .square.white{fill:#f0d9b5}.cm-chessboard.chessboard-js .board .square.black{fill:#b58863}.cm-chessboard.chessboard-js.border-type-thin .board .border{stroke:#404040;stroke-width:.7%;fill:#b58863}.cm-chessboard.chessboard-js.border-type-none .board .border{stroke:#404040;stroke-width:0;fill:#b58863}.cm-chessboard.chessboard-js.border-type-frame .board .border{fill:#f0d9b5;stroke:none}.cm-chessboard.chessboard-js.border-type-frame .board .border-inner{fill:#b58863;stroke:#404040;stroke-width:.7%}.cm-chessboard.chessboard-js .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.chessboard-js .coordinates .coordinate{fill:#404040;cursor:default;font-size:7px}.cm-chessboard.chessboard-js .coordinates .coordinate.black{fill:#f0d9b5}.cm-chessboard.chessboard-js .coordinates .coordinate.white{fill:#b58863}.cm-chessboard.black-and-white .board .square.white{fill:#fff}.cm-chessboard.black-and-white .board .square.black{fill:#9c9c9c}.cm-chessboard.black-and-white.border-type-thin .board .border{stroke:#9c9c9c;stroke-width:.7%;fill:#9c9c9c}.cm-chessboard.black-and-white.border-type-none .board .border{stroke:#9c9c9c;stroke-width:0;fill:#9c9c9c}.cm-chessboard.black-and-white.border-type-frame .board .border{fill:#fff;stroke:none}.cm-chessboard.black-and-white.border-type-frame .board .border-inner{fill:#9c9c9c;stroke:#9c9c9c;stroke-width:.7%}.cm-chessboard.black-and-white .coordinates{pointer-events:none;-webkit-user-select:none;user-select:none}.cm-chessboard.black-and-white .coordinates .coordinate{fill:#909090;cursor:default;font-size:7px}.cm-chessboard.black-and-white .coordinates .coordinate.black{fill:#fff}.cm-chessboard.black-and-white .coordinates .coordinate.white{fill:#909090}.cm-chessboard .keyboard-focus-indicator .keyboard-focus{fill:none;stroke:#06c;stroke-width:3px;pointer-events:none}.cm-chessboard .keyboard-focus-indicator .keyboard-from-square{fill:#0066cc4d;stroke:#06c;stroke-width:2px;pointer-events:none}.cm-chessboard:focus{outline-offset:2px;outline:2px solid #06c}.cm-chessboard .markers{pointer-events:none}.cm-chessboard .markers .marker.marker-frame{stroke:#000;stroke-width:1.8px;opacity:.5}.cm-chessboard .markers .marker.marker-frame-primary,.cm-chessboard .markers .marker.marker-frame-info{stroke:#00f;stroke-width:1.8px;opacity:.4}.cm-chessboard .markers .marker.marker-frame-danger{stroke:red;stroke-width:1.8px;opacity:.4}.cm-chessboard .markers .marker.marker-frame-warning{stroke:orange;stroke-width:1.8px;opacity:.4}.cm-chessboard .markers .marker.marker-circle{stroke:#000;stroke-width:3px;opacity:.3}.cm-chessboard .markers .marker.marker-circle-primary,.cm-chessboard .markers .marker.marker-circle-info{stroke:#00f;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-info-filled{stroke:#00f;fill:#00f;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-danger{stroke:red;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-danger-filled{stroke:red;fill:red;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-warning{stroke:orange;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-warning-filled{stroke:orange;fill:orange;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-success{stroke:green;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-circle-success-filled{stroke:green;fill:green;stroke-width:3px;opacity:.4}.cm-chessboard .markers .marker.marker-square{fill:#000;opacity:.11}.cm-chessboard .markers .marker.marker-dot,.cm-chessboard .markers .marker.marker-bevel{fill:#000;opacity:.2}svg.cm-chessboard .promotion-dialog-group rect,svg.cm-chessboard .promotion-dialog-group g[data-piece]{animation:.25s ease-in fade-in}svg.cm-chessboard .promotion-dialog-group .promotion-dialog{fill:#fff;fill-opacity:.7;stroke:#0006}svg.cm-chessboard .promotion-dialog-group .promotion-dialog-button-group{outline:none}svg.cm-chessboard .promotion-dialog-group .promotion-dialog-button-group:focus .promotion-dialog-button{stroke:#0000004d;stroke-width:1px}svg.cm-chessboard .promotion-dialog-group .promotion-dialog-button{fill:#0000;cursor:pointer;outline:none}svg.cm-chessboard .promotion-dialog-group .promotion-dialog-button:hover{fill:#0003}svg.cm-chessboard .promotion-dialog-group .piece{pointer-events:none}@keyframes fade-in{0%{opacity:0}to{opacity:1}}:root{--bg-color:#f7f5ef;--panel-bg:#fff;--text-color:#262420;--muted-color:#736d62;--accent-color:#b58d3d;--accent-light:#f9f6ee;--accent-hover:#96742e;--border-color:#e5e0d3;--success-color:#2e602e;--success-bg:#ecf5ec;--error-color:#9c2a2a;--error-bg:#fdf2f2;--info-bg:#f0f4f8;--info-color:#2b4c7e;--font-sans:"Inter", system-ui, -apple-system, sans-serif;--font-header:"Outfit", var(--font-sans);--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-color);color:var(--text-color);font-family:var(--font-sans);min-height:100vh;padding:1.5rem 1rem;line-height:1.5;transition:padding .2s}#app{background-color:var(--panel-bg);border:1px solid var(--border-color);border-radius:12px;width:100%;max-width:1200px;margin:0 auto;transition:border-radius .2s,border .2s;overflow:hidden;box-shadow:0 12px 40px #2624200f}.mono{font-family:var(--font-mono)}.top-bar{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.top-bar h1{font-family:var(--font-header);letter-spacing:-.02em;font-size:1.35rem;font-weight:800}.tabs{gap:.5rem;display:flex}.tab-btn{font-family:var(--font-sans);border:1px solid var(--border-color);background:var(--panel-bg);color:var(--text-color);cursor:pointer;border-radius:999px;padding:.45rem 1.1rem;font-size:.9rem;font-weight:500;transition:all .2s}.tab-btn:hover:not(.active){border-color:var(--accent-color);background:var(--accent-light)}.tab-btn.active{background:var(--accent-color);border-color:var(--accent-color);color:#fff}.view{padding:1.25rem 1.5rem 1.75rem;display:none}.view.active{display:block}.top-controls{border-bottom:1px solid var(--border-color);flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1.25rem;padding-bottom:1.25rem;transition:all .2s;display:flex}.control-group{color:var(--muted-color);align-items:center;gap:.5rem;font-size:.9rem;font-weight:500;display:flex}.select{border:1px solid var(--border-color);color:var(--text-color);cursor:pointer;background:#fff;border-radius:8px;outline:none;padding:.4rem .75rem;font-family:inherit;font-size:.9rem;transition:border-color .2s}.select:focus{border-color:var(--accent-color)}.mode-group{gap:.4rem}.radio-pill{border:1px solid var(--border-color);cursor:pointer;color:var(--text-color);background:#fff;border-radius:999px;align-items:center;gap:.35rem;padding:.35rem .85rem;font-size:.85rem;font-weight:500;transition:all .2s;display:inline-flex}.radio-pill:hover:not(:has(input:checked)){border-color:var(--accent-color);background:#fdfcfa}.radio-pill:has(input:checked){border-color:var(--accent-color);background:var(--accent-light);color:var(--accent-hover);font-weight:600}.radio-pill input{accent-color:var(--accent-color);cursor:pointer}.stats-badge{font-family:var(--font-mono);color:var(--accent-hover);background:var(--accent-light);border:1px solid var(--border-color);border-radius:999px;margin-left:auto;padding:.35rem .95rem;font-size:.85rem;font-weight:600}.btn{border:1px solid var(--border-color);cursor:pointer;color:var(--text-color);background:#fff;border-radius:8px;padding:.5rem 1rem;font-family:inherit;font-size:.85rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 2px #0000000a}.btn:hover:not(:disabled){border-color:var(--accent-color);transform:translateY(-1px);box-shadow:0 4px 10px #b58d3d14}.btn:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 2px #0000000a}.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none!important;transform:none!important}.btn-primary{background:var(--accent-color);border-color:var(--accent-color);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-secondary{background:var(--accent-light);color:var(--accent-hover);border-color:var(--border-color)}.btn-secondary:hover:not(:disabled){background:#fdfbfa}.trainer-main{align-items:flex-start;gap:1.5rem;display:flex}.board-area{flex:480px;max-width:560px}.board{aspect-ratio:1;width:100%}.side-panel{flex-direction:column;flex:320px;gap:.9rem;min-width:280px;display:flex}.panel-block{flex-direction:column;gap:.3rem;display:flex}.repertoire-name{font-family:var(--font-header);letter-spacing:-.01em;font-size:1.15rem;font-weight:800}.turn-indicator{color:var(--muted-color);font-size:.9rem}.panel-title{font-family:var(--font-header);text-transform:uppercase;letter-spacing:.08em;color:var(--muted-color);font-size:.8rem;font-weight:700}.comment-box{background:var(--accent-light);border:1px solid var(--border-color);border-radius:8px;padding:.7rem .9rem;font-size:.9rem;line-height:1.5}.feedback-box{border:1px solid var(--border-color);border-radius:8px;padding:.7rem .9rem;font-size:.9rem;line-height:1.5}.feedback-box p+p{margin-top:.4rem}.feedback-error{background:var(--error-bg);border-color:var(--error-color);color:var(--error-color)}.feedback-success{background:var(--success-bg);border-color:var(--success-color);color:var(--success-color)}.feedback-info{background:var(--info-bg);border-color:var(--info-color);color:var(--info-color)}.controls{flex-wrap:wrap;gap:.5rem;display:flex}.move-list-block{flex:1;min-height:0}.move-list{border:1px solid var(--border-color);background:#fff;border-radius:8px;flex-direction:column;gap:.25rem;max-height:220px;padding:.5rem;font-size:.9rem;list-style:none;display:flex;overflow-y:auto}.move-row{gap:.5rem;display:flex}.move-number{color:var(--muted-color);min-width:2.2rem}.move-san{border-radius:4px;padding:.05rem .35rem}.move-san.current{background:var(--accent-color);color:#fff;font-weight:600}.games-layout{align-items:flex-start;gap:1.5rem;display:flex}.games-list-block{flex-direction:column;flex:0 0 240px;gap:.4rem;display:flex}.games-list{flex-direction:column;gap:.35rem;list-style:none;display:flex}.game-list-item{text-align:left;border:1px solid var(--border-color);width:100%;color:var(--text-color);cursor:pointer;background:#fff;border-radius:8px;padding:.6rem .85rem;font-family:inherit;font-size:.9rem;transition:all .2s}.game-list-item:hover:not(.active){border-color:var(--accent-color);background:#fdfcfa}.game-list-item.active{border-color:var(--accent-color);background:var(--accent-light);color:var(--accent-hover);font-weight:600}.games-viewer{flex-direction:column;flex:480px;gap:.75rem;max-width:560px;transition:all .2s;display:flex}.games-controls{align-items:center;gap:.75rem;display:flex}.boot-error,.degraded-banner{background:var(--error-bg);border:1px solid var(--error-color);color:var(--error-color);border-radius:8px;margin:1.25rem 1.5rem;padding:1rem 1.25rem}.degraded-banner ul{margin:.4rem 0 0 1.2rem}@media (width<=860px){.trainer-main,.games-layout{flex-direction:column;gap:1.25rem}.board-area{width:100%;max-width:none}.games-viewer{order:1;width:100%;max-width:none}.games-list-block{flex:none;order:2;width:100%}.stats-badge{margin-left:0}}@media (width<=768px){body{background-color:var(--panel-bg);padding:0}#app{box-shadow:none;border:none;border-radius:0}.top-bar{padding:.85rem 1rem}.top-bar h1{font-size:1.15rem}.tab-btn{padding:.35rem .85rem;font-size:.85rem}.view{padding:.75rem .75rem 1.25rem}.board-area{width:calc(100% + 1.5rem);max-width:none;margin-left:-.75rem;margin-right:-.75rem}.games-viewer #games-board{width:calc(100% + 1.5rem);margin-left:-.75rem;margin-right:-.75rem}.games-viewer #games-comment{margin-left:0;margin-right:0}.games-controls{padding:0}.top-controls{flex-direction:column;align-items:stretch;gap:.75rem;margin-bottom:.75rem;padding-bottom:.75rem;display:flex}.top-controls .control-group{justify-content:space-between;width:100%}.top-controls .select{flex-grow:1;max-width:65%}.top-controls .mode-group{justify-content:space-between;align-items:center;display:flex}.top-controls .mode-group>span{margin-right:auto}.top-controls .radio-pill{padding:.35rem .7rem;font-size:.8rem}.top-controls .stats-badge{text-align:center;width:100%;margin-left:0;padding:.4rem}.top-controls #start-btn{width:100%;padding:.6rem;font-size:.95rem}.controls{grid-template-columns:repeat(6,1fr);gap:.5rem;width:100%;display:grid}#hint-btn,#solution-btn{grid-column:span 3;padding:.75rem .5rem;font-size:.9rem}#takeback-btn,#skip-btn,#restart-btn{grid-column:span 2;padding:.75rem .3rem;font-size:.85rem}#next-line-btn{grid-column:span 6;width:100%;padding:.85rem;font-size:1rem}#learn-controls{grid-template-columns:repeat(3,1fr);gap:.5rem;width:100%;display:grid}#learn-prev-btn,#learn-next-btn,#learn-restart-btn{width:100%;padding:.75rem .5rem;font-size:.9rem}.games-controls{grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;width:100%;display:grid}#games-prev,#games-next{text-align:center;width:100%;padding:.75rem;font-size:.9rem}#games-counter{text-align:center;font-weight:600}#play-takeback-btn,#play-resign-btn,#play-reset-btn{grid-column:span 2;width:100%;padding:.75rem .3rem;font-size:.85rem}#play-download-pgn-btn,#play-analyze-lichess-btn{grid-column:span 3;width:100%;padding:.75rem .3rem;font-size:.85rem}#games-play-bot-btn{text-align:center;grid-column:span 3;width:100%;margin-top:.25rem;padding:.75rem;font-size:.9rem}.move-list{max-height:160px}}.cm-chessboard .markers .marker.marker-frame-danger{animation:1.8s ease-in-out infinite check-pulse;stroke:#ff3b30!important;stroke-width:2.5px!important;opacity:.9!important;filter:drop-shadow(0 0 4px #ff3b30cc)!important}@keyframes check-pulse{0%,to{opacity:.7;filter:drop-shadow(0 0 2px #ff3b3080)}50%{opacity:1;filter:drop-shadow(0 0 6px #ff3b30f2)}}
