.cg-wrap{box-sizing:content-box;display:block;position:relative}cg-container{width:100%;height:100%;display:block;position:absolute;top:0}cg-board{-webkit-user-select:none;user-select:none;background-size:cover;width:100%;height:100%;line-height:0;position:absolute;top:0;left:0}cg-board square{pointer-events:none;width:12.5%;height:12.5%;position:absolute;top:0;left:0}cg-board square.move-dest{pointer-events:auto}cg-board square.last-move{will-change:transform}.cg-wrap piece{z-index:2;will-change:transform;pointer-events:none;cursor:grab;background-size:cover;width:12.5%;height:12.5%;position:absolute;top:0;left:0}cg-board piece.dragging{cursor:grabbing;z-index:11!important}piece.anim{z-index:8}piece.fading{z-index:1;opacity:.5}.cg-wrap piece.ghost{opacity:0}.cg-wrap piece svg{pointer-events:none;z-index:2;opacity:.6;width:100%;height:100%;position:relative;top:0;left:0;overflow:hidden}.cg-wrap cg-auto-pieces,.cg-wrap .cg-shapes,.cg-wrap .cg-custom-svgs{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:visible}.cg-wrap cg-auto-pieces{z-index:2}.cg-wrap cg-auto-pieces piece{opacity:.3}.cg-wrap .cg-shapes{opacity:.6;z-index:2;overflow:hidden}.cg-wrap .cg-custom-svgs{z-index:9}.cg-wrap .cg-custom-svgs svg{overflow:visible}.cg-wrap coords{pointer-events:none;opacity:1;font-family:sans-serif;font-size:1rem;font-weight:700;display:flex;position:absolute}.cg-wrap coords.squares{text-align:right;flex-flow:column-reverse;width:12.5%;height:100%;font-size:.9rem;bottom:0;left:0}.cg-wrap coords.squares.black{flex-flow:column}.cg-wrap coords.squares.left{text-align:left}.cg-wrap coords.squares coord{padding:6% 4%}.cg-wrap coords.squares.rank2{transform:translate(100%)}.cg-wrap coords.squares.rank3{transform:translate(200%)}.cg-wrap coords.squares.rank4{transform:translate(300%)}.cg-wrap coords.squares.rank5{transform:translate(400%)}.cg-wrap coords.squares.rank6{transform:translate(500%)}.cg-wrap coords.squares.rank7{transform:translate(600%)}.cg-wrap coords.squares.rank8{transform:translate(700%)}.cg-wrap coords.ranks{flex-flow:column-reverse;width:1rem;height:100%;top:-4%;left:1%}.cg-wrap coords.ranks.black{flex-flow:column}.cg-wrap coords.ranks.left{align-items:flex-end;left:-15px}.cg-wrap coords.files{text-align:center;flex-flow:row;width:100%;height:1rem;bottom:1%;left:4.5%}.cg-wrap coords.files.black{flex-flow:row-reverse}.cg-wrap coords coord{flex:auto}.cg-wrap coords.ranks coord{transform:translateY(39%)}.cg-custom-below{display:none}.is3d.cg-wrap{height:100%}.is3d cg-board{background-image:none!important}.is3d cg-board:before{content:"";background-image:var(--board-image);z-index:0;background-position:top;background-size:cover;width:100%;height:103.2%;position:absolute;top:-.7307%;left:0}.is3d.cg-wrap piece{width:16.741%;height:23.563%;top:-9.1%;left:-1.85%}.is3d.cg-wrap coords.files{bottom:2%}cg-board{background-image:var(--board-image,url(/board/gray.svg))}cg-board square.premove-dest{background:radial-gradient(#141e5580 22%,#203085 0,#0000004d 0,#0000 0)}cg-board square.oc.premove-dest{background:radial-gradient(#0000 0% 80%,#141e5533 80%)}cg-board square.premove-dest:hover{background:#141e5533}cg-board square.check{background:radial-gradient(red 0%,#e70000 25%,#a9000000 89%,#9e000000 100%)}cg-board square.current-premove{background-color:#141e5580}.cg-wrap.orientation-white coords.ranks coord:nth-child(2n),.cg-wrap.orientation-white coords.files coord:nth-child(2n),.cg-wrap.orientation-black coords.ranks coord:nth-child(odd),.cg-wrap.orientation-black coords.files coord:nth-child(odd){color:var(--board-coord-color-black,#484848cc)}.cg-wrap.orientation-black coords.ranks coord:nth-child(2n),.cg-wrap.orientation-black coords.files coord:nth-child(2n),.cg-wrap.orientation-white coords.ranks coord:nth-child(odd),.cg-wrap.orientation-white coords.files coord:nth-child(odd){color:var(--board-coord-color-white,#fffc)}.cg-wrap.orientation-white coords.rank1 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank2 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank3 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank4 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank5 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank6 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank7 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank8 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank1 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank2 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank3 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank4 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank5 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank6 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank7 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank8 coord:nth-child(odd){color:var(--board-coord-color-white,#484848cc)}.cg-wrap.orientation-white coords.rank1 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank2 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank3 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank4 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank5 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank6 coord:nth-child(odd),.cg-wrap.orientation-white coords.rank7 coord:nth-child(2n),.cg-wrap.orientation-white coords.rank8 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank1 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank2 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank3 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank4 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank5 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank6 coord:nth-child(2n),.cg-wrap.orientation-black coords.rank7 coord:nth-child(odd),.cg-wrap.orientation-black coords.rank8 coord:nth-child(2n){color:var(--board-coord-color-black,#484848cc)}.move-tree{--notation-border:color-mix(in srgb, currentColor 16%, transparent);min-width:0;font-size:.85rem;line-height:1.5}.move-tree-location{opacity:.8;overflow-wrap:anywhere;background:var(--mantine-color-body,#1a2029);z-index:1;border-bottom:1px solid var(--notation-border);padding:7px 8px;font-size:.75rem;position:sticky;top:0}.move-tree-heading,.move-tree-row{grid-template-columns:3.5em minmax(0,1fr) minmax(0,1fr);align-items:center;display:grid}.move-tree-heading{opacity:.65;padding:5px 0;font-size:.72rem}.move-tree-heading>span,.move-tree-number{padding:4px 8px}.move-tree-number{opacity:.65;font-variant-numeric:tabular-nums}.move-tree-row{border-bottom:1px solid var(--notation-border)}.move-tree-cell{border-radius:4px;min-width:0}.move-tree-cell[data-selected]{background:#27866d35;box-shadow:inset 3px 0 #399b80}.move-tree .move-tree-cell>button{color:inherit;text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;width:100%;padding:7px 10px;font-weight:600}.move-tree button:focus-visible{outline-offset:-2px;outline:2px solid #399b80}.move-tree summary:focus-visible{outline-offset:-2px;outline:2px solid #399b80}.move-tree .move-tree-cell>button:hover{background:#399b801c}.move-tree .move-tree-branch-toggle,.move-tree .move-tree-start{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;width:100%;padding:7px 8px}.move-tree .move-tree-start{opacity:.8;font-size:.75rem}.move-tree .move-tree-start.selected{background:#27866d35}.move-tree-branch{border-left:2px solid var(--notation-border);margin:5px 0 8px 8px;padding-left:6px}.move-tree-branch[data-active-branch]{border-left-color:#399b80}.move-tree .move-tree-branch-toggle{opacity:.85;overflow-wrap:anywhere;font-size:.73rem}.move-tree-comment{border-left:2px solid var(--notation-border);opacity:.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 8px 9px 3.5em;padding:6px 9px;font-size:.8rem}.move-tree-comment summary{cursor:pointer}.move-tree-comment p{margin:0}.move-tree-empty{opacity:.5;padding-left:8px}@media (max-width:600px){.move-tree-branch{margin-left:3px;padding-left:3px}}.study-position-editor{min-width:0}.study-piece-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:16px 0;display:grid}.study-position-editor .study-piece-palette button{cursor:pointer;background:#e4e7e3;border:1px solid #88948e;border-radius:6px;width:100%;padding:4px}.study-position-editor .study-piece-palette button:hover{background:#f3f5f1}.study-position-editor .study-piece-palette button.selected{background:#b8e2ce;border-color:#4cbe94}.study-palette-piece{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:40px;display:block}.study-editor-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.study-castling{border:1px solid #748079;border-radius:6px;margin:10px 0 16px}.study-castling label{align-items:center;gap:6px;margin:6px 0;display:flex}.study-castling input{width:auto}.study-editor-warning{color:#b77912}.study-workspace-root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#dce0e7;background:#16191f;font-family:Inter,system-ui,sans-serif}.study-workspace-root *{box-sizing:border-box}.study-workspace-root{min-height:100%}.study-workspace-root button,.study-workspace-root input,.study-workspace-root textarea,.study-workspace-root select{font:inherit}.study-workspace-root button{color:inherit;cursor:pointer;background:#292f39;border:1px solid #3a424f;border-radius:7px;padding:8px 12px}.study-workspace-root button:hover:not(:disabled){background:#36404d}.study-workspace-root button:disabled{opacity:.45;cursor:default}.study-workspace-root button.selected,.study-workspace-root button.primary{color:#fff;background:#245d4b;border-color:#4cbe94}.study-workspace-root button:focus-visible{outline-offset:2px;outline:2px solid #66d9b0}.study-workspace-root input:focus-visible{outline-offset:2px;outline:2px solid #66d9b0}.study-workspace-root textarea:focus-visible{outline-offset:2px;outline:2px solid #66d9b0}.study-workspace-root select:focus-visible{outline-offset:2px;outline:2px solid #66d9b0}.study-workspace-root input,.study-workspace-root textarea,.study-workspace-root select{width:100%;color:inherit;background:#191e26;border:1px solid #3a424f;border-radius:6px;padding:9px}.study-workspace-root textarea{resize:vertical}.study-workspace-root label{gap:7px;margin-bottom:14px;font-size:.85rem;display:grid}.study-workspace-root a{color:#8fd6bb;font-size:.8rem}.study-workspace-root h2{margin:0 0 12px;font-size:1rem}.study-workspace-root p{font-size:.86rem;line-height:1.5}.study-workspace-root .web-header{border-bottom:1px solid #303743;justify-content:space-between;gap:20px;padding:18px 24px;display:flex}.study-workspace-root .web-header strong{font-size:1.25rem}.study-workspace-root .web-header span{color:#99a5b4;margin-top:4px;font-size:.8rem;display:block}.study-workspace-root nav,.study-workspace-root .web-actions,.study-workspace-root .web-board-toolbar,.study-workspace-root .web-board-actions,.study-workspace-root .web-move-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.study-workspace-root .web-workspace{grid-template-columns:190px minmax(280px,1fr) minmax(300px,380px);gap:24px;max-width:1600px;margin:auto;padding:24px;display:grid}.study-workspace-root .web-study-list{gap:8px;max-height:65vh;margin:20px 0;display:grid;overflow:auto}.study-workspace-root .web-study-list button{text-align:left;overflow-wrap:anywhere}.study-workspace-root .web-danger{color:#f19a9a}.study-workspace-root .web-board-column{min-width:0}.study-workspace-root .web-board-toolbar{flex-direction:column;align-items:flex-start;margin-bottom:16px}.study-workspace-root .web-board-stage{width:100%;margin:auto}.study-workspace-root .web-board-shell{width:100%;margin:auto;position:relative}.study-workspace-root .web-board{aspect-ratio:1;--board-image:url(/board/green.png);--board-coord-color-white:#ffd;--board-coord-color-black:#6d8753;width:100%}.study-workspace-root .web-move-controls{justify-content:flex-start}.study-workspace-root .web-fen input{font-family:monospace;font-size:.75rem}.study-workspace-root .web-panel{background:#20252e;border:1px solid #303743;border-radius:10px;margin-bottom:16px;padding:18px}.study-workspace-root .web-section-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.study-workspace-root .web-section-header h2{margin:0}.study-workspace-root .web-muted{color:#9ba7b5}.study-workspace-root .web-notation-scroll{max-height:350px;margin:12px 0;overflow:auto}.study-workspace-root .web-engine-line{border-top:1px solid #343c47;grid-template-columns:60px 1fr;gap:4px 8px;padding:10px 0;display:grid}.study-workspace-root .web-engine-line strong{color:#90debd}.study-workspace-root .web-engine-line small{color:#9ba7b5}.study-workspace-root .web-engine-line span{grid-column:1/-1;font-size:.85rem}.study-workspace-root .web-palette{grid-template-columns:repeat(6,1fr);gap:4px;margin:16px 0;display:grid}.study-workspace-root .web-palette button{padding:4px;font-size:2rem}.study-workspace-root .web-actions{margin:12px 0}.study-workspace-root .web-warning{color:#f2cd7c}.study-workspace-root .web-error{background:#502e31;border:1px solid #a75a62;justify-content:space-between;align-items:center;gap:20px;padding:12px 24px;display:flex}.study-workspace-root .web-error button{flex-shrink:0}.study-workspace-root .web-promotion{z-index:10;background:#0009;justify-content:center;align-items:center;gap:6px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.study-workspace-root .web-promotion button{font-size:2.5rem}.study-workspace-root .web-loading{padding:40px}.study-workspace-root footer{font-size:.8rem}.study-workspace-root form button{margin-top:8px}@media (max-width:1100px){.study-workspace-root .web-workspace{grid-template-columns:150px minmax(260px,1fr)}.study-workspace-root .web-panels{grid-column:2}.study-workspace-root .web-header{flex-direction:column}}@media (max-width:620px){.study-workspace-root .web-workspace{flex-direction:column;gap:16px;padding:12px;display:flex}.study-workspace-root .web-header{padding:16px 12px}.study-workspace-root .web-study-list{max-height:none;margin:10px 0;display:flex;overflow-x:auto}.study-workspace-root .web-study-list button{flex-shrink:0;max-width:180px}.study-workspace-root .web-library>.web-muted{display:none}}.study-workspace-root .web-castling{border:1px solid #3a424f;border-radius:6px;margin:10px 0 16px}.study-workspace-root .web-castling label{align-items:center;margin:6px 0;display:flex}.study-workspace-root .web-castling input{width:auto}.study-workspace-root .web-palette button{background:#e4e7e3;padding:4px}.study-workspace-root .web-palette button:hover:not(:disabled){background:#f3f5f1}.study-workspace-root .web-palette button.selected{background:#b8e2ce;border-color:#4cbe94}.study-workspace-root .web-palette-piece{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:40px;display:block}.study-workspace-root .web-brand{align-self:center;line-height:1.6}.study-workspace-root .web-brand a{font-size:inherit}.study-workspace-root .web-study-actions{gap:8px;margin:16px 0;display:grid}.study-workspace-root .web-study-actions button{width:100%}.study-workspace-root .web-storage-control{position:relative}.study-workspace-root .web-storage-details{z-index:20;background:#20252e;border:1px solid #3a424f;border-radius:8px;width:min(320px,85vw);padding:12px 16px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 8px 24px #0005}.study-workspace-root .web-storage-details p{margin:6px 0}.study-workspace-root .web-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.study-workspace-root .web-move-controls button{justify-content:center;align-items:center;min-width:38px;min-height:38px;display:inline-flex}.study-workspace-root .web-board-resize{color:#9ba7b5;cursor:nwse-resize;touch-action:none;-webkit-user-select:none;user-select:none;z-index:4;background:#20252e;border-radius:4px;place-items:center;width:24px;height:24px;padding:3px;display:grid;position:absolute;bottom:-8px;right:-8px}.study-workspace-root .web-board-resize:hover,.study-workspace-root .web-board-resize:active{color:#dce0e7}.study-workspace-root button.web-delete-all{color:#fff;background:#aa2939;border-color:#cf5362}.study-workspace-root button.web-delete-all:hover:not(:disabled){background:#c23446}.study-workspace-root .web-analysis-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.study-workspace-root .web-best-move-toggle{cursor:pointer;align-items:center;gap:6px;margin:0;font-size:.78rem;display:inline-flex}.study-workspace-root .web-best-move-toggle input{accent-color:#66d9b0;width:16px;height:16px;margin:0}.study-workspace-root .web-study-sort{gap:4px;margin:12px 0;display:grid}.study-workspace-root .web-study-summary{opacity:.75;font-weight:400;display:block}.study-workspace-root .web-study-metadata{overflow-wrap:anywhere;margin:12px 0;font-size:.8rem}.study-workspace-root .web-study-metadata p{margin:4px 0}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#16191f}body{margin:0}html,body,#app{color:#e0e5ed;background:#16191f;width:100%;height:100%;margin:0;font-family:system-ui,sans-serif}.presentation{place-items:center;width:100%;height:100%;display:grid;overflow:hidden}.presentation-board{aspect-ratio:1;--board-image:url(/board/green.png);--board-coord-color-white:#ffd;--board-coord-color-black:#6d8753;width:min(100vw,100vh)}.presentation-toolbar{z-index:5;opacity:.25;position:fixed;top:8px;right:8px}.presentation-toolbar:hover,.presentation-toolbar:focus-within{opacity:1}.presentation-toolbar button{color:#fff;cursor:pointer;background:#20252e;border:1px solid #667;border-radius:6px;padding:8px 12px}.presentation p{text-align:center;padding:20px;position:fixed}:-webkit-full-screen .presentation-toolbar{opacity:0}:fullscreen .presentation-toolbar{opacity:0}:-webkit-full-screen .presentation-toolbar:hover{opacity:1}:fullscreen .presentation-toolbar:hover{opacity:1}:-webkit-full-screen .presentation-toolbar:focus-within{opacity:1}:fullscreen .presentation-toolbar:focus-within{opacity:1}
