.language-switch{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.language-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;font:14px/1.2 Interface,system-ui,sans-serif;text-decoration:none}.language-switch a[aria-current]{border-color:var(--coral);color:var(--coral)}.header:has(.language-switch){height:auto;min-height:78px;flex-wrap:wrap;padding-block:10px;gap:12px}.seo-trust-footer{display:block;margin-top:24px;border-top:1px solid var(--line)}.seo-trust-footer .footer-links{display:flex;flex-wrap:wrap;gap:4px 16px}.seo-trust-footer a,.seo-trust-footer button{display:inline-flex;align-items:center;min-height:44px;font-size:13px}.seo-trust-footer p{margin:12px 0;font-size:12px}.seo-main-content{font-size:16px;line-height:1.75;max-width:72ch}.seo-main-content h2{font-size:25px;line-height:1.3}.seo-main-content h3{font-size:20px}.seo-faq details{border-top:1px solid var(--line);padding:8px 0}.seo-faq summary{cursor:pointer;min-height:44px;font-weight:600}.seo-faq p{color:var(--muted)}.worked-example{border:1px solid var(--line);padding:16px;margin:16px 0;border-radius:8px}.seo-page .intro>p{max-width:65ch;margin:12px auto}.seo-main-content ul{padding-left:24px}.seo-main-content li{padding-block:5px}
@media(max-width:700px){.header:has(.language-switch){gap:8px}.header .language-switch{flex:1 0 100%;justify-content:center}.language-switch a{padding-inline:14px}.header .header-actions{margin-left:auto}.header:has(.language-switch) .brand{font-size:26px}.seo-main-content{font-size:16px}.seo-main-content h2{font-size:23px}.game-introduction{font-size:14px!important}.seo-page .wrap{padding-inline:16px}.seo-trust-footer .footer-links{gap:2px 14px}}

.language-switch a{width:auto;height:auto;font-family:Interface,system-ui,sans-serif;font-size:14px;line-height:1.2}.language-switch{padding:0;gap:4px}.header .language-switch{margin-left:auto}.related-pages{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}.related-pages ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:4px 16px}.related-pages a{display:inline-flex;align-items:center;min-height:44px}.header .language-switch a{font-size:14px}

.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:4px 8px;list-style:none;padding:0;margin:8px 0 20px;font:13px/1.5 Interface,system-ui,sans-serif}.breadcrumbs li{display:flex;align-items:center;gap:8px}.breadcrumbs li+li:before{content:"›";color:var(--muted)}.breadcrumbs a{min-height:44px;display:inline-flex;align-items:center}.breadcrumbs [aria-current]{color:var(--muted)}

.editorial-figure{margin:24px 0}.editorial-figure img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}.editorial-figure figcaption{margin-top:8px;font-size:14px;color:var(--muted)}.editorial-table{max-width:100%;overflow:auto;margin:18px 0;padding:8px;border:1px solid var(--line);border-radius:8px}.editorial-table:focus-visible{outline:3px solid var(--coral);outline-offset:3px}.editorial-table table{border-collapse:collapse;min-width:100%}.editorial-table th,.editorial-table td{border:1px solid var(--line);padding:8px;text-align:left}.editorial-table caption{text-align:left;font-weight:600;margin-bottom:8px}

/* A large-type promise changes the actual playable board from the first render. */
body[data-intent-large="true"] .memory-shell{max-width:700px;background:#f7f5ed;color:#172e38;padding:12px}
body[data-intent-large="true"] .memory-board{grid-template-columns:repeat(4,minmax(64px,1fr));gap:8px}
body[data-intent-large="true"] .memory-card{font:700 40px/1 Georgia,serif;min-width:64px;min-height:72px;background:#fff;color:#17313b;border:2px solid #496977}
body[data-intent-large="true"] .memory-card.open{background:#e2e9e7;color:#17313b}
body[data-intent-large="true"] .memory-card.matched{background:#183a48;color:#fff;border-color:#183a48}
body[data-intent-large="true"] .memory-toolbar button,body[data-intent-large="true"] .memory-hide{min-height:48px;font-size:18px;background:#fff;color:#17313b;border:2px solid #496977}
body[data-intent-large="true"] .memory-status,body[data-intent-large="true"] .memory-progress{font-size:20px;color:#172e38}
@media(max-width:700px){.game-nav.catalog-expanded{display:flex;flex-wrap:nowrap!important;max-width:100%;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin;padding-bottom:8px}.game-nav.catalog-expanded a{flex:0 0 auto;min-height:44px}.intent-variant-page .intro{margin-bottom:12px}.intent-variant-page .game-introduction{font-size:14px;line-height:1.4}.intent-variant-page .header{margin-bottom:14px}}

.seo-fullscreen-wrap{background:var(--bg);color:var(--ink)}.seo-fullscreen-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}.seo-fullscreen-controls button{min-height:48px;font-size:16px}.seo-fullscreen-controls p{flex:1 1 240px;font-size:14px;line-height:1.5;margin:0}.seo-fullscreen-wrap:fullscreen,.seo-fullscreen-wrap.seo-focus-mode{width:100vw;height:100dvh;overflow:auto;padding:12px max(12px,calc((100vw - 1100px)/2));box-sizing:border-box}.seo-fullscreen-wrap.seo-focus-mode{position:fixed;inset:0;z-index:9999;overscroll-behavior:contain}.seo-fullscreen-wrap:fullscreen .game-shell,.seo-fullscreen-wrap.seo-focus-mode .game-shell{margin:auto;max-width:1100px}

body[data-intent-large="true"] .intent-large-scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}body[data-intent-large="true"] .intent-large-scroll:focus-visible{outline:3px solid #9d3c29;outline-offset:2px}body[data-intent-large="true"] .memory-board{min-width:280px}

body[data-intent-large="true"] .memory-shell button:focus-visible{outline:4px solid #9d3c29;outline-offset:2px}
