.chess-page .shell{max-width:1140px}.back-link{color:#63429d;font-size:14px;font-weight:650;text-decoration:none}.chess-heading{display:flex;justify-content:space-between;align-items:center;margin:34px 0 26px}.chess-heading h1{font-size:clamp(32px,5vw,54px);letter-spacing:-2px;line-height:1.1;margin:12px 0}.chess-heading h1 span{color:#63429d}.chess-heading p{color:#787366;font-size:16px}.heading-piece{font-size:110px;color:#385c87;line-height:1}.play-setup{padding:22px;background:#fffdf8;border:1px solid #e4dfd1;border-radius:20px;margin-bottom:28px}.mode-picker{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.mode-picker button{padding:12px 18px;border-radius:12px;background:#f1eee5;border:1px solid transparent;color:#6d665c;font:650 14px inherit;cursor:pointer}.mode-picker button[aria-pressed=true]{background:#e8e0f3;color:#63429d;border-color:#b8a2d3}.chess-page button{font-family:inherit;cursor:pointer}.chess-page button:disabled{opacity:.45;cursor:default}.settings-row{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.settings-row label,.online-options label{font-size:12px;font-weight:700;color:#70695e;display:grid;gap:7px}.chess-page select,.chess-page input{font:inherit;border:1px solid #d9d2c5;background:#fff;border-radius:10px;padding:11px 12px;color:#3c3931;min-height:44px}.primary,.secondary{border-radius:10px;padding:12px 17px;font-size:14px;font-weight:700;min-height:44px}.primary{background:#63429d;color:white;border:1px solid #63429d}.secondary{background:#fffdf8;color:#50463f;border:1px solid #d9d2c5}.text-button{background:none;border:0;color:#63429d;font-weight:650;padding:8px 0;font-size:13px}.settings-note{font-size:12px;color:#777063;max-width:180px;line-height:1.5;padding-bottom:4px}.settings-row p{margin:0 auto 10px 0;color:#777063}.online-options{display:grid;grid-template-columns:1fr 1fr;gap:28px}.online-options h2{font-size:18px;margin:0 0 8px}.online-options p,.online-note{font-size:13px;line-height:1.65;color:#777063}.online-options>div{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.online-options>div h2,.online-options>div p{grid-column:1/-1;margin:0}.online-options form{border-left:1px solid #e4dfd1;padding-left:28px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.online-options form h2,.online-options form label{grid-column:1/-1}.online-options input{width:100%;letter-spacing:2px;font-weight:700;min-width:0}.online-note{margin:16px 0 0}.room-session{background:#e9f0fa;border:1px solid #ccd9eb;padding:16px 18px;margin-top:18px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:16px}.room-session small{display:block;color:#44628a;font-size:10px;font-weight:750;letter-spacing:1px}.room-session strong{font-size:24px;color:#2c4a73;letter-spacing:3px;display:block;margin:4px 0}.room-session span{font-size:12px;color:#5d718b}.room-buttons{display:flex;flex-wrap:wrap;gap:8px}.notice{font-size:14px;line-height:1.6;padding:12px 14px;background:#fff1d5;color:#775323;border-radius:10px;margin:16px 0 0}.chess-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:28px;align-items:start}.board-panel{min-width:0}.player-line{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#686253;gap:12px;padding:0 4px;margin-bottom:12px;min-height:28px}.player-line>span:first-child{font-weight:700}.connection{font-size:11px;color:#54764f;background:#e8efdf;border-radius:20px;padding:5px 9px;white-space:nowrap}.connection.problem{color:#86582d;background:#fff1d5}.board-frame{padding:9px;border-radius:15px;background:#3d506c;box-shadow:0 8px 24px #293a5020}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));aspect-ratio:1;border-radius:6px;overflow:hidden}.board-row{display:contents}.square{position:relative;display:grid;place-items:center;border:0;padding:0;aspect-ratio:1;background:#eee7d6;min-width:0;touch-action:manipulation;color:#423b31}.square.dark{background:#8a9db5;color:#21354d}.square.last{background:#dce2a8}.square.dark.last{background:#a7b17d}.square.selected{box-shadow:inset 0 0 0 4px #7953b3;background:#cebce2}.square.check{background:#eeb0a1}.square:focus-visible{outline:3px solid #f5c443;outline-offset:-4px;z-index:2}.square.legal:after{content:'';position:absolute;width:24%;height:24%;background:#344c6088;border-radius:50%;pointer-events:none}.square.legal.capture:after{width:84%;height:84%;background:none;border:4px solid #344c6088;box-sizing:border-box}.piece{width:82%;height:82%;pointer-events:none;z-index:1;overflow:visible}.piece.white{color:#fff7e1;--piece-stroke:#3b4657;filter:drop-shadow(0 2px 1px #0004)}.piece.black{color:#293b56;--piece-stroke:#edf0e8;filter:drop-shadow(0 2px 1px #0003)}.coordinate{position:absolute;font-size:10px;font-weight:750;pointer-events:none}.coordinate.file{bottom:2px;right:4px}.coordinate.rank{top:3px;left:4px}.bottom-player{margin:13px 0 0}.game-sidebar>section,.chess-help{padding:22px;background:#fffdf8;border:1px solid #e4dfd1;border-radius:18px;margin-bottom:16px}.turn-panel .eyebrow{font-size:10px;letter-spacing:1px}.turn-panel h2{font-size:25px;line-height:1.25;margin:12px 0;color:#463657}.turn-panel p{font-size:13px;color:#777063;line-height:1.7}.game-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.game-actions button{font-size:12px;padding:10px 12px}.section-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-top h2{font-size:16px;margin:0}.section-top span{font-size:11px;color:#777063}.history-panel>p{font-size:13px;color:#aaa28f}.move-list{padding:0;margin:16px 0 0;list-style:none;max-height:240px;overflow:auto}.move-list li{display:grid;grid-template-columns:30px 1fr 1fr;font-size:13px;padding:9px 7px;border-radius:6px}.move-list li:nth-child(odd){background:#f3f0e7}.move-list .number{color:#a49884}.move-list .latest{color:#63429d;font-weight:750}.chess-help{font-size:13px;color:#777063;line-height:1.7}.chess-help summary{cursor:pointer;font-weight:700;color:#635847}.chess-dialog{border:1px solid #ded5e8;border-radius:20px;max-width:400px;padding:26px;background:#fffdf8;color:#48395d}.chess-dialog::backdrop{background:#24193288}.chess-dialog h2{font-size:23px;margin:0 0 10px}.chess-dialog p{font-size:14px;line-height:1.6;color:#777063}.dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:22px}#promotionOptions{display:flex;gap:8px;margin:22px 0}#promotionOptions button{width:70px;min-height:88px;border:1px solid #d2c4e1;border-radius:12px;background:#e8e0f3;color:#48395d;font-size:12px;font-weight:700}#promotionOptions .piece{width:50px;height:50px;display:block;margin:auto}.chess-page [hidden]{display:none!important}.chess-page .pwa-panel{margin-top:28px}#onlineActions .secondary{margin-top:8px}.chess-page button:focus-visible,.chess-page select:focus-visible,.chess-page input:focus-visible{outline:3px solid #bc9ee0;outline-offset:3px}
@media(max-width:800px){.chess-layout{grid-template-columns:1fr;gap:20px}.board-panel{max-width:620px;width:100%;margin:auto}.game-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.game-sidebar>section,.chess-help{margin:0}.chess-help{grid-column:1/-1}.heading-piece{font-size:85px}.online-options form{padding-left:20px}.play-setup{padding:18px}}
@media(max-width:550px){.chess-page .shell{padding:0 16px}.chess-heading{margin:24px 0}.chess-heading h1{font-size:35px;letter-spacing:-1.4px}.chess-heading p{font-size:14px}.heading-piece{display:none}.back-link{font-size:12px}.mode-picker{gap:6px}.mode-picker button{font-size:12px;padding:11px 10px;flex:1;white-space:nowrap}.settings-row{gap:12px}.settings-row label{flex:1;min-width:110px}.settings-row select{width:100%;font-size:14px}.settings-note{max-width:none;width:100%}.settings-row>.primary{width:100%}.online-options{grid-template-columns:1fr;gap:22px}.online-options form{padding:20px 0 0;border-left:0;border-top:1px solid #e4dfd1}.online-options>div{grid-template-columns:1fr auto}.online-options label select{width:100%}.online-options form input{font-size:15px}.room-session{flex-direction:column;align-items:start}.room-buttons{width:100%}.room-buttons button{font-size:12px;padding:10px 12px}.game-sidebar{grid-template-columns:1fr}.chess-help{grid-column:auto}.board-frame{padding:6px;border-radius:11px}.coordinate{font-size:8px}.coordinate.file{right:2px;bottom:1px}.coordinate.rank{left:2px;top:1px}.connection{font-size:10px}.player-line{font-size:12px}.square.selected{box-shadow:inset 0 0 0 3px #7953b3}.turn-panel h2{font-size:23px}}
