.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%)}.board-with-eval{grid-template-columns:28px minmax(0,1fr);align-items:stretch;gap:8px;width:100%;display:grid}.board{aspect-ratio:1;border-radius:var(--radius-sm);touch-action:none;border:1px solid var(--border);width:100%;position:relative;overflow:hidden;box-shadow:0 12px 36px #00000052}.board__cg{width:100%;height:100%}.board-theme-walnut,.board-theme-wood{--sq-light:#e8d5b5;--sq-dark:#a67851;--sq-coord-light:#6b492c;--sq-coord-dark:#fbf4e6}.board-theme-felt,.board-theme-sage{--sq-light:#e4e2cf;--sq-dark:#607c64;--sq-coord-light:#3b523e;--sq-coord-dark:#f5f4ea}.board-theme-slate{--sq-light:#dce2e6;--sq-dark:#637483;--sq-coord-light:#3d4b57;--sq-coord-dark:#f2f5f7}.board-theme-maple{--sq-light:#f2e4c9;--sq-dark:#c49663;--sq-coord-light:#7c5830;--sq-coord-dark:#fff9ee}.board cg-board{background-color:var(--sq-light);background-image:conic-gradient(var(--sq-dark) 90deg, var(--sq-light) 90deg 180deg, var(--sq-dark) 180deg 270deg, var(--sq-light) 270deg);background-size:25% 25%}.board cg-board square.last-move{background-color:#c9a55c73}.board cg-board square.selected{background-color:#5b8fd973}.board cg-board square.move-dest{background:radial-gradient(#1119165c 20%,#0000 23%)}.board cg-board square.oc.move-dest{background:radial-gradient(#0000 0% 78%,#11191666 80%)}.board cg-board square.move-dest:hover{background:#5b8fd95c}.board cg-board square.check{background:radial-gradient(#d04834f2 0%,#d0483494 34%,#0000 76%)}.board cg-board square.hl-good{background-color:#4a9e6d8c;box-shadow:inset 0 0 0 3px #4a9e6df2}.board cg-board square.hl-bad{background-color:#d06a5594;box-shadow:inset 0 0 0 3px #d06a55f2}.board cg-board square.hl-info{background-color:#5b8fd97a}.board cg-board square.hl-target{box-shadow:inset 0 0 0 4px #5b8fd9f2}.board cg-board square.hl-selected{background-color:#5b8fd973}.board cg-board square.hl-brass{background-color:#c9a55c7a;box-shadow:inset 0 0 0 3px #c9a55ceb}.board .cg-wrap coords{font-family:var(--font);font-size:clamp(10px,1.8vw,12px);font-weight:700}.board .cg-wrap coords coord{opacity:.95;color:var(--sq-coord-light)!important}.board .orientation-white .ranks :nth-child(odd),.board .orientation-white .files :nth-child(odd),.board .orientation-black .ranks :nth-child(2n),.board .orientation-black .files :nth-child(2n){text-shadow:0 1px 1px #11191659;color:var(--sq-coord-dark)!important}.board .cg-wrap .cg-shapes{opacity:.86}.board__badges{pointer-events:none;z-index:6;grid-template:repeat(8,1fr)/repeat(8,1fr);display:grid;position:absolute;inset:0}.move-badge{color:#fff;border:2px solid #ffffffe6;border-radius:999px;place-self:start end;place-items:center;min-width:24px;height:24px;padding:0 5px;font-size:11px;font-weight:800;line-height:1;display:inline-grid;transform:translate(18%,-18%);box-shadow:0 2px 6px #00000073}.move-badge--brilliant{background:#1baca6}.move-badge--great{background:#4e8de0}.move-badge--book{background:#a88240}.move-badge--best{background:#4a9e6d}.move-badge--excellent{background:#67ad6e}.move-badge--good{background:#7d9678}.move-badge--inaccuracy{color:#141916;background:#d8a33a}.move-badge--mistake{background:#dc7c35}.move-badge--blunder,.move-badge--miss{background:#cc4438}.evalbar-v{border-radius:var(--radius-sm);border:1px solid var(--border);font-variant-numeric:tabular-nums;background:#191f1c;flex-direction:column;justify-content:flex-end;width:28px;height:100%;display:flex;position:relative;overflow:hidden}.evalbar-v.is-flipped{justify-content:flex-start}.evalbar-v__white{width:100%;transition:height .35s var(--ease);background:#ece6d6}.evalbar-v__label{text-align:center;letter-spacing:-.02em;pointer-events:none;padding:5px 1px;font-size:10px;font-weight:800;line-height:1;position:absolute;left:0;right:0}.evalbar-v__label.is-white-adv{color:#141c18;bottom:2px}.evalbar-v__label.is-black-adv{color:#ece6d6;top:2px}.evalbar-v.is-flipped .evalbar-v__label.is-white-adv{top:2px;bottom:auto}.evalbar-v.is-flipped .evalbar-v__label.is-black-adv{top:auto;bottom:2px}.evalbar-h{border-radius:var(--radius-sm);border:1px solid var(--border);font-variant-numeric:tabular-nums;background:#191f1c;justify-content:space-between;align-items:center;height:24px;padding:0 10px;display:flex;position:relative;overflow:hidden}.evalbar-h__fill{transition:width .35s var(--ease);background:#ece6d6;position:absolute;inset:0 auto 0 0}.evalbar-h.is-black{background:#ece6d6}.evalbar-h.is-black .evalbar-h__fill{background:#191f1c}.evalbar-h__score,.evalbar-h__depth{z-index:1;mix-blend-mode:difference;color:#ece6d6;font-size:12px;font-weight:700;position:relative}.board__promo{z-index:30;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0a100d9e;place-items:center;display:grid;position:absolute;inset:0}.board__promo-box{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(92%,360px);padding:14px;display:grid}.board__promo-piece{aspect-ratio:1;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);cursor:pointer;min-width:0;transition:background-color .14s, transform .12s var(--ease);padding:6px}.board__promo-piece:hover,.board__promo-piece:focus-visible{background:var(--accent-soft);transform:translateY(-2px)}.board__promo-piece img{width:100%;min-width:0;height:100%;display:block}.board__promo-cancel{color:var(--ink-soft);font:inherit;font-size:var(--text-sm);cursor:pointer;background:0 0;border:0;grid-column:1/-1;padding:6px}
