*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;min-height:100%;overflow:hidden;font-family:Space Grotesk,system-ui,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased}.game-review[data-astro-cid-jyjgxdr5]{box-sizing:border-box;width:min(34rem,calc(100vw - 1rem));max-height:calc(100dvh - 1rem);overflow:hidden;padding:0;border:1px solid #b58863;border-radius:1rem;background:#292522;color:#fffaf0}.review-content[data-astro-cid-jyjgxdr5]{box-sizing:border-box;max-height:calc(100dvh - 1.45rem - 2px);overflow-y:auto;padding:1rem}.review-advantage[data-astro-cid-jyjgxdr5]{height:.45rem;background:#151515;box-shadow:0 -1px #74685d}.review-advantage-white[data-astro-cid-jyjgxdr5]{width:50%;height:100%;background:#fffaf0;transition:width .4s ease}@media(prefers-reduced-motion:reduce){.review-advantage-white[data-astro-cid-jyjgxdr5]{transition:none}}.game-review[data-astro-cid-jyjgxdr5]::backdrop{background:#000c}header[data-astro-cid-jyjgxdr5]{display:flex;justify-content:space-between;gap:1rem;align-items:start}h2[data-astro-cid-jyjgxdr5]{margin:0;font-size:1.25rem}.review-result[data-astro-cid-jyjgxdr5]{margin:.25rem 0 .75rem;font-size:.9rem}button[data-astro-cid-jyjgxdr5]{min-height:2.75rem;border:1px solid #b58863;border-radius:.4rem;background:#413831;color:#fffaf0;padding:.4rem .65rem;font:inherit;cursor:pointer}button[data-astro-cid-jyjgxdr5]:disabled{opacity:.4;cursor:default}button[data-astro-cid-jyjgxdr5]:focus-visible{outline:3px solid #edc975;outline-offset:2px}.review-player[data-astro-cid-jyjgxdr5]{margin:.35rem 0;font-size:.85rem;overflow-wrap:anywhere}.review-board[data-astro-cid-jyjgxdr5]{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);width:100%;aspect-ratio:1}.review-square[data-astro-cid-jyjgxdr5]{display:flex;position:relative;align-items:center;justify-content:center;min-width:0;min-height:0}.light[data-astro-cid-jyjgxdr5]{background:#f0d9b5}.dark[data-astro-cid-jyjgxdr5]{background:#b58863}.review-square[data-astro-cid-jyjgxdr5] svg{display:block;width:85%;height:85%}.review-square[data-astro-cid-jyjgxdr5] .coordinate{position:absolute;bottom:1px;left:2px;font-size:clamp(.45rem,2vw,.65rem);color:#292522}.review-square[data-astro-cid-jyjgxdr5].last-move{background-image:linear-gradient(#f5d74366,#f5d74366)}.review-square[data-astro-cid-jyjgxdr5].critical-move{box-shadow:inset 0 0 0 4px #b52d25}.review-controls[data-astro-cid-jyjgxdr5]{display:flex;gap:.35rem;align-items:center;margin-top:.65rem}.review-controls[data-astro-cid-jyjgxdr5] button[data-astro-cid-jyjgxdr5]{font-size:1.3rem;min-width:2.75rem}.review-position[data-astro-cid-jyjgxdr5]{flex:1;text-align:center;font-size:.85rem}.review-moves[data-astro-cid-jyjgxdr5]{display:flex;flex-wrap:wrap;gap:.25rem;max-height:7rem;overflow-y:auto;margin:.65rem 0}.review-moves[data-astro-cid-jyjgxdr5] button{min-height:2.75rem;border:1px solid transparent;border-radius:.3rem;background:#413831;color:#fffaf0;padding:.3rem .5rem;font:inherit;font-size:.85rem;cursor:pointer}.review-moves[data-astro-cid-jyjgxdr5] button[aria-current=step]{background:#f0d9b5;color:#292522}.review-moves[data-astro-cid-jyjgxdr5] button.turning-point{border-color:#f1896d}.review-analysis[data-astro-cid-jyjgxdr5]{border-top:1px solid #675345;padding-top:.75rem}.analysis-message[data-astro-cid-jyjgxdr5]{margin:.5rem 0;font-size:.9rem;line-height:1.5}small[data-astro-cid-jyjgxdr5],footer[data-astro-cid-jyjgxdr5]{display:block;margin-top:.65rem;font-size:.75rem;line-height:1.4;color:#dacabb}a[data-astro-cid-jyjgxdr5]{color:inherit}[data-astro-cid-jyjgxdr5][hidden]{display:none}@media(max-height:650px)and (min-width:650px){.game-review[data-astro-cid-jyjgxdr5]{width:min(30rem,calc(100vw - 1rem))}.review-board[data-astro-cid-jyjgxdr5]{width:min(100%,45dvh);margin:auto}}.chess-app[data-astro-cid-t3eduwlr]{position:relative;width:100vw;height:100dvh;overflow:hidden;display:grid;place-items:center;grid-template-rows:3rem minmax(0,1fr) 6rem;background:#292522}.leaderboard[data-astro-cid-t3eduwlr]{position:fixed;top:.75rem;right:.75rem;z-index:10;width:10.5rem;padding:.65rem;border-radius:.75rem;background:#000c;color:#fffaf0;font-size:.8rem}.leaderboard[data-astro-cid-t3eduwlr] h2[data-astro-cid-t3eduwlr]{margin:0 0 .35rem;font-size:.85rem}.leaderboard-list[data-astro-cid-t3eduwlr]{margin:0;padding-left:1.25rem}.leaderboard-list[data-astro-cid-t3eduwlr] li{padding:.1rem 0}.leaderboard-list[data-astro-cid-t3eduwlr] .score-row{display:flex;gap:.5rem;justify-content:space-between}.leaderboard-list[data-astro-cid-t3eduwlr] .score-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.leaderboard-list[data-astro-cid-t3eduwlr] .score-wins{flex-shrink:0;font-variant-numeric:tabular-nums}.leaderboard-empty[data-astro-cid-t3eduwlr]{margin:0;opacity:.7}.status[data-astro-cid-t3eduwlr]{position:fixed;top:.75rem;left:50%;transform:translate(-50%);z-index:10;margin:0;padding:.4rem .85rem;border-radius:999px;background:#0000008c;color:#fff;font-size:clamp(.8rem,2.5vw,.95rem);pointer-events:none}.session-info[data-astro-cid-t3eduwlr]{position:fixed;bottom:.75rem;left:50%;transform:translate(-50%);z-index:10;max-width:calc(100vw - 1rem);width:max-content;padding:.4rem .85rem;border-radius:.75rem;background:#000c;color:#fff;text-align:center;font-size:clamp(.75rem,2.5vw,.9rem)}.session-info[data-astro-cid-t3eduwlr] p[data-astro-cid-t3eduwlr]{margin:0}.presence[data-astro-cid-t3eduwlr]{opacity:.75;font-size:.85em}.new-game[data-astro-cid-t3eduwlr],.review-game[data-astro-cid-t3eduwlr]{margin-top:.35rem;padding:.3rem .7rem;cursor:pointer}.board[data-astro-cid-t3eduwlr][aria-disabled=true] .piece{cursor:default}.board-frame[data-astro-cid-t3eduwlr]{grid-row:2;width:min(100vw,calc(100dvh - 15rem));display:flex;flex-direction:column}.move-clock[data-astro-cid-t3eduwlr]{position:fixed;top:0;left:0;right:0;z-index:20;pointer-events:none}.clock-track[data-astro-cid-t3eduwlr]{height:.45rem;overflow:hidden;background:#51483f}.clock-bar[data-astro-cid-t3eduwlr]{height:100%;background:#9bbd74;transform-origin:left}.clock-track[data-astro-cid-t3eduwlr][data-urgent=true] .clock-bar[data-astro-cid-t3eduwlr]{background:#ed985d}.advantage-track[data-astro-cid-t3eduwlr]{position:fixed;bottom:0;left:0;right:0;height:.45rem;z-index:20;background:#151515;box-shadow:0 -1px #74685d;pointer-events:none}.advantage-white[data-astro-cid-t3eduwlr]{width:50%;height:100%;background:#fffaf0;transition:width .4s ease}@media(prefers-reduced-motion:reduce){.advantage-white[data-astro-cid-t3eduwlr]{transition:none}}.player-name--black[data-astro-cid-t3eduwlr]{order:0}.board[data-astro-cid-t3eduwlr]{order:2}.player-name--white[data-astro-cid-t3eduwlr]{order:3}.board-frame[data-astro-cid-t3eduwlr].is-black-view .player-name--white[data-astro-cid-t3eduwlr]{order:0}.board-frame[data-astro-cid-t3eduwlr].is-black-view .player-name--black[data-astro-cid-t3eduwlr]{order:3}.player-name[data-astro-cid-t3eduwlr]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0;padding:.35rem .5rem;color:#fffaf0;font-size:.9rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.player-label[data-astro-cid-t3eduwlr]{min-width:0;overflow:hidden;text-overflow:ellipsis}.captured-pieces[data-astro-cid-t3eduwlr]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.2rem;flex-shrink:0;max-width:70%}.captured-pieces[data-astro-cid-t3eduwlr][hidden]{display:none}.captured-pieces[data-astro-cid-t3eduwlr] .captured-piece{display:inline-flex}.captured-pieces[data-astro-cid-t3eduwlr] svg{display:block;width:1.35rem;height:1.35rem}.name-dialog[data-astro-cid-t3eduwlr]{width:min(26rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:1.5rem;border:1px solid #b58863;border-radius:1rem;background:#fffaf0;color:#292522}.name-dialog[data-astro-cid-t3eduwlr]::backdrop{background:#000000b3}.name-form[data-astro-cid-t3eduwlr]{display:grid;gap:.8rem}.name-form[data-astro-cid-t3eduwlr] h1[data-astro-cid-t3eduwlr]{margin:0;font-size:1.4rem}.name-form[data-astro-cid-t3eduwlr] p[data-astro-cid-t3eduwlr]{margin:0;line-height:1.5}.name-form[data-astro-cid-t3eduwlr] input[data-astro-cid-t3eduwlr],.name-form[data-astro-cid-t3eduwlr] button[data-astro-cid-t3eduwlr]{padding:.7rem;font:inherit;border-radius:.4rem}.name-form[data-astro-cid-t3eduwlr] button[data-astro-cid-t3eduwlr]{background:#292522;color:#fffaf0;cursor:pointer}.resign[data-astro-cid-t3eduwlr]{margin-top:.35rem;padding:.3rem .7rem;cursor:pointer}.board[data-astro-cid-t3eduwlr]{display:grid;grid-auto-flow:row;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);width:100%;height:min(100vw,calc(100dvh - 15rem));touch-action:none;margin:0;padding:0}.square[data-astro-cid-t3eduwlr]{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;min-height:0}.square[data-astro-cid-t3eduwlr].is-last-from,.square[data-astro-cid-t3eduwlr].is-last-to{background-image:linear-gradient(#f5d74361,#f5d74361)}.square[data-astro-cid-t3eduwlr].is-selected{box-shadow:inset 0 0 0 5px #567b37}.square[data-astro-cid-t3eduwlr].is-legal:after{content:"";position:absolute;width:25%;height:25%;border-radius:50%;background:#28501973;pointer-events:none}.square[data-astro-cid-t3eduwlr].is-legal.is-hint-target:after{background:#285019a6}.square[data-astro-cid-t3eduwlr]:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}.square--light[data-astro-cid-t3eduwlr]{background:#f0d9b5}.square--dark[data-astro-cid-t3eduwlr]{background:#b58863}.promotion-dialog[data-astro-cid-t3eduwlr]{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#00000059}.promotion-dialog[data-astro-cid-t3eduwlr][hidden]{display:none}.promotion-dialog__choices[data-astro-cid-t3eduwlr]{display:flex;gap:.35rem;padding:.5rem;border-radius:.75rem;background:#fffffff2;box-shadow:0 8px 32px #00000040}@media(max-width:1000px)and (orientation:portrait){.chess-app[data-astro-cid-t3eduwlr]{grid-template-rows:7rem minmax(0,1fr) 6rem}.board-frame[data-astro-cid-t3eduwlr]{width:min(100vw,calc(100dvh - 19rem))}.board[data-astro-cid-t3eduwlr]{height:min(100vw,calc(100dvh - 19rem))}}@media(max-width:700px){.leaderboard[data-astro-cid-t3eduwlr]{width:9rem;top:.5rem;right:.5rem}.status[data-astro-cid-t3eduwlr]{left:.5rem;transform:none;max-width:calc(100vw - 10.5rem)}}.piece{margin:0;padding:0;border:none;background:transparent;cursor:grab;touch-action:none;user-select:none;line-height:1;font-size:clamp(1.75rem,8vmin,6rem);display:flex;align-items:center;justify-content:center;width:100%;height:100%}.piece:active{cursor:grabbing}.piece svg,.promotion-choice svg{display:block;width:85%;height:85%}.square.is-move-flash .piece{animation:move-piece-pulse 1s ease-in-out 3}@keyframes move-piece-pulse{0%,to{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.square.is-move-flash .piece{animation:none}}.piece.is-dragging{cursor:grabbing;z-index:1000;pointer-events:none}.promotion-choice{margin:0;padding:.35rem .5rem;border:none;border-radius:.5rem;background:transparent;cursor:pointer;width:clamp(3rem,15vmin,5rem);height:clamp(3rem,15vmin,5rem);line-height:1}.promotion-choice:hover,.promotion-choice:focus-visible{background:#00000014;outline:2px solid rgba(20,85,30,.65);outline-offset:2px}
