.board{--light:#ebecd0;--dark:#739552;--last:#ffff337a;aspect-ratio:1;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;contain:layout paint;border-radius:var(--board-radius,0);width:100%;position:relative;overflow:hidden}.board.theme-green{--light:#ebecd0;--dark:#739552}.board.theme-brown{--light:#f0d9b5;--dark:#b58863}.board.theme-blue{--light:#dee3e6;--dark:#8ca2ad}.board.theme-gray{--light:#e4e6ea;--dark:#8a94a3}.board.theme-brand{--light:var(--brand-board-light,#ebecd0);--dark:var(--brand-board-dark,#739552);--last:var(--brand-board-last,#ffff337a)}.board .squares{width:100%;height:100%;display:block;position:absolute;inset:0}.board .sq-light{fill:var(--light)}.board .sq-dark{fill:var(--dark)}.board .coords{pointer-events:none;position:absolute;inset:0}.board .coord{font-size:max(9px,2.6cqw);font-weight:700;line-height:1;position:absolute}.board{container-type:inline-size}.board .coord.rank{padding-top:.6%;left:.5%}.board .coord.file{text-align:right;width:12.5%;padding-right:.8%;bottom:.4%}.board .coord.on-light{color:var(--dark)}.board .coord.on-dark{color:var(--light)}.board .mark,.board .dest,.board .hover-sq,.board .piece{pointer-events:none;width:12.5%;height:12.5%;position:absolute;top:0;left:0}.board .mark-last{background:var(--last)}.board .mark-selected{background:#ffff338c}.board .mark-premove{background:#2870dc6b}.board .mark-preselected{background:#2870dc4d}.board .mark-last,.board .mark-selected,.board .mark-premove,.board .mark-preselected{animation:.2s ease-out fade}.board .mark-check{background:radial-gradient(circle,#ff1e1ef2 0%,#e700008c 35%,#a9000000 72%)}.board .mark-hint{background:#50a0ff8c;animation:1.2s ease-in-out infinite pulse}.board .mark-good{background:#6ec8469e;animation:.5s ease-out flash}.board .mark-bad{background:#f0463c9e;animation:.5s ease-out flash}.board .mark-marked{background:#2f8cff4d;box-shadow:inset 0 0 0 .45cqw #2f8cff}.board .mark-reveal{background:#ffb02059;box-shadow:inset 0 0 0 .45cqw #ffb020}.board .mark-target{background:radial-gradient(circle,#ffb020e6 0 22%,#0000 24%)}.board .mark-path{background:#2f8cff47}.board .mark-focus{background:#ffb02047;animation:1.4s ease-in-out infinite pulse;box-shadow:inset 0 0 0 .6cqw #ffb020}.board .dest{background:radial-gradient(circle,#00000029 0 17%,#0000 19%) 50%/100% 100% no-repeat;animation:.18s ease-out dest-in}.board .dest.capture{background-image:radial-gradient(circle,#0000 0 63%,#00000029 65% 79%,#0000 81%)}.board .dest.pre{background-image:radial-gradient(circle,#2870dc66 0 15%,#0000 17%)}.board .hover-sq{opacity:0;transition:opacity 80ms;box-shadow:inset 0 0 0 .55cqw #ffffffbf}.board .piece{will-change:transform;z-index:2;filter:drop-shadow(0 .5cqw .42cqw #00000052);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .28s,background-size .2s cubic-bezier(.3,.7,.4,1),background-position .2s cubic-bezier(.3,.7,.4,1),filter .2s;animation:.26s ease-out piece-in}.board .piece.lifted{z-index:3;filter:drop-shadow(0 .8cqw .8cqw #0000004d);background-position:50% 80%;background-size:108% 108%}.board .piece.dying{opacity:0;z-index:1;background-position:50%;background-size:78% 78%}.board .piece.dragging{z-index:10;filter:drop-shadow(0 6px 10px #00000059);background-size:100% 100%}.board.hide-pieces .piece{opacity:0;transition:opacity .32s}.board .arrows{pointer-events:none;z-index:1;width:100%;height:100%;position:absolute;inset:0}.board .arrow-line{stroke-width:.15px;stroke-linecap:round;opacity:.66;animation:.3s ease-out draw}.board line.arrow-green,.board path.arrow-green{stroke:#2e8b37;fill:#2e8b37}.board line.arrow-blue,.board path.arrow-blue{stroke:#3478e0;fill:#3478e0}.board line.arrow-orange,.board path.arrow-orange{stroke:#f5a524;fill:#f5a524}.board line.arrow-red,.board path.arrow-red{stroke:#e0483e;fill:#e0483e}.board path[class^=arrow-]{stroke:none}.board .badge-sq{pointer-events:none;z-index:6;width:12.5%;height:12.5%;position:absolute}.board .badge-sq span{color:#fff;letter-spacing:-.3px;border-radius:999px;place-items:center;min-width:42%;height:42%;padding:0 4%;font-size:max(9px,2.3cqw);font-weight:800;animation:.28s cubic-bezier(.2,.9,.3,1.3) pop;display:grid;position:absolute;top:-4%;right:-4%;box-shadow:0 1px 4px #00000059,0 0 0 1.5px #ffffffe6}.board .promo-backdrop{z-index:20;background:#00000059;animation:.15s fade;position:absolute;inset:0}.board .promo{background:#fff;border-radius:8px;width:12.5%;animation:.2s cubic-bezier(.2,.9,.3,1.2) pop;display:flex;position:absolute;overflow:hidden;box-shadow:0 10px 30px #00000073}.board .promo-piece{aspect-ratio:1;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:92%;border:0;width:100%}.board .promo-piece:active{background-color:#e9e9e9}.board.shake{animation:.36s cubic-bezier(.36,.07,.19,.97) shake}@keyframes shake{20%,60%{transform:translate(-6px)}40%,80%{transform:translate(6px)}}@keyframes pulse{50%{opacity:.45}}@keyframes flash{0%{opacity:0}}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:scale(.85)}}@keyframes draw{0%{opacity:0}}@keyframes piece-in{0%{opacity:0;background-size:90% 90%}}@keyframes dest-in{0%{opacity:0;background-size:40% 40%}}
