/* Shared page geometry. Keep this last in every page's stylesheet stack. */
:root{--site-width:880px;--site-gutter:24px;--page-space:40px;--page-title:34px}
html{scrollbar-gutter:stable}
body,body.fold-game{min-height:100dvh;height:auto;display:flex;flex-direction:column;overflow:visible}
body>#header,body.fold-game>#header{height:var(--site-header-height);min-height:var(--site-header-height);flex:0 0 var(--site-header-height);background:#f6f2ef;border-bottom:1px solid #ccc9c7}
#header .site-nav{max-width:var(--site-width);padding-inline:var(--site-gutter);height:100%;gap:16px}
.site-nav a{text-decoration:none;color:inherit}
.site-nav .navlinks [aria-current=page]{background:#e7e3e0}
.site-nav .nav-right{height:auto}
.site-nav .account-trigger,.site-nav .account-trigger.signed-in{min-width:80px;min-height:44px;width:auto}
.site-nav .account-trigger.signed-in{justify-content:flex-end}
.dropdown-game{text-decoration:none;color:inherit}
.dropdown-links{display:flex;gap:24px;justify-content:center;padding:20px 8px 4px;font-size:18px;font-weight:600}
.dropdown-links a{color:inherit;text-decoration:none}
.dropdown-links a:hover{text-decoration:underline;text-underline-offset:4px}
body>main,body.fold-game>#app{flex:1 0 auto;width:100%;min-width:0;overflow:visible}
#app>.hub,#app>.info-page,main.community-page,main.auth-main{box-sizing:border-box;width:100%;max-width:var(--site-width);margin:0 auto;padding:var(--page-space) var(--site-gutter) 64px}
.hub .hub-heading{margin:0 0 32px;min-height:48px}
.hub-heading h1,.community-page>h1,.info-heading h1,.auth-card h1{font-size:var(--page-title);line-height:1.2;letter-spacing:-.8px;font-weight:700}
.community-page>h1{margin:0 0 12px}
.community-page>.lede{margin:0 0 24px;font-size:18px;line-height:1.5}
.info-page .info-heading{margin:32px auto 36px}
.info-page>.info-back,.auth-main>.info-back{margin:0 0 24px;display:inline-flex;font-size:16px;line-height:24px}
#app>.legal-page>*:not(.info-back),#app>.contact-page>*:not(.info-back){max-width:740px;margin-left:auto;margin-right:auto}
.auth-main .auth-card{width:100%;max-width:480px;margin:32px auto 0;padding:32px;border-radius:24px}
.auth-card h1{font-size:28px}
.auth-card .btn{min-height:50px;font-size:18px}
body>#footer,body.fold-game>#footer{display:block;flex:0 0 auto;width:100%;max-width:none;margin:0;padding:28px 0;border-top:1px solid #d8d3cf;background:#f6f2ef;text-align:left}
#footer>.footer-top{max-width:var(--site-width);padding-inline:var(--site-gutter);margin:0 auto;gap:24px;align-items:center}
#footer .footer-brand{font-size:16px;white-space:nowrap}
#footer .footer-links{gap:12px 22px;justify-content:flex-end;line-height:1.5;font-size:16px}
#footer .footer-links a,#footer .footer-links button{font-size:16px}
.landing-bg #app,.fold-game #app{min-height:calc(100dvh - var(--site-header-height))}
.fold-game .game-page,.links-playing .game-page{height:auto;min-height:calc(100dvh - var(--site-header-height));padding-top:24px;padding-bottom:32px}
.fold-game .game-landing{min-height:calc(100dvh - var(--site-header-height));height:auto;max-height:none;padding:32px var(--site-gutter)}
.game-page .play-heading{height:auto;min-height:48px;flex-basis:auto;margin-bottom:24px}
.game-page .play-heading h1{font-size:24px}
.game-page .play-heading p{font-size:16px}
.game-cell .card-actions button{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px}
:where(a,button,input,select):focus-visible{outline:3px solid #6a57bd;outline-offset:4px}
@media(max-width:1120px){#header .site-nav{grid-template-columns:auto 1fr auto}}
@media(max-width:760px){
 :root{--site-gutter:20px;--page-space:28px;--page-title:28px}
 #header .site-nav{gap:8px}
 .site-nav .account-trigger,.site-nav .account-trigger.signed-in{min-width:68px}
 #footer>.footer-top{flex-direction:column;align-items:flex-start;gap:18px}
 #footer .footer-links{justify-content:flex-start}
 .info-page .info-heading{margin-top:20px}
 .auth-main .auth-card{margin-top:20px;padding:24px}
 .auth-card h1{font-size:26px}
}
@media(max-width:440px){
 :root{--site-gutter:16px}
 #header .site-nav{padding-inline:12px;gap:4px}
 .site-nav .account-trigger,.site-nav .account-trigger.signed-in{min-width:61px;padding-inline:8px;font-size:15px}
 .game-cell .card-actions button{font-size:24px;min-height:46px}
 .card-actions .action-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .hub .hub-heading{margin-bottom:24px}
 .auth-main .auth-card{padding:24px 20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
