.auth-dialog{--xh-dialog-padding:0;--xh-dialog-width:440px;overscroll-behavior:contain}.auth-dialog::backdrop{backdrop-filter:blur(5px)}.auth-modal-shell{position:relative;padding:32px}.auth-modal-close{position:absolute;right:12px;top:12px}.auth-modal-brand{display:block;width:138px;height:37px;max-width:100%;object-fit:contain;object-position:left;margin:0 0 24px;border:0;border-radius:0}.auth-dialog h2{font-size:28px;line-height:1.2;margin:0 0 24px;color:var(--xh-text)}.auth-modal-options{display:grid;gap:12px}.auth-provider{width:100%;min-width:0}.auth-provider>span:not(.auth-provider-soon){min-width:0;overflow-wrap:anywhere;text-align:left}.auth-provider-icon{display:block;flex:0 0 24px;width:24px;height:24px}.auth-provider .auth-provider-arrow{margin-left:auto;flex:none;width:18px;height:18px}.auth-provider-soon{margin-left:auto;flex:0 0 64px;max-width:64px;color:var(--xh-secondary);font:500 var(--xh-font-xs)/1.4 var(--xh-font-body);text-align:right}.auth-dialog [hidden]{display:none!important}html.auth-modal-open{overflow:hidden}@media(max-width:480px){.auth-modal-shell{padding:32px 20px 24px}.auth-dialog h2{font-size:26px}.auth-provider-soon{font-size:var(--xh-font-xs);max-width:64px}}@media(prefers-reduced-motion:reduce){.auth-dialog::backdrop{backdrop-filter:blur(5px)}}

.header-member{position:relative;display:flex;align-items:center;min-width:0}.header-member [hidden]{display:none!important}.site-header .header-member-trigger{max-width:220px}.header-member-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;overflow:hidden;border-radius:50%;background:var(--xh-accent-soft);color:var(--xh-secondary);font-size:var(--xh-font-sm)}.site-header .header-member-avatar img{display:block;width:100%;height:100%;object-fit:cover}.header-member-name{max-width:140px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-member-chevron{flex:none;display:block}.header-member-menu{position:absolute;right:0;top:calc(100% + 8px);width:190px;max-width:calc(100vw - 24px);padding:6px;background:var(--xh-surface);border:1px solid var(--xh-border);border-radius:var(--xh-radius-lg);box-shadow:var(--xh-shadow-dialog)}.header-member-status{margin:6px 10px;color:var(--xh-danger-text);font-size:var(--xh-font-xs);line-height:1.5}
@media(max-width:767px){.site-header .header-member-trigger{max-width:150px}.header-member-name{max-width:clamp(24px,calc(100vw - 350px),100px)}}@media(max-width:380px){.site-header:has(.header-member-trigger:not([hidden])) .brand img{width:104px;height:28px}.header-member-avatar{flex-basis:28px;width:28px;height:28px}.header-member-name{max-width:40px}.header-member-chevron{width:10px}}@media(max-width:340px){.site-header:has(.header-member-trigger:not([hidden])) .brand img{width:94px;height:26px}.header-member-name{max-width:32px}.header-member-chevron{display:none}}

/* Keep account geometry stable until the private session check has resolved. */
.header-member-loading{display:flex;align-items:center;gap:8px;min-height:var(--xh-control-sm);width:138px;padding:4px 6px;box-sizing:border-box}
.header-loading-avatar,.header-loading-name{display:block;background:var(--xh-surface-hover);animation:header-account-loading 1.4s ease-in-out infinite alternate}
.header-loading-avatar{width:28px;height:28px;border-radius:50%;flex:none}.header-loading-name{height:12px;width:82px;border-radius:var(--xh-radius)}
.site-header .header-session-retry{width:138px}.header-noscript-account{display:inline-flex;min-height:var(--xh-control-sm);align-items:center;font-size:13px}
@keyframes header-account-loading{from{opacity:.45}to{opacity:.85}}
@media(max-width:767px){.header-member-loading{width:110px;gap:6px;min-height:var(--xh-control-md);padding:4px}.header-loading-avatar{width:26px;height:26px}.header-loading-name{width:62px;height:10px}.site-header .header-session-retry{width:110px}}
@media(max-width:350px){.header-member-loading,.site-header .header-session-retry{width:94px}.header-loading-name{width:48px}}
@media(prefers-reduced-motion:reduce){.header-loading-avatar,.header-loading-name{animation:none}}
@media(scripting:none){.header-member-loading{display:none}}

/* Account controls share one position below the saved Steam identity. */
.site-header .header-member-menu{width:220px;padding:6px;border-radius:var(--xh-radius-lg)}
.header-member-menu>a svg,.header-member-menu>button svg,.header-member-menu>a img{flex:none;width:var(--xh-button-icon-size);height:var(--xh-button-icon-size);object-fit:contain}
.site-header .header-member-menu>.header-member-signout{border-top:1px solid var(--xh-border);border-radius:var(--xh-radius);margin-top:4px;padding-top:12px}
.header-member-completion{position:absolute;z-index:2;right:0;top:calc(100% + 8px);width:344px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 88px);box-sizing:border-box;padding:24px;background:var(--xh-surface);border:1px solid var(--xh-border);border-radius:var(--xh-radius-lg);box-shadow:var(--xh-shadow-dialog);overflow:auto;overscroll-behavior:contain;color:var(--xh-text);text-align:left}
.site-header .member-completion-title{margin:0 24px 22px 0;color:var(--xh-text);font-family:inherit;font-size:var(--xh-font-lg);line-height:1.3;font-weight:600}
.member-completion-close{position:absolute;right:10px;top:10px}
.site-header .member-completion-label{margin-bottom:var(--xh-space-2)}
.site-header .header-member-completion input[type=text]{margin:0}
.site-header .member-completion-consent{margin:18px 0}
.site-header .member-completion-consent a{display:inline;padding:0;color:var(--xh-secondary);font:inherit;text-decoration:underline;text-underline-offset:2px}
.site-header .member-completion-error{margin:0 0 var(--xh-space-3)}
.site-header .member-completion-submit{display:flex;width:100%}
@media(max-width:767px){.header-member-completion{position:fixed;right:12px;left:auto;top:62px;width:min(344px,calc(100vw - 24px));max-height:calc(100dvh - 74px);padding:22px}.site-header .member-completion-title{font-size:19px}}
