.ch-prefs{display:contents}.ch{--ch-l:var(--ch-user-l,#e9d7b4);--ch-d:var(--ch-user-d,#a97a4f);grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:16px;width:100%;display:grid}.ch-main{flex-direction:column;align-items:center;gap:8px;min-width:0;display:flex}.ch-main>*{width:min(100%,100dvh - 250px);min-width:260px}@media (max-width:300px){.ch-main>*{min-width:0}}.ch-board-wrap{aspect-ratio:1;position:relative}.ch-board{border:3px solid var(--ink);touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;box-shadow:var(--shadow);border-radius:4px;grid-template-rows:repeat(8,1fr);grid-template-columns:repeat(8,1fr);display:grid;position:relative;overflow:hidden}.ch-row{display:contents}.ch-sq{place-items:center;min-width:0;min-height:0;display:grid;position:relative}.ch-sq.ch-l{background:var(--ch-l)}.ch-sq.ch-d{background:var(--ch-d)}.ch-sq.ch-last.ch-l{background:color-mix(in srgb, #cddc39 55%, var(--ch-l))}.ch-sq.ch-last.ch-d{background:color-mix(in srgb, #afc12a 55%, var(--ch-d))}.ch-sq.ch-hint{box-shadow:inset 0 0 0 4px var(--info)}.ch-sq.ch-sel{background:color-mix(in srgb, #8bc34a 70%, var(--ch-l))}.ch-sq.ch-check{background:radial-gradient(circle, var(--bad) 0%, color-mix(in srgb, var(--bad) 55%, transparent) 45%, transparent 75%), var(--ch-l)}.ch-sq.ch-check.ch-d{background:radial-gradient(circle, var(--bad) 0%, color-mix(in srgb, var(--bad) 55%, transparent) 45%, transparent 75%), var(--ch-d)}.ch-sq.ch-dot:after{content:"";pointer-events:none;background:#14213d52;border-radius:50%;width:30%;height:30%;position:absolute}.ch-sq.ch-cap:after{content:"";pointer-events:none;border:5px solid #14213d52;border-radius:50%;position:absolute;inset:4%}.ch-sq:focus-visible{outline:3px solid var(--info);outline-offset:-3px;z-index:1}.ch-board.live .ch-sq{cursor:pointer}.ch-pc{pointer-events:none;width:100%;height:100%;display:block;position:relative}.ch-rank,.ch-file{font-family:var(--f-mono);pointer-events:none;font-size:clamp(8px,1.5vw,11px);font-weight:600;line-height:1;position:absolute}.ch-rank{top:3px;left:3px}.ch-file{bottom:2px;right:3px}.ch-sq.ch-l .ch-rank,.ch-sq.ch-l .ch-file{color:var(--ch-d)}.ch-sq.ch-d .ch-rank,.ch-sq.ch-d .ch-file{color:var(--ch-l)}.ch-ghost{pointer-events:none;z-index:5;filter:drop-shadow(0 6px 6px #00000059);place-items:center;display:grid;position:absolute;top:0;left:0}.ch-pc.ch-moved{animation:var(--mo-slide);z-index:3}.ch-sq:has(.ch-moved){z-index:2}.ch-ghost .ch-pc{width:112%;height:112%}.ch-promo{gap:10px}.ch-promo p{font-family:var(--f-word);font-size:20px}.ch-promo-btn{aspect-ratio:1;border-radius:var(--radius);border:2px solid var(--line);background:var(--ch-l);cursor:pointer;width:clamp(48px,13vw,72px);padding:4px}.ch-promo-btn:hover,.ch-promo-btn:focus-visible{border-color:var(--accent);outline:none}.ch-promo-btn img{width:100%;height:100%;display:block}.ch-player{align-items:center;gap:10px;min-height:40px;display:flex}.ch-player .who{flex-direction:column;flex:1;min-width:0;display:flex}.ch-player .who b{font-family:var(--f-word);text-overflow:ellipsis;white-space:nowrap;font-size:18px;font-weight:400;line-height:1.1;overflow:hidden}.ch-player .who small{color:var(--muted);align-items:center;gap:6px;min-height:18px;font-size:12px;display:flex}.ch-taken{align-items:center;display:inline-flex}.ch-taken img{width:18px;height:18px;margin-right:-6px}.ch-taken em{font-style:normal;font-family:var(--f-mono);margin-left:9px}.ch-swatch{border:1.5px solid var(--ink);border-radius:3px;flex:none;width:14px;height:14px}.ch-swatch.w{background:#f8f6ef}.ch-swatch.b{background:#272c38}.ch-clock{font-family:var(--f-mono);font-variant-numeric:tabular-nums;border-radius:var(--radius);background:var(--sunk);color:var(--muted);text-align:center;min-width:92px;padding:4px 10px;font-size:22px;font-weight:600}.ch-clock.on{background:var(--ink);color:var(--surface)}.ch-clock.low.on{background:var(--bad);color:#fff}.ch-player.turn .who b:after{content:" ●";color:var(--accent);vertical-align:middle;font-size:12px}.ch-side{flex-direction:column;gap:12px;min-width:0;display:flex}.ch-status{font-family:var(--f-word);font-size:19px;line-height:1.25}.ch-status.done{color:var(--accent)}.ch-moves{background:var(--sunk);border-radius:var(--radius);max-height:min(320px,40dvh);font-family:var(--f-mono);grid-template-columns:34px 1fr 1fr;align-content:start;gap:2px 4px;min-height:64px;margin:0;padding:6px;font-size:14px;list-style:none;display:grid;overflow-y:auto}.ch-moves li{display:contents}.ch-moves .n{color:var(--muted);text-align:right;padding:3px 4px 3px 0}.ch-moves button{text-align:left;font:inherit;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:4px;padding:3px 6px}.ch-moves button:hover{background:var(--surface)}.ch-moves button[aria-current=true]{background:var(--accent);color:var(--accent-ink)}.ch-moves li.empty{color:var(--muted);font-family:var(--f-body);grid-column:1/-1;padding:6px;font-size:13px;display:block}.ch-nav{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.ch-nav .btn{padding-inline:0}.ch-actions{flex-wrap:wrap;gap:8px;display:flex}.ch-actions .btn{flex:auto}.ch-review{font-size:13px}.ch-export{border-top:1px solid var(--line);flex:100%;gap:6px;padding-top:10px;display:grid}.ch-export-row{flex-wrap:wrap;gap:6px;display:flex}.ch-export-row .btn{flex:auto}.ch-gif{gap:8px;margin:0;display:grid}.ch-gif img{border-radius:var(--radius);border:1.5px solid var(--line);background:var(--surface);width:100%;height:auto}.ch-gif .btn-row{flex-wrap:wrap;gap:6px;display:flex}.ch-levels{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.ch-levels .chip-btn{font-family:var(--f-display);justify-content:center;padding-inline:0;font-size:16px}.ch-level-about{min-height:2.6em;font-size:14px}.ch-level-about b{font-family:var(--f-word);font-size:17px;font-weight:400}.ch-resume{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.ch-seats{grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:360px;display:grid}.ch-seat{border:1.5px solid var(--line);border-radius:var(--radius);text-align:left;flex-direction:column;gap:2px;padding:8px 10px;display:flex}.ch-seat b{font-family:var(--f-word);text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:400;overflow:hidden}@media (max-width:860px){.ch{grid-template-columns:1fr}.ch-main>*{width:min(100%,100dvh - 210px)}.ch-side{width:min(100%,560px);margin-inline:auto}.ch-moves{max-height:180px}}@media (orientation:landscape) and (max-height:520px){.ch{grid-template-columns:minmax(0,1fr) 240px}.ch-main>*{width:min(100%,100dvh - 120px);min-width:0}.ch-player{min-height:30px}.ch-player .who small{display:none}.ch-clock{min-width:70px;padding:2px 8px;font-size:17px}}@media (prefers-reduced-motion:reduce){.ch-ghost{filter:none}}.ch-style{border-top:1.5px solid var(--line);flex-direction:column;gap:6px;padding-top:8px;display:flex}.ch-style summary{cursor:pointer;padding:4px 0;font-size:14px;font-weight:600}.ch-style[open] summary{margin-bottom:4px}.ch-style .label{margin-top:6px;display:block}.ch-theme{border-width:2px}.ch-custom{flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:4px;font-size:13px;display:flex}.ch-custom label{cursor:pointer;align-items:center;gap:6px;display:inline-flex}.ch-custom input[type=color]{border:1.5px solid var(--line);cursor:pointer;background:0 0;border-radius:4px;width:32px;height:28px;padding:0;font-size:16px}.ch-sets{flex-wrap:wrap;gap:6px;display:flex}.ch-set{border-radius:var(--radius);border:1.5px solid var(--line);background:var(--ch-l,#e9d7b4);cursor:pointer;width:40px;height:40px;padding:3px}.ch-set img{width:100%;height:100%;display:block}.ch-set[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.ch-set:hover{border-color:var(--accent)}.ch-m-inaccuracy{--mk:var(--info)}.ch-m-mistake{--mk:var(--sun)}.ch-m-blunder{--mk:var(--bad)}.ch-mark{color:var(--mk);margin-left:1px;font-weight:700}.ch-moves button[aria-current=true] .ch-mark{color:inherit}.ch-an{flex-direction:column;gap:8px;display:flex}.ch-an-eval{align-items:center;gap:10px;display:flex}.ch-an-eval b{font-variant-numeric:tabular-nums;min-width:64px;font-size:20px}.ch-an-bar{border:1.5px solid var(--ink);background:#272c38;border-radius:3px;flex:1;height:12px;overflow:hidden}.ch-an-bar i{background:#f8f6ef;height:100%;transition:width .3s;display:block}.ch-an-note{font-size:14px}.ch-an-note.ch-m-inaccuracy,.ch-an-note.ch-m-mistake,.ch-an-note.ch-m-blunder{border-left:3px solid var(--mk);padding-left:8px}.ch-an-small{font-size:13px}.ch-an-graph{height:84px;position:relative}.ch-an-graph svg{cursor:crosshair;touch-action:none;border-radius:4px;width:100%;height:100%;display:block}.ch-an-graph .bg{fill:#272c38}.ch-an-graph .white{fill:#f8f6ef}.ch-an-graph .mid{stroke:#8297b1;stroke-width:1px}.ch-an-graph .edge{fill:none;stroke:#8297b1;stroke-width:2px}.ch-an-graph .now{stroke:var(--accent);stroke-width:2px}.ch-an-graph .hover{stroke:var(--info);stroke-width:1.5px}.ch-an-dot{background:var(--mk);width:9px;height:9px;box-shadow:0 0 0 2px var(--surface);pointer-events:none;border-radius:50%;position:absolute;transform:translate(-50%,-50%)}.ch-an-tip{background:var(--ink);color:var(--surface);font-family:var(--f-mono);white-space:nowrap;pointer-events:none;z-index:2;border-radius:4px;padding:3px 8px;font-size:12px;position:absolute;top:4px;transform:translate(-50%)}.ch-an-sum{border-collapse:collapse;width:100%;font-size:13px}.ch-an-sum th,.ch-an-sum td{text-align:right;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;padding:4px 6px}.ch-an-sum th[scope=row]{text-align:left;white-space:nowrap;text-overflow:ellipsis;max-width:120px;font-weight:600;overflow:hidden}.ch-an-sum thead th{font-family:var(--f-mono);color:var(--muted);font-weight:600}.ch-an-sum .ch-swatch{vertical-align:-2px;width:11px;height:11px;display:inline-block}.ch-room{--surface:#23392d;--sunk:#1b2e24;--ink:#f3eedf;--muted:#b9c7b5;--line:#3f5a49;--accent:#e0be6a;--accent-ink:#1e2a22;--sun:#e0be6a;--good:#7bd88f;--bad:#ff8a7a;--info:#8cc4ff;--good-tint:#284a30;--bad-tint:#5a2a22;--warn-tint:#4e4420;--info-tint:#22405a;--shadow:0 2px 0 #0000002e, 0 14px 26px -12px #000000b3;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--ink);background-color:#2e4a3a;background-image:radial-gradient(80% 60% at 40% 35%,#ffffe612,#0000 70%),repeating-linear-gradient(45deg,#ffffff05 0 2px,#0000 2px 4px),repeating-linear-gradient(-45deg,#0000000d 0 2px,#0000 2px 5px),linear-gradient(#30503e,#26402f);border-radius:12px;margin-block:18px 28px;box-shadow:inset 0 0 0 1px #ffffff0f,inset 0 0 80px #00000059,0 18px 40px -22px #0009}.ch-room .panel,.ch-room .ch-side{--surface:#f6f1e4;--sunk:#ece4d0;--ink:#23211c;--muted:#6a6556;--line:#d8cdb3;--accent:#2e4a3a;--accent-ink:#fff;--sun:#9a6a00;--good:#2b8a3e;--bad:#b3261e;--info:#2f6fbf;--good-tint:#e2f2df;--bad-tint:#fbe1de;--warn-tint:#fff0c9;--info-tint:#dfebf8;--shadow:0 1px 0 #3c28141a, 0 10px 20px -10px #0009;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--ink)}.ch-room .panel{background:var(--surface);box-shadow:var(--shadow);border-color:#e2d8bf}.ch-room .play-bar .title h1{text-shadow:0 1px #00000059}.ch-room .ch-main>*{width:min(100%,100dvh - 272px)}.ch-room .ch-board-wrap{background:linear-gradient(135deg,#6b4528,#4e2f18 55%,#5b3a22);border-radius:6px;padding:clamp(6px,1.6%,11px);box-shadow:inset 0 1px #ffdcaa40,inset 0 -2px #00000059,0 16px 30px -12px #000000bf}.ch-room .ch-board{border:2px solid #c9a24a;border-radius:2px;box-shadow:0 0 0 1px #3a2414}.ch-room .ch-player{color:#f6ead3;background:repeating-linear-gradient(90deg,#ffdcaa0d 0 2px,#0000 2px 9px),linear-gradient(#6e482b,#573821);border-radius:6px;padding:4px 6px 4px 8px;box-shadow:inset 0 1px #ffdcaa38,inset 0 -1px #0006,0 3px 8px -4px #0009}.ch-room .ch-player .who b{color:#fbf1dd;text-shadow:0 -1px #00000073}.ch-room .ch-player .who small{color:#d9c3a0}.ch-room .ch-player.turn .who b:after{color:#e0be6a}.ch-pawn{background:#0000002e;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;display:grid}.ch-pawn img{width:24px;height:24px;display:block}.ch-room .ch-pawn{background:radial-gradient(circle at 50% 40%,#f3e3c3,#d9c29a);box-shadow:inset 0 1px 2px #00000059}.ch-room .ch-clock{color:#8f887a;background:#1c1a16;border-radius:5px;box-shadow:inset 0 2px 4px #000000b3,0 0 0 2px #3a2414}.ch-room .ch-clock.on{color:#1c1a16;background:#f6edcf;box-shadow:inset 0 0 8px #e0be6a99,0 0 0 2px #c9a24a,0 0 14px #f6edcf59}.ch-room .ch-clock.low.on{color:#8e1b12;background:#f4c6be}.ch-room .ch-side{background:var(--surface);box-shadow:var(--shadow);border-radius:6px;padding:14px}.ch-room .ch-moves{border:1px solid var(--line);background:#fffcf3 linear-gradient(#0000 25px,#2f6fbf2e 25px 26px) 0 0/100% 26px local;border-radius:3px;grid-auto-rows:26px;gap:0 4px;padding:0 6px}.ch-room .ch-moves .n,.ch-room .ch-moves button{padding-block:0;line-height:25px}.ch-room .ch-moves .n{border-right:1px solid #b3261e4d}.ch-room .ch-nav .btn{color:var(--ink);border-color:var(--line);font-size:16px}.ch-room .ch-nav .btn:disabled{color:#b8af9b}.ch-room .ch-actions .ch-resign{color:var(--bad);border-color:color-mix(in srgb, var(--bad) 55%, transparent);flex:0 auto;margin-left:auto}.ch-mini{aspect-ratio:1;border:2px solid #c9a24a;border-radius:2px;grid-template-columns:repeat(8,1fr);width:min(100%,216px);margin:2px auto 4px;display:grid;box-shadow:0 0 0 6px #5b3a22,0 0 0 7px #3a2414,0 10px 18px -8px #00000080}.ch-mini span{place-items:center;min-width:0;display:grid}.ch-mini img{width:100%;height:100%;display:block}.ch-mini-l{background:var(--ch-user-l,#e9d7b4)}.ch-mini-d{background:var(--ch-user-d,#a97a4f)}.ch-room .om-box .ch-mini{margin-block:10px 12px}.ch-levels .chip-btn{flex-direction:column;gap:1px;padding-block:5px;line-height:1.1}.ch-levels .chip-btn small{font-family:var(--f-body);opacity:.85;font-size:10px;font-weight:600}.ch-room .ch-levels .chip-btn{color:var(--ink);background:linear-gradient(#fbf4e2,#eadcb8);border-color:#c9a24a;border-radius:10px}.ch-room .ch-levels .chip-btn[aria-pressed=true]{color:#23211c;background:linear-gradient(#e3c46f,#c49a3a);border-color:#8c6a1e;box-shadow:inset 0 1px #ffffff80,0 2px #8c6a1e}.ch-side-pick img{width:20px;height:20px;margin:-3px 0;display:block}.ch-kings{display:inline-flex}.ch-kings img+img{margin-left:-8px}.ch-room .chip-btn.ch-side-pick[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--surface)}@media (max-width:760px){.ch-room{width:auto;margin-inline:8px;padding-inline:12px}.ch-room .ch-side{padding:12px 10px}}@media (max-width:860px){.ch-room .ch-main>*{width:min(100%,100dvh - 230px)}}.ch-classic .ch-sq.ch-last.ch-l{background:color-mix(in srgb, var(--accent) 38%, var(--ch-l))}.ch-classic .ch-sq.ch-last.ch-d{background:color-mix(in srgb, var(--accent) 45%, var(--ch-d))}.ch-classic .ch-sq.ch-sel{background:color-mix(in srgb, var(--accent) 65%, var(--ch-l))}.ch-classic .ch-mini{border:1.5px solid var(--line);box-shadow:none}.ch-menu-look{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:14px;display:flex}.ch-menu-look .label{margin:0}.ch-variant{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.ch-variant-about{max-width:70ch;margin:0;font-size:14px}.ch-sh-levels{grid-template-columns:repeat(3,1fr)}.ch-main.ch-sh-main>.ch-sh-wrap{width:min(100%, calc((100dvh - 250px) * var(--sh-ratio)))}.ch-sh-wrap{aspect-ratio:var(--sh-ratio)}.ch-sh-board{touch-action:manipulation;-webkit-user-select:none;user-select:none;gap:2px;width:100%;height:100%;display:grid}.ch-sh-board .ch-sq{font:inherit;color:inherit;cursor:default;border:0;border-radius:3px;padding:0}.ch-sh-board.live .ch-sq{cursor:pointer}.ch-sh-hole{background:color-mix(in srgb, var(--ink) 7%, transparent);border:1px dashed color-mix(in srgb, var(--ink) 18%, transparent);border-radius:3px}.ch-sh-name{font-family:var(--f-mono);pointer-events:none;font-size:clamp(7px,1.3vw,10px);font-weight:600;line-height:1;position:absolute;top:2px;left:3px}.ch-sq.ch-l .ch-sh-name{color:var(--ch-d)}.ch-sq.ch-d .ch-sh-name{color:var(--ch-l)}.ch-sh-lane{place-items:center;min-width:0;min-height:0;display:grid}.ch-sh-arrow{border:1.5px solid var(--line);background:var(--surface);width:100%;max-width:44px;height:100%;max-height:44px;color:var(--ink);cursor:pointer;border-radius:999px;place-items:center;padding:0;font-size:clamp(10px,1.8vw,15px);line-height:1;display:grid}.ch-sh-arrow:hover:not(:disabled),.ch-sh-arrow:focus-visible{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 18%, var(--surface));outline:none}.ch-sh-arrow:disabled{opacity:.25;cursor:default}.ch-sh-arrow.last{border-color:var(--accent)}.ch-sh-arrow.ch-hint{box-shadow:0 0 0 3px var(--info)}.ch-room .ch-sh-wrap{padding:clamp(4px,1%,8px)}.ch-room .ch-sh-hole{background:#0000002e;border-color:#ffe6be26}.ch-games-entry{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin-top:14px;display:flex}.ch-games-entry>div{flex:280px;min-width:0}.ch-games-entry h2,.ch-games-entry p{margin:0}.ch-games-entry p{margin-top:4px;font-size:14px}.ch-lib-box{flex-direction:column;gap:10px;min-width:0;display:flex}.ch-lib-box h2,.ch-lib-box p{margin:0}.ch-pgn{resize:vertical;width:100%;min-height:120px;font-family:var(--f-mono);font-size:13px;line-height:1.4}.ch-upload{position:relative;overflow:hidden}.ch-upload input{opacity:0;cursor:pointer;width:100%;height:100%;font-size:16px;position:absolute;inset:0}.ch-upload:focus-within{outline:2px solid var(--accent);outline-offset:2px}.ch-lib-found{flex-direction:column;gap:8px;display:flex}.ch-lib-list{flex-direction:column;gap:6px;max-height:420px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.ch-lib-list li{border:1.5px solid var(--line);border-radius:var(--radius);align-items:center;gap:8px;min-width:0;padding:4px 6px 4px 4px;display:flex}.ch-lib-open{text-align:left;border-radius:calc(var(--radius) - 2px);cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;gap:2px;min-width:0;padding:6px 8px;display:flex}.ch-lib-open:hover,.ch-lib-open:focus-visible{background:color-mix(in srgb, var(--accent) 10%, transparent);outline:none}.ch-lib-open b,.ch-lib-open small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.ch-lib-open small{font-size:12.5px}
