.game-top[data-game=chess]{height:min(46rem, var(--game-top-height));flex-direction:column;min-height:25rem;display:flex}[data-game=chess] .game-stage,.pj-play:has(.ch-field){flex:1;min-height:0}.pj-shell:has(.ch-field){flex-direction:column;height:100%;display:flex}.pj-shell:has(.ch-field):fullscreen{height:100dvh}.pj-board:has(.ch-field){height:100%}.ch-options{gap:.3rem;margin-inline-start:auto;font-size:.875rem;display:flex}.ch-options select{border:1px solid var(--muted);min-width:44px;min-height:44px;color:var(--ink);background:var(--surface);border-radius:.4rem;padding:.2rem .42rem}.ch-options~.pj-toolbar-end{margin-inline-start:0}@container (width<=48rem){.pj-toolbar:has(.ch-options) .pj-control:not(.pj-toolbar>:first-child) span{display:none}}@container (width<=38rem){.ch-options{flex-basis:100%;order:1;justify-content:center}.ch-options~.pj-toolbar-end{margin-inline-start:auto}}.ch-field{--ch-gold:#f2cc85;--ch-cream:#fff0d2;height:100%;color:var(--ch-cream);background:radial-gradient(at 40% 5%,#487383 0%,#0000 57%),radial-gradient(at 55% 28%,#203e59 20%,#0b192c 85%);border-top:1px solid #d5a76f;border-radius:0 0 .9rem .9rem;flex-direction:column;padding:.3rem .35rem .45rem;display:flex;box-shadow:inset 0 1px #ffe2a84d,inset 0 -12px 28px #070f1d80}.ch-field .ch-caption{text-shadow:0 1px 3px #0a1521;justify-content:space-between;align-items:center;gap:.35rem;min-height:1.8rem;padding-inline:.35rem;font-size:.875rem;display:flex}.ch-field .ch-caption label{cursor:pointer;flex:none;align-items:center;gap:.35rem;min-height:44px;display:inline-flex}.ch-field .ch-caption input{width:1rem;height:1rem;accent-color:var(--ch-gold)}.ch-field .ch-check-label{color:#fff6e2;background:linear-gradient(#a13b47,#6e2234);border:1px solid #e67568;border-radius:.25rem;margin-inline-start:.45rem;padding:.08rem .36rem;font-weight:800;box-shadow:0 2px 5px #34102380}.ch-field .ch-space{background:radial-gradient(#0000 28%,#0b192cbf 100%),repeating-linear-gradient(45deg,#afd7d911 0 1px,#0000 1px 11px),repeating-linear-gradient(-45deg,#afd7d911 0 1px,#0000 1px 11px);flex:1;place-items:center;min-height:0;display:grid;position:relative;container-type:size}.ch-field .ch-space:before{content:"";pointer-events:none;opacity:.57;background:radial-gradient(at 38% 25%,#bce0db47,#0000 68%);position:absolute;inset:0}.ch-field .ch-board{aspect-ratio:1;user-select:none;touch-action:none;-webkit-touch-callout:none;background:#152e38;border:3px solid #f6d69d;border-color:#f6d69d #b38150 #523322 #c18e59;border-radius:.5rem;grid-template:repeat(8,minmax(0,1fr))/repeat(8,minmax(0,1fr));width:min(100cqw,100cqh,34rem);display:grid;position:relative;overflow:clip;box-shadow:0 0 0 1px #4c3327,0 0 0 4px #815737,0 0 0 5px #c3985d,0 5px 0 4px #261d21,0 9px 22px 3px #060e1bba,0 0 35px #adc8b623}.ch-field .ch-board:after{content:"";z-index:3;pointer-events:none;border:1px solid #ffdd985f;border-radius:.27rem;position:absolute;inset:0;box-shadow:inset 0 0 8px #17101991}.ch-field .ch-board .ch-cell{--ch-wash:transparent;--ch-mineral:#6f442d25;--ch-thread:#fff7d85e;--ch-light:#ffedc6;--ch-mid:#e6bd83;--ch-shade:#b38252;--ch-angle:158deg;background:linear-gradient(var(--ch-wash), var(--ch-wash)), radial-gradient(ellipse at 17% 8%, var(--ch-thread), transparent 62%), repeating-linear-gradient(var(--ch-angle), transparent 0 5px, var(--ch-mineral) 8px, transparent 13px 20px), linear-gradient(145deg, var(--ch-light), var(--ch-mid) 62%, var(--ch-shade));-webkit-tap-highlight-color:transparent;border:0;border-radius:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative;box-shadow:inset 1px 1px #fff4d24a,inset -1px -1px #1b182444}.ch-field .ch-board .ch-cell[data-dark]{--ch-mineral:#a2d2bf32;--ch-thread:#9ccabd44;--ch-light:#5b9785;--ch-mid:#346459;--ch-shade:#1c3d45}.ch-field .ch-board .ch-cell:nth-child(3n){--ch-angle:144deg}.ch-field .ch-board .ch-cell:nth-child(5n){--ch-angle:172deg}.ch-field .ch-cell[aria-disabled=true]{cursor:default}.ch-field .ch-cell small{z-index:1;color:#ffebbf;text-align:center;pointer-events:none;background:#23313b;border-radius:.12rem;min-width:1em;padding:.1em .12em;font-size:clamp(.55rem,2cqw,.72rem);font-weight:850;line-height:1;position:absolute;box-shadow:inset 0 1px #f4ca7f70,0 1px 1px #16182155}.ch-field .ch-rank{inset:2px auto auto 2px}.ch-field .ch-file{inset:auto 2px 2px auto}.ch-field .ch-piece{--piece-light:#7299ac;--piece-mid:#395e7a;--piece-side:#32536f;--piece-deep:#11223c;--piece-edge:#091527;--piece-etch:#111e33;--piece-rim:#9bc5d5;pointer-events:none;transform-origin:50% 82%;width:84%;height:84%;display:block;position:relative;overflow:visible}.ch-field .ch-piece[data-side=White]{--piece-light:#fffdf1;--piece-mid:#f5d89e;--piece-side:#d4a365;--piece-deep:#a26541;--piece-edge:#523223;--piece-etch:#8b5334;--piece-rim:#fff5d3}.ch-field .ch-cut,.ch-field .ch-heel{stroke:var(--piece-edge);stroke-width:1.3px;stroke-linejoin:round}.ch-field .ch-etch,.ch-field .ch-glint{fill:none;stroke:var(--piece-etch);stroke-width:1.35px;stroke-linecap:round;stroke-linejoin:round}.ch-field .ch-glint{stroke:var(--piece-rim);stroke-width:1.2px;opacity:.85}.ch-field[data-large=true] :is(.ch-cell,.ch-capture,.ch-ghost) .ch-piece{width:94%;height:94%}.ch-field .ch-cell[aria-disabled=true]>.ch-piece{opacity:.88}.ch-field .ch-cell:before,.ch-field .ch-cell:after{pointer-events:none;position:absolute}.ch-field .ch-board .ch-cell[data-last]{--ch-wash:#ffce675b}.ch-field .ch-cell[data-last]:before{content:"";background:linear-gradient(var(--ch-gold), var(--ch-gold)) right top / 28% 2px no-repeat, linear-gradient(var(--ch-gold), var(--ch-gold)) right top / 2px 28% no-repeat;inset:3px}.ch-field .ch-board .ch-cell[data-check]{--ch-wash:#9f2643a8}.ch-field .ch-cell[data-check]:before{content:"";opacity:.85;background:radial-gradient(#ffbd738c,#ff4d60c7 55%,#902d4a00 82%);border-radius:15%;inset:0;box-shadow:inset 0 0 0 2px #ff9b90}.ch-field .ch-board .ch-cell[data-hint]{box-shadow:inset 0 0 0 2px #b9f6ff,inset 0 0 14px 4px #398bdac4}.ch-field .ch-board .ch-cell[aria-pressed=true]{--ch-wash:#ffc35452;box-shadow:inset 0 0 0 2px #3f291c,inset 0 0 0 4px #fff0a5,inset 0 0 14px 7px #ffce65a8}.ch-field .ch-cell[data-target]:after{content:"";aspect-ratio:1;background:radial-gradient(circle at 38% 31%,#fff6c4,#e1a650 66%,#a66738);border:1px solid #182a2a9c;border-radius:50%;width:25%;box-shadow:0 0 7px #ffdf8cbe,0 1px 2px #19272970}.ch-field .ch-cell[data-target=capture]:after{background:0 0;border:2px dashed #ffebad;width:90%;box-shadow:0 0 0 1px #50312a,inset 0 0 0 1px #50312a,0 0 8px #fcd289c9}.ch-field .ch-board .ch-cell:focus-visible{z-index:4;outline-offset:-4px;outline:2px solid #f5fbff;box-shadow:inset 0 0 0 5px #172c41}.ch-field .ch-hint{z-index:1;color:#c8f7ff;pointer-events:none;background:#18384f;border:1px solid #c8f7ff;border-radius:.18rem;padding:0 .22em;font:700 .9rem/1 system-ui,sans-serif;position:absolute;inset:auto auto 2px 2px}.ch-field .ch-cell[data-dragging]>:is(.ch-piece,.ch-flight){opacity:.35}.ch-field :is(.ch-flight,.ch-ghost,.ch-capture){pointer-events:none;place-items:center;display:grid;position:absolute}.ch-field .ch-flight{z-index:2;inset:0}.ch-field .ch-ghost{z-index:5;aspect-ratio:1;width:12.5%;transform:translate(-50%,-50%)}.ch-field :is(.ch-capture,.ch-mate){pointer-events:none;display:none}.ch-field .ch-capture{z-index:2;aspect-ratio:1;width:12.5%}.ch-field .ch-sparks{fill:#fff0b2;stroke:#be753d;stroke-width:.8px;width:135%;height:135%;position:absolute;overflow:visible}.ch-field .ch-sparks circle{fill:none;stroke:#ffe7a3;stroke-width:1.25px}.ch-field .ch-mate{z-index:6;fill:none;stroke:#ad7428;stroke-width:1.1px;filter:drop-shadow(0 0 5px #ffe28c);width:100%;height:100%;position:absolute;inset:0}.ch-field .ch-mate path:nth-child(2){stroke:#ffe4a1;stroke-width:.7px}.ch-field .ch-mate path:last-child{fill:#ffe4a1}.ch-field .ch-history{background:repeating-linear-gradient(0deg,#ac785525 0 1px,#0000 1px 4px),linear-gradient(#3b2d2b,#211d24);border:1px solid #b98a55;border-bottom-color:#724c35;border-radius:.32rem;align-items:center;gap:.45rem;min-height:2rem;padding-inline:.38rem .16rem;font-size:.82rem;display:flex;position:relative;box-shadow:inset 0 1px #ffd68c38,0 2px 4px #060e1b80}.ch-field .ch-history>*{flex:none}.ch-field .ch-history>strong{color:var(--ch-gold);border-inline-end:1px solid #b98a5580;padding-inline-end:.4rem;font:700 .82rem/1.4 Georgia,serif}.ch-field .ch-history>span{color:#e7ccb0}.ch-field .ch-history ol{scrollbar-width:thin;scrollbar-color:#c49867 #2d2427;flex:1;gap:.28rem;min-width:0;margin:0;padding:.14rem;list-style:none;display:flex;overflow-x:auto}.ch-field .ch-history ol:focus-visible{outline-offset:-1px;outline:2px solid #c4efff}.ch-field .ch-history li{color:#362623;font-variant-numeric:tabular-nums;background:linear-gradient(#f8e7bd,#d7b181);border:1px solid #ba8e5d;border-radius:.2rem;flex:none;align-items:center;gap:.28rem;padding:0 .24rem;line-height:1.3;display:flex;box-shadow:inset 0 1px #fff0cf,0 1px 2px #120f15}.ch-field .ch-history li b{color:#62442e}.ch-field .ch-history li span{padding-inline:.12rem}.ch-field .ch-history li:last-child>span:last-child{color:#fff3d4;background:#254954;border-radius:.12rem}.ch-field .ch-promotions{grid-template-columns:1fr 1fr;gap:.5rem;margin-block-start:.75rem;display:grid}.ch-field .ch-promotions button{border:1px solid var(--line);color:var(--ink);background:var(--tint);text-transform:capitalize;border-radius:.4rem;justify-items:center;padding:.25rem;display:grid}.ch-field .ch-promotions .ch-piece{width:2.5rem;height:2.25rem}@media (prefers-reduced-motion:no-preference){.ch-field .ch-space:before{animation:12s ease-in-out infinite alternate ch-lamplight}.ch-field .ch-cell>.ch-piece{transition:transform .13s ease-out}.ch-field .ch-cell[aria-disabled=false]:active>.ch-piece{transform:scale(.94,.89)}.ch-field .ch-cell[data-check]:before{animation:1s ease-in-out 2 ch-check-pulse}.ch-field .ch-flight{animation:.22s cubic-bezier(.18,.73,.26,1) both ch-glide}.ch-field .ch-capture{display:grid}.ch-field .ch-capture .ch-piece{animation:.24s ease-out both ch-capture-pop}.ch-field .ch-sparks{animation:.43s ease-out both ch-spark-arc}.ch-field .ch-mate{animation:.73s ease-out both ch-mate-frame;display:block}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.ch-field .ch-cell[aria-disabled=false]:hover:not(:active)>.ch-piece{transform:translateY(-5%)scale(1.045)}}@media (hover:hover){.ch-field .ch-cell[aria-disabled=false]:hover{outline-offset:-2px;outline:1px solid #fff3bf}.ch-field .ch-cell[aria-disabled=false]:hover:focus-visible{outline-offset:-4px;outline:2px solid #f5fbff}}@keyframes ch-lamplight{to{opacity:.94}}@keyframes ch-check-pulse{50%{opacity:.52;transform:scale(.93)}}@keyframes ch-glide{0%{transform:translate(var(--ch-x), var(--ch-y))}84%{transform:translateY(0)scale(1.035,.98)}to{transform:none}}@keyframes ch-capture-pop{0%,24%{opacity:.92}55%{opacity:.7;transform:translateY(-7%)scale(1.14)}to{opacity:0;transform:translateY(-16%)rotate(-8deg)scale(.55)}}@keyframes ch-spark-arc{0%,16%{opacity:0;transform:scale(.22)}35%{opacity:1}to{opacity:0;transform:scale(1.18)rotate(12deg)}}@keyframes ch-mate-frame{0%{opacity:0;transform:scale(.8)}20%{opacity:1}50%{opacity:1;transform:scale(.98)}to{opacity:0;transform:scale(1.02)}}
