/* Only the page shell is exposed to the theme. The game itself is isolated. */
main.fa-single:has(.fab-game){box-sizing:border-box!important;width:min(calc(100% - 32px),1600px)!important;max-width:1600px!important;margin:0 auto!important;padding:4px 0!important}
main.fa-single:has(.fab-game)>article,main.fa-single:has(.fab-game)>article>.fa-entry{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
main.fa-single:has(.fab-game)>article>:is(.fa-back,.fa-article-head,.fa-article-image){display:none!important}
main.fa-single:has(.fab-game)>article>.fa-entry>p:has(+ .fab-game){display:none!important}
body:has(main .fab-game) .fa-footer-grid{display:none!important}
body:has(main .fab-game) .fa-footer{padding:0!important}
body:has(main .fab-game) .fa-footer-bottom{padding:4px 10px!important;font-size:10px!important;min-height:0!important}
.fab-game{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:1600px!important;height:var(--fab-screen-height,75dvh)!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;container-type:inline-size!important;font-size:14px!important;line-height:1.5!important}
.fab-game:fullscreen,.fab-game.fab-expanded{max-width:none!important;width:100vw!important;height:100dvh!important;background:#faf9fc!important;padding:10px!important}
.fab-game.fab-expanded{position:fixed!important;inset:0!important;z-index:2147483000!important}
body.fab-expanded-page{overflow:hidden!important}
/* The traditional light templates are retained for the two Tamil board games. */
main.fa-single:has(.fab-game:not([data-game=chess])){width:min(calc(100% - 24px),1300px)!important;max-width:1300px!important;padding:20px 0!important}
.fab-game:not([data-game=chess]){max-width:1300px!important;height:auto!important;padding:18px!important;background:linear-gradient(135deg,#fcf9ff,#ecdef8)!important;border:1px solid #dcc3ef!important;border-radius:22px!important;overflow:visible!important}
.fab-game:not([data-game=chess]):fullscreen,.fab-game:not([data-game=chess]).fab-expanded{max-width:none!important;width:100vw!important;height:100dvh!important;overflow:auto!important}
main.fa-single:has(.fab-game[data-game=pallanguzhi]){width:min(calc(100% - 24px),1300px)!important;max-width:1300px!important}
.fab-game[data-game=pallanguzhi]{max-width:1300px!important}
