.chess-layout{display:grid;grid-template-columns:minmax(0,680px) minmax(230px,1fr);gap:32px;max-width:1050px;margin:0 auto}.chess-player{display:flex;align-items:center;gap:10px;min-height:54px;font-weight:800}.chess-player img{width:36px;height:36px}.chess-player.active{color:var(--green)}.chess-board-wrap{position:relative;border:8px solid #34463c;border-radius:5px;overflow:hidden}.chess-board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1}.chess-square{position:relative;border:0;border-radius:0;padding:0;aspect-ratio:1;background:#eeeed2;cursor:pointer;display:grid;place-items:center;color:#526443;min-width:0}.chess-square.dark{background:#769656;color:#eeeed2}.chess-square img{width:88%;height:88%;pointer-events:none;filter:drop-shadow(0 2px 1px #0003)}.chess-square.last{background:#f3ed86}.chess-square.dark.last{background:#bacb44}.chess-square.selected{background:#f3d45f;box-shadow:inset 0 0 0 3px #b88d20}.chess-square.legal::after{content:'';position:absolute;width:28%;height:28%;background:#152a2240;border-radius:50%;pointer-events:none}.chess-square.legal:has(img)::after{width:90%;height:90%;background:none;border:5px solid #152a2250}.chess-square.check{background:#db6356}.chess-square:focus-visible{outline:3px solid #124ee4;outline-offset:-3px;z-index:1}.square-file,.square-rank{position:absolute;font-size:clamp(9px,1.2vw,12px);font-weight:800;pointer-events:none}.square-file{right:4px;bottom:1px}.square-rank{left:3px;top:2px}.chess-board-wrap .match-result-overlay{inset:0;border-radius:0}.chess-sidebar{padding-top:25px;min-width:0}.chess-sidebar h2{font-size:1.7rem;margin:12px 0}.chess-sidebar p{color:#627369;font-size:.86rem;line-height:1.6}.move-history{height:260px;overflow:auto;background:#fffdf8;border:1px solid var(--line);border-radius:10px;padding:12px;scrollbar-gutter:stable}.move-row{display:grid;grid-template-columns:35px 1fr 1fr;padding:6px 0;gap:8px;font-variant-numeric:tabular-nums}.move-row small{color:#78857f}.chess-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.chess-actions button{flex:1 0 40%}.chess-error{color:#ad3429;text-align:center;min-height:24px}.promotion-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.promotion-choices button{background:#eeeed2;border:2px solid transparent;border-radius:8px;cursor:pointer;padding:6px}.promotion-choices button:hover,.promotion-choices button:focus-visible{border-color:var(--green)}.promotion-choices img{display:block;width:100%}.promotion-choices span{font-size:.8rem}.chess-credit{text-align:center;font-size:11px;color:#78857f;margin-top:25px}.chess-credit a{color:inherit}#onlinePanel form{flex-wrap:wrap}#onlinePanel input{width:200px;text-transform:none;letter-spacing:normal}#onlinePanel label{min-width:60px}#roomList:empty{display:none}.mode-icon{font-family:serif}.chess-art{background:repeating-conic-gradient(#769656 0% 25%,#eeeed2 0% 50%) 50% / 90px 90px!important;display:flex;justify-content:center;align-items:center}.chess-art img{width:110px;filter:drop-shadow(0 8px 5px #0005)}@media(max-width:800px){.chess-layout{grid-template-columns:1fr;gap:14px;max-width:640px}.chess-sidebar{padding-top:0}.chess-sidebar h2{font-size:1.3rem}.move-history{height:140px}.chess-player{min-height:44px}.chess-board-wrap{border-width:5px}.chess-actions button{flex:1 0 auto}}@media(prefers-reduced-motion:reduce){.match-result-overlay *,.match-result-overlay::before{animation:none!important}}

.match-result-overlay.draw{background:#18332adb;color:#fffdf8}.match-result-overlay.draw span{font-size:clamp(2.5rem,9vw,6rem)}
