.cc-chess{--cc-ink:#222e27;--cc-sub:#516058;--cc-line:#c8c7b4;color:var(--cc-ink);font:500 1rem/1.45 var(--font-geist-sans,"DM Sans"),system-ui,sans-serif;text-align:left;isolation:isolate;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#eeeadd;border:1px solid #d7d4c4;border-radius:16px;grid-template-columns:minmax(0,1.68fr) minmax(238px,.78fr);align-items:start;gap:clamp(14px,3%,34px);padding:clamp(12px,2.5vw,30px);display:grid}.cc-chess *,.cc-chess :before,.cc-chess :after{box-sizing:border-box}.cc-chess h2,.cc-chess h3,.cc-chess p,.cc-chess fieldset,.cc-chess ol{margin:0}.cc-table,.cc-panel,.cc-frame{min-width:0}.cc-table{color:#f3eddc;background:linear-gradient(135deg,#293a33,#18271f);border-radius:12px;padding:0 clamp(9px,2%,18px);box-shadow:0 6px 14px #1f2a1f25}.cc-seat,.cc-below{align-items:center;display:flex}.cc-seat{gap:.55rem;min-height:42px;font-size:.875rem;font-weight:650}.cc-side{color:#d2dacc;border-left:1px solid #6d7d70;padding-left:.5rem;font-size:.8rem;font-weight:500}.cc-stone{background:#fff0cf;border:1px solid #ac9c7a;border-radius:50%;flex:none;width:14px;height:14px;display:inline-block;box-shadow:inset 1px 1px 2px #fff8,inset -2px -2px 3px #72552b55}.cc-stone.cc-b{background:#28362e;border-color:#8b9986;box-shadow:inset 1px 1px 3px #ffffff45,inset -2px -2px 3px #0005}.cc-frame{background-color:#6b492f;background-image:repeating-linear-gradient(170deg,#ffffff06 0 1px,#0000 1px 8px),linear-gradient(120deg,#5e3f2a,#a98256 35%,#533824);background-position:0 0;background-repeat:repeat;background-size:auto;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;border-radius:6px;padding:clamp(5px,.9vw,10px);position:relative;box-shadow:0 4px 8px #0004,inset 0 0 0 1px #a68056}.cc-frame.cc-volumetric{background:#26362f;padding:0;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff25}.cc-loading{aspect-ratio:1;color:#efe6c9;place-items:center;font-size:1rem;display:grid}.cc-board{aspect-ratio:1;-webkit-user-select:none;user-select:none;grid-template-rows:repeat(8,minmax(0,1fr));display:grid;box-shadow:0 0 0 1px #342e22}.cc-row{grid-template-columns:repeat(8,minmax(0,1fr));min-width:0;min-height:0;display:grid}.cc-chess button,.cc-chess select{touch-action:manipulation;font:inherit;color:inherit}.cc-chess button{cursor:pointer}.cc-chess button:disabled{opacity:.49;cursor:default}.cc-chess button:focus-visible,.cc-chess select:focus-visible,.cc-help summary:focus-visible{outline-offset:2px;outline:3px solid #2b6ca2}.cc-square{isolation:isolate;border:0;border-radius:0;place-items:center;width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:0;display:grid;position:relative}.cc-square:focus-visible{z-index:2;outline-offset:-3px!important;outline:3px solid #115b9b!important}.cc-square.cc-light{background:#ead8b1}.cc-square.cc-dark{background:#899775}.cc-square[data-last]:before,.cc-square[data-selected]:before,.cc-square[data-check]:after{content:"";pointer-events:none;position:absolute;inset:0}.cc-square[data-last]:before{background:#fad05d55;box-shadow:inset 0 0 0 2px #a78c3680}.cc-square[data-selected]:before{background:#ffcc5cba;box-shadow:inset 0 0 0 3px #79581c}.cc-square[data-check]:after{z-index:-1;background:radial-gradient(closest-side,#ed705a88,#0000);box-shadow:inset 0 0 0 3px #a63829}.cc-rank,.cc-file{pointer-events:none;color:#546042;font:700 clamp(8px,1.05vw,12px)/1 system-ui,sans-serif;position:absolute}.cc-dark .cc-rank,.cc-dark .cc-file{color:#263c27}.cc-rank{top:4%;left:5%}.cc-file{bottom:4%;right:5%}.cc-figure{place-items:center;display:grid;position:absolute;inset:6%}.cc-figure[draggable=true]{cursor:grab}.cc-piece{pointer-events:none;filter:drop-shadow(0 1.4px 1px #30291956);width:100%;height:100%;display:block}.cc-target,.cc-capture{pointer-events:none;border-radius:50%;position:absolute}.cc-target{background:#1d443b82;width:25%;height:25%;box-shadow:0 0 0 1px #233b2b33}.cc-capture{border:clamp(2px,.42vw,5px) dashed #754522;inset:3%}.cc-below{justify-content:space-between;gap:.4rem;min-height:44px}.cc-flip,.cc-text-button{background:0 0;border:0;padding:5px 4px;font-weight:600}.cc-flip{align-items:center;gap:.32rem;display:flex;color:#ece6d1!important;font-size:.82rem!important}.cc-flip span{font-size:1.2rem}.cc-panel{background:#f9f7ed;border:1px solid #cac9b8;border-radius:12px;flex-direction:column;gap:clamp(12px,1.7vw,21px);padding:clamp(14px,2.1vw,23px);display:flex;box-shadow:0 3px 8px #2f362015}.cc-turn{align-items:flex-start;gap:.65rem;display:flex}.cc-turn .cc-stone{width:16px;height:16px;margin-top:.46rem}.cc-turn h2,.cc-promotion h3{color:#25372e;letter-spacing:-.035em;text-transform:none;font:600 clamp(1.4rem,2.5vw,2.2rem)/1.12 Georgia,Times New Roman,serif}.cc-turn p,.cc-empty,.cc-confirm p,.cc-help p{color:var(--cc-sub);font-size:.875rem;line-height:1.42}.cc-turn p{margin-top:5px}.cc-options{border:0;min-inline-size:0;padding:0}.cc-options legend,.cc-notebook h3{color:#344638;letter-spacing:0;text-transform:none;margin:0 0 .45rem;padding:0;font:650 .875rem/1.45 system-ui,sans-serif}.cc-segment{background:#e7e7d9;border:1px solid #c8cbb9;border-radius:8px;gap:3px;padding:3px;display:flex}.cc-segment button,.cc-actions button,.cc-promotion-options button{border-radius:5px;min-height:38px;font-size:.85rem;font-weight:650}.cc-segment button{color:#425044;background:0 0;border:1px solid #0000;flex:1;padding:4px 5px}.cc-segment button[aria-pressed=true]{color:#fffbed;background:#29483a;box-shadow:0 1px 3px #121f142a}.cc-difficulty{color:#485b4e;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.85rem;display:flex}.cc-difficulty select{background:#fffdf5;border:1px solid #bcc2ad;border-radius:5px;width:auto;max-width:70%;min-height:34px;padding:3px 7px}.cc-notebook{border-block:1px solid var(--cc-line);padding:.7rem 0}.cc-history{scrollbar-width:thin;max-height:clamp(85px,12vw,155px);font:550 .875rem/1.6 var(--font-geist-mono),ui-monospace,monospace;padding:0;list-style:none;overflow:auto}.cc-history li{grid-template-columns:2.5rem 1fr 1fr;padding:3px 5px;display:grid}.cc-history li:nth-child(odd){background:#ebece0}.cc-num{color:#5d695c}.cc-actions{flex-wrap:wrap;gap:7px;display:flex}.cc-actions button{white-space:nowrap;background:#fafbf1;border:1px solid #abb69f;flex:1;padding:5px 10px}.cc-confirm{background:#f7eccd;border:1px solid #bdad7b;border-radius:7px;padding:11px}.cc-confirm p{margin:3px 0 8px}.cc-help{color:#384d3d;font-size:.85rem}.cc-help summary{cursor:pointer;font-weight:650}.cc-help p{margin-top:.45rem}.cc-shade{z-index:5;background:#14201899;place-items:center;display:grid;position:absolute;inset:0}.cc-promotion{color:#27382c;text-align:center;background:#faf5e6;border:1px solid #d6c69f;border-radius:10px;width:min(92%,365px);padding:15px;box-shadow:0 6px 20px #12211966}.cc-promotion-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:9px 0;display:grid}.cc-promotion-options button{text-transform:capitalize;background:#e5e3ce;border:1px solid #acb39a;min-width:0;padding:4px 2px}.cc-promotion-options .cc-piece{height:clamp(32px,6vw,54px)}.cc-text-button{text-decoration:underline;font-size:.85rem!important}@media (width<=760px){.cc-chess{grid-template-columns:1fr;gap:12px;padding:clamp(8px,2vw,16px)}.cc-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.cc-turn,.cc-confirm,.cc-notebook,.cc-help,.cc-actions{grid-column:1/-1}.cc-notebook{padding:8px 0}}@media (width<=430px){.cc-chess{border-radius:9px;padding:6px}.cc-table{padding-inline:6px}.cc-panel{gap:9px;padding:11px}.cc-seat{min-height:36px}.cc-segment button{min-height:40px;font-size:.78rem}}
