.kl.ch{--felt:#2e5b45;--felt-2:#224835;--felt-3:#142d22;--felt-edge:#0c1d15;--mark-ink:#ffffff24;--ch-light:#edd5aa;--ch-dark:#a9703f;--ch-frame-1:#6e4220;--ch-frame-2:#4b2a12;--ch-frame-3:#34190a;--ch-coord:#f6e2c0;--ch-paper:#fff8e8;--ch-paper-2:#f3e6cb;--ch-ink:#14306e;--ch-ink-soft:#5a3e26;--ch-line:#5a3e2633;--ch-last:#ffce4875;--ch-sel:#ffd65ab3;--ch-dot:#28180a5c;--ch-hint:#2f7de1;--felt-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 170'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M40 160c-.4-11 5.6-19 13.2-26.6-5.6 2.4-11.4 3.8-15.6 1.2-4.6-2.8-5.8-8.2-2.4-12.4l14.6-15.6c2-4.6 6-7.4 10.6-8.2l2.2-7.6 4.6 7.8c10.6 2.4 18.6 13 18.6 28.4 0 13.6-4.4 23.4-4.8 33z'/%3E%3Cpath d='M30 166h60M34 160h52'/%3E%3Crect x='112' y='118' width='76' height='46' rx='6'/%3E%3Ccircle cx='132' cy='141' r='13'/%3E%3Ccircle cx='168' cy='141' r='13'/%3E%3Cpath d='M132 141v-8M168 141l6-5M124 118v-8h16v8M160 118v-6h16v6'/%3E%3C/g%3E%3C/svg%3E") left 1.2% bottom 10px / clamp(84px, 10.5%, 150px) auto no-repeat}[data-theme=dark] .kl.ch{--felt:#234736;--felt-2:#1a3729;--felt-3:#0e2018;--felt-edge:#08140e;--ch-light:#d9be91;--ch-dark:#8e5a31;--ch-paper:#1f2430;--ch-paper-2:#262c3a;--ch-ink:#dce4ff;--ch-ink-soft:#cdd3df;--ch-line:#cdd3df29;--felt-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 170'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M40 160c-.4-11 5.6-19 13.2-26.6-5.6 2.4-11.4 3.8-15.6 1.2-4.6-2.8-5.8-8.2-2.4-12.4l14.6-15.6c2-4.6 6-7.4 10.6-8.2l2.2-7.6 4.6 7.8c10.6 2.4 18.6 13 18.6 28.4 0 13.6-4.4 23.4-4.8 33z'/%3E%3Cpath d='M30 166h60M34 160h52'/%3E%3Crect x='112' y='118' width='76' height='46' rx='6'/%3E%3Ccircle cx='132' cy='141' r='13'/%3E%3Ccircle cx='168' cy='141' r='13'/%3E%3Cpath d='M132 141v-8M168 141l6-5M124 118v-8h16v8M160 118v-6h16v6'/%3E%3C/g%3E%3C/svg%3E") left 1.2% bottom 10px / clamp(84px, 10.5%, 150px) auto no-repeat}.ch-sprite{width:0;height:0;position:absolute;overflow:hidden}.ch-table{--side:calc(var(--sq,42px) * 8 + var(--rim,14px) * 2);grid-template-columns:var(--side);grid-template-areas:"top""frame""bottom""sheet";place-content:start center;gap:6px;padding:8px 6px 34px;display:grid}.ch-table.is-wide{grid-template-columns:var(--side) var(--panel,280px);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"frame top""frame sheet""frame bottom";align-content:center;gap:10px clamp(18px,2.4vw,34px);padding:8px 16px 34px}.kl.is-fs .ch-table{width:100%}.ch-frame{width:var(--side);height:var(--side);padding:var(--rim);box-sizing:border-box;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .32' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .06 0 0 0 0 .02 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--ch-frame-1), var(--ch-frame-2) 55%, var(--ch-frame-3));border-radius:10px;grid-area:frame;position:relative;box-shadow:0 18px 30px #0000006b,0 3px 6px #0000004d,inset 0 2px #ffe4ba38,inset 0 -2px #00000059}.kl.ch .ch-frame.kl-card{width:var(--side);height:var(--side);will-change:auto;border-radius:10px;transition:none;position:relative;top:auto;left:auto}.ch-files,.ch-ranks{pointer-events:none;color:var(--ch-coord);font:700 clamp(12px, calc(var(--rim) * .72), 14px)/1 var(--read);display:flex;position:absolute}.ch-files{left:var(--rim);right:var(--rim);height:var(--rim);bottom:0}.ch-files--top{display:none}.ch-ranks{left:0;top:var(--rim);bottom:var(--rim);width:var(--rim);flex-direction:column}.ch-files span,.ch-ranks span{flex:1;place-items:center;display:grid}.ch-grid{width:calc(var(--sq) * 8);height:calc(var(--sq) * 8);touch-action:none;position:relative;box-shadow:0 0 0 2px #22120a,0 0 0 4px #deb27080,0 0 0 5px #22120a}.ch-grid:after{content:"";z-index:1;pointer-events:none;mix-blend-mode:multiply;opacity:.55;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .18' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23w)'/%3E%3C/svg%3E");position:absolute;inset:0}.ch-row{display:contents}.ch-sq{width:var(--sq);height:var(--sq);background:var(--ch-light);cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;border-radius:0;margin:0;padding:0;position:absolute;top:0;left:0}.ch-sq.is-dark{background:var(--ch-dark)}.ch-sq:before,.ch-sq:after{content:"";pointer-events:none;position:absolute;inset:0}.ch-sq.is-last:before{background:var(--ch-last)}.ch-sq.is-sel:before{background:var(--ch-sel);box-shadow:inset 0 0 0 3px #fff6d6d9}.ch-sq.is-check:before{background:radial-gradient(circle,#e8261cf2 0%,#e8261c8c 38%,#e8261c00 72%)}.ch-sq.is-hint:before{box-shadow:inset 0 0 0 4px var(--ch-hint);background:#2f7de13d;animation:1.2s ease-in-out 3 ch-pulse}.ch-sq.is-target:after{background:var(--ch-dot);border-radius:50%;inset:35%}.ch-sq.is-cap:after{background:radial-gradient(circle, transparent 62%, var(--ch-dot) 64%);border-radius:50%;inset:3%}.ch-sq.is-mine{cursor:grab}.ch-sq:focus{outline:none}.ch-sq:focus-visible{box-shadow:inset 0 0 0 4px var(--yellow), inset 0 0 0 6px var(--navy);z-index:2;outline:none}@media (hover:hover){.ch-sq.is-target:hover:after{background:#28180a80;inset:30%}}@keyframes ch-pulse{50%{box-shadow:inset 0 0 0 7px var(--ch-hint)}}.ch-pieces{z-index:2;pointer-events:none;position:absolute;inset:0}.ch-piece{width:var(--sq);height:var(--sq);filter:drop-shadow(0 calc(var(--sq) * .05) calc(var(--sq) * .04) #1c0e0461);transition:transform .26s cubic-bezier(.16,1,.3,1),opacity .24s,scale .24s;position:absolute;top:0;left:0}.ch-piece svg{box-sizing:border-box;width:100%;height:100%;padding:3%;display:block}.ch-piece.is-moving{z-index:3}.ch-piece.is-drag{z-index:5;filter:drop-shadow(0 calc(var(--sq) * .16) calc(var(--sq) * .12) #140a026b);cursor:grabbing;transition:none}.ch-piece.is-taken{opacity:0;scale:.55}.ch-piece.is-shake svg{animation:.34s ch-shake}.ch-pieces.no-anim .ch-piece,.ch-piece.no-slide{transition:none}@keyframes ch-shake{20%{transform:rotate(-9deg)}45%{transform:rotate(8deg)}70%{transform:rotate(-5deg)}}.ch-placeholder{grid-template-rows:repeat(8,1fr);grid-template-columns:repeat(8,1fr);display:grid;position:absolute;inset:0}.ch-ph{background:var(--ch-light)}.ch-ph.is-dark{background:var(--ch-dark)}.ch-ph svg{box-sizing:border-box;width:100%;height:100%;padding:3%;display:block}.kl.ch:not(.is-ready) .ch-grid{width:min(92vw,520px);height:min(92vw,520px)}.kl.ch:not(.is-ready) .ch-frame{width:auto;height:auto;padding:14px}.kl.ch:not(.is-ready) .ch-player,.kl.ch:not(.is-ready) .ch-sheet{display:none}.ch-player{box-sizing:border-box;background:var(--ch-paper);min-width:0;min-height:40px;color:var(--ch-ink);border-radius:12px;align-items:center;gap:8px;padding:5px 10px 5px 6px;transition:box-shadow .2s;display:flex;box-shadow:0 6px 14px #00000038,0 1px 2px #0000002e}.ch-player--top{grid-area:top}.ch-player--bottom{grid-area:bottom}.ch-player.is-turn{box-shadow:0 0 0 3px var(--yellow), 0 6px 14px #00000038}.ch-avatar{background:var(--ch-paper-2);border-radius:50%;flex:none;place-items:center;width:30px;height:30px;display:grid}.ch-avatar svg{width:26px;height:26px}.ch-avatar svg rect,.ch-avatar svg path{fill:none;stroke:var(--ch-ink);stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}.ch-pname{min-width:0;line-height:1.15;display:grid}.ch-pname b{font:700 15px/1.15 var(--read);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ch-pname small{min-height:1.1em;font:700 12px/1.1 var(--read);color:var(--ch-ink-soft);white-space:nowrap}.ch-player.is-check small{color:#c21b13}[data-theme=dark] .ch-player.is-check small{color:#ff8c85}.ch-player.is-thinking small:after{content:"…";text-align:left;vertical-align:bottom;width:1.2em;animation:1.2s steps(4,end) infinite ch-dots;display:inline-block;overflow:hidden}@keyframes ch-dots{0%{width:0}to{width:1.2em}}.ch-caps{flex-wrap:wrap;justify-content:flex-end;align-items:center;min-width:0;margin-left:auto;display:flex}.ch-cap{width:20px;height:20px;margin-left:-7px}.ch-cap:first-child{margin-left:0}.ch-cap svg{width:100%;height:100%}[data-theme=dark] .ch-caps:has(.ch-cap){background:#f3e6cb;border-radius:999px;padding:2px 6px}[data-theme=dark] .ch-caps em{color:#5a3e26}.ch-caps em{font:700 13px/1 var(--read);color:var(--ch-ink-soft);margin-left:4px;font-style:normal}.ch-sheet{background:var(--ch-paper);min-width:0;color:var(--ch-ink);border-radius:12px;grid-area:sheet;align-items:center;gap:6px;padding:4px 4px 4px 10px;display:flex;box-shadow:0 6px 14px #00000038,0 1px 2px #0000002e}.ch-sheet-h{font:400 14px/1 var(--sign);letter-spacing:.06em;color:var(--ch-ink);margin:0;display:none}.ch-moves{white-space:nowrap;scrollbar-width:thin;scrollbar-color:var(--ch-line) transparent;min-width:0;font:700 14px/1.2 var(--read);font-variant-numeric:tabular-nums;flex:1;gap:10px;margin:0;padding:6px 2px;list-style:none;display:flex;overflow-x:auto}.ch-moves li{gap:5px;display:flex}.ch-moves .n{color:var(--ch-ink-soft);font-weight:400}.ch-moves .m.is-book{color:var(--ch-ink-soft);font-style:italic;font-weight:400}.ch-moves .m.is-now{background:var(--yellow);color:#14306e;border-radius:4px;margin:0 -4px;padding:0 4px}.ch-fig{vertical-align:-.25em;width:1.2em;height:1.2em;margin-right:1px;display:inline-block}.ch-fig svg{width:100%;height:100%;display:block}.ch-moves-empty{color:var(--ch-ink-soft);font-weight:400}.ch-sheet-btns{flex:none;display:flex}.ch-resign{min-height:40px;padding:6px 10px;font-size:13px}.ch-resign[hidden]{display:none}.ch-table.is-wide .ch-sheet{flex-direction:column;align-items:stretch;min-height:0;padding:12px 12px 10px}.ch-table.is-wide .ch-sheet-h{display:block}.ch-table.is-wide .ch-moves{border-top:1px solid var(--ch-line);flex:1 1 0;min-height:60px;padding:4px 0;display:block;overflow:hidden auto}.ch-table.is-wide .ch-moves li{border-radius:6px;grid-template-columns:2.6em 1fr 1fr;padding:3px 4px;display:grid}.ch-table.is-wide .ch-moves li:nth-child(2n){background:color-mix(in srgb, var(--ch-paper-2) 60%, transparent)}.ch-table.is-wide .ch-moves .m.is-now{justify-self:start;margin:0 0 0 -4px}.ch-table.is-wide .ch-player{min-height:54px;padding:8px 12px 8px 8px}.ch-table.is-wide .ch-avatar{width:38px;height:38px}.ch-table.is-wide .ch-avatar svg{width:32px;height:32px}.ch-table.is-wide .ch-pname b{font-size:16px}.ch-table.is-wide .ch-pname small{font-size:13px}.ch-table.is-wide .ch-sheet-btns{border-top:1px solid var(--ch-line);justify-content:flex-end;padding-top:8px}.ch-table.is-compact{width:var(--side);grid-template-columns:max-content minmax(0,1fr);grid-template-areas:"top top""frame frame""bottom sheet";justify-content:stretch;margin-inline:auto}.ch-table.is-compact .ch-player{gap:6px;min-height:34px;padding:3px 8px 3px 4px}.ch-table.is-compact .ch-avatar{width:26px;height:26px}.ch-table.is-compact .ch-avatar svg{width:22px;height:22px}.ch-table.is-compact .ch-pname b{font-size:13px}.ch-table.is-compact .ch-pname small{font-size:11px}.ch-table.is-compact .ch-player--bottom .ch-caps{display:none}.ch-table.is-compact .ch-sheet{min-height:34px;padding:2px 3px 2px 8px}.ch-table.is-compact .ch-moves{padding:4px 2px;font-size:13px}.ch-table.is-compact .ch-resign{min-width:40px;padding:5px 9px}.ch-table.is-compact .ch-resign span{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.ch-table.is-short .ch-player{min-height:40px;padding:4px 10px 4px 6px}.ch-table.is-short .ch-avatar{width:30px;height:30px}.ch-table.is-short .ch-avatar svg{width:26px;height:26px}.ch-table.is-short .ch-sheet{padding:6px 8px}.ch-table.is-short .ch-sheet-h{display:none}.ch-table.is-short .ch-moves{border-top:0;min-height:24px}.ch-table.is-short .ch-sheet-btns{padding-top:4px}.ch-table.is-short .ch-resign{min-height:36px;padding:5px 8px}.kl.ch .kl-win{top:46%}.kl.ch.is-over .ch-sheet{box-shadow:0 0 0 2px var(--ch-line), 0 6px 14px #00000038}.ch-opts{text-align:left;gap:6px;width:min(100%,520px);margin-top:4px;display:grid}.ch-opt-row{align-items:center;gap:8px;display:flex}.ch-opt-row[hidden]{display:none}.ch-opt-l{width:82px;font:700 12px/1.2 var(--read);letter-spacing:.08em;text-transform:uppercase;color:#c9d3f0;flex:none}.ch-seg{background:#ffffff1a;border-radius:12px;flex:1;gap:4px;padding:3px;display:flex;box-shadow:inset 0 0 0 1px #ffffff1f}.ch-seg button{color:#fff8e8;min-height:40px;font:700 14px/1.1 var(--read);cursor:pointer;background:0 0;border:0;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:4px;padding:6px 8px;transition:background .15s,color .15s;display:inline-flex}.ch-seg button:hover{background:#ffffff1f}.ch-seg button.is-on{color:var(--navy);background:#fff8e8;box-shadow:0 2px 5px #0000004d}.ch-seg button:focus-visible{outline:3px solid var(--yellow);outline-offset:1px}.ch-seg--levels button{padding:6px 2px;font-size:16px}.ch-seg-ico{width:22px;height:22px;display:inline-block}.ch-seg-ico svg{width:100%;height:100%}.ch-opt-note{color:#dce4ff;text-wrap:balance;margin:0 0 0 90px;font-size:12px;font-weight:700;line-height:1.35}.ch-opt-note[hidden]{display:none}.ch-promo,.ch-ask{z-index:940;backdrop-filter:blur(3px);background:#08122a94;place-items:center;padding:12px;display:grid;position:absolute;inset:0}.ch-promo[hidden],.ch-ask[hidden]{display:none}.ch-promo-in,.ch-ask-in{text-align:center;background:var(--navy);width:min(94%,420px);color:var(--paper);border-radius:14px;justify-items:center;gap:10px;padding:16px 18px;display:grid;box-shadow:0 16px 36px #00000080}.ch-promo-in strong,.ch-ask-in strong{font:400 clamp(20px, 3vw, 28px)/1.05 var(--sign);color:var(--yellow)}.ch-ask-in>span{font-weight:700}.ch-promo-btns{grid-template-columns:repeat(4,1fr);gap:8px;width:100%;display:grid}.ch-promo-btn{cursor:pointer;font:700 13px/1.1 var(--read);color:#14306e;background:linear-gradient(#f3ddb4,#ddba86);border:0;border-radius:12px;justify-items:center;gap:2px;padding:8px 4px 6px;transition:transform .12s;display:grid;box-shadow:0 3px 8px #0000004d}.ch-promo-btn>span:not(:last-child){width:56px;height:56px}.ch-promo-btn>span:last-child:first-letter{text-transform:uppercase}.ch-promo-btn svg{filter:drop-shadow(0 2px 2px #1e0f054d);width:100%;height:100%}.ch-promo .ch-promo-b,.ch-promo.is-black .ch-promo-w{display:none}.ch-promo.is-black .ch-promo-b{display:block}.ch-promo-btn:hover{transform:translateY(-2px)}.ch-promo-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}.ch-ask-btns{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:4px;display:flex}.kl-btn.is-busy{opacity:.7}@media (width<=420px){.ch-opt-l{width:64px;font-size:11px}.ch-opt-note{margin-left:72px}.ch-seg button{padding:6px 4px;font-size:13px}.ch-seg-ico{width:18px;height:18px}.ch-pname b{font-size:14px}.ch-cap{width:17px;height:17px;margin-left:-6px}}@media (width<=360px){.ch-opt-row{flex-wrap:wrap;gap:4px}.ch-opt-l{width:100%}.ch-opt-note{margin-left:0}.ch-promo-btn>span:not(:last-child){width:44px;height:44px}}@media (height<=520px){.ch .kl-splash-sub,.ch .kl-splash-logo,.ch .ch-opt-note{display:none}.ch-seg button{min-height:34px}}@media (prefers-reduced-motion:reduce){.ch-piece,.ch-player{transition:none}.ch-sq.is-hint:before,.ch-player.is-thinking small:after{animation:none}}.kl.ch .kl-tabs{flex-wrap:wrap}.kl.ch .kl-tabs button{flex:1 0 auto}@media (width<=340px){.kl.ch .kl-stat:has([data-material]){display:none}}@media (height<=500px){.kl.ch.is-fs .kl-mark{display:none}.kl.ch.is-fs .ch-table{padding-bottom:8px}}
