:root{color:#000;font-synthesis:none;text-rendering:optimizelegibility;background:#fff;font-family:system-ui,sans-serif;font-size:100%}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;font-size:1rem}button{color:inherit;font:inherit}a,a:visited{color:#00e;text-decoration:none}a:hover{color:#000}.chess-page{grid-template-columns:100dvh minmax(0,1fr);width:100%;height:100dvh;display:grid;overflow:hidden}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.board{aspect-ratio:1;grid-template-columns:repeat(8,1fr);place-self:start;width:auto;max-width:100%;height:100%;max-height:100%;display:grid;overflow:hidden}.square{--square-background:#fff;aspect-ratio:1;background:var(--square-background);color:#00e;cursor:pointer;border:0;border-radius:0;place-items:center;min-width:0;padding:0;display:grid;position:relative}.square:nth-child(16n+2),.square:nth-child(16n+4),.square:nth-child(16n+6),.square:nth-child(16n+8),.square:nth-child(16n+9),.square:nth-child(16n+11),.square:nth-child(16n+13),.square:nth-child(16n+15){--square-background:#f6f6f6}.board.is-trust .square{--square-background:#fff}.square.is-selected{background:color-mix(in srgb, #00e 6%, var(--square-background))}.square.is-in-check{z-index:1;outline-offset:-2px;outline:2px solid #00e}.square.is-last-from{background:color-mix(in srgb, #00e 2%, var(--square-background))}.square.is-last-to{background:color-mix(in srgb, #00e 6%, var(--square-background))}@media (hover:hover) and (pointer:fine){.square.is-playable:not(.is-selected):hover{background:color-mix(in srgb, #00e 2%, var(--square-background))}}.square.is-target:after{content:"";background:#00e;border-radius:50%;width:.5rem;height:.5rem;position:absolute}.square.is-target:has(.piece):after{background:0 0;border:2px solid #00e;border-radius:0;width:auto;height:auto;inset:0}.square:focus-visible,.text-button:focus-visible,.option-button:focus-visible,.promotion-button:focus-visible{outline-offset:-2px;outline:2px solid #00e}.piece-shape{aspect-ratio:1;color:#000;place-items:center;width:64%;display:grid;position:relative}.piece-shape-core{width:100%;height:100%;display:block;overflow:visible}.piece-color-b .piece-shape-core>*{fill:currentColor;stroke:none}.piece-color-w .piece-shape-core>*{fill:none;stroke:currentColor;stroke-width:6px;stroke-linejoin:miter}.piece-type-n.is-mirrored .piece-shape-core{transform:scaleX(-1)}.piece-type-n.is-flipped .piece-shape-core{transform:scaleY(-1)}.piece-type-n.is-mirrored.is-flipped .piece-shape-core{transform:scale(-1)}.piece-shape.is-small{vertical-align:middle;flex:0 0 1.25rem;width:1.25rem;display:inline-grid}.rank-label,.file-label{color:#000;font-size:clamp(.5rem,1.2vw,.75rem);line-height:1;position:absolute}.rank-label{top:.25rem;left:.25rem}.file-label{bottom:.25rem;right:.25rem}.game-toolbar{text-transform:uppercase;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"menu status""white black""history history";align-content:start;gap:1.5rem 2rem;min-width:0;padding:1.25rem;display:grid}.game-toolbar p{margin:0}.game-status{text-align:right;grid-area:status;justify-self:end;margin:0}.menu-button{grid-area:menu}.player-block{min-width:0}.player-time{justify-content:flex-start;gap:.75rem;display:flex}.player-time time{font-variant-numeric:tabular-nums}.white-time{grid-area:white}.black-time{text-align:right;grid-area:black}.black-time .player-time{justify-content:flex-end}.history-navigation{grid-area:history;grid-template-columns:1.5rem minmax(0,1fr) 1.5rem;align-items:center;gap:.5rem;min-width:0;display:grid}.history-step{text-align:left;width:1.5rem}.history-step:last-child{text-align:right}.history-step:disabled{visibility:hidden}.history-strip{scrollbar-width:none;scroll-snap-type:x mandatory;gap:1rem;min-width:0;padding-inline:45%;display:flex;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#0000,#000 20% 80%,#0000);mask-image:linear-gradient(90deg,#0000,#000 20% 80%,#0000)}.history-strip::-webkit-scrollbar{display:none}.history-move{color:#00e;cursor:pointer;opacity:.7;scroll-snap-align:center;background:0 0;border:0;flex:none;padding:0}.history-move:hover,.history-move:focus-visible{opacity:1}.history-move.is-current{color:#000;opacity:1}.captured-pieces{color:#000;text-transform:none;flex-wrap:wrap;gap:.125rem;min-height:1.5rem;line-height:1;display:flex}.captured-pieces .piece-shape{color:#000}.captured-menu{margin-top:2rem}.captured-menu h3{text-transform:uppercase;margin:0 0 1rem;font-size:1rem;font-weight:400}.captured-menu p{grid-template-columns:max-content 1fr;gap:1rem;margin:0 0 .75rem;display:grid}.text-button{color:#00e;cursor:pointer;background:0 0;border:0;width:fit-content;padding:0}.game-menu,.promotion-panel{text-transform:uppercase;align-self:start;min-width:0;max-height:100dvh;padding:1.25rem;overflow:auto}.menu-close,.promotion-panel h2{margin:0 0 2rem;font-size:1rem;font-weight:400;display:block}.promotion-panel p{margin:0 0 1rem}.promotion-options{flex-wrap:wrap;gap:1.5rem;display:flex}.promotion-button{color:#00e;cursor:pointer;text-transform:uppercase;background:0 0;border:0;place-items:center;gap:.5rem;width:5rem;padding:0;display:grid}.promotion-button .piece-shape{width:3rem}.piece-key{text-transform:uppercase;grid-template-columns:1fr;gap:.75rem;margin-top:2rem;display:grid}.piece-key-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1rem;display:grid}.piece-key-item{align-items:center;gap:.5rem;min-width:0;display:flex}.piece-key .piece-shape{color:#000}.menu-about{text-transform:none;max-width:42rem;margin-top:3rem}.menu-about h3{text-transform:uppercase;margin:0 0 1rem;font-size:1rem;font-weight:400}.menu-about p{margin:0 0 .75rem;line-height:1.4}.legal-links{text-transform:uppercase;flex-wrap:wrap;gap:.5rem 1rem;margin-top:2rem;display:flex}.legal-links a,.legal-close{text-decoration:none}.legal-shell{height:100dvh;overflow:hidden}.legal-page{z-index:3;background:#fff;padding:1.25rem;position:fixed;inset:0 0 0 100dvh;overflow:auto}.legal-page nav{margin-bottom:1.5rem}.legal-page h1,.legal-page h2{text-transform:uppercase;font-size:1rem;font-weight:400}.legal-page h1{margin:0 0 2rem}.legal-page h2{margin:0 0 1rem}.legal-page section{margin:0 0 2rem}.legal-page p{line-height:1.5}.legal-page address{font-style:normal;line-height:1.5}.menu-setting{flex-wrap:wrap;align-items:baseline;gap:.5rem 2rem;margin:0 0 1.5rem;display:flex}.menu-options{flex-wrap:wrap;gap:.5rem 1rem;display:flex}.option-button{color:#00e;cursor:pointer;background:0 0;border:0;padding:0}.option-button.is-selected{color:#000}.menu-actions{flex-wrap:wrap;gap:1rem 2rem;margin-top:2rem;display:flex}.menu-saved{text-transform:none;margin:.75rem 0 0}@media (width<=64rem){.chess-page{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:1fr;height:100dvh;min-height:0}.board{place-self:start;width:min(100%,100dvh - 7rem);height:auto}.game-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"menu status""white black""history history";align-self:end;gap:1rem;padding:1rem}.game-menu{z-index:2;background:#fffffff5;max-height:100dvh;padding:1rem;position:fixed;inset:0;overflow:auto}.legal-page{background:#fffffff5;padding:1rem;inset:0}.promotion-panel{align-self:end;padding:1rem}.menu-close,.promotion-panel h2{margin-bottom:1.5rem}.menu-setting{gap:.75rem;margin-bottom:.75rem}.menu-options{gap:.375rem .75rem}.menu-actions{margin-top:1.5rem}.piece-key{grid-template-columns:minmax(4.5rem,.25fr) 1fr;gap:.75rem}.piece-key-items{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-about{margin-top:2rem}}
