/* Logo integration only: no changes to navigation actions or game behavior. */
.mem-nav .memo-nav-brand img{width:180px;height:auto;max-height:56px;object-fit:contain}
.memo-auth-brand{display:block;width:180px;max-width:100%;height:auto;margin:0 auto}
.memo-auth-close,.memo-auth-close .auth-close__x{color:#235391!important}
@media(max-width:1100px) and (min-width:600px){.mem-nav .memo-nav-brand img{width:180px}}
@media(max-width:920px) and (min-width:820px){.mem-nav .memo-nav-brand img{width:150px}.mem-nav .memo-nav-bar{gap:10px;padding-inline:16px}.mem-nav .memo-nav-primary a{padding-inline:6px}}
@media(max-width:599px){.mem-nav .memo-nav-brand img{width:48px;height:48px}.memo-auth-brand{width:160px}}

/* Scoped overrides intentionally follow the legacy form styles. */
.auth-modal.memo-auth-viewport{top:var(--memo-auth-viewport-top,0px);bottom:auto;height:var(--memo-auth-viewport-height,100dvh);padding:12px 16px!important;overflow:hidden}
.auth-modal .memo-auth-card{max-height:100%;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:16px;outline:none}
.auth-modal .memo-auth-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:44px;margin:10px -8px 18px}
.auth-modal .memo-auth-logo-slot{grid-column:2;grid-row:1;min-width:0;display:flex;justify-content:center}
.auth-modal .memo-auth-logo-slot>button{max-width:100%;padding:0!important}
.auth-modal .memo-auth-header>.memo-auth-close{position:static;grid-column:3;grid-row:1;width:44px;height:44px;justify-self:end}
/* Keep the touch target, but restore the previous compact hover disc. */
.auth-modal .memo-auth-header>.memo-auth-close{padding:0!important;background:transparent!important}
.auth-modal .memo-auth-header>.memo-auth-close .auth-close__x{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%}
.auth-modal .memo-auth-header>.memo-auth-close:hover .auth-close__x{background:#F2F6FF}
