#modal-wrap{box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.board-editor .spare .no-square div{position:relative;display:block;height:0;padding-bottom:100%;width:100%}#modal-overlay{position:fixed;top:0;left:0;bottom:0;right:0;background:rgba(0,0,0,.6);z-index:109}#modal-overlay{display:flex;flex-flow:row wrap;align-items:center}.board-editor__tools .metadata .castling div{display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between}.board-editor__tools .actions,.board-editor__tools,.continue-with,#modal-wrap{display:flex;flex-flow:column}.board-editor .spare,#modal-wrap,.board-editor__tools .metadata{border-radius:3px}.board-editor .spare .no-square.pointer{border-radius:3px 0 0 3px}.board-editor .spare .no-square.trash{border-radius:0 3px 3px 0}#modal-wrap .close:hover,.board-editor__tools .metadata{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}coords{position:absolute;display:flex;pointer-events:none;user-select:none;color:#fff;text-shadow:0 1px 2px #000;font-weight:bold}.coords-no coords{display:none}coords{font-size:8px}@media(min-width: 320px){coords{font-size:calc(
          8px + 4 *
            ((100vw - 320px) / 880)
        )}}@media(min-width: 1200px){coords{font-size:12px}}coords.ranks.p1,coords.ranks.p2{top:1px;right:3px;height:100%;width:1.4em;text-align:right}coords.ranks.p1{flex-flow:column-reverse}coords.ranks.p2{flex-flow:column}coords.ranks.right,coords.ranks.left{bottom:0px;left:0;text-align:left;flex-flow:row;width:100%;height:1.4em}coords.ranks.right coord,coords.ranks.left coord{padding-left:4px}coords.ranks.left{flex-flow:row-reverse}coords.ranks.right{flex-flow:row}coords.files.p1,coords.files.p2{bottom:0px;left:0;text-align:left;flex-flow:row;width:100%;height:1.4em}coords.files.p1 coord,coords.files.p2 coord{padding-left:4px}coords.files.p1{flex-flow:row}coords.files.p2{flex-flow:row-reverse}coords.files.right,coords.files.left{top:1px;right:0;height:100%;width:.8em}coords.files.right{flex-flow:column}coords.files.left{flex-flow:column-reverse}.variant-bestemshe coords.files{font-size:130%}.abalone-dark .variant-abalone coords coord,.abalone-classic .variant-abalone coords coord{color:#fff !important;text-shadow:0 1px 2px #000}.abalone-yellow .variant-abalone coords coord{color:#eeddc0 !important;text-shadow:0 1px 2px #000}.variant-abalone .orientation-p1 coords.files{text-align:center}.variant-abalone .orientation-p1 coords.files.rank-1{bottom:11%;padding-left:30%;padding-right:24%}.variant-abalone .orientation-p1 coords.files.rank-2{bottom:19%;padding-left:52%}.variant-abalone .orientation-p1 coords.files.rank-3{bottom:27%;padding-left:62%}.variant-abalone .orientation-p1 coords.files.rank-4{bottom:35%;padding-left:71%}.variant-abalone .orientation-p1 coords.files.rank-5{bottom:43%;padding-left:80%}.variant-abalone .orientation-p1 coords.ranks{text-align:center}.variant-abalone .orientation-p1 coords.ranks.file-1{left:5%;padding-top:48.5%}.variant-abalone .orientation-p1 coords.ranks.file-2{left:9.5%;padding-top:40.5%;padding-bottom:27.5%}.variant-abalone .orientation-p1 coords.ranks.file-3{left:14%;padding-top:32.5%;padding-bottom:4%}.variant-abalone .orientation-p1 coords.ranks.file-4{left:19%;padding-top:24.5%;padding-bottom:2%}.variant-abalone .orientation-p1 coords.ranks.file-5{left:23.5%;padding-top:16.5%;padding-bottom:1.5%}.variant-abalone .orientation-p2 coords.files{text-align:center}.variant-abalone .orientation-p2 coords.files.rank-1{top:11%;padding-right:30.5%;padding-left:23.5%}.variant-abalone .orientation-p2 coords.files.rank-2{top:19%;padding-right:53%}.variant-abalone .orientation-p2 coords.files.rank-3{top:27%;padding-right:63%}.variant-abalone .orientation-p2 coords.files.rank-4{top:35%;padding-right:72%}.variant-abalone .orientation-p2 coords.files.rank-5{top:43%;padding-right:81.5%}.variant-abalone .orientation-p2 coords.ranks{text-align:center}.variant-abalone .orientation-p2 coords.ranks.file-1{right:5%;padding-top:48.5%}.variant-abalone .orientation-p2 coords.ranks.file-2{right:9.5%;padding-top:40.5%;padding-bottom:27.5%}.variant-abalone .orientation-p2 coords.ranks.file-3{right:14%;padding-top:32.5%;padding-bottom:4%}.variant-abalone .orientation-p2 coords.ranks.file-4{right:19%;padding-top:24.5%;padding-bottom:2%}.variant-abalone .orientation-p2 coords.ranks.file-5{right:23.5%;padding-top:16.5%;padding-bottom:1.5%}.variant-togyzkumalak coords,.variant-bestemshe coords{text-shadow:.5px -1px 0px rgba(0,0,0,.25),-0.5px 1px 0px rgba(255,255,255,.6)}.togyzkumalak-wood .variant-togyzkumalak coords coord,.togyzkumalak-wood .variant-bestemshe coords coord{color:#000 !important}.togyzkumalak-blue .variant-togyzkumalak coords coord,.togyzkumalak-blue .variant-bestemshe coords coord{color:#0a8299 !important}.variant-togyzkumalak .orientation-p1 coords.files.p1,.variant-bestemshe .orientation-p1 coords.files.p1{left:0;bottom:5px;text-align:center}.variant-togyzkumalak .orientation-p1 coords.files.p2,.variant-bestemshe .orientation-p1 coords.files.p2{left:0;top:5px;text-align:center}.variant-togyzkumalak .orientation-p2 coords.files.p1,.variant-bestemshe .orientation-p2 coords.files.p1{left:0;top:5px;text-align:center}.variant-togyzkumalak .orientation-p2 coords.files.p2,.variant-bestemshe .orientation-p2 coords.files.p2{left:0;bottom:5px;text-align:center}.variant-nackgammon coords,.variant-hyper coords,.variant-backgammon coords{text-shadow:.5px -1px 0px rgba(0,0,0,.25),-0.5px 1px 0px rgba(255,255,255,.6)}.backgammon-classic .variant-nackgammon coords coord,.backgammon-classic .variant-hyper coords coord,.backgammon-classic .variant-backgammon coords coord{color:#edc966 !important;padding-left:0px}.backgammon-contemporary .variant-nackgammon coords coord,.backgammon-contemporary .variant-hyper coords coord,.backgammon-contemporary .variant-backgammon coords coord{color:#0a8299 !important;padding-left:0px}.variant-nackgammon coords coord,.variant-hyper coords coord,.variant-backgammon coords coord{flex:1 1}.variant-nackgammon .orientation-p1 coords.files.p1,.variant-hyper .orientation-p1 coords.files.p1,.variant-backgammon .orientation-p1 coords.files.p1{left:0;padding-left:6.66%;padding-right:6.66%;bottom:1.4em;text-align:center;flex-flow:row}.variant-nackgammon .orientation-p1 coords.files.p2,.variant-hyper .orientation-p1 coords.files.p2,.variant-backgammon .orientation-p1 coords.files.p2{left:0;padding-left:6.66%;padding-right:6.66%;top:1.4em;text-align:center;flex-flow:row}.variant-nackgammon .orientation-p1vflip coords.files.p1,.variant-hyper .orientation-p1vflip coords.files.p1,.variant-backgammon .orientation-p1vflip coords.files.p1{left:0;padding-left:6.66%;padding-right:6.66%;top:1.4em;text-align:center;flex-flow:row}.variant-nackgammon .orientation-p1vflip coords.files.p2,.variant-hyper .orientation-p1vflip coords.files.p2,.variant-backgammon .orientation-p1vflip coords.files.p2{left:0;padding-left:6.66%;padding-right:6.66%;bottom:1.4em;text-align:center;flex-flow:row}.variant-go9x9 coords.files.p1,.variant-go9x9 coords.files.p2{text-align:center}.variant-go9x9 coords.ranks.p1,.variant-go9x9 coords.ranks.p2{top:10px}.variant-go13x13 coords.files.p1,.variant-go13x13 coords.files.p2{text-align:center}.variant-go13x13 coords.ranks.p1,.variant-go13x13 coords.ranks.p2{top:10px}.variant-go19x19 coords.files.p1,.variant-go19x19 coords.files.p2{text-align:center}.variant-go19x19 coords.ranks.p1,.variant-go19x19 coords.ranks.p2{top:10px}coords coord{flex:1 1 auto}coords .is3d .cg-wrap coords coord{color:#fff !important;text-shadow:0 1px 2px #000 !important}coords .is3d .cg-wrap coords.files{bottom:calc(1px - 2.5%)}coords .is3d .cg-wrap coords.files coord{padding-left:3px}:root{--cg-coord-color-chess-p1: #fff;--cg-coord-color-chess-p2: #fff;--cg-coord-shadow-chess: 0 1px 2px #000;--cg-coord-color-loa-p1: #fff;--cg-coord-color-loa-p2: #fff;--cg-coord-shadow-loa: 0 1px 2px #000;--cg-coord-color-amazons-p1: #fff;--cg-coord-color-amazons-p2: #fff;--cg-coord-shadow-amazons: 0 1px 2px #000;--cg-coord-color-breakthroughtroyka-p1: #fff;--cg-coord-color-breakthroughtroyka-p2: #fff;--cg-coord-shadow-breakthroughtroyka: 0 1px 2px #000}coords{text-shadow:var(--cg-coord-shadow-chess)}.orientation-p1 .files coord:nth-child(2n+1),.orientation-p1 .ranks coord:nth-child(2n),.orientation-p2 .files coord:nth-child(2n),.orientation-p2 .ranks coord:nth-child(2n+1),.orientation-right .files coord:nth-child(2n+1),.orientation-right .ranks coord:nth-child(2n+1),.orientation-left .files coord:nth-child(2n+1),.orientation-left .ranks coord:nth-child(2n+1){color:var(--cg-coord-color-chess-p1)}.orientation-p1 .files coord:nth-child(2n),.orientation-p1 .ranks coord:nth-child(2n+1),.orientation-p2 .files coord:nth-child(2n+1),.orientation-p2 .ranks coord:nth-child(2n),.orientation-right .files coord:nth-child(2n),.orientation-right .ranks coord:nth-child(2n),.orientation-left .files coord:nth-child(2n),.orientation-left .ranks coord:nth-child(2n){color:var(--cg-coord-color-chess-p2)}.variant-linesOfAction coords,.variant-scrambledEggs coords{text-shadow:var(--cg-coord-shadow-loa)}.variant-linesOfAction .orientation-p1 .files coord:nth-child(2n+1),.variant-linesOfAction .orientation-p1 .ranks coord:nth-child(2n),.variant-linesOfAction .orientation-p2 .files coord:nth-child(2n),.variant-linesOfAction .orientation-p2 .ranks coord:nth-child(2n+1),.variant-linesOfAction .orientation-right .files coord:nth-child(2n+1),.variant-linesOfAction .orientation-right .ranks coord:nth-child(2n+1),.variant-linesOfAction .orientation-left .files coord:nth-child(2n+1),.variant-linesOfAction .orientation-left .ranks coord:nth-child(2n+1),.variant-scrambledEggs .orientation-p1 .files coord:nth-child(2n+1),.variant-scrambledEggs .orientation-p1 .ranks coord:nth-child(2n),.variant-scrambledEggs .orientation-p2 .files coord:nth-child(2n),.variant-scrambledEggs .orientation-p2 .ranks coord:nth-child(2n+1),.variant-scrambledEggs .orientation-right .files coord:nth-child(2n+1),.variant-scrambledEggs .orientation-right .ranks coord:nth-child(2n+1),.variant-scrambledEggs .orientation-left .files coord:nth-child(2n+1),.variant-scrambledEggs .orientation-left .ranks coord:nth-child(2n+1){color:var(--cg-coord-color-loa-p1)}.variant-linesOfAction .orientation-p1 .files coord:nth-child(2n),.variant-linesOfAction .orientation-p1 .ranks coord:nth-child(2n+1),.variant-linesOfAction .orientation-p2 .files coord:nth-child(2n+1),.variant-linesOfAction .orientation-p2 .ranks coord:nth-child(2n),.variant-linesOfAction .orientation-right .files coord:nth-child(2n),.variant-linesOfAction .orientation-right .ranks coord:nth-child(2n),.variant-linesOfAction .orientation-left .files coord:nth-child(2n),.variant-linesOfAction .orientation-left .ranks coord:nth-child(2n),.variant-scrambledEggs .orientation-p1 .files coord:nth-child(2n),.variant-scrambledEggs .orientation-p1 .ranks coord:nth-child(2n+1),.variant-scrambledEggs .orientation-p2 .files coord:nth-child(2n+1),.variant-scrambledEggs .orientation-p2 .ranks coord:nth-child(2n),.variant-scrambledEggs .orientation-right .files coord:nth-child(2n),.variant-scrambledEggs .orientation-right .ranks coord:nth-child(2n),.variant-scrambledEggs .orientation-left .files coord:nth-child(2n),.variant-scrambledEggs .orientation-left .ranks coord:nth-child(2n){color:var(--cg-coord-color-loa-p2)}.variant-amazons coords{text-shadow:var(--cg-coord-shadow-amazons)}.variant-amazons .orientation-p1 .files coord:nth-child(2n+1),.variant-amazons .orientation-p1 .ranks coord:nth-child(2n),.variant-amazons .orientation-p2 .files coord:nth-child(2n),.variant-amazons .orientation-p2 .ranks coord:nth-child(2n+1),.variant-amazons .orientation-right .files coord:nth-child(2n+1),.variant-amazons .orientation-right .ranks coord:nth-child(2n+1),.variant-amazons .orientation-left .files coord:nth-child(2n+1),.variant-amazons .orientation-left .ranks coord:nth-child(2n+1){color:var(--cg-coord-color-amazons-p1)}.variant-amazons .orientation-p1 .files coord:nth-child(2n),.variant-amazons .orientation-p1 .ranks coord:nth-child(2n+1),.variant-amazons .orientation-p2 .files coord:nth-child(2n+1),.variant-amazons .orientation-p2 .ranks coord:nth-child(2n),.variant-amazons .orientation-right .files coord:nth-child(2n),.variant-amazons .orientation-right .ranks coord:nth-child(2n),.variant-amazons .orientation-left .files coord:nth-child(2n),.variant-amazons .orientation-left .ranks coord:nth-child(2n){color:var(--cg-coord-color-amazons-p2)}.variant-breakthroughtroyka coords{text-shadow:var(--cg-coord-shadow-breakthroughtroyka)}.variant-breakthroughtroyka .orientation-p1 .files coord:nth-child(2n+1),.variant-breakthroughtroyka .orientation-p1 .ranks coord:nth-child(2n),.variant-breakthroughtroyka .orientation-p2 .files coord:nth-child(2n),.variant-breakthroughtroyka .orientation-p2 .ranks coord:nth-child(2n+1){color:var(--cg-coord-color-breakthroughtroyka-p1)}.variant-breakthroughtroyka .orientation-p1 .files coord:nth-child(2n),.variant-breakthroughtroyka .orientation-p1 .ranks coord:nth-child(2n+1),.variant-breakthroughtroyka .orientation-p2 .files coord:nth-child(2n+1),.variant-breakthroughtroyka .orientation-p2 .ranks coord:nth-child(2n){color:var(--cg-coord-color-breakthroughtroyka-p2)}.variant-minibreakthroughtroyka coords{text-shadow:var(--cg-coord-shadow-breakthroughtroyka)}.variant-minibreakthroughtroyka .orientation-p1 .files coord:nth-child(2n+1),.variant-minibreakthroughtroyka .orientation-p1 .ranks coord:nth-child(2n+1),.variant-minibreakthroughtroyka .orientation-p2 .files coord:nth-child(2n+1),.variant-minibreakthroughtroyka .orientation-p2 .ranks coord:nth-child(2n+1){color:var(--cg-coord-color-breakthroughtroyka-p2)}.variant-minibreakthroughtroyka .orientation-p1 .files coord:nth-child(2n),.variant-minibreakthroughtroyka .orientation-p1 .ranks coord:nth-child(2n),.variant-minibreakthroughtroyka .orientation-p2 .files coord:nth-child(2n),.variant-minibreakthroughtroyka .orientation-p2 .ranks coord:nth-child(2n){color:var(--cg-coord-color-breakthroughtroyka-p1)}@media(max-width: 799px)and (orientation: portrait){.coords-out .variant-shogi coords{display:none}.coords-out .variant-minishogi coords{display:none}.coords-out .variant-xiangqi coords{display:none}.coords-out .variant-minixiangqi coords{display:none}.coords-out .variant-flipello coords{display:none}.coords-out .variant-flipello10 coords{display:none}.coords-out .variant-oware coords{display:none}.coords-out .variant-backgammon coords{display:none}.coords-out .variant-nackgammon coords{display:none}.coords-out .variant-hyper coords{display:none}.coords-out .variant-togyzkumalak coords{display:none}.coords-out .variant-bestemshe coords{display:none}.coords-out .variant-abalone coords{display:none}.coords-out .variant-go9x9 coords{display:none}.coords-out .variant-go13x13 coords{display:none}.coords-out .variant-go19x19 coords{display:none}.variant-togyzkumalak .orientation-p1 coords.files.p1,.variant-bestemshe .orientation-p1 coords.files.p1{bottom:3px}.variant-togyzkumalak .orientation-p1 coords.files.p2,.variant-bestemshe .orientation-p1 coords.files.p2{top:3px}.variant-togyzkumalak .orientation-p2 coords.files.p1,.variant-bestemshe .orientation-p2 coords.files.p1{top:3px}.variant-togyzkumalak .orientation-p2 coords.files.p2,.variant-bestemshe .orientation-p2 coords.files.p2{bottom:3px}.variant-nackgammon .orientation-p1 coords.files.p1,.variant-hyper .orientation-p1 coords.files.p1,.variant-backgammon .orientation-p1 coords.files.p1{bottom:.7em}.variant-nackgammon .orientation-p1 coords.files.p2,.variant-hyper .orientation-p1 coords.files.p2,.variant-backgammon .orientation-p1 coords.files.p2{top:.7em}.variant-nackgammon .orientation-p1vflip coords.files.p1,.variant-hyper .orientation-p1vflip coords.files.p1,.variant-backgammon .orientation-p1vflip coords.files.p1{top:.7em}.variant-nackgammon .orientation-p1vflip coords.files.p2,.variant-hyper .orientation-p1vflip coords.files.p2,.variant-backgammon .orientation-p1vflip coords.files.p2{bottom:.7em}}@media(orientation: landscape)and (max-height: 499px){.coords-out coords.ranks{right:-10px !important}.coords-out .variant-xiangqi coords{display:none}.coords-out .variant-minixiangqi coords{display:none}.variant-togyzkumalak .orientation-p1 coords.files.p1,.variant-bestemshe .orientation-p1 coords.files.p1{bottom:1px}.variant-togyzkumalak .orientation-p1 coords.files.p2,.variant-bestemshe .orientation-p1 coords.files.p2{top:2px}.variant-togyzkumalak .orientation-p2 coords.files.p1,.variant-bestemshe .orientation-p2 coords.files.p1{top:2px}.variant-togyzkumalak .orientation-p2 coords.files.p2,.variant-bestemshe .orientation-p2 coords.files.p2{bottom:1px}.variant-nackgammon .orientation-p1 coords.files.p1,.variant-hyper .orientation-p1 coords.files.p1,.variant-backgammon .orientation-p1 coords.files.p1{bottom:.4em}.variant-nackgammon .orientation-p1 coords.files.p2,.variant-hyper .orientation-p1 coords.files.p2,.variant-backgammon .orientation-p1 coords.files.p2{top:.4em}.variant-nackgammon .orientation-p1vflip coords.files.p1,.variant-hyper .orientation-p1vflip coords.files.p1,.variant-backgammon .orientation-p1vflip coords.files.p1{top:.4em}.variant-nackgammon .orientation-p1vflip coords.files.p2,.variant-hyper .orientation-p1vflip coords.files.p2,.variant-backgammon .orientation-p1vflip coords.files.p2{bottom:.4em}}@media(min-width: 800px),(orientation: landscape){.coords-out coords{text-shadow:none}.coords-out coords.ranks{right:-13px;top:0;width:12px}.coords-out coords.ranks coord{transform:translateY(42%)}.coords-out coords.files{left:0;text-align:center}.coords-out coords coord{color:#5e5e5e !important}.coords-out .orientation-right coords.ranks.right{bottom:-15px;top:unset;width:100%;text-align:center}.coords-out .orientation-right coords.ranks.right coord{transform:none}.coords-out .orientation-right coords.files.right{right:-15px;top:0;width:12px;left:unset;text-align:unset}.coords-out .orientation-right coords.files.right coord{transform:translateY(42%)}.coords-out .orientation-p2 coords.files.p2{bottom:-15px}.coords-out .orientation-p2 coords.files.p1{top:-15px}.coords-out .orientation-p1 coords.files.p2{top:-15px}.coords-out .orientation-p1 coords.files.p1{bottom:-15px}.coords-out .variant-go9x9 .ranks.p1,.coords-out .variant-go9x9 .ranks.p2{top:-4px}.coords-out .variant-go13x13 .ranks.p1,.coords-out .variant-go13x13 .ranks.p2{top:-4px}.coords-out .variant-go19x19 .ranks.p1,.coords-out .variant-go19x19 .ranks.p2{top:-4px}}board-scores{position:absolute;display:flex;pointer-events:none;user-select:none;color:#fff;text-shadow:0 1px 2px #000;font-weight:bold}board-scores{font-size:6px}@media(min-width: 320px){board-scores{font-size:calc(
          6px + 8 *
            ((100vw - 320px) / 880)
        )}}@media(min-width: 1200px){board-scores{font-size:14px}}board-scores.p1,board-scores.p2{bottom:0px;left:0;text-align:center;flex-flow:row;width:100%;height:2em}board-scores score{display:inline-block;height:2em;width:2em;border-radius:50%;background:#000;padding:.3em 0}board-scores score.abundance{color:#ff0}board-scores score.tuzdik{background:#fff}board-scores score.empty{background:unset}board-scores board-score{width:100%;font-size:130%}.backgammon-contemporary board-scores board-score{color:#a9ad7d}.variant-bestemshe board-scores{font-size:130%}.variant-togyzkumalak .orientation-p1 board-scores.p1,.variant-bestemshe .orientation-p1 board-scores.p1{left:0;bottom:42%}.variant-togyzkumalak .orientation-p1 board-scores.p2,.variant-bestemshe .orientation-p1 board-scores.p2{left:0;top:42%}.variant-togyzkumalak .orientation-p2 board-scores.p1,.variant-bestemshe .orientation-p2 board-scores.p1{left:0;top:42%}.variant-togyzkumalak .orientation-p2 board-scores.p2,.variant-bestemshe .orientation-p2 board-scores.p2{left:0;bottom:42%}.variant-togyzkumalak board-scores position-score,.variant-bestemshe board-scores position-score{flex:1 1 11.1111111111%}board-scores position-score{flex:1 1 auto}.variant-nackgammon .orientation-p1 board-scores.p1,.variant-hyper .orientation-p1 board-scores.p1,.variant-backgammon .orientation-p1 board-scores.p1{bottom:6%}.variant-nackgammon .orientation-p1 board-scores.p2,.variant-hyper .orientation-p1 board-scores.p2,.variant-backgammon .orientation-p1 board-scores.p2{top:6%}.variant-nackgammon .orientation-p1vflip board-scores.p1,.variant-hyper .orientation-p1vflip board-scores.p1,.variant-backgammon .orientation-p1vflip board-scores.p1{top:6%}.variant-nackgammon .orientation-p1vflip board-scores.p2,.variant-hyper .orientation-p1vflip board-scores.p2,.variant-backgammon .orientation-p1vflip board-scores.p2{bottom:6%}@media(max-width: 799px)and (orientation: portrait){board-scores.p1,board-scores.p2{height:1.6em}board-scores score{height:1.6em;width:1.6em;padding:0}board-scores{font-size:10px}}@media(max-width: 799px)and (orientation: portrait)and (min-width: 320px){board-scores{font-size:calc(
          10px + 8 *
            ((100vw - 320px) / 880)
        )}}@media(max-width: 799px)and (orientation: portrait)and (min-width: 1200px){board-scores{font-size:18px}}@media(max-width: 499px)and (orientation: portrait){board-scores{font-size:9px}}@media(max-width: 499px)and (orientation: portrait)and (min-width: 320px){board-scores{font-size:calc(
          9px + 2 *
            ((100vw - 320px) / 880)
        )}}@media(max-width: 499px)and (orientation: portrait)and (min-width: 1200px){board-scores{font-size:11px}}@media(orientation: landscape)and (max-height: 499px){.variant-togyzkumalak board-scores,.variant-bestemshe board-scores{font-size:60%}.variant-togyzkumalak .orientation-p1 board-scores.p1,.variant-bestemshe .orientation-p1 board-scores.p1{left:0;bottom:41%}.variant-togyzkumalak .orientation-p1 board-scores.p2,.variant-bestemshe .orientation-p1 board-scores.p2{left:0;top:41%}.variant-togyzkumalak .orientation-p2 board-scores.p1,.variant-bestemshe .orientation-p2 board-scores.p1{left:0;top:41%}.variant-togyzkumalak .orientation-p2 board-scores.p2,.variant-bestemshe .orientation-p2 board-scores.p2{left:0;bottom:41%}}body{--board-scale: 1}@media(min-width: 800px)and (min-height: 500px){body{--board-scale: calc((var(--zoom) / 100) * 0.7 + 0.3)}}@media(max-width: 799px)and (orientation: portrait){body{--col1: 1}.main-board cg-board{border-radius:0}}body.resizing{user-select:none}cg-resize{display:none}@media(min-width: 800px){cg-resize{display:block;position:absolute;right:-9px;bottom:-9px;width:22px;height:22px;cursor:nwse-resize}cg-resize::before,cg-resize::after{background:#000;content:"";position:absolute;width:12px;height:1px}cg-resize::before{width:5px;transform:translate(7px, 8px) rotate(-45deg)}cg-resize::after{transform:translate(1px, 6px) rotate(-45deg)}cg-resize:hover{border-radius:50%;background:rgba(214,79,0,.5)}.resizing cg-resize{border-radius:50%;background:rgba(98,153,36,.5)}}#modal-overlay{justify-content:center}#modal-wrap{background:#fff;position:relative;padding:2rem;text-align:center;max-width:100vw;max-height:96vh}#modal-wrap>div{overflow:hidden;overflow-y:auto}#modal-wrap .close{color:#4d4d4d;position:absolute;font-size:16px;line-height:27px;width:32px;height:32px;cursor:pointer;top:0;right:0;background:none}@media(min-width: 800px){#modal-wrap .close{top:-12px;right:-12px;background:#fff;border-radius:50%}}#modal-wrap .close:hover{background:#c33;color:#fff}.continue-with>*:not(:first-child){margin-top:1em}#main-wrap{--main-max-width: auto}@media(orientation: landscape)and (max-height: 499px){html{font-size:8px}}.board-editor{display:grid;grid-template-columns:minmax(0, calc((100vh - 4vmin) * var(--board-scale) * 0.8 - calc(var(--site-header-height) + var(--site-header-margin))));grid-template-areas:"spare-top" "board" "spare-bottom" "tools" "copyables"}@media(orientation: landscape)and (max-height: 499px){.coords-out .board-editor{grid-template-columns:minmax(30vmin, calc((100vh - 4vmin) * var(--board-scale) * 0.8 - calc(var(--site-header-height) + var(--site-header-margin)))) 4vmin minmax(200px, 300px) !important}}@media(min-width: 650px){.board-editor{grid-template-columns:minmax(30vmin, calc((100vh - 4vmin) * var(--board-scale) * 0.8 - calc(var(--site-header-height) + var(--site-header-margin)))) 2vmin minmax(200px, 300px);grid-template-rows:min-content auto min-content;grid-template-areas:".            . tools" "spare-top    . tools" "board        . tools" "spare-bottom . tools" ".            . tools" "copyables    . .    "}}.board-editor.variant-xiangqi .spare .no-square{flex:0 0 11.12%}.board-editor.variant-xiangqi .spare-top{margin-bottom:5%}.board-editor.variant-xiangqi .spare-bottom{margin-top:16%}.board-editor .spare{display:flex;background:#b3b3b3;box-shadow:0 3px 5px rgba(0,0,0,.3) inset}.board-editor .spare-top{grid-area:spare-top;margin-bottom:2vh}.board-editor .spare-bottom{grid-area:spare-bottom;margin-top:2vh}@media(orientation: landscape)and (max-height: 499px){.coords-out .board-editor .spare-bottom{margin-top:4vh}}.board-editor .spare .no-square{flex:0 0 12.5%;transition:all 150ms}.board-editor .spare .no-square:hover{background:rgba(27,120,208,.2)}.board-editor .spare .no-square.selected-square{background:rgba(27,120,208,.5)}.board-editor .spare .no-square.pointer:hover{background:rgba(98,153,36,.2)}.board-editor .spare .no-square.pointer.selected-square{background:rgba(98,153,36,.6)}.board-editor .spare .no-square.pointer piece{background-image:url("../images/icons/pointer.svg")}.board-editor .spare .no-square.trash:hover{background:rgba(204,51,51,.2)}.board-editor .spare .no-square.trash.selected-square{background:rgba(204,51,51,.6)}.board-editor .spare .no-square.trash piece{background-image:url("../images/icons/trash.svg")}.is3d .board-editor .spare .no-square div{padding-bottom:90.72%}.board-editor .spare piece{display:block;cursor:pointer;width:100%;height:100%}.is3d .board-editor .spare piece{width:100%;height:140.7465%;left:0;top:-34%}.board-editor .spare piece.pointer,.board-editor .spare piece.trash{margin:14%;width:72%;height:72%}.is3d .board-editor .spare piece.pointer,.is3d .board-editor .spare piece.trash{width:62%;top:0}.board-editor__tools{grid-area:tools;align-self:center}.board-editor__tools>*{margin:.5rem 0}.board-editor__tools select{width:100%}.board-editor__tools select.positions option:checked{font-style:italic}.board-editor__tools .metadata{background:#fff;padding:1rem;white-space:nowrap}.board-editor__tools .metadata .color,.board-editor__tools .metadata .playerIndex{margin-bottom:1em}.board-editor__tools .metadata .castling label,.board-editor__tools .metadata .castling input{display:inline-block;margin:3px;vertical-align:middle}.board-editor__tools .actions{justify-content:stretch}.board-editor__tools .actions .button{width:100%;text-align:left}body{overflow-y:scroll}.board-editor{user-select:none}.board-editor .main-board{grid-area:board}.board-editor cg-board{cursor:inherit}.board-editor .copyables{grid-area:copyables;margin:2rem 0 0 1rem}.board-editor .copyables p{display:flex;align-items:center}.board-editor .copyables p input{margin-left:1rem;flex:1 1 100%}
