.chess-game{max-width:850px;margin:0 auto}.chess-layout{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:20px;align-items:start}.chess-board-wrap{min-width:0}.table .chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:100%;max-width:600px;border:8px solid #33455e;border-radius:5px;overflow:hidden;margin:0 auto;box-sizing:border-box}.table .chess-board .square{position:relative;aspect-ratio:1;min-width:0;min-height:0;width:100%;height:auto;border:0;border-radius:0;padding:0;display:grid;place-items:center;background:#f3e5ce;color:#1a2435;cursor:pointer}.table .chess-board .square.dark{background:#8094ae}.table .chess-board .square:disabled{opacity:1;cursor:default;filter:none}.table .chess-board .square.last-move{background:#f5c087}.table .chess-board .square.dark.last-move{background:#b78f67}.table .chess-board .square.pick{box-shadow:inset 0 0 0 4px #c2581e;background:#ffc77e}.table .chess-board .square.hint:after{content:'';position:absolute;width:20%;height:20%;border-radius:50%;background:#18223666;z-index:2}.table .chess-board .square.hint:has(.chess-figure:not(:empty)):after{width:85%;height:85%;border:4px solid #a94922;background:none;box-sizing:border-box}.table .chess-board .square:focus-visible{outline:3px solid #e36321;outline-offset:-3px;z-index:3}.chess-figure{font-family:'Segoe UI Symbol','Noto Sans Symbols 2',serif;font-size:clamp(28px,5.6cqw,58px);line-height:1;z-index:1}.chess-figure.is-white{color:#fffdf5;text-shadow:1px 1px #243149,-1px -1px #243149,1px -1px #243149,-1px 1px #243149}.chess-figure.is-black{color:#192436}.chess-rank,.chess-file{position:absolute;font:700 10px/1 Arial;color:#26364a;z-index:2}.chess-rank{left:3px;top:3px}.chess-file{right:3px;bottom:3px}.chess-topline,.chess-bottomline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}.chess-topline{max-width:610px}.chess-side{padding:5px 10px;border-radius:20px;font-size:13px}.chess-side.is-current{background:#243149;color:#fff}.chess-captures{font:22px/1.1 'Segoe UI Symbol',serif;letter-spacing:2px}.chess-history{padding:14px;background:#e8e3da;border:1px solid #d7d1c7;border-radius:9px;text-align:left}.chess-history h3{margin:0 0 12px;font-size:15px}.chess-history ol{max-height:340px;overflow:auto;padding-left:23px;margin:0 0 16px;font:12px/1.9 ui-monospace,monospace}.chess-history li{padding:2px}.chess-history li:nth-child(odd){background:#f7f4ee}.chess-history li span{display:inline-block;min-width:65px}.chess-history button{width:100%;padding:9px}.chess-history .small{font-size:11px;line-height:1.5}.chess-game .status{margin:4px 0 12px}
@container(max-width:650px){.chess-layout{grid-template-columns:minmax(0,1fr);gap:10px}.chess-history{padding:10px}.chess-history ol{max-height:110px}.chess-history button{width:auto}.table .chess-board{border-width:5px;max-width:520px}.chess-figure{font-size:clamp(28px,9.5cqw,54px)}.chess-topline{padding-top:0}}

@container(min-width:651px){.chess-layout{grid-template-columns:minmax(0,clamp(280px,calc(100svh - 320px),580px)) 185px;justify-content:center}.table .chess-board{max-width:clamp(280px,calc(100svh - 320px),580px)}}
