/* ChessGameWorld portal v7. Readable navigation and a preserved game catalogue. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../chesser/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../chesser/assets/fonts/IBMPlexSans-Medium.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../chesser/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('../chesser/assets/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF;}
:root{--bg:#f5edde;--paper:#fff;--ink:#282139;--muted:#716879;--line:#dcd4df;--accent:#7048bd;--soft:#eadef9;--radius:14px;--rail:240px;font-family:'IBM Plex Sans','IBM Plex Sans Arabic',sans-serif;font-size:18px;color-scheme:light}
/* Keep workspace width and the user's scroll position stable as notation grows. */
html{scrollbar-gutter:stable}
.game-zone{overflow-anchor:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit}input,select,button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;top:-100px;left:calc(var(--rail) + 16px);padding:12px 18px;background:var(--ink);color:var(--paper);z-index:100}.skip:focus{top:8px}
/* Desktop navigation fits a normal 650px-high window without its own scrollbar. */
.site-header{position:fixed;inset:0 auto 0 0;width:var(--rail);display:flex;flex-direction:column;align-items:stretch;padding:18px 18px 14px;border-right:1px solid var(--line);background:var(--paper);z-index:20;overflow:visible}
.brand{display:flex;gap:10px;align-items:center;font-weight:600;letter-spacing:-.5px;font-size:21px;line-height:1.08;direction:ltr;min-height:48px;flex-shrink:0;margin-bottom:16px}.brand-icon{display:grid;place-items:center;width:36px;height:38px;background:var(--accent);color:#fff;border-radius:8px;flex-shrink:0}.brand-world{display:block;font-weight:500}.main-nav{display:flex;flex-direction:column;gap:2px;flex-shrink:0}.main-nav>a{display:flex;align-items:center;gap:12px;min-height:42px;padding:8px 10px;border-radius:6px;font-size:18px;font-weight:450;line-height:1.35}.nav-symbol{display:grid;place-items:center;width:24px;flex-shrink:0}.nav-symbol svg{display:block}.nav-copy{min-width:0;overflow-wrap:anywhere}.main-nav>a:hover{background:var(--soft)}.main-nav>a.active{color:var(--accent);background:var(--soft);font-weight:550}
.rail-tools{margin-top:auto;padding-top:14px;display:grid;gap:4px;flex-shrink:0}.rail-button,.rail-tools summary{display:flex;align-items:center;gap:10px;text-align:start;padding:7px 10px;min-height:38px;border:0;border-radius:6px;background:none;color:var(--muted);font-size:16px;line-height:1.4;cursor:pointer;list-style:none}.rail-tools summary::-webkit-details-marker{display:none}.rail-button:hover,.rail-tools summary:hover{background:var(--soft);color:var(--ink)}.tool-icon{display:grid;place-items:center;width:22px;flex-shrink:0}.design-menu{position:fixed;left:calc(var(--rail) + 12px);bottom:18px;width:235px;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 36px #0004;z-index:30}.design-menu a{display:block;padding:11px 14px;border-radius:5px;font-size:17px}.design-menu a:hover,.design-menu a[aria-current=true]{background:var(--soft);color:var(--accent)}
.menu-toggle,.menu-close,.menu-backdrop{display:none}
body[data-game-dialog=true] .menu-toggle{display:none}
.site-main{margin-left:var(--rail);width:calc(100% - var(--rail));min-height:100svh;padding:24px 32px 0;max-width:none}.page-heading{padding:0 0 18px;margin:0 0 20px;border-bottom:1px solid var(--line)}.page-heading h1{font-size:32px;line-height:1.2;font-weight:600;letter-spacing:-.7px;margin:0 0 10px}.page-heading p{font-size:18px;color:var(--muted);line-height:1.65;margin:0;max-width:75ch}.eyebrow{font-size:13px;letter-spacing:.3px;font-weight:550;color:var(--muted)}.back-link{display:inline-block;font-size:17px;color:var(--muted);margin:0 0 18px;text-decoration:underline}.game-zone{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;scroll-margin-top:14px}.game-stage{min-width:0}#chesser-frame{display:block;width:100%;height:830px;border:0;background:var(--bg);border-radius:0}.game-bottom{display:flex;justify-content:flex-end;margin:10px 4px 0}.full-window{font-size:16px;color:var(--muted);text-decoration:underline}
.advertisement{min-height:78px;display:grid;place-items:center;border-block:1px solid var(--line);margin:30px 0 36px;padding:14px 0;gap:10px;color:var(--muted)}.ad-label{font-size:14px}.advertisement button{padding:0;border:0;background:none;text-decoration:underline;font-size:15px;color:var(--muted)}#ad-container:empty{display:none}#ad-container:not(:empty){width:100%;min-height:100px}
.section-heading{display:flex;align-items:center;gap:18px;margin-bottom:22px}.section-heading h2{font-size:28px;line-height:1.25;font-weight:550;letter-spacing:-.5px;margin:0;display:flex;align-items:center;gap:12px}.collection-count{font-size:16px;font-weight:400;letter-spacing:0;color:var(--muted);border:1px solid var(--line);padding:3px 9px;border-radius:5px}.game-collection{scroll-margin-top:24px}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;overflow:visible}.game-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);overflow:hidden;min-width:0}.game-card-image{display:grid;place-items:center;height:170px;padding:18px;background:var(--soft)}.game-card-image img{display:block;max-width:100%;width:230px;height:134px;object-fit:contain;border-radius:4px}.game-card>div{padding:22px}.game-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:21px;font-weight:550;line-height:1.3;overflow-wrap:anywhere}.game-card-title>span{color:var(--accent);flex-shrink:0}.game-card p{font-size:17px;line-height:1.65;color:var(--muted);margin:12px 0 0;overflow-wrap:anywhere}.game-card:hover{border-color:var(--accent)}
.practice-rail{padding:24px;border-radius:12px;background:var(--paper);border:1px solid var(--line);align-self:start}.practice-rail h2{font-size:28px;line-height:1.2;margin:12px 0}.practice-rail>p{font-size:17px;color:var(--muted);line-height:1.6}.practice-rail>a{display:flex;align-items:flex-start;gap:12px;padding:20px 0;border-top:1px solid var(--line)}.practice-rail>a>span:last-child{margin-left:auto}.step-number{font:24px Georgia,serif;color:var(--accent)}.practice-rail strong{font-size:19px;font-weight:550;display:block}.practice-rail small{font-size:16px;display:block;margin-top:7px;line-height:1.6;color:var(--muted)}.rail-tip{display:flex;gap:10px;background:var(--soft);padding:14px;font-size:16px;line-height:1.6;border-radius:8px}.rail-tip>span{font-size:24px;color:var(--accent)}
.original-copy{padding:10px 0 34px;max-width:1100px}.original-description{font-size:18px;line-height:1.85;color:var(--muted);overflow-wrap:anywhere}.original-description a{color:var(--accent);text-decoration:underline}.original-link{display:inline-flex;border:1px solid var(--line);background:var(--soft);border-radius:6px;padding:12px 16px;margin-top:20px;font-size:17px;font-weight:500}.legacy-stage{display:grid;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-height:660px}.legacy-placeholder{text-align:center;max-width:520px;margin:auto;padding:30px}.legacy-placeholder img{max-width:100%;height:auto;border-radius:6px}.legacy-placeholder h2{font-size:28px}.legacy-placeholder p{font-size:18px;color:var(--muted);line-height:1.7}.primary{border:0;border-radius:6px;background:var(--accent);color:var(--paper);font-size:17px;font-weight:550;padding:13px 20px;min-height:44px}.legacy-stage iframe{width:100%;height:740px;border:0;background:#fff;border-radius:4px}.legacy-stage ruffle-player{width:100%;height:auto;aspect-ratio:3/2;max-height:750px;min-height:300px}.legacy-provider{display:block;margin:14px 8px;padding:12px 15px;background:var(--soft);color:var(--accent);border-radius:6px;text-align:center;font-weight:500;font-size:18px}
.site-footer{border-top:1px solid var(--line);padding:30px 0;margin-top:36px;font-size:16px;color:var(--muted)}.footer-languages{display:flex;gap:12px 24px;flex-wrap:wrap;margin-bottom:26px}.footer-languages a{display:flex;align-items:center;gap:10px;min-height:44px;font-size:16px}.footer-languages a[aria-current=true]{color:var(--ink);font-weight:550}.language-flag{display:block;width:30px;height:20px;object-fit:contain;border-radius:2px;flex-shrink:0}.language-native{color:var(--muted);font-size:15px}.footer-details{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.footer-details>div{display:flex;gap:12px 24px;flex-wrap:wrap}.footer-details small{font-size:15px}.site-footer button{border:0;background:none;padding:0;color:inherit;font-size:16px;min-height:36px}.site-footer a:hover,.site-footer button:hover{text-decoration:underline}.error-page{padding:70px 0}.error-page h1{font-size:36px}
dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:12px;width:min(540px,calc(100vw - 32px));max-height:90svh;overflow:auto;padding:26px;font-size:18px}dialog::backdrop{background:#11182799}dialog h2{font-size:27px;margin:0 0 18px;font-weight:550}dialog p{font-size:17px;color:var(--muted);line-height:1.75}dialog fieldset{border:1px solid var(--line);border-radius:6px;padding:16px;margin:18px 0}dialog legend{font-size:17px;font-weight:550}dialog label{display:block;font-size:17px;margin:12px 0}dialog input{accent-color:var(--accent);width:18px;height:18px}#close-privacy{border:0;background:none;margin-left:14px;font-size:17px;min-height:44px}.sites-dialog{width:min(920px,calc(100vw - 32px));padding:28px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-heading h2{margin:0}.dialog-close{border:0;background:none;font-size:31px;line-height:1;width:40px;height:40px;color:var(--muted)}.legacy-home-supplement{font-size:18px;line-height:1.8;margin:0 0 24px;max-width:74ch}.legacy-home-supplement a{text-decoration:underline;color:var(--accent)}.legacy-links-caption{font-size:18px;margin:12px 0 20px;color:var(--muted)}.partner-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.partner-links>a{display:flex;flex-direction:column;gap:14px;padding:17px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:17px;overflow-wrap:anywhere}.partner-links>a:hover{border-color:var(--accent)}.partner-banner img{display:block;max-width:100%;width:auto;height:140px;object-fit:contain;border-radius:3px}.partner-links>a:not(.partner-banner){justify-content:center;min-height:74px}
/* Five visual systems retain the independent embedded workspace compositions. */
body[data-design=club]{--rail:240px;--bg:#f5edde;--paper:#fffdfa;--accent:#7048bd;--soft:#eadef9;--radius:15px}
body[data-design=club] .site-header{background:#33224f;color:#f8f4ff;border-color:#4a3767}body[data-design=club] .brand-icon{background:#f4cd89;color:#33224f}body[data-design=club] .main-nav>a.active{background:#f4cd89;color:#33224f}body[data-design=club] .main-nav>a:hover{background:#514066;color:#fff}body[data-design=club] .rail-button,body[data-design=club] .rail-tools summary{color:#c8b7dc}body[data-design=club] .design-menu{color:#282139}body[data-design=club] .game-card:nth-child(3n+2) .game-card-image{background:#f4dfb9}body[data-design=club] .game-card:nth-child(3n) .game-card-image{background:#edd9e2}
body[data-design=arena]{--rail:240px;--bg:#181c24;--paper:#202630;--ink:#f1eee8;--muted:#adb7c4;--line:#343d49;--accent:#f3ba69;--soft:#343129;--radius:6px;color-scheme:dark}
body[data-design=arena] .site-header{background:#11161e}body[data-design=arena] .brand-icon{background:#f3ba69;color:#171d24}body[data-design=arena] .main-nav>a.active{background:#2e3033;color:#f3ba69;box-shadow:inset 3px 0 0 #f3ba69}body[data-design=arena] .game-card-image{background:#293340}body[data-design=arena] .primary{color:#181c24}
body[data-design=editorial]{--rail:208px;--bg:#f9f8f3;--paper:#fffef8;--ink:#1a1c1d;--muted:#666760;--line:#cecec4;--accent:#967316;--soft:#ece2b8;--radius:0}
body[data-design=editorial] .site-header{background:#171b1c;color:#f9f8f3;border-right:4px solid #dec563;padding-inline:14px}body[data-design=editorial] .brand-icon{background:#dec563;color:#171b1c;border-radius:0}body[data-design=editorial] .main-nav>a{font-size:17px;gap:9px;padding-inline:5px;border-radius:0}body[data-design=editorial] .main-nav>a.active,body[data-design=editorial] .main-nav>a:hover{background:transparent;color:#dec563}body[data-design=editorial] .rail-button,body[data-design=editorial] .rail-tools summary{color:#bebeb3;padding-inline:5px}body[data-design=editorial] .design-menu{color:var(--ink)}body[data-design=editorial] .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-design=editorial] .game-card{display:grid;grid-template-columns:120px minmax(0,1fr);border-block:2px solid var(--ink);border-inline:0}body[data-design=editorial] .game-card-image{height:100%;padding:16px;background:transparent}body[data-design=editorial] .game-card-image img{width:100%;height:90px}body[data-design=editorial] .game-card>div{padding:20px 16px 22px 0}body[data-design=editorial] .game-card-title,body[data-design=editorial] .section-heading h2{font-family:Georgia,serif;font-weight:400}
body[data-design=studio]{--rail:252px;--bg:#f3ebe0;--paper:#fffaf1;--ink:#493a30;--muted:#806956;--line:#ddcdbb;--accent:#ae5235;--soft:#edddc9;--radius:12px}
body[data-design=studio] .site-header{background:#e7d8c5;border-color:#d4bea5}body[data-design=studio] .brand-icon{background:#ae5235;border-radius:50%}body[data-design=studio] .main-nav>a.active{background:#fffaf1;color:#ae5235}body[data-design=studio] .game-zone{grid-template-columns:minmax(0,1fr) 250px;gap:24px}body[data-design=studio] .practice-rail{border-top:4px solid #ae5235;border-radius:0 0 12px 12px}body[data-design=studio] .practice-rail h2,body[data-design=studio] .section-heading h2{font-family:Georgia,serif;font-weight:400}body[data-design=studio] .game-card-image{background:#edddc9}
body[data-design=dashboard]{--rail:80px;--bg:#202a30;--paper:#29353b;--ink:#e5eeee;--muted:#adbdc2;--line:#3d4c53;--accent:#85d2d1;--soft:#30464b;--radius:3px;color-scheme:dark}
body[data-design=dashboard] .site-header{padding:18px 12px 14px;background:#182126}body[data-design=dashboard] .brand{justify-content:center}body[data-design=dashboard] .brand-icon{background:none;color:#85d2d1}body[data-design=dashboard] .brand-copy,body[data-design=dashboard] .nav-copy,body[data-design=dashboard] .picker-copy{display:none}body[data-design=dashboard] .main-nav>a{justify-content:center;padding-inline:0}body[data-design=dashboard] .rail-button,body[data-design=dashboard] .rail-tools summary{justify-content:center;padding-inline:0}body[data-design=dashboard] .game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}body[data-design=dashboard] .game-card{background:none;border:0}body[data-design=dashboard] .game-card-image{background:#2b383f;height:150px}body[data-design=dashboard] .game-card-image img{height:120px}body[data-design=dashboard] .game-card>div{padding:18px 0}body[data-design=dashboard] .game-card-title{font-size:19px}body[data-design=dashboard] .primary{color:#1c282d}
@media(min-width:1800px){body[data-design=club] .game-grid,body[data-design=arena] .game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1450px){body[data-design=studio] .game-zone{grid-template-columns:1fr}body[data-design=studio] .practice-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}body[data-design=studio] .practice-rail>h2,body[data-design=studio] .practice-rail>.eyebrow,body[data-design=studio] .practice-rail>p,body[data-design=studio] .rail-tip{display:none}body[data-design=studio] .practice-rail>a{padding:5px 0;border:0}}
/* Drawers are used for a narrow screen or a short landscape window. */
@media(max-width:1200px),(max-height:620px){body[data-design]{--rail:0px}.site-main{margin-left:0;width:100%;padding:76px 20px 0}.site-header,body[data-design=dashboard] .site-header{width:min(280px,calc(100vw - 24px));padding:18px;visibility:hidden;transform:translateX(-110%);position:absolute;top:var(--nav-document-top,0px);bottom:auto;overflow:visible;border-right:1px solid var(--line)}body[data-menu-open=true] .site-header{visibility:visible;transform:translateX(0)}.menu-toggle{display:flex;align-items:center;gap:9px;position:fixed;left:14px;top:13px;z-index:15;padding:10px 13px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font-size:16px;min-height:44px;box-shadow:0 3px 12px #0002}.menu-close{display:grid;place-items:center;position:absolute;right:9px;top:10px;width:40px;height:40px;border:0;background:none;color:inherit;font-size:29px}.menu-backdrop{display:block;position:fixed;inset:0;background:#11182788;z-index:19;border:0}body[data-design] .brand-copy,body[data-design] .nav-copy,body[data-design] .picker-copy{display:block}body[data-design] .brand{justify-content:flex-start;margin-right:25px;font-size:20px}body[data-design] .main-nav>a{justify-content:flex-start;font-size:18px;gap:12px;padding:9px 10px;min-height:44px}body[data-design] .rail-button,body[data-design] .rail-tools summary{justify-content:flex-start;padding:9px 10px;min-height:44px}body[data-design] .design-menu{position:static;width:100%;margin-top:5px;box-shadow:none}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}body[data-design=dashboard] .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.skip{left:16px}}
@media(max-width:640px){.site-main{padding:72px 12px 0}.page-heading h1{font-size:27px}.page-heading p{font-size:17px}.section-heading h2{font-size:25px}.game-grid,body[data-design=editorial] .game-grid,body[data-design=dashboard] .game-grid{grid-template-columns:1fr;gap:20px}.game-card-title{font-size:21px}.game-card p{font-size:17px}.game-card>div{padding:20px}.game-card-image{height:155px}.game-card-image img{height:120px}body[data-design=editorial] .game-card{grid-template-columns:90px minmax(0,1fr)}body[data-design=editorial] .game-card-image{height:100%;padding:12px}body[data-design=editorial] .game-card-image img{height:76px}body[data-design=editorial] .game-card>div{padding:18px 16px 20px 0}.practice-rail,body[data-design=studio] .practice-rail{display:block;padding:20px}.practice-rail>a,body[data-design=studio] .practice-rail>a{padding:18px 0;border-top:1px solid var(--line)}.full-window{font-size:15px}.legacy-stage{padding:10px;min-height:440px}.legacy-stage iframe{height:620px}.legacy-placeholder{padding:20px 8px}.footer-languages{gap:9px 18px}.footer-languages a{font-size:16px}.footer-details{gap:18px}.footer-details>div{gap:12px 20px}.partner-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.partner-links>a{padding:13px;font-size:16px}.partner-banner img{height:110px}.sites-dialog{padding:20px}.dialog-heading h2{font-size:26px}}
@media(max-width:380px){.partner-links{grid-template-columns:1fr}.footer-languages a{width:100%}.page-heading h1{font-size:25px}}
@media(max-height:620px) and (min-width:540px){body[data-design] .site-header{width:min(760px,calc(100vw - 24px));padding:12px 14px;top:calc(var(--nav-document-top,0px) + 10px)}body[data-design] .brand{font-size:18px;min-height:40px;margin-bottom:10px}body[data-design] .brand-icon{width:32px;height:34px}body[data-design] .main-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}body[data-design] .main-nav>a{font-size:16px;line-height:1.25;gap:8px;padding:6px 8px;min-height:44px}body[data-design] .nav-symbol{width:20px}body[data-design] .nav-symbol svg{width:20px;height:20px}body[data-design] .rail-tools{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px;padding-top:0;gap:6px}body[data-design] .rail-button,body[data-design] .rail-tools summary{font-size:16px;line-height:1.25;gap:8px;padding:6px 8px;min-height:44px}body[data-design] .design-menu{position:absolute;left:14px;right:14px;bottom:14px;width:auto;background:var(--paper);z-index:30}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* One footer language control; the full list stays available by keyboard. */
.footer-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 28px;min-width:0}
.footer-language-picker{position:relative;width:max-content;max-width:100%;margin:0;flex:0 0 auto}
.footer-language-picker>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font-size:18px;line-height:1.4;padding:10px 14px;min-height:48px}
.footer-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 24px;flex:1 1 auto;min-width:0;margin-inline-start:auto}
.footer-links>a,.footer-links>button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;margin:0;padding:10px 0;line-height:1.4;font-family:inherit;font-size:16px;font-weight:400;text-align:start;overflow-wrap:anywhere}
.footer-copyright{display:block;margin-top:18px;font-size:15px;line-height:1.4}
/* The original homepage copy opens from the footer and never occupies the board. */
.site-about-dialog{position:fixed;inset:16px;margin:auto;width:min(820px,calc(100vw - 32px));max-height:calc(100svh - 32px);padding:0;overflow:hidden;text-align:start}
.site-about-dialog:not([open]){display:none}
.site-about-dialog[open]{display:flex;flex-direction:column}
.site-about-dialog>.dialog-heading{flex:0 0 auto;align-items:center;margin:0;padding:20px 28px;border-bottom:1px solid var(--line);gap:16px}
.site-about-dialog>.dialog-heading h2{font-size:27px;line-height:1.3;overflow-wrap:anywhere}
.site-about-dialog .dialog-close{flex:0 0 44px;width:44px;height:44px;cursor:pointer}
.site-about-copy{flex:1 1 auto;min-height:0;padding:24px 28px 28px;overflow:auto;overscroll-behavior:contain;font-size:18px;line-height:1.75;overflow-wrap:anywhere}
.site-about-copy p{margin:0 0 18px;color:var(--ink);font-size:18px;line-height:1.75}
.site-about-copy .site-about-update{font-size:16px;color:var(--muted);margin-bottom:10px}
.site-about-copy ul{margin:0 0 22px;padding-inline-start:24px}
.site-about-copy li{padding-inline-start:3px;margin:0 0 10px}
.site-about-copy li:last-child{margin-bottom:0}
.site-about-copy :is(h1,h2){font-size:25px;line-height:1.4;margin:26px 0 12px}
.site-about-copy h3{font-size:21px;line-height:1.4;margin:26px 0 10px}
.site-about-copy>:first-child{margin-top:0}
.site-about-copy a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.site-about-copy a:hover{text-decoration-thickness:2px}
.site-about-copy img{max-width:100%;height:auto}
.site-about-copy:focus-visible,.footer-about:focus-visible,.site-about-dialog .dialog-close:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:640px){.site-about-dialog{inset:12px;width:calc(100vw - 24px);max-height:calc(100svh - 24px)}.site-about-dialog>.dialog-heading{padding:14px 16px;gap:10px}.site-about-dialog>.dialog-heading h2{font-size:23px}.site-about-copy{padding:20px 16px;font-size:18px}.site-about-copy :is(h1,h2){font-size:23px}.site-about-copy h3{font-size:20px}}
@media(max-width:900px){.footer-links{justify-content:flex-start;flex-basis:100%;margin-inline-start:0}}
@media(max-width:640px){.footer-row{gap:12px 20px}.footer-links{gap:4px 20px}}
.footer-language-picker>summary::-webkit-details-marker{display:none}.language-chevron{margin-inline-start:18px;font-size:22px;line-height:1}.footer-language-picker[open] .language-chevron{transform:rotate(180deg)}
.footer-language-picker .footer-languages{position:absolute;inset:auto auto calc(100% + 8px) 0;display:grid;grid-template-columns:1fr;gap:0;width:310px;max-width:calc(100vw - 32px);max-height:min(520px,calc(100svh - 100px));overflow-y:auto;margin:0;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px #0003;z-index:16}
.footer-language-picker .footer-languages a{padding:10px 12px;min-height:44px;border-radius:4px;line-height:1.35;width:auto}.footer-language-picker .footer-languages a:hover{background:var(--soft);text-decoration:none}
[dir=rtl] .footer-language-picker .footer-languages{left:auto;right:0}
.theme-moon{display:none}#color-mode-toggle[data-mode=day] .theme-moon{display:block}#color-mode-toggle[data-mode=day] .theme-sun{display:none}
/* A colour choice applies to every portal template, without changing its layout. */
html[data-color-mode=day] body[data-design]{--bg:#f5f4f0;--paper:#fffefb;--ink:#252b34;--muted:#576371;--line:#d5d9de;--accent:#956017;--soft:#f1e6d2;color-scheme:light}
html[data-color-mode=night] body[data-design]{--bg:#181c24;--paper:#202630;--ink:#f1eee8;--muted:#adb7c4;--line:#343d49;--accent:#f3ba69;--soft:#343129;color-scheme:dark}
html[data-color-mode] body[data-design] .site-header{background:var(--paper)}
html[data-color-mode] body[data-design] .brand-icon{background:var(--accent);color:var(--paper)}
html[data-color-mode] body[data-design] .main-nav>a.active{background:var(--soft);color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
html[data-color-mode] body[data-design] .game-card-image{background:var(--soft)}
html[data-color-mode] body[data-design] .primary{color:var(--paper)}
@media(min-height:621px) and (max-height:710px) and (min-width:1201px){.site-header{padding-block:12px}.brand{margin-bottom:10px;min-height:40px}.rail-tools{gap:2px;padding-top:8px}.rail-button,.rail-tools summary{min-height:36px;padding-block:6px}.main-nav>a{min-height:40px;padding-block:7px}}

/* The bottom of the navigation owns appearance controls, leaving the board clear. */
.rail-bottom{margin-top:auto;padding-top:12px;flex-shrink:0;min-width:0}
.rail-bottom .rail-tools{margin-top:0;padding-top:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.rail-bottom .rail-button,.rail-bottom .rail-tools summary{min-height:44px;padding:6px 5px;gap:6px;font-size:15px;line-height:1.25;min-width:0}
.rail-bottom .picker-copy{min-width:0;overflow-wrap:anywhere}
.rail-bottom #rail-game-focus{grid-column:1/-1}
@media(max-width:1200px),(max-height:760px){.rail-bottom #rail-game-focus{grid-column:auto}}
.rail-appearance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.rail-appearance-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;min-height:54px;min-width:0;border:1px solid var(--line);border-radius:5px;background:transparent;color:inherit;font-size:15px;line-height:1.25}
.rail-appearance-button:hover{background:var(--soft)}
.rail-appearance-button:disabled{opacity:.5;cursor:wait}
.rail-appearance-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail-board-swatch{width:23px;height:23px;border-radius:3px;background:conic-gradient(var(--board-light,#eedcba) 25%,var(--board-dark,#ae8a67) 0 50%,var(--board-light,#eedcba) 0 75%,var(--board-dark,#ae8a67) 0);border:1px solid #0003}
.rail-piece-icon,.rail-sound-icon,.rail-settings-icon{display:grid;place-items:center;width:24px;height:24px;font-size:25px;line-height:1}
#rail-sound[aria-pressed=false]{color:var(--muted)}
body[data-design=dashboard]{--rail:104px}
body[data-design=dashboard] .rail-bottom .rail-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-design=dashboard] .rail-appearance-button{min-height:44px}
body[data-design=dashboard] .rail-appearance-label{display:none}
@media(min-width:1201px) and (min-height:761px){.site-header{padding-block:14px}.brand{margin-bottom:12px}.main-nav>a{min-height:42px}.rail-bottom .rail-tools summary,.rail-bottom .rail-button{justify-content:flex-start}}
@media(min-width:1201px) and (min-height:761px) and (max-height:830px){.main-nav .nav-copy,.rail-bottom .picker-copy{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(min-width:1201px) and (min-height:761px) and (max-height:830px){.brand{margin-bottom:8px}.rail-bottom{padding-top:4px}.rail-appearance{margin-top:6px;padding-top:8px;gap:4px}}
@media(max-width:1200px),(max-height:760px){
 body[data-design]{--rail:0px}
 .site-main{margin-left:0;width:100%;padding:76px 20px 0}
 .site-header,body[data-design=dashboard] .site-header{width:min(280px,calc(100vw - 24px));padding:18px;visibility:hidden;transform:translateX(-110%);position:absolute;top:var(--nav-document-top,0px);bottom:auto;overflow:visible;border-right:1px solid var(--line)}
 body[data-menu-open=true] .site-header{visibility:visible;transform:translateX(0)}
 .menu-toggle{display:flex;align-items:center;gap:9px;position:fixed;left:14px;top:13px;z-index:15;padding:10px 13px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font-size:16px;min-height:44px;box-shadow:0 3px 12px #0002}
 .menu-close{display:grid;place-items:center;position:absolute;right:9px;top:10px;width:40px;height:40px;border:0;background:none;color:inherit;font-size:29px}
 .menu-backdrop{display:block;position:fixed;inset:0;background:#11182788;z-index:19;border:0}
 body[data-design] .brand-copy,body[data-design] .nav-copy,body[data-design] .picker-copy,body[data-design=dashboard] .rail-appearance-label{display:block}
 body[data-design] .brand{justify-content:flex-start;margin-right:25px;font-size:20px}
 body[data-design] .main-nav>a{justify-content:flex-start;font-size:18px;gap:12px;padding:9px 10px;min-height:44px}
 body[data-design] .rail-bottom .rail-button,body[data-design] .rail-bottom .rail-tools summary{justify-content:flex-start;font-size:15px;padding:7px 5px;min-height:44px}
 body[data-design] .design-menu{position:static;width:100%;margin-top:5px;box-shadow:none}
 .skip{left:16px}
}
@media(max-height:760px) and (min-width:540px){
 body[data-design] .site-header{width:min(760px,calc(100vw - 24px));padding:12px 14px;top:calc(var(--nav-document-top,0px) + 10px)}
 body[data-design] .brand{font-size:18px;min-height:40px;margin-bottom:10px}
 body[data-design] .brand-icon{width:32px;height:34px}
 body[data-design] .main-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 body[data-design] .main-nav>a{font-size:16px;line-height:1.25;gap:8px;padding:6px 8px;min-height:44px}
 .rail-bottom{padding-top:10px}
 body[data-design] .rail-bottom .rail-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .rail-appearance{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px;padding-top:8px}
 body[data-design] .rail-appearance-button{min-height:48px}
 body[data-design] .design-menu{position:absolute;left:14px;right:14px;bottom:14px;width:auto;z-index:30}
}
/* A closed drawer has no layout box, so it cannot widen an RTL document. */
@media(max-width:1200px),(max-height:760px){
 body:not([data-menu-open=true]) .site-header{display:none;transform:none}
 body[data-menu-open=true] .site-header{display:flex;transform:none}
}
/* Landscape tablets use the whole table height; the menu shares the console row. */
@media(min-width:540px) and (max-height:760px) and (orientation:landscape),
      (min-width:540px) and (max-width:1200px) and (max-height:900px) and (orientation:landscape){
 body[data-game-page=play] .site-main{padding:0;margin-left:0;width:100%}
 body[data-game-page=play]>.menu-toggle{left:auto;right:6px;top:6px;width:44px;height:44px;min-height:44px;padding:9px;justify-content:center;box-shadow:none}
 body[data-game-page=play]>.menu-toggle>span{display:none}
}

/* Localized public section guidance stays below the interactive board. */
.section-info{max-width:84ch;margin:32px 0;padding:24px 0;border-top:1px solid var(--line);font-size:17px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}.section-info[hidden]{display:none}.section-info h2{margin:0 0 14px;color:var(--ink);font-size:26px;line-height:1.3}.section-info p{margin:0 0 12px}.section-info ul{padding-inline-start:24px;margin:12px 0 0}.section-info li{margin:6px 0}.section-info-lead{color:var(--ink)}
