.chess-entry .fast-click-art{background:#9fc7b4;color:#162b31}.chess-entry .card-number{color:#203d3a}.chess-entry .game-preview{transform:rotate(-5deg)}
#cx-dialog{--cx-ink:#192f35;--cx-cream:#f7f1df;--cx-mint:#a9d3bb;--cx-dark:#29524b;position:fixed;inset:0;margin:0;max-width:none;max-height:none;width:100%;height:100dvh;padding:0;background:#f1eee2;color:var(--cx-ink);border:0;border-radius:0;overflow:auto;overscroll-behavior:contain;font-family:inherit;text-align:left;color-scheme:light}
#cx-dialog::backdrop{background:#101a20ed}#cx-dialog *{box-sizing:border-box}#cx-dialog [hidden]{display:none!important}#cx-dialog :is(h2,h3,p){margin:0}#cx-dialog button,#cx-dialog select,#cx-dialog input{font:inherit}#cx-dialog button{min-height:42px;border:1.5px solid #8b9e92;border-radius:10px;background:#fcf8ec;color:var(--cx-ink);padding:10px 15px;font-weight:750;cursor:pointer;transition:background .15s,transform .15s}#cx-dialog button:hover:enabled{background:#e1edd8}#cx-dialog button:disabled{opacity:.5;cursor:default}#cx-dialog :is(button,input,select):focus-visible{outline:3px solid #da865f;outline-offset:3px}#cx-dialog small,.cx-eyebrow{font-size:10px;letter-spacing:.15em;font-weight:850}
.cx-header{position:sticky;top:0;z-index:5;background:#f5f1e6ed;backdrop-filter:blur(12px);padding:15px clamp(18px,4vw,64px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #213d3225}.cx-brand{display:flex;align-items:center;gap:13px}.cx-brand-mark{font-size:32px;display:grid;place-items:center;background:#a9d3bb;border:2px solid #192f35;border-radius:12px;width:48px;height:48px;box-shadow:3px 3px #192f3520}.cx-brand small{display:block;font-size:9px;letter-spacing:.17em;margin-bottom:3px}.cx-brand strong{display:block;font-size:24px;line-height:1;letter-spacing:-1px}.cx-brand strong span{color:#d78066}.cx-header-actions{display:flex;gap:9px;align-items:center}#cx-dialog #cx-close{font-size:27px;line-height:1;width:44px;height:44px;padding:0;background:#ffb297;border-color:#192f35}
.cx-home{max-width:1280px;margin:auto;padding:20px clamp(20px,4vw,64px) 40px}.cx-home [data-tutorial-slot]{min-height:40px}.cx-hero{display:grid;grid-template-columns:1.3fr 1fr;gap:35px;align-items:center;padding:14px 0 35px}.cx-eyebrow{display:block;color:#507362;margin-bottom:15px}.cx-hero h2{font-size:clamp(38px,5.2vw,72px);letter-spacing:-.065em;line-height:.99!important;font-weight:900}.cx-hero h2 em{font-style:normal;color:#48866e}.cx-hero p{font-size:16px;line-height:1.65;margin-top:22px!important;color:#556961}#cx-hero-art{width:100%;max-width:390px;justify-self:end;animation:cx-float 6s ease-in-out infinite}#cx-hero-art svg{display:block;width:100%;height:auto}.cx-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.cx-tags span{font-size:9px;font-weight:850;letter-spacing:.1em;padding:7px 11px;border:1px solid #b2bdac;border-radius:50px}
.cx-modes{display:grid;grid-template-columns:1fr 1fr;gap:22px}.cx-modes article{background:#fffcf3;border:2px solid #253e35;border-radius:20px;padding:25px;box-shadow:5px 5px #253e3515}.cx-mode-title{display:flex;align-items:center;gap:16px;margin-bottom:20px}.cx-mode-title>span{font-size:13px;font-weight:900;background:#a9d3bb;border:1.5px solid #192f35;border-radius:11px;padding:11px}.cx-modes article:nth-child(2) .cx-mode-title>span{background:#ffb297}.cx-mode-title h3{font-size:24px;letter-spacing:-.8px;margin-top:4px!important}.cx-modes p{font-size:13px;line-height:1.6;color:#576b63;margin:15px 0!important}.cx-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}#cx-dialog label{font-size:11px;font-weight:800;display:block}#cx-dialog select,#cx-dialog input{display:block;min-width:0;width:100%;height:44px;border:1px solid #a4b2a5;border-radius:8px;background:#f5f4eb;color:#263b34;padding:8px 10px;margin-top:7px;font-size:13px}#cx-dialog .cx-primary{display:flex;width:100%;align-items:center;justify-content:space-between;border:2px solid #192f35;background:#b5d992;box-shadow:0 3px #192f35;padding:13px 16px;font-size:12px;letter-spacing:.03em}#cx-dialog .cx-primary:hover:enabled{background:#c7e8a8;transform:translateY(-1px)}#cx-join{margin-top:20px}#cx-join>div{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}#cx-code-input{font-size:22px!important;letter-spacing:.25em}#cx-difficulty-note{min-height:42px}.cx-home-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px}.cx-home-foot p{font-size:12px;color:#5f7069;max-width:580px;line-height:1.6}.cx-home-foot>div{display:flex;flex-wrap:wrap;gap:9px}.cx-home-foot button{font-size:11px!important}.cx-error{position:sticky;top:79px;z-index:6;margin:12px auto;padding:12px 20px;max-width:1100px;color:#842e26;background:#ffe4d8;border:1px solid #d58c78;border-radius:10px;font-size:13px}
.cx-match{max-width:1240px;padding:22px clamp(16px,3vw,44px) 35px;margin:auto}.cx-match-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.cx-match-top small{color:#507362}.cx-match-top h2{font-size:clamp(20px,2.6vw,30px);letter-spacing:-.8px;margin-top:7px!important;line-height:1.2}.cx-code-box{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#e3e9d9;border:1px solid #a7b7a2;border-radius:11px;padding:10px 14px}.cx-code-box>span{font-size:9px;font-weight:850;letter-spacing:.12em}.cx-code-box b{font-size:25px;letter-spacing:.12em}.cx-code-box button{font-size:11px!important;min-height:32px!important;padding:6px 10px!important}.cx-play-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:30px;align-items:start}.cx-table{min-width:0;max-width:670px;width:100%;margin:0 auto}.cx-board-frame{padding:9px;background:#213d37;border:2px solid #162d2d;border-radius:15px;box-shadow:0 6px 0 #162d2d,0 15px 30px #263c3220}.cx-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;border-radius:7px;overflow:hidden;isolation:isolate}#cx-dialog .cx-cell{position:relative;aspect-ratio:1;min-width:0;min-height:0;width:100%;border:0;border-radius:0;padding:0;display:grid;place-items:center;background:#f4ecd5;touch-action:manipulation;isolation:isolate;transition:background .15s}#cx-dialog .cx-cell.dark{background:#85ad98}#cx-dialog .cx-cell:hover{background:#dce6b6}#cx-dialog .cx-cell.dark:hover{background:#a8cdb0}#cx-dialog .cx-cell.last{background:#ddd98c}#cx-dialog .cx-cell.dark.last{background:#afba6f}#cx-dialog .cx-cell.selected{background:#f5b68c;box-shadow:inset 0 0 0 4px #ba6e4c}#cx-dialog .cx-cell.legal{background:#b6e5c9}#cx-dialog .cx-cell.legal.dark{background:#64ad8c}.cx-cell.legal::after{content:'';position:absolute;width:23%;height:23%;background:#206d53;border-radius:50%;opacity:.55;z-index:1}.cx-cell.legal.occupied::after{width:87%;height:87%;background:transparent;border:5px solid #206d53;opacity:.7}.cx-cell.checked::before{content:'';position:absolute;inset:0;background:#f58a6a;box-shadow:inset 0 0 0 4px #a84b36;z-index:0;animation:cx-check 1.5s ease-in-out infinite}#cx-dialog .cx-cell:focus-visible{outline:3px solid #182f35;outline-offset:-4px;z-index:3}.cx-piece{display:block;width:86%;height:86%;pointer-events:none;z-index:2;filter:drop-shadow(0 3px 1px #183e3028)}.cx-piece svg{width:100%;height:100%;display:block}.cx-coordinate{position:absolute;z-index:3;font-size:10px;font-weight:850;line-height:1;opacity:.8;pointer-events:none}.cx-file{bottom:3px;right:4px}.cx-rank{left:4px;top:4px}.cx-player{display:flex;gap:12px;align-items:center;min-height:58px;padding:7px 0}.cx-player-avatar{width:40px;height:40px;display:block;border:1px solid #aab8a5;border-radius:11px;background:#dce6d3;flex-shrink:0}.cx-player-avatar svg{width:100%;height:100%}.cx-player>div{min-width:0}.cx-player strong{font-size:14px;display:block;text-overflow:ellipsis;overflow:hidden;max-width:280px;white-space:nowrap}.cx-player small{font-size:9px!important;letter-spacing:.04em!important;color:#5b7167}.cx-player.active strong::after{content:' ·';color:#3c8966}.cx-player.active .cx-player-avatar{background:#c2e19c;box-shadow:0 0 0 2px #4f8364}.cx-captured{margin-left:auto;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:52%;gap:0}.cx-captured svg{width:22px;height:24px}.cx-board-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:10px;color:#62766b;margin-top:16px!important}.cx-board-note>span:last-child{margin-left:auto}.cx-legal-dot,.cx-last-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#438463}.cx-last-dot{background:#b6b565;margin-left:10px}.cx-sidebar{display:grid;gap:16px}.cx-panel{background:#fffcf3;border:1px solid #b5c1ae;border-radius:15px;padding:19px}.cx-panel h3{font-size:17px;letter-spacing:-.4px}.cx-panel p{font-size:12px;color:#607366;line-height:1.6;margin:12px 0!important}.cx-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.cx-panel-heading>span{font:800 11px monospace;background:#e9ecdd;border-radius:7px;padding:5px 8px}.cx-history-head,.cx-history li{display:grid;grid-template-columns:28px 1fr 1fr;gap:8px;align-items:center}.cx-history-head{font-size:9px;letter-spacing:.1em;font-weight:800;color:#768476;padding-bottom:10px;border-bottom:1px solid #c9cfbf}.cx-history{list-style:none;padding:0;margin:6px -5px 0;max-height:260px;overflow:auto;scrollbar-width:thin}.cx-history li{font:700 13px/2.3 ui-monospace,monospace;padding:0 5px}.cx-history li:nth-child(odd){background:#f0f1e7;border-radius:5px}.cx-history li>span:first-child{font-size:10px;color:#859180}.cx-history li:last-child span:last-child:not(:empty){color:#366c51}#cx-history-empty{font-size:12px;color:#7a887c;margin:35px 0!important;text-align:center}.cx-tools{display:grid;gap:9px}.cx-tools>button{width:100%;font-size:12px!important;text-align:left}#cx-dialog .cx-danger{color:#994e3c;background:#fff2e7;border-color:#c9a69a}#cx-draw-offer{padding:10px;background:#f3e4b9;border-radius:10px}#cx-draw-offer button{display:block;width:100%;font-size:11px;margin-top:6px}.cx-note{font-size:11px;color:#6d7b6e;line-height:1.6;padding:0 7px}
.cx-overlay{position:fixed;inset:0;z-index:70;background:#192f35aa;backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px}.cx-modal-card{width:min(100%,490px);background:#fff8e8;border:3px solid #192f35;border-radius:22px;padding:28px;box-shadow:8px 8px #192f3540;text-align:center;max-height:calc(100dvh - 40px);overflow:auto;animation:cx-enter .2s ease-out}.cx-modal-card h2{font-size:28px;letter-spacing:-1px;margin:14px 0!important}.cx-modal-card p{font-size:14px;line-height:1.6;margin-bottom:20px!important}.cx-modal-card>button{margin-top:12px;width:100%;justify-content:center!important}.cx-promotions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.cx-promotions button{padding:10px 4px!important;font-size:10px!important}.cx-promotions svg{width:100%;height:auto}.cx-promotions span{display:block}
@keyframes cx-enter{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}@keyframes cx-float{50%{transform:translateY(-9px) rotate(2deg)}}@keyframes cx-check{50%{opacity:.65}}
@media(min-width:1000px) and (min-height:760px){.cx-table{max-width:min(670px,calc(100dvh - 270px))}}
@media(max-width:800px){.cx-header{padding:12px 18px}.cx-home{padding:15px 18px 30px}.cx-hero{gap:12px}.cx-hero h2{font-size:43px}.cx-hero p{font-size:14px}.cx-tags{gap:5px}.cx-tags span{padding:6px;font-size:8px}.cx-modes{gap:15px}.cx-modes article{padding:20px}.cx-settings{grid-template-columns:1fr}.cx-home-foot{align-items:flex-start;flex-direction:column}.cx-play-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.cx-panel{padding:15px}.cx-player strong{max-width:180px}}
@media(max-width:620px){.cx-hero{grid-template-columns:1fr 130px;gap:0}.cx-hero h2{font-size:36px}.cx-hero p{font-size:13px}.cx-eyebrow{font-size:8px}.cx-tags{grid-column:1/-1}.cx-modes{grid-template-columns:1fr}.cx-settings{grid-template-columns:1fr 1fr}.cx-play-layout{grid-template-columns:1fr}.cx-match{padding:16px 12px 28px}.cx-match-top{align-items:flex-start}.cx-match-top h2{font-size:19px}.cx-code-box{max-width:140px;gap:5px;padding:7px 9px}.cx-code-box b{font-size:22px}.cx-code-box>span{font-size:8px;width:100%}.cx-sidebar{grid-template-columns:1fr}.cx-history{max-height:165px}.cx-board-frame{padding:6px;border-radius:11px}.cx-coordinate{font-size:8px}.cx-player{min-height:52px}.cx-player strong{max-width:180px;font-size:12px}.cx-captured svg{width:18px;height:20px}.cx-brand strong{font-size:21px}.cx-brand-mark{width:40px;height:40px;font-size:27px}#cx-dialog #cx-rank{font-size:11px;padding:8px 10px}.cx-modal-card{padding:22px 17px}.cx-promotions{gap:5px}}
@media(prefers-reduced-motion:reduce){#cx-dialog *,#cx-dialog *::before,#cx-dialog *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
