@import url('/board-arena/style.css');
.chess-layout{display:grid;grid-template-columns:minmax(280px,1.2fr) minmax(260px,1fr);gap:28px;align-items:start}.chess-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:8px solid #244e6f;border-radius:12px;overflow:hidden;box-shadow:0 12px 24px #1d55752b;max-width:640px}.chess-board button.chess-square{padding:0;border:0;min-width:0;aspect-ratio:1;position:relative;display:grid;place-items:center;border-radius:0;cursor:pointer}.chess-board .light{background:#e8f0db!important}.chess-board .dark{background:#4f7d90!important}.chess-board .chess-square:disabled{opacity:1;cursor:default}.chess-piece{font-family:'Segoe UI Symbol','Noto Sans Symbols 2','Arial Unicode MS',serif;font-size:clamp(26px,4.5vw,54px);line-height:1}.chess-piece.white{color:#fffdf0;text-shadow:0 1px 2px #102f42,-1px 0 #102f42,1px 0 #102f42,0 -1px #102f42}.chess-piece.black{color:#142b43;text-shadow:0 1px 1px #f4f7ef99}.chess-square small{position:absolute;left:4px;bottom:1px;font-size:10px;color:#183756}.chess-square.dark small{color:#eef7ff}.chess-square.selected{box-shadow:inset 0 0 0 5px #f0ae35}.chess-square.destination:after{content:'';position:absolute;inset:8%;border:3px dashed #f6bc43;border-radius:50%;pointer-events:none}.chess-square.in-check{box-shadow:inset 0 0 0 5px #bc3337}.chess-square:focus-visible{outline:4px solid #143eae;outline-offset:-4px;z-index:1}.chess-badges{display:flex;gap:10px;flex-wrap:wrap}.chess-badges span{border:1px solid #b4c8d9;border-radius:14px;background:#eef2f7;padding:12px;color:#53667c}.chess-badges .earned{background:linear-gradient(120deg,#ffe4a0,#d9f0e6);border-color:#b28427;color:#69430b}.turn-state{padding:12px;background:#e2effc;border-left:5px solid #2475b2}label{display:block;margin:16px 0}select{display:block;width:100%;margin-top:5px}.tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}@media(max-width:780px){.chess-layout{grid-template-columns:1fr}.chess-piece{font-size:clamp(24px,8vw,48px)}.chess-board{border-width:5px}.chess-square small{font-size:8px}.chess-board button.chess-square{min-height:0}.wrap{padding:14px}}
