.chess-2d{color:#f2e4c4;background:radial-gradient(circle at 50% -20%,#3b3024 0,#17151a 45%,#08090d 100%);outline:none;min-height:100svh;padding:28px clamp(16px,4vw,54px) 44px;font-family:Georgia,Times New Roman,serif}.chess-2d:focus-visible{box-shadow:inset 0 0 0 3px #d8b66f}.chess-2d-header{justify-content:space-between;align-items:center;gap:18px;max-width:1180px;margin:0 auto 34px;display:flex}.chess-2d-header h1{color:#f5e7c4;margin:3px 0 0;font-size:clamp(25px,4vw,38px);line-height:1}.chess-2d-eyebrow{color:#c8a867;letter-spacing:.25em;text-transform:uppercase;margin:0;font-size:10px;font-weight:700}.chess-2d-back,.chess-2d-gallery{color:#c7b38e;align-items:center;gap:7px;font-size:13px;text-decoration:none;display:inline-flex}.chess-2d-back:hover,.chess-2d-gallery:hover{color:#f3d28e}.chess-2d-menu{text-align:center;background:#151318dd;border:1px solid #d0a95b55;border-radius:18px;width:min(100%,560px);margin:12vh auto 0;padding:42px 34px;box-shadow:0 24px 70px #0008,inset 0 1px #f8dfaa1a}.chess-2d-menu-mark{color:#d7af63;margin:0 auto 17px;font-size:54px;line-height:1}.chess-2d-menu h2{color:#f4e4bf;margin:10px 0;font-size:clamp(27px,5vw,40px);line-height:1.08}.chess-2d-menu>p:not(.chess-2d-eyebrow):not(.chess-2d-key-help){color:#b8a789;max-width:410px;margin:0 auto;font-size:15px;line-height:1.55}.chess-2d-difficulty{grid-template-columns:repeat(3,1fr);gap:8px;max-width:330px;margin:24px auto 16px;display:grid}.chess-2d button,.chess-2d-side-button{color:#d7c39a;cursor:pointer;font:inherit;background:#111117b8;border:1px solid #c29d5b66;border-radius:8px;transition:border-color .2s,background .2s,color .2s,transform .2s}.chess-2d button:hover,.chess-2d button:focus-visible,.chess-2d-side-button:hover,.chess-2d-side-button:focus-visible{color:#fff0c6;background:#bc914c22;border-color:#e8c779;outline:none}.chess-2d button:active{transform:translateY(1px)}.chess-2d-difficulty button{text-transform:capitalize;padding:9px}.chess-2d-difficulty button[data-active=true]{color:#f3d99b;background:#c59a4b25;border-color:#ddba6c}.chess-2d-music-choice{text-align:left;background:#1111179c;border:1px solid #9f7c4844;border-radius:10px;margin:20px auto 0;padding:13px}.chess-2d-music-heading{color:#f0dfb7;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;display:flex}.chess-2d-music-heading small{color:#9c8b70;font-size:10px}.chess-2d-music-options{flex-wrap:wrap;gap:6px;margin-top:9px;display:flex}.chess-2d-music-options button{color:#c6b28d;flex:72px;padding:7px 8px;font-size:11px}.chess-2d-music-options button[data-active=true]{color:#f3d99b;background:#c59a4b25;border-color:#ddba6c}.chess-2d-menu-actions{grid-template-columns:1.2fr 1fr;gap:9px;margin-top:22px;display:grid}.chess-2d-menu-actions button{justify-content:center;align-items:center;gap:8px;min-height:47px;padding:10px 12px;display:flex}.chess-2d-menu-actions .chess-2d-primary{color:#fff4d3;background:linear-gradient(135deg,#bd8d3f,#896127);border-color:#d3ac5e}.chess-2d-key-help{color:#8f8065;letter-spacing:.03em;margin:22px 0 0;font-size:11px}.chess-2d-play{grid-template-columns:minmax(0,760px) 270px;align-items:start;gap:clamp(18px,4vw,52px);max-width:1180px;margin:0 auto;display:grid}.chess-2d-board-wrap{min-width:0}.chess-2d-board{box-sizing:border-box;aspect-ratio:1;border:9px solid #5f452b;border-radius:8px;grid-template-rows:repeat(8,minmax(0,1fr));grid-template-columns:repeat(8,minmax(0,1fr));width:min(82vw,760px);margin:0 auto;display:grid;overflow:hidden;box-shadow:0 22px 55px #0009,0 0 0 1px #d0a55b55}.chess-2d-square{border:0;border-radius:0;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative}.chess-2d-square.light{background:#e2d2ad}.chess-2d-square.dark{background:#73543c}.chess-2d-square.last{box-shadow:inset 0 0 0 999px #ce9a3a38}.chess-2d-square.cursor{z-index:1;box-shadow:inset 0 0 0 4px #f6d57d,inset 0 0 18px #f5bf4d99}.chess-2d-square.selected{box-shadow:inset 0 0 0 5px #74d2a1,inset 0 0 21px #5fc58e99}.chess-2d-square.target:after,.chess-2d-square.capture:after{content:"";aspect-ratio:1;background:#42a878cc;border-radius:50%;width:22%;position:absolute;box-shadow:0 0 12px #64e8af}.chess-2d-square.capture:after{background:0 0;border:4px solid #e56e51;width:72%;box-shadow:0 0 13px #ed765c}.chess-2d-piece{z-index:2;text-shadow:0 3px 2px #0006,0 0 1px #000;-webkit-user-select:none;user-select:none;font-family:Times New Roman,Georgia,serif;font-size:clamp(33px,7vw,76px);line-height:1;position:relative}.chess-2d-piece.white-piece{color:#fff4d5}.chess-2d-piece.black-piece{color:#241b18;text-shadow:0 2px 1px #edc98288,0 2px 3px #000a}.file-label,.rank-label{z-index:3;color:#6e4e32;pointer-events:none;font:700 clamp(8px,1.25vw,12px)/1 Arial,sans-serif;position:absolute}.file-label{bottom:4px;right:5px}.rank-label{top:4px;left:5px}.dark .file-label,.dark .rank-label{color:#e7c995}.chess-2d-board-help{color:#ae9d7e;text-align:center;margin:12px 0 0;font-size:12px}.chess-2d-sidebar{gap:12px;display:grid}.chess-2d-status{color:#f0dbab;background:#16141ad9;border:1px solid #bd965344;border-radius:10px;align-items:center;gap:9px;padding:14px 15px;font-size:16px;display:flex}.ivory-dot,.obsidian-dot{background:#f0e2bf;border-radius:50%;width:10px;height:10px;box-shadow:0 0 9px #f5d890}.obsidian-dot{background:#42373a;box-shadow:0 0 9px #a8876f}.chess-2d-card{background:#1111179c;border:1px solid #9f7c4844;border-radius:10px;gap:7px;padding:15px;display:grid}.chess-2d-card p{color:#c49e5e;letter-spacing:.2em;text-transform:uppercase;margin:0;font-size:10px;font-weight:700}.chess-2d-card strong{color:#f0dfb7;font-size:24px}.chess-2d-card span{color:#a9997c;font-size:13px;line-height:1.45}.chess-2d-music-card .chess-2d-music-options{margin-top:4px}.chess-2d-music-card .chess-2d-music-options button{flex-basis:48px}.chess-2d-side-button{justify-content:center;align-items:center;gap:8px;min-height:42px;padding:9px 12px;text-decoration:none;display:flex}.chess-2d-result{box-sizing:border-box;color:#f2e4c4;text-align:center;background:radial-gradient(at top,#49371e,#19151c 70%);border:1px solid #d3ac5e;border-radius:20px;width:min(480px,100vw - 32px);max-height:calc(100svh - 32px);margin:auto;padding:34px 26px;overflow:auto;box-shadow:0 24px 90px #000b}.chess-2d-result::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#08090dba}.chess-2d-result[open]{animation:.35s ease-out both chess-result-arrive}.chess-2d-result-content{z-index:1;position:relative}.chess-2d-result-mark{color:#efc66d;margin-bottom:16px;font-size:68px;line-height:1}.chess-2d-result[data-celebrate=true] .chess-2d-result-mark{text-shadow:0 0 32px #e9ae4ca0}.chess-2d-result h2{color:#fff0c6;margin:16px 0 12px;font-size:clamp(28px,6vw,38px);line-height:1.12}.chess-2d-result-content>p:not(.chess-2d-eyebrow){color:#cbb994;line-height:1.6}.chess-2d-confetti{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.chess-2d-confetti i{top:-18px;left:var(--x);opacity:0;width:7px;height:13px;animation:chess-confetti-fall 3s var(--delay) ease-in both;background:#f1cb73;position:absolute}.chess-2d-confetti i:nth-child(3n){background:#a6d8be}.chess-2d-confetti i:nth-child(3n+1){background:#f5e7c4;border-radius:50%}@keyframes chess-result-arrive{0%{opacity:0;transform:translateY(16px)scale(.96)}to{opacity:1;transform:none}}@keyframes chess-confetti-fall{0%{opacity:0;transform:translateY(0)}12%{opacity:1}80%{opacity:.8}to{opacity:0;transform:translate(var(--drift), 480px) rotate(var(--spin))}}@media (prefers-reduced-motion:reduce){.chess-2d-result[open]{animation:none}.chess-2d-confetti{display:none}}@media (max-width:860px){.chess-2d-play{grid-template-columns:1fr}.chess-2d-board{width:min(92vw,680px)}.chess-2d-sidebar{grid-template-columns:repeat(2,1fr)}.chess-2d-status{grid-column:1/-1}}@media (max-width:520px){.chess-2d{padding:18px 10px 30px}.chess-2d-header{margin-bottom:24px}.chess-2d-header h1{font-size:24px}.chess-2d-gallery{display:none}.chess-2d-menu{margin-top:8vh;padding:32px 18px}.chess-2d-menu-actions{grid-template-columns:1fr}.chess-2d-board{border-width:5px}.chess-2d-sidebar{grid-template-columns:1fr}}.chess-2d-style-choice{text-align:left;background:#1111179c;border:1px solid #9f7c4844;border-radius:10px;margin:20px auto 0;padding:12px}.chess-2d-style-choice>span{color:#f0dfb7;margin-bottom:8px;font-size:12px;display:block}.chess-2d-style-choice small{color:#a99b7d;margin-top:8px;font-size:11px;display:block}.chess-2d-style-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.chess-2d-style-options button{min-height:37px;padding:7px 10px}.chess-2d-style-options button[data-active=true]{color:#fff0cf;background:#9b754b55;border-color:#ddb86f}.chess-2d[data-style=qingming]{color:#f4e8cd;background:radial-gradient(circle at 50% -12%,#8e9c8e,#2e403f 47%,#172723 100%)}.chess-2d[data-style=qingming] .chess-2d-menu{background:linear-gradient(#1e342fbd,#1a2925ed),url(/games/medieval-chess/assets/qingming-scroll.svg) top/cover}.chess-2d[data-style=qingming] .chess-2d-board{border:12px solid #594333;border-radius:3px;box-shadow:0 22px 55px #081310bb,0 0 0 3px #d5ba86,0 0 0 8px #624e38}.chess-2d[data-style=qingming] .chess-2d-piece{aspect-ratio:1;color:#3c4d45;width:71%;text-shadow:none;background:radial-gradient(circle at 35% 28%,#f4dfb2,#c39d69 85%);border:3px double #624b36;border-radius:50%;place-items:center;font-family:Noto Serif CJK SC,Songti SC,SimSun,serif;font-size:clamp(17px,3.8vw,43px);font-weight:700;display:grid;box-shadow:inset 0 2px 6px #fff7d177,0 4px 7px #1520198c}.chess-2d[data-style=qingming] .chess-2d-piece.black-piece{color:#fff0d1;background:radial-gradient(circle at 35% 28%,#b97955,#743f32 85%);border-color:#472a22}@media (max-width:520px){.chess-2d[data-style=qingming] .chess-2d-board{border-width:6px}.chess-2d[data-style=qingming] .chess-2d-piece{border-width:2px}}.chess-2d .chess-2d-piece.concealed-piece{aspect-ratio:1;color:#433724;width:70%;text-shadow:none;background:linear-gradient(135deg,#f0e0b8,#b9a17b);border:2px solid #cfb880;border-radius:16%;place-items:center;font:700 clamp(22px,4vw,45px)/1 Georgia,serif;display:grid;box-shadow:inset 0 0 0 4px #fff2,0 4px 6px #0006}.chess-2d .chess-2d-piece.concealed-piece.black-piece{color:#f5dfad;background:linear-gradient(135deg,#394c57,#172831);border-color:#8ca6af}.unveiled-piece{animation:.5s ease-out chess-unveil}@keyframes chess-unveil{0%{filter:brightness(1.8);transform:rotateY(90deg)scale(.65)}to{filter:brightness();transform:rotateY(0)scale(1)}}@media (prefers-reduced-motion:reduce){.unveiled-piece{animation:none}}.chess-2d-captured{flex-wrap:wrap;gap:5px;display:flex}.chess-2d-captured span{border-radius:5px;place-items:center;width:32px;height:36px;font:25px/1 Georgia,serif;display:grid}.chess-2d-captured .captured-white{color:#fff3ce;background:#64533b}.chess-2d-captured .captured-black{color:#201c19;background:#d0bd98}.chess-2d[data-style=qingming]{isolation:isolate;color:#403e32;background:#d9caaa url(/games/medieval-chess/assets/qingming-river-painting.webp) 50%/cover fixed;font-family:Georgia,Songti SC,SimSun,serif;position:relative}.chess-2d[data-style=qingming]:before{content:"";pointer-events:none;z-index:-1;background:linear-gradient(90deg,#eee3c9c9,#eee3c933 45%,#eee3c90d),linear-gradient(#f2e6cb77,#0000 40%,#d8c9a94d);position:fixed;inset:0}.chess-2d[data-style=qingming]:after{content:"";pointer-events:none;z-index:5;border:1px solid #76634455;position:fixed;inset:12px}.chess-2d[data-style=qingming] .chess-2d-header{border-bottom:1px solid #74624755;max-width:1320px;margin-bottom:24px;padding-bottom:16px}.chess-2d[data-style=qingming] .chess-2d-header h1{color:#353d32;letter-spacing:-.03em;font-weight:400}.chess-2d[data-style=qingming] :is(.chess-2d-back,.chess-2d-gallery,.chess-2d-eyebrow){color:#655a43}.qingming-inscription{color:#454839;pointer-events:none;text-shadow:0 1px 15px #e7dab8;align-items:flex-start;gap:20px;display:flex;position:absolute;top:145px;right:9vw}.qingming-inscription h2{writing-mode:vertical-rl;letter-spacing:.18em;margin:0;font-size:clamp(36px,5vw,70px);font-weight:400}.qingming-inscription p{writing-mode:vertical-rl;letter-spacing:.3em;margin:12px 0;font-size:15px}.qingming-seal{outline-offset:3px;color:#98422f;writing-mode:vertical-rl;letter-spacing:.15em;border:2px solid #a24b36;outline:1px solid #a24b36;margin-top:8px;padding:8px 5px;font-size:18px}.chess-2d[lang=en] .qingming-inscription{flex-direction:column;gap:12px;max-width:min(30vw,380px)}.chess-2d[lang=en] .qingming-inscription :is(h2,p,.qingming-seal){writing-mode:horizontal-tb;letter-spacing:.04em}.chess-2d[lang=en] .qingming-inscription h2{font-size:clamp(28px,3.5vw,52px)}@media (max-width:1000px){.chess-2d[lang=en] .qingming-inscription{display:none}}.chess-2d[data-style=qingming][data-screen=playing] .qingming-inscription{display:none}.chess-2d[data-style=qingming] .chess-2d-menu{text-align:left;background:linear-gradient(110deg,#f7edd9f5,#eee2c9ed);border:1px solid #9f8965;border-radius:3px;width:min(100%,460px);margin:20px auto 0 max(0px,50vw - 660px);padding:24px 30px;box-shadow:0 22px 65px #3b302d26,inset 0 0 0 5px #c9b58b26}.chess-2d[data-style=qingming] .chess-2d-menu-mark{color:#a04b36;text-align:center;border:1px solid #a6523d;width:48px;margin:0 0 18px;padding:7px;font-size:30px}.chess-2d[data-style=qingming] .chess-2d-menu h2{color:#384135;margin-top:14px;font-size:28px;font-weight:400;line-height:1.5}.chess-2d[data-style=qingming] .chess-2d-menu>p:not(.chess-2d-eyebrow):not(.chess-2d-key-help){color:#74654b;margin:0;font-size:13px;line-height:1.8}.chess-2d[data-style=qingming] :is(.chess-2d-style-choice,.chess-2d-music-choice,.chess-2d-card,.chess-variant-picker){background:#f1e6ccde;border-color:#9c87664a;border-radius:3px}.chess-2d[data-style=qingming] :is(.chess-2d-style-choice,.chess-2d-music-choice){margin-top:16px}.chess-2d[data-style=qingming] .chess-variant-picker{margin-top:18px;margin-bottom:12px}.chess-2d[data-style=qingming] :is(.chess-variant-picker legend,.chess-2d-style-choice>span,.chess-2d-music-heading,.chess-2d-card strong){color:#3e4a3d}.chess-2d[data-style=qingming] :is(.chess-variant-picker p,.chess-2d-style-choice small,.chess-2d-music-heading small,.chess-2d-card span,.chess-2d-key-help,.chess-2d-board-help){color:#73644f}.chess-2d[data-style=qingming] .chess-2d-card p{color:#8a513c}.chess-2d[data-style=qingming] :is(button:not(.chess-2d-square),.chess-2d-side-button){color:#514b3b;background:#fbf2dfab;border-color:#9d8a6666;border-radius:3px}.chess-2d[data-style=qingming] :is(button[data-active=true],button[aria-pressed=true],.chess-2d-menu-actions .chess-2d-primary){color:#faf0d8;background:#536454;border-color:#536454}.chess-2d[data-style=qingming] :is(button:not(.chess-2d-square),.chess-2d-side-button):hover{color:#343f33;background:#ded1ae;border-color:#7f785b}.chess-2d[data-style=qingming] button:focus-visible{outline-offset:3px;outline:2px solid #93422f}.chess-2d[data-style=qingming] .chess-2d-difficulty{max-width:none;margin:12px 0}.chess-2d[data-style=qingming] .chess-2d-menu-actions{margin-top:16px}.chess-2d[data-style=qingming] .chess-2d-key-help{margin-top:15px;line-height:1.6}.chess-2d[data-style=qingming] .chess-2d-play{background:#e9dec42b;grid-template-columns:minmax(0,1fr) 250px;gap:36px;max-width:1070px;padding:20px}.chess-2d[data-style=qingming] .chess-2d-board{outline-offset:5px;border:15px solid #685440;border-radius:2px;outline:1px solid #a48c61;width:100%;max-width:min(72svh,730px);box-shadow:0 25px 55px #40372555,inset 0 0 0 2px #d5ba86,0 0 0 6px #d9c49b,0 0 0 9px #705d44}.chess-2d[data-style=qingming] .chess-2d-square.light{background:repeating-linear-gradient(0deg,#e9ddbe 0 3px,#e5d7b7 4px)}.chess-2d[data-style=qingming] .chess-2d-square.dark{background:repeating-linear-gradient(0deg,#7c8a72 0 3px,#78866f 4px)}.chess-2d[data-style=qingming] .chess-2d-square{border:0;border-radius:0}.chess-2d[data-style=qingming] .chess-2d-piece{color:#414c39;background:radial-gradient(at 36% 28%,#fff1cb,#d8bc82);border:4px double #897448;width:72%;height:72%;padding-bottom:10px;font-size:clamp(20px,3vw,37px);position:relative;box-shadow:0 3px #9c8055,0 5px 7px #29342766,inset 0 0 0 3px #f6e4b8}.chess-2d[data-style=qingming] .chess-2d-piece.black-piece{color:#f9e7bc;background:radial-gradient(at 36% 28%,#905c45,#573e32);border-color:#c09a65;box-shadow:0 3px #3e3126,0 5px 7px #29342777,inset 0 0 0 3px #6e4937}.qingming-piece-rank{letter-spacing:.055em;text-align:center;opacity:.8;font:8px/1 Georgia,serif;position:absolute;bottom:7%;left:0;right:0}.chess-2d[data-style=qingming] .chess-2d-piece.concealed-piece{border-radius:20%;padding:0;font-size:clamp(24px,3vw,42px)}.chess-2d[data-style=qingming] .chess-2d-square.last{box-shadow:inset 0 0 0 3px #a17a37a6}.chess-2d[data-style=qingming] .chess-2d-square.cursor{box-shadow:inset 0 0 0 3px #faf1c8}.chess-2d[data-style=qingming] .chess-2d-square.selected{box-shadow:inset 0 0 0 4px #a34935}.chess-2d[data-style=qingming] .chess-2d-square.target:after{width:16%;box-shadow:none;background:#455c47b3}.chess-2d[data-style=qingming] .chess-2d-square.capture:after{box-shadow:none;border-color:#a34935}.chess-2d[data-style=qingming] .chess-2d-status{color:#f6e8c7;background:#465745f2;border-color:#3b4c3a;border-radius:3px}.chess-2d[data-style=qingming] .chess-2d-board-help{background:#f0e5cbd9;margin-top:20px;padding:8px}@media (max-width:860px){.chess-2d[data-style=qingming] .chess-2d-play{grid-template-columns:1fr;padding:10px}.chess-2d[data-style=qingming] .chess-2d-board{max-width:min(82vw,680px)}.qingming-inscription{right:5vw}.chess-2d[data-style=qingming] .chess-2d-piece{font-size:clamp(22px,5vw,39px)}}@media (max-width:600px){.chess-2d[data-style=qingming]{background-attachment:scroll;padding:22px 19px 35px}.chess-2d[data-style=qingming]:after{inset:7px}.qingming-inscription{display:none}.chess-2d[data-style=qingming] .chess-2d-menu{margin:20px auto;padding:23px 20px}.chess-2d[data-style=qingming] .chess-2d-menu h2{font-size:24px}.chess-2d[data-style=qingming] .chess-2d-board{border-width:7px;max-width:100%}.chess-2d[data-style=qingming] .chess-2d-piece{border-width:2px;padding-bottom:5px}.qingming-piece-rank{font-size:6px}}.chess-2d[data-style=qingming] .chess-2d-board{container-type:inline-size}.chess-2d[data-style=qingming] .chess-2d-piece{font-size:clamp(16px,4.5cqi,31px)}.chess-2d[data-style=qingming] .qingming-piece-rank{font-size:clamp(5px,1.15cqi,8px);bottom:12%}@media (min-width:601px) and (max-height:850px){.chess-2d[data-style=qingming]{padding-top:18px}.chess-2d[data-style=qingming] .chess-2d-header{margin-bottom:12px;padding-bottom:12px}.chess-2d[data-style=qingming] .chess-2d-menu{margin-top:12px;padding:20px 26px}.chess-2d[data-style=qingming] .chess-2d-menu-mark{display:none}.chess-2d[data-style=qingming] .chess-2d-menu h2{margin:7px 0;font-size:25px}.chess-2d[data-style=qingming] .chess-2d-style-choice{margin-top:12px;padding:9px}.chess-2d[data-style=qingming] .chess-variant-picker{margin-top:10px;padding:8px 10px}.chess-2d[data-style=qingming] .chess-2d-music-choice{justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;display:flex}.chess-2d[data-style=qingming] .chess-2d-music-choice .chess-2d-music-heading{gap:2px;display:grid}.chess-2d[data-style=qingming] .chess-2d-music-choice .chess-2d-music-options{margin:0}.chess-2d[data-style=qingming] .chess-2d-key-help{margin-top:10px}}.chess-2d[data-style][data-screen]{padding:22px clamp(19px,4vw,54px) 80px;font-family:Georgia,Songti SC,SimSun,serif}.chess-2d[data-style][data-screen] .chess-2d-header{box-sizing:border-box;background:#f2e9d9bd;border-bottom:1px solid #74624755;border-radius:3px;max-width:1320px;margin:0 auto 20px;padding:14px;position:relative}.chess-2d[data-style][data-screen] .chess-2d-header h1{letter-spacing:-.03em;font-weight:400}.chess-2d[data-style][data-screen] .chess-2d-menu{box-sizing:border-box;text-align:left;border-radius:6px;width:min(100%,460px);margin:12px auto 0 max(0px,50vw - 660px);padding:22px 26px}.chess-2d[data-style][data-screen] .chess-2d-menu-mark{display:none}.chess-2d[data-style][data-screen] .chess-2d-menu h2{align-items:center;min-height:70px;margin:8px 0;font-size:26px;font-weight:400;line-height:1.35;display:flex}.chess-2d[data-style][data-screen] .chess-2d-menu>p:not(.chess-2d-eyebrow):not(.chess-2d-key-help){max-width:none;min-height:48px;margin:0;font-size:13px;line-height:1.8}.chess-2d[data-style][data-screen] .chess-2d-style-choice{border-radius:4px;margin:12px 0 0;padding:10px 12px}.chess-2d[data-style][data-screen] .chess-2d-style-choice small{min-height:30px;line-height:15px}.chess-2d[data-style][data-screen] .chess-variant-picker{border-radius:4px;margin:12px 0;padding:8px 10px}.chess-2d[data-style][data-screen] .chess-2d-difficulty{max-width:none;margin:12px 0}.chess-2d[data-style][data-screen] .chess-2d-music-choice{border-radius:4px;justify-content:space-between;align-items:center;gap:8px;margin:12px 0 0;padding:10px 12px;display:flex}.chess-2d[data-style][data-screen] .chess-2d-music-heading{gap:2px;display:grid}.chess-2d[data-style][data-screen] .chess-2d-music-choice .chess-2d-music-options{margin:0}.chess-2d[data-style][data-screen] .chess-2d-menu-actions{margin-top:16px}.chess-2d[data-style][data-screen] .chess-2d-key-help{min-height:36px;margin:12px 0 0;line-height:1.6}.chess-2d[data-style][data-screen] .chess-2d-play{grid-template-columns:minmax(0,1fr) 250px;gap:36px;max-width:1070px;padding:20px}.chess-2d[data-style][data-screen] .chess-2d-board{border-width:12px;border-radius:3px;width:100%;max-width:min(72svh,730px)}.chess-2d[data-style][data-screen] .chess-2d-board-help{margin-top:20px;padding:8px}.chess-2d[data-style][data-screen] :is(.chess-2d-menu button,.chess-2d-side-button,.chess-2d-card,.chess-2d-status){border-radius:4px}.chess-2d[data-style=classic]{isolation:isolate;color:#493d30;background:#e8dbc3 url(/games/medieval-chess/assets/classic-chess-salon.webp) 50%/cover fixed;position:relative}.chess-2d[data-style=classic]:before{content:"";z-index:-1;pointer-events:none;background:linear-gradient(90deg,#f2e7d133,#f2e7d10a 55%,#e9ddc31a);position:fixed;inset:0}.chess-2d[data-style=classic]:after{content:none}.chess-2d[data-style=classic] .chess-2d-menu{background:linear-gradient(115deg,#fffaf1f5,#f1e6d3f2);border-color:#a58b65;box-shadow:0 22px 65px #634a2524,inset 0 0 0 5px #c9b58b1a}.chess-2d[data-style=classic] :is(.chess-2d-header h1,.chess-2d-menu h2,.chess-2d-card strong,.chess-2d-music-heading,.chess-2d-style-choice>span,.chess-variant-picker legend){color:#493b2d}.chess-2d[data-style=classic] :is(.chess-2d-back,.chess-2d-gallery,.chess-2d-eyebrow,.chess-2d-key-help,.chess-2d-board-help,.chess-2d-card span,.chess-2d-style-choice small,.chess-2d-music-heading small,.chess-variant-picker p),.chess-2d[data-style=classic] .chess-2d-menu>p:not(.chess-2d-eyebrow):not(.chess-2d-key-help){color:#77664e}.chess-2d[data-style=classic] :is(.chess-2d-style-choice,.chess-2d-music-choice,.chess-variant-picker,.chess-2d-card){background:#f5eddfdf;border-color:#a58b654d}.chess-2d[data-style=classic] :is(button:not(.chess-2d-square),.chess-2d-side-button){color:#65503a;background:#fff9ec;border-color:#a58b6577}.chess-2d[data-style=classic] :is(button[data-active=true],button[aria-pressed=true],.chess-2d-menu-actions .chess-2d-primary){color:#fff5df;background:#76583c;border-color:#76583c}.chess-2d[data-style=classic] :is(button:not(.chess-2d-square),.chess-2d-side-button):hover{color:#493b2d;background:#e2d2b8}.chess-2d[data-style=classic] button:focus-visible{outline-offset:3px;outline:2px solid #8a623c}.chess-2d[data-style=classic] .chess-2d-status{color:#fff3d9;background:#76583c;border-color:#694b30}.chess-2d[data-style=classic] .chess-2d-board{border-color:#725239;box-shadow:0 25px 55px #60472e33,0 0 0 5px #cdb388}.chess-2d[data-style=classic] .chess-2d-board-help{background:#f8efdfcc}.chess-2d[data-style=classic] .chess-2d-result{color:#493b2d;background:linear-gradient(#fff8eb,#ebdbc0)}.chess-2d[data-style=classic] .chess-2d-result h2{color:#493b2d}.chess-2d[data-style=classic] .chess-2d-result-content>p:not(.chess-2d-eyebrow){color:#77664e}@media (max-width:860px){.chess-2d[data-style][data-screen] .chess-2d-play{grid-template-columns:1fr;padding:10px}.chess-2d[data-style][data-screen] .chess-2d-board{max-width:min(82vw,680px)}}@media (max-width:600px){.chess-2d[data-style][data-screen]{padding:18px 19px 90px}.chess-2d[data-style][data-screen] .chess-2d-header{margin-bottom:16px;padding:12px 8px}.chess-2d[data-style][data-screen] .chess-2d-menu{margin:12px auto 0;padding:20px}.chess-2d[data-style][data-screen] .chess-2d-menu h2{font-size:24px}.chess-2d[data-style][data-screen] .chess-2d-board{border-width:7px;max-width:100%}.chess-2d[data-style=classic]:after{display:none}.chess-2d[data-style=classic]{background-position:62% 0;background-attachment:scroll}}
