.site-header{--site-header-ink:var(--ink,#111);height:96px;position:relative;z-index:30;background:var(--y,#ffde00);color:var(--site-header-ink);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif}
.site-header .site-header-inner{height:100%;max-width:1320px;margin:0 auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid rgba(var(--line-rgb,0,0,0),.1)}
.site-header .site-brand{display:grid;place-items:center;width:60px;height:60px;flex:none;position:relative;margin:0;padding:0;border:0;letter-spacing:0;background:none}
.site-header .site-brand img{width:56px;height:60px;object-fit:contain;opacity:0;filter:none;padding:0;margin:0}
.site-header .site-brand:before{content:"";position:absolute;width:56px;height:60px;inset:0;margin:auto;background:currentColor;-webkit-mask:url("logo-ink.png") center/contain no-repeat;mask:url("logo-ink.png") center/contain no-repeat;pointer-events:none}
.site-header .site-nav{display:flex;gap:52px;align-items:center;justify-content:center;flex:none;margin:0;padding:0;background:none}
.site-header .site-nav>a{position:relative;display:grid;place-items:center;min-width:44px;min-height:44px;color:inherit;text-decoration:none;letter-spacing:0;font-size:18px;font-weight:400;white-space:nowrap}
.site-header .site-nav>a[aria-current=page]:after{content:"";position:absolute;bottom:3px;height:1px;width:26px;background:currentColor}
.site-header .site-account{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;margin:0;padding:0;background:none;border:0;border-radius:0;color:inherit;text-decoration:none;white-space:nowrap;letter-spacing:0;font-weight:600;flex-shrink:0}
.site-header .site-account-icon{width:44px;height:44px;position:relative;display:grid;place-items:center;flex:none}
.site-header .site-account-icon img{height:31px;width:31px;opacity:0;filter:none;padding:0;margin:0}
.site-header .site-account-icon:before{content:"";position:absolute;height:31px;width:31px;inset:0;margin:auto;background:currentColor;-webkit-mask:url("comment-icons/user-circle.svg") center/contain no-repeat;mask:url("comment-icons/user-circle.svg") center/contain no-repeat;pointer-events:none}
.site-header .site-account .member-nav-label{display:none}
.site-header .site-account.member-signed-in .member-nav-label{display:inline;position:static;width:auto;height:auto;margin:0;padding:0;clip:auto;clip-path:none;overflow:visible;font-size:16px;line-height:1.4;white-space:nowrap}
.site-header .member-pending{visibility:hidden}
.site-header a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
body.has-site-header.home-page>main{padding-top:0!important;margin-top:0!important}
body.has-site-header .member-main{padding-top:56px}
body.has-site-header .legal-page{padding-top:64px}
body.has-site-header main>.pagehero{padding-top:64px}
body.has-site-header.personal-space-page .home-brand{padding-top:48px}
@media(max-width:800px){
 .site-header{height:64px}.site-header .site-header-inner{padding:0 20px;gap:10px}.site-header .site-brand{width:44px;height:44px}.site-header .site-brand img,.site-header .site-brand:before{width:30px;height:36px}
 .site-header .site-nav{gap:24px}.site-header .site-nav>a{font-size:13px}.site-header .site-account-icon img,.site-header .site-account-icon:before{width:23px;height:23px}.site-header .site-account.member-signed-in .member-nav-label{font-size:13px}
 body.has-site-header .member-main{padding-top:38px}body.has-site-header .legal-page{padding-top:36px}body.has-site-header main>.pagehero{padding-top:42px}body.has-site-header.personal-space-page .home-brand{padding-top:36px}
}
@media(max-width:400px){.site-header .site-header-inner{padding:0 12px;gap:6px}.site-header .site-brand{width:36px}.site-header .site-nav{gap:12px}.site-header .site-account{gap:4px}.site-header .site-account.member-signed-in .member-nav-label{font-size:12px}}
body.has-site-header .site-footer{padding:28px 0 20px}
body.has-site-header .site-footer .footer-top{display:flex;align-items:center;justify-content:flex-start;gap:18px}
body.has-site-header .site-footer .footer-top>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px 20px}
body.has-site-header .site-footer .kicker{font-size:9px;line-height:1.5;letter-spacing:.15em}
body.has-site-header .site-footer .footer-logo{font-size:28px;letter-spacing:-1px;line-height:1.2;margin:0}
body.has-site-header .site-footer .footer-bottom{margin-top:18px;padding-top:14px}
@media(max-width:800px){body.has-site-header .site-footer{padding:24px 0 18px}body.has-site-header .site-footer .footer-logo{font-size:24px}body.has-site-header .site-footer .footer-bottom{margin-top:16px}}
/* Stable columns keep navigation stationary while account state arrives. */
html{overflow-y:scroll;scrollbar-gutter:stable}
.skip{position:fixed;z-index:100;top:-100px;left:16px;background:#111;color:#ffde00;padding:12px}.skip:focus{top:10px}
.site-header .site-header-inner{display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(170px,1fr)}
.site-header .site-brand{justify-self:start}.site-header .site-account{justify-self:end}
body.has-site-header .site-header .site-brand{width:60px;height:60px}
.site-header .site-nav{gap:38px}.site-header .member-pending{visibility:visible;animation:none}
body.has-site-header>.site-header{position:sticky;top:0}
html{scroll-padding-top:96px}
@media(max-width:800px){
 html{scroll-padding-top:72px}
 .site-header{height:72px}.site-header .site-header-inner{grid-template-columns:32px minmax(0,1fr) 64px;gap:8px;padding:0 12px}
 .site-header .site-brand{width:32px;height:44px}.site-header .site-brand img,.site-header .site-brand:before{width:28px;height:34px}
 body.has-site-header .site-header .site-brand{width:32px;height:44px}
 .site-header .site-nav{gap:clamp(6px,2vw,16px);min-width:0}.site-header .site-nav>a{min-width:0;min-height:44px;font-size:12px}
 .site-header .site-account{display:grid;grid-template-rows:26px 14px;gap:0;justify-items:center;align-content:center;min-width:64px;min-height:44px}
 body.has-site-header .site-header .site-account{display:grid;grid-template-rows:26px 14px;gap:0;min-width:64px;min-height:44px}
 .site-header .site-account-icon{width:26px;height:26px}.site-header .site-account-icon img,.site-header .site-account-icon:before{width:22px;height:22px}
 .site-header .site-account .member-nav-label,.site-header .site-account.member-signed-in .member-nav-label{display:none}
 .site-header .site-account::after{content:"";display:block;min-height:14px;font-size:11px;line-height:14px;font-weight:500}
 .site-header .site-account[data-member-uid]::after{content:"ID " attr(data-member-uid)}
}

/* Suppress UA outline only on the programmatically focused page landmark. */
body.has-site-header main[data-navigation-focus]:focus{outline:none}
/* Signed-in desktop accounts match the compact mobile icon / ID stack. */
@media(min-width:801px){
 body.has-site-header .site-header .site-account.member-signed-in{display:grid;grid-template-rows:26px 14px;justify-items:center;align-content:center;gap:0;min-width:64px;min-height:44px}
 .site-header .site-account.member-signed-in .site-account-icon{width:26px;height:26px}
 .site-header .site-account.member-signed-in .site-account-icon img,.site-header .site-account.member-signed-in .site-account-icon:before{width:22px;height:22px}
 .site-header .site-account.member-signed-in .member-nav-label{display:none}
 .site-header .site-account.member-signed-in::after{content:"ID " attr(data-member-uid);display:block;min-height:14px;font-size:11px;line-height:14px;font-weight:500}
}

/* Selected domain option 2: original mark, divider and wordmark share one centerline. */
body.has-site-header .site-header .site-brand{display:flex;align-items:center;gap:0;width:auto;height:60px;white-space:nowrap;color:inherit;text-decoration:none}
.site-header .site-brand:before{display:none}
.site-header .site-brand-mark{display:grid;place-items:center;position:relative;width:60px;height:60px;flex:none}
.site-header .site-brand-mark:before{content:"";position:absolute;inset:0;margin:auto;width:56px;height:60px;background:currentColor;-webkit-mask:url("logo-ink.png") center/contain no-repeat;mask:url("logo-ink.png") center/contain no-repeat;pointer-events:none}
.site-header .site-wordmark{display:block;flex:none;border-left:1px solid currentColor;padding-left:12px;margin-left:4px;font-size:13px;line-height:18px;font-weight:600;letter-spacing:.015em;transform:none}
/* All viewport sizes keep branding, navigation and account on one row. */
@media(max-width:800px){
 .site-header{height:72px}
 .site-header .site-header-inner{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:1fr;gap:6px;padding:0 12px}
 body.has-site-header .site-header .site-brand{grid-row:1;grid-column:1;width:auto;height:44px}
 .site-header .site-brand-mark{width:28px;height:44px}
 .site-header .site-brand-mark:before{width:28px;height:34px}
 .site-header .site-wordmark{font-size:10.5px;line-height:15px;margin-left:2px;padding-left:7px;letter-spacing:0;transform:none}
 body.has-site-header .site-header .site-account{grid-row:1;grid-column:3;min-width:44px}
 .site-header .site-nav{grid-row:1;grid-column:2;align-self:center;justify-self:center;justify-content:center;gap:clamp(6px,1.5vw,12px);border-top:0}
 .site-header .site-nav>a{font-size:12px;min-width:0;min-height:44px}
 html{scroll-padding-top:72px}
}
@media(max-width:360px){
 .site-header .site-header-inner{gap:4px;padding:0 8px}
 .site-header .site-brand-mark{width:24px}
 .site-header .site-wordmark{font-size:10px;margin-left:1px;padding-left:5px;letter-spacing:-.01em}
 .site-header .site-nav{gap:5px}
 .site-header .site-account::after{font-size:10px}
}
@media(min-width:500px) and (max-width:800px){
 .site-header .site-header-inner{gap:12px;padding:0 20px}
 .site-header .site-brand-mark{width:40px;height:48px}
 .site-header .site-brand-mark:before{width:36px;height:44px}
 .site-header .site-wordmark{font-size:11px;line-height:17px;margin-left:3px;padding-left:9px}
 .site-header .site-nav{gap:clamp(16px,3vw,24px)}
 .site-header .site-nav>a{font-size:14px}
}

/* Reserve account geometry before and after authentication settles. */
body.has-site-header .site-header .site-account{display:grid;grid-template-rows:26px 14px;justify-items:center;align-content:center;gap:0;min-width:64px;min-height:44px}
.site-header .site-account-icon{width:26px;height:26px}
.site-header .site-account-icon img,.site-header .site-account-icon:before{width:22px;height:22px}
.site-header .site-account::after{content:"";display:block;min-height:14px;font-size:11px;line-height:14px;font-weight:500}
.site-header .site-account[data-member-uid]::after{content:"ID " attr(data-member-uid)}
@media(max-width:800px){body.has-site-header .site-header .site-account{width:56px;min-width:56px}.site-header .site-account::after{font-size:10px}}

/* Unified public navigation: home, tools, games, drama, contact. */
/* Five links stay in the existing single-row public header. Inline scope also
   survives home/contact navigation while that same header remains mounted. */
@media(max-width:800px){
 .site-header .site-nav.has-drama-link{gap:clamp(5px,1vw,10px)}
 body.has-site-header .site-header:has(.has-drama-link) .site-account{width:56px;min-width:56px}
}
@media(max-width:400px){
 .site-header:has(.has-drama-link) .site-header-inner{padding-inline:8px;gap:4px}
 .site-header:has(.has-drama-link) .site-wordmark{font-size:9.5px;padding-left:5px;margin-left:1px}
 .site-header:has(.has-drama-link) .site-brand-mark{width:24px}
 .site-header .site-nav.has-drama-link{gap:6px}
}
@media(max-width:340px){.site-header .site-nav.has-drama-link{gap:3px}.site-header .site-nav.has-drama-link>a{font-size:11px}}
@media(min-width:801px) and (max-width:1000px){
 .site-header:has(.has-drama-link) .site-header-inner{grid-template-columns:minmax(140px,1fr) auto minmax(90px,1fr);padding-inline:24px}
 .site-header .site-nav.has-drama-link{gap:24px}
}

/* Shared navigation owns its vertical geometry; page typography must not shift it. */
body.has-site-header>.site-header{height:96px;min-height:96px;max-height:96px;box-sizing:border-box;margin-block:0;padding-block:0;flex-shrink:0;line-height:normal}
body.has-site-header>.site-header .site-header-inner{height:100%;min-height:0;box-sizing:border-box;padding-block:0;align-items:center}
body.has-site-header>.site-header .site-nav{height:44px;min-height:44px;max-height:44px;box-sizing:border-box;padding-block:0;margin-block:0;align-items:center;line-height:24px}
body.has-site-header>.site-header .site-nav>a{display:flex;align-items:center;justify-content:center;align-self:center;height:44px;min-height:44px;max-height:44px;box-sizing:border-box;padding-block:0;margin-block:0;line-height:24px;flex-shrink:0}
@media(max-width:800px){
 body.has-site-header>.site-header{height:72px;min-height:72px;max-height:72px}
 body.has-site-header>.site-header .site-nav,body.has-site-header>.site-header .site-nav>a{line-height:20px}
}
