.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-wrap.manipulable cg-board{cursor:pointer}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;background-size:cover;width:12.5%;height:12.5%;position:absolute;top:0;left:0}cg-board piece.dragging{cursor:move;z-index:11!important}piece.anim{z-index:8}piece.fading{z-index:1;opacity:.5}.cg-wrap piece.ghost{opacity:.3}.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:.8;font-family:sans-serif;font-size:9px;display:flex;position:absolute}.cg-wrap coords.ranks{flex-flow:column-reverse;width:12px;height:100%;top:-20px;left:4px}.cg-wrap coords.ranks.black{flex-flow:column}.cg-wrap coords.ranks.left{align-items:flex-end;left:-15px}.cg-wrap coords.files{text-transform:uppercase;text-align:center;flex-flow:row;width:100%;height:16px;bottom:-4px;left:24px}.cg-wrap coords.files.black{flex-flow:row-reverse}.cg-wrap coords coord{flex:auto}.cg-wrap coords.ranks coord{transform:translateY(39%)}.cg-wrap coords.squares{text-transform:uppercase;text-align:right;flex-flow:column-reverse;width:12.5%;height:100%;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-board{background-color:#f0d9b5;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4PSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIgogICAgIHZpZXdCb3g9IjAgMCA4IDgiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyI+CjxnIGlkPSJhIj4KICA8ZyBpZD0iYiI+CiAgICA8ZyBpZD0iYyI+CiAgICAgIDxnIGlkPSJkIj4KICAgICAgICA8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBpZD0iZSIgb3BhY2l0eT0iMCIvPgogICAgICAgIDx1c2UgeD0iMSIgeT0iMSIgaHJlZj0iI2UiIHg6aHJlZj0iI2UiLz4KICAgICAgICA8cmVjdCB5PSIxIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBpZD0iZiIgb3BhY2l0eT0iMC4yIi8+CiAgICAgICAgPHVzZSB4PSIxIiB5PSItMSIgaHJlZj0iI2YiIHg6aHJlZj0iI2YiLz4KICAgICAgPC9nPgogICAgICA8dXNlIHg9IjIiIGhyZWY9IiNkIiB4OmhyZWY9IiNkIi8+CiAgICA8L2c+CiAgICA8dXNlIHg9IjQiIGhyZWY9IiNjIiB4OmhyZWY9IiNjIi8+CiAgPC9nPgogIDx1c2UgeT0iMiIgaHJlZj0iI2IiIHg6aHJlZj0iI2IiLz4KPC9nPgo8dXNlIHk9IjQiIGhyZWY9IiNhIiB4OmhyZWY9IiNhIi8+Cjwvc3ZnPg==)}cg-board square.move-dest{background:radial-gradient(#14551e80 22%,#208530 0,#0000004d 0,#0000 0)}cg-board square.premove-dest{background:radial-gradient(#141e5580 22%,#203085 0,#0000004d 0,#0000 0)}cg-board square.oc.move-dest{background:radial-gradient(#0000 0% 80%,#1455004d 80%)}cg-board square.oc.premove-dest{background:radial-gradient(#0000 0% 80%,#141e5533 80%)}cg-board square.move-dest:hover{background:#14551e4d}cg-board square.premove-dest:hover{background:#141e5533}cg-board square.last-move{background-color:#9bc70069}cg-board square.selected{background-color:#14551e80}cg-board square.check{background:radial-gradient(red 0%,#e70000 25%,#a9000000 89%,#9e000000 100%)}cg-board square.current-premove{background-color:#141e5580}.orientation-white .ranks :nth-child(odd),.orientation-white .files :nth-child(2n),.orientation-black .ranks :nth-child(2n),.orientation-black .files :nth-child(odd),coords.squares:nth-of-type(odd) :nth-child(2n),coords.squares:nth-of-type(2n) :nth-child(odd){color:#484848cc}.orientation-white .ranks :nth-child(2n),.orientation-white .files :nth-child(odd),.orientation-black .ranks :nth-child(odd),.orientation-black .files :nth-child(2n),coords.squares:nth-of-type(odd) :nth-child(odd),coords.squares:nth-of-type(2n) :nth-child(2n){color:#fffc}:root{--bg:#0b0b0c;--card:#ffffff0d;--border:#ffffff24;--muted:#ffffffb3;--text:#f3f3f3;--btn:#ffffff14;--btnHover:#ffffff1f;--dangerBg:#ff00001a;--dangerBd:#ff000040;--ok:#22c55e;--bad:#ef4444;--board-light:#f0d9b5;--board-dark:#b58863}html[data-board-theme=brown]{--board-light:#f0d9b5;--board-dark:#b58863}html[data-board-theme=blue]{--board-light:#d7e6f5;--board-dark:#6f8fb1}html[data-board-theme=green]{--board-light:#e2efd9;--board-dark:#6a8f5b}html[data-board-theme=slate]{--board-light:#d9dde4;--board-dark:#6e7786}html[data-board-theme=samurai-night]{--board-light:#e6d9c9;--board-dark:#5a2a2a}html[data-board-theme=web-strike]{--board-light:#dce7ff;--board-dark:#b3262f}html[data-board-theme=stadium-lights]{--board-light:#d8f1c9;--board-dark:#2f8b46}html[data-board-theme=unicorn-dream]{--board-light:#f9e7ff;--board-dark:#b98bf2}html[data-board-theme=brick-world]{--board-light:#ffe8c4;--board-dark:#c96f2d}html[data-board-theme=pixel-craft]{--board-light:#dbe5cd;--board-dark:#6f7f4c}html,body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,Noto Sans,Helvetica Neue,sans-serif}a{color:inherit;text-decoration:none}.container{max-width:1120px;margin:0 auto;padding:18px}.topbar{z-index:10;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0b0b0ce0;border-bottom:1px solid #ffffff1a;position:sticky;top:0}.row{justify-content:space-between;align-items:center;gap:12px;display:flex}@media (max-width:520px){.container{padding:12px}.card{border-radius:14px;padding:12px}.row{flex-wrap:wrap;justify-content:flex-start}.btn{padding:10px 12px}}.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px}.btn{border:1px solid var(--border);background:var(--btn);cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--text);border-radius:14px;align-items:center;gap:8px;padding:10px 12px;display:inline-flex}.btn:hover{background:var(--btnHover)}.btn:disabled{opacity:.55;cursor:not-allowed}.muted{color:var(--muted);font-size:12px}.grid{grid-template-columns:1.5fr .5fr;gap:16px;display:grid}@media (max-width:980px){.grid{grid-template-columns:1fr}}.pgnArea{border:1px solid var(--border);width:100%;color:var(--text);resize:vertical;background:#00000059;border-radius:14px;outline:none;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;line-height:1.35}.pgnArea::placeholder{color:#ffffff8c}.pgnArea:focus{border-color:#ffffff47;box-shadow:0 0 0 2px #ffffff14}.errorBox{border:1px solid var(--dangerBd);background:var(--dangerBg);color:#ffd6d6;white-space:pre-wrap;border-radius:14px;margin-top:12px;padding:12px}.badge{border:1px solid var(--border);color:var(--muted);background:#ffffff0a;border-radius:999px;align-items:center;gap:8px;padding:6px 10px;font-size:12px;display:inline-flex}.dot{background:#ffffff59;border-radius:999px;width:10px;height:10px}.dot.ok{background:var(--ok)}.dot.bad{background:var(--bad)}.cg-wrap piece{background-repeat:no-repeat;background-size:cover}.cg-wrap square.light{background:var(--board-light)!important}.cg-wrap square.dark{background:var(--board-dark)!important}.cg-wrap cg-board{background-color:var(--board-light)!important;background-image:conic-gradient(var(--board-dark)25%,var(--board-light)0 50%,var(--board-dark)0 75%,var(--board-light)0)!important;background-position:0 0!important;background-size:25% 25%!important}html[data-board-theme=samurai-night] .cg-wrap cg-board,html[data-board-theme=web-strike] .cg-wrap cg-board,html[data-board-theme=stadium-lights] .cg-wrap cg-board,html[data-board-theme=unicorn-dream] .cg-wrap cg-board,html[data-board-theme=brick-world] .cg-wrap cg-board,html[data-board-theme=pixel-craft] .cg-wrap cg-board{background-image:conic-gradient(var(--board-dark)25%,var(--board-light)0 50%,var(--board-dark)0 75%,var(--board-light)0),var(--kid-board-pattern)!important;background-position:0 0,0 0!important;background-repeat:repeat,repeat!important;background-size:25% 25%,180px 180px!important}html[data-board-theme=samurai-night] .cg-wrap cg-board{--kid-board-pattern:url(/themes/board/samurai-night.svg)}html[data-board-theme=web-strike] .cg-wrap cg-board{--kid-board-pattern:url(/themes/board/web-strike.svg)}html[data-board-theme=stadium-lights] .cg-wrap cg-board{--kid-board-pattern:url(/themes/board/stadium-lights.svg)}html[data-board-theme=unicorn-dream] .cg-wrap cg-board{--kid-board-pattern:url(/themes/board/unicorn-dream.svg)}html[data-board-theme=brick-world] .cg-wrap cg-board{--kid-board-pattern:url(/themes/board/brick-world.svg)}html[data-board-theme=pixel-craft] .cg-wrap cg-board{--kid-board-pattern:url(/themes/board/pixel-craft.svg)}cg-board piece.pawn.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/wP.svg)}cg-board piece.knight.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/wN.svg)}cg-board piece.bishop.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/wB.svg)}cg-board piece.rook.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/wR.svg)}cg-board piece.queen.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/wQ.svg)}cg-board piece.king.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/wK.svg)}cg-board piece.pawn.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/bP.svg)}cg-board piece.knight.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/bN.svg)}cg-board piece.bishop.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/bB.svg)}cg-board piece.rook.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/bR.svg)}cg-board piece.queen.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/bQ.svg)}cg-board piece.king.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/cburnett/bK.svg)}html[data-piece-theme=merida] cg-board piece.pawn.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/wP.svg)}html[data-piece-theme=merida] cg-board piece.knight.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/wN.svg)}html[data-piece-theme=merida] cg-board piece.bishop.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/wB.svg)}html[data-piece-theme=merida] cg-board piece.rook.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/wR.svg)}html[data-piece-theme=merida] cg-board piece.queen.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/wQ.svg)}html[data-piece-theme=merida] cg-board piece.king.white{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/wK.svg)}html[data-piece-theme=merida] cg-board piece.pawn.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/bP.svg)}html[data-piece-theme=merida] cg-board piece.knight.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/bN.svg)}html[data-piece-theme=merida] cg-board piece.bishop.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/bB.svg)}html[data-piece-theme=merida] cg-board piece.rook.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/bR.svg)}html[data-piece-theme=merida] cg-board piece.queen.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/bQ.svg)}html[data-piece-theme=merida] cg-board piece.king.black{background-image:url(https://raw.githubusercontent.com/lichess-org/lila/master/public/piece/merida/bK.svg)}html[data-offline-pieces="1"] .cg-wrap cg-board piece{justify-content:center;align-items:center;display:flex;background-image:none!important}html[data-offline-pieces="1"] .cg-wrap cg-board piece:after{text-align:center;width:100%;font-family:Segoe UI Symbol,Arial Unicode MS,ui-sans-serif,sans-serif;font-size:clamp(22px,6.3vw,58px);line-height:1;display:block}html[data-offline-pieces="1"] .cg-wrap cg-board piece.white:after{color:#f8fafc;text-shadow:0 1px 2px #000000bf}html[data-offline-pieces="1"] .cg-wrap cg-board piece.black:after{color:#111827;text-shadow:0 1px 1px #ffffff6b}html[data-offline-pieces="1"] .cg-wrap cg-board piece.pawn.white:after{content:"♙"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.knight.white:after{content:"♘"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.bishop.white:after{content:"♗"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.rook.white:after{content:"♖"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.queen.white:after{content:"♕"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.king.white:after{content:"♔"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.pawn.black:after{content:"♟"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.knight.black:after{content:"♞"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.bishop.black:after{content:"♝"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.rook.black:after{content:"♜"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.queen.black:after{content:"♛"}html[data-offline-pieces="1"] .cg-wrap cg-board piece.king.black:after{content:"♚"}html[data-piece-theme=samurai-steel] .cg-wrap piece{filter:grayscale(.2)contrast(1.1)saturate(.85)}html[data-piece-theme=web-swing] .cg-wrap piece.white{filter:hue-rotate(200deg)saturate(1.2)brightness(1.05)}html[data-piece-theme=web-swing] .cg-wrap piece.black{filter:hue-rotate(-12deg)saturate(1.2)brightness(1.02)}html[data-piece-theme=striker-pro] .cg-wrap piece{filter:saturate(1.1)contrast(1.05)drop-shadow(0 0 1px #ffffff59)}html[data-piece-theme=unicorn-magic] .cg-wrap piece{filter:hue-rotate(18deg)saturate(1.15)brightness(1.05)}html[data-piece-theme=brick-buddies] .cg-wrap piece{filter:contrast(1.16)saturate(1.18)}html[data-piece-theme=pixel-quest] .cg-wrap piece{image-rendering:pixelated;filter:contrast(1.1)saturate(.95)}.cg-wrap coords{font-size:clamp(10px,2.9vw,14px);line-height:1}@media (max-width:760px){.cg-wrap coords{font-size:clamp(10px,2.6vw,13px)}.cg-wrap coords.ranks{top:-18px!important}.cg-wrap coords.ranks coord{transform:translateY(44%)!important}.cg-wrap coords.files{left:19.5px!important}}.cg-wrap coords.files coord{text-transform:lowercase}body{background:radial-gradient(900px 600px at 20% -10%,#38bdf814,transparent 60%),radial-gradient(900px 600px at 90% 0%,#a855f714,transparent 55%),radial-gradient(900px 600px at 40% 110%,#22c55e0f,transparent 55%),var(--bg)}.card{box-shadow:0 10px 30px #00000040}.card:hover{border-color:#ffffff38}.btn{transition:background .12s,transform .12s,border-color .12s}.btn:active{transform:translateY(1px)}.sectionTitle{letter-spacing:.2px;font-size:16px;font-weight:900}.kicker{color:var(--muted);font-size:12px}.evalBar{background:#ffffff0f;border:1px solid #ffffff2e;border-radius:999px;width:14px;position:relative;overflow:hidden}.evalBar--flipped{transform-origin:50%;transform:rotate(180deg)}.evalBarFill{transform-origin:bottom;will-change:transform;background:#ffffffbf;height:100%;transition:transform .52s cubic-bezier(.18,1.45,.25,1);position:absolute;bottom:0;left:0;right:0}@keyframes cgFadeIn{0%{opacity:0;transform:translateZ(0)scale(.985)}to{opacity:1;transform:translateZ(0)scale(1)}}.cg-wrap svg.cg-shapes,.cg-wrap svg.cg-custom-svgs,.cg-wrap svg.cg-shapes *{animation:.14s cgFadeIn}.cg-wrap cg-board piece{transition:transform 90ms}
