.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,.cg-wrap .cg-shapes-below,.cg-wrap .cg-custom-below{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-shapes-below{z-index:1;overflow:hidden}.cg-wrap .cg-custom-below{z-index:1}.cg-wrap .cg-custom-svgs{z-index:9}.cg-wrap .cg-custom-svgs svg,.cg-wrap .cg-custom-below 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%)}.board-frame{--promotion:#f8f7f4;--promotion-hover:#e6e4de;--promotion-scrim:#00000059;--on-promotion-cancel:#6a665f}.board-frame cg-board{background-color:var(--board-dark);background-image:var(--board-image);border-radius:var(--board-radius,4px);background-size:cover}.board-frame cg-container{border-radius:var(--board-radius,4px);margin-inline:auto;inset-inline:0}.board-frame piece.king.white{background-image:var(--piece-white-king)}.board-frame piece.queen.white{background-image:var(--piece-white-queen)}.board-frame piece.rook.white{background-image:var(--piece-white-rook)}.board-frame piece.bishop.white{background-image:var(--piece-white-bishop)}.board-frame piece.knight.white{background-image:var(--piece-white-knight)}.board-frame piece.pawn.white{background-image:var(--piece-white-pawn)}.board-frame piece.king.black{background-image:var(--piece-black-king)}.board-frame piece.queen.black{background-image:var(--piece-black-queen)}.board-frame piece.rook.black{background-image:var(--piece-black-rook)}.board-frame piece.bishop.black{background-image:var(--piece-black-bishop)}.board-frame piece.knight.black{background-image:var(--piece-black-knight)}.board-frame piece.pawn.black{background-image:var(--piece-black-pawn)}.board-frame piece.dragging{cursor:grabbing;background-size:0 0}.board-frame piece.dragging:before{content:"";background-image:inherit;filter:drop-shadow(0 4px 4px #00000040);background-size:cover;position:absolute;inset:-7%}.board-frame piece.ghost{opacity:.35}.board-frame square.last-move{background-color:#f7de5c61}.board-frame.classed square.last-move{background-color:color-mix(in srgb, var(--move-class) 50%, transparent)}.board-frame square.selected{background-color:#f7de5c85}.board-frame square.check{background:var(--mark-check)}.board-frame square.move-dest{background-image:var(--mark-dest)}.board-frame square.move-dest.oc{background-image:var(--mark-dest-capture)}.board-frame.hide-dests square.move-dest{background-image:none}.board-frame square.move-dest.hover{background-image:var(--mark-hover);box-shadow:inset 0 0 0 .75cqw #ffffffbf}.board-frame square.premove,.board-frame.classed square.premove{background-color:var(--premove)}.board-frame square.draw-origin{box-shadow:inset 0 0 0 .75cqw #f0a52ae6}.board-frame coords{font-family:var(--font);opacity:1;text-transform:none;font-size:11px;font-weight:600}.board-frame coords coord.coord-dark{color:var(--board-light)}.board-frame coords coord.coord-light{color:var(--board-dark)}.board-frame .cg-wrap coords.ranks{align-items:flex-start;width:12.5%;height:100%;top:0;left:0}.board-frame .cg-wrap coords.ranks coord{padding:3px 0 0 4px;line-height:1;transform:none}.board-frame .cg-wrap coords.files{text-transform:none;align-items:flex-end;width:100%;height:12.5%;bottom:0;left:0}.board-frame .cg-wrap coords.files coord{text-align:right;padding:0 4px 3px 0;line-height:1}.board-frame .cg-shapes,.board-frame .cg-shapes-below{display:none}.board-frame .arrows{z-index:10;width:var(---cg-width,100%);height:var(---cg-height,100%);pointer-events:none;position:absolute;top:0;left:0}.board-frame .arrows .brush-green,.board-frame .arrows .brush-played{fill:var(--arrow-user)}.board-frame .arrows .brush-red,.board-frame .arrows .brush-threat{fill:var(--arrow-threat)}.board-frame .arrows .brush-blue,.board-frame .arrows .brush-idea{fill:var(--arrow-hint)}.board-frame .arrows .brush-yellow,.board-frame .arrows .brush-best{fill:var(--arrow-best)}.board-frame square.highlight.brush-green{background-color:var(--square-highlight)}.board-frame square.highlight.brush-played{background-color:var(--arrow-user)}.board-frame square.highlight.brush-red,.board-frame square.highlight.brush-threat{background-color:var(--arrow-threat)}.board-frame square.highlight.brush-blue,.board-frame square.highlight.brush-idea{background-color:var(--arrow-hint)}.board-frame square.highlight.brush-yellow,.board-frame square.highlight.brush-best{background-color:var(--arrow-best)}.board-frame .move-badge{transform-box:fill-box;transform-origin:50%;animation:.22s cubic-bezier(.3,1.6,.6,1) badge-pop}@keyframes badge-pop{0%{opacity:0;transform:scale(.5)}}.board-frame:has(.flourish:not([inert])) .move-badge{visibility:hidden}@media (prefers-reduced-motion:reduce){.board-frame .move-badge{animation:none}}.promotion.svelte-1c1ydkl{z-index:30;background:var(--promotion-scrim);animation:svelte-1c1ydkl-fade var(--dur) var(--ease);position:absolute;inset:0}.column.svelte-1c1ydkl{background:var(--promotion);border-radius:var(--radius-md);width:12.5%;box-shadow:var(--shadow-3);animation:svelte-1c1ydkl-pop var(--dur) var(--ease);flex-direction:column-reverse;display:flex;position:absolute;bottom:0;overflow:hidden}.column.from-top.svelte-1c1ydkl{flex-direction:column;top:0;bottom:auto}.choice.svelte-1c1ydkl{aspect-ratio:1;width:100%;transition:background var(--dur-fast);background:0 0;border:0;padding:6%}.choice.svelte-1c1ydkl:focus-visible{background:var(--promotion-hover)}@media (hover:hover){.choice.svelte-1c1ydkl:hover{background:var(--promotion-hover)}}.choice.svelte-1c1ydkl img:where(.svelte-1c1ydkl){width:100%;height:100%;display:block}.cancel.svelte-1c1ydkl{background:var(--promotion-hover);height:6cqw;min-height:22px;color:var(--on-promotion-cancel);border:0;place-items:center;display:grid}.cancel.svelte-1c1ydkl svg:where(.svelte-1c1ydkl){height:60%}@keyframes svelte-1c1ydkl-fade{0%{opacity:0}}@keyframes svelte-1c1ydkl-pop{0%{opacity:0;translate:0 4px}}.flash.svelte-1vhthma{border-radius:var(--board-radius,4px);background:color-mix(in srgb, var(--flourish) 38%, transparent);opacity:0;position:absolute;inset:0}.badge.svelte-1vhthma{opacity:0;will-change:transform;position:absolute}.badge.svelte-1vhthma svg:where(.svelte-1vhthma){width:100%;height:100%;display:block;overflow:visible}.flourish.svelte-8savu5{z-index:15;width:var(---cg-width,100%);height:var(---cg-height,100%);pointer-events:none;position:absolute;top:0;left:0}.board-frame.svelte-105szbu{aspect-ratio:1;width:100%;position:relative;container-type:inline-size}.board.svelte-105szbu{touch-action:none;width:100%;height:100%}.replaying.svelte-105szbu .arrows:where(.svelte-105szbu),.replaying.svelte-105szbu .flourish{display:none}.draw-layer.svelte-105szbu{z-index:20;cursor:crosshair;background:0 0;border:0;padding:0;position:absolute;inset:0}
