/* One champagne-gold palette and one framed masthead for every public route. */
:root{--gd-bg:#f5ecda;--gd-paper:#fffaf0;--gd-surface:#fffdf8;--gd-line:#e6c993;--gd-ink:#3f2a12;--gd-muted:#8a6634;--gd-accent:#94621b;--gd-gold:#cb952f;--gd-width:1180px}
html{ -webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-bottom:100px }
body{overflow-wrap:break-word}
.gold-header.ngpg-brand{position:relative;isolation:isolate;width:100%!important;max-width:1180px!important;min-height:64px!important;height:auto!important;box-sizing:border-box!important;margin:12px auto 18px!important;padding:9px 14px!important;gap:10px!important;border:1px solid #d4ac67!important;border-radius:18px!important;background:linear-gradient(115deg,#fffdf8,#f4e7cb 52%,#fffbf0)!important;box-shadow:none!important;color:var(--gd-ink)!important;overflow:hidden!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}
.gold-header.ngpg-brand::before,.gold-header.ngpg-brand::after{content:none!important;display:none!important}
.gold-header.ngpg-brand .ngpg-crest{color:#5e3b15;text-decoration:none;flex:none!important;width:39px!important;height:43px!important}
.gold-header.ngpg-brand .ngpg-crest b{color:#5f3e16!important;font-size:18px!important}
.gold-header.ngpg-brand .ngpg-group b,.gold-header.ngpg-brand .ngpg-group em{color:#5a3a17!important}
.gold-header.ngpg-brand .ngpg-group b{font-size:19px!important;letter-spacing:0!important}
.gold-header.ngpg-brand .ngpg-cross:before,.gold-header.ngpg-brand .ngpg-cross:after{background:#a77b35!important}
.gold-header.ngpg-brand .ngpg-pg-tiles rect{fill:#60451f!important}
.gold-header.ngpg-brand .ngpg-pg small{color:#6d4b21!important}
.gold-header.ngpg-brand .gold-member.ngpg-login{display:flex!important;align-items:center!important;flex:0 1 auto!important;min-width:0!important;max-width:44%!important;margin-left:auto!important;gap:6px!important;padding:5px 10px!important;border:1px solid #d7b779!important;border-radius:12px!important;background:linear-gradient(#fffefa,#fbf2e0)!important;color:#5c3d17!important;box-shadow:none!important;font-size:13px!important;line-height:1.5!important;text-decoration:none!important;min-height:35px!important;box-sizing:border-box!important;white-space:nowrap}
.gold-member>span:not(.gold-member-portrait){overflow:hidden;text-overflow:ellipsis;min-width:0}
.gold-member-portrait{position:relative;display:inline-flex;width:30px;height:30px;flex:none;align-items:center;justify-content:center;background:var(--avatar-frame,none) center/contain no-repeat}
.gold-header .gold-member-avatar{width:23px!important;height:23px!important;object-fit:cover;border-radius:50%;flex:none}
.gold-header .gold-identity-badge{width:23px;height:23px;flex:none;object-fit:contain}
.unified-return-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:9px 3px 14px!important;background:transparent!important;border:0!important;position:static!important;min-height:40px!important;color:var(--gd-ink)!important;visibility:visible!important}
.unified-return-row a{color:var(--gd-accent)!important;font-size:14px!important;text-decoration:none!important;display:inline-flex;align-items:center;gap:5px}
.unified-return-row h1{color:var(--gd-ink)!important;font-size:18px!important;margin:0!important;-webkit-text-fill-color:var(--gd-ink)!important}
.gold-nav{box-sizing:border-box!important;z-index:800!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;position:fixed!important;inset:auto auto max(10px,env(safe-area-inset-bottom)) 50%!important;transform:translateX(-50%)!important;width:calc(100% - 24px)!important;max-width:1180px!important;border:1px solid var(--gd-line)!important;border-radius:22px!important;padding:5px!important;background:#fffaf2f5!important;box-shadow:0 8px 24px #75541922!important;backdrop-filter:blur(12px)}
.gold-nav a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-height:44px!important;padding:5px!important;color:#92703c!important;border-radius:16px!important;text-decoration:none!important;font-size:12px!important;line-height:1.2!important;background:transparent!important}
.gold-nav a[aria-current=page]{background:#f5e2b6!important;color:#8d5d17!important}
.gold-nav i{font-size:21px!important;color:#b67e22!important}.gold-nav a:focus-visible{outline:2px solid #a97321;outline-offset:2px}
html:has(body.stage-reference-design),body.stage-reference-design,html:has(.official-news-header),body:has(.official-news-header){background:radial-gradient(ellipse at 50% 0,#fff8e9,transparent 60rem),var(--gd-bg)!important;background-color:var(--gd-bg)!important;color:var(--gd-ink)!important}
body.stage-reference-design main.discovery-page.stage-page{width:calc(100% - 32px)!important;max-width:1180px!important;padding:0 0 100px!important;margin:0 auto!important;background:transparent!important;color:var(--gd-ink)!important}
body.stage-reference-design .stage-reference-guidance{color:var(--gd-muted)!important}
body.stage-reference-design .stage-feed>.stage-post{background:var(--gd-surface)!important;border-color:var(--gd-line)!important;box-shadow:0 6px 20px #90682615!important;color:var(--gd-ink)!important}
body.stage-reference-design .stage-post-main,body.stage-reference-design .stage-post-author,body.stage-reference-design .stage-post-author strong,body.stage-reference-design .stage-post-content,body.stage-reference-design .stage-comment,body.stage-reference-design .stage-comment strong{color:var(--gd-ink)!important;-webkit-text-fill-color:var(--gd-ink)!important;text-shadow:none!important}
body.stage-reference-design .stage-post-meta,body.stage-reference-design .stage-post-actions button,body.stage-reference-design .stage-comment-name{color:var(--gd-muted)!important;-webkit-text-fill-color:var(--gd-muted)!important}
body.stage-reference-design .stage-comments,body.stage-reference-design .stage-empty{background:#f6e9d3!important;color:var(--gd-muted)!important;border-radius:16px}
body:has(.official-news-header) #root,body:has(.official-news-header) #app,body:has(.official-news-header) .page-container,body:has(.official-news-header) .page.active,body:has(.official-news-header) .wx-moments,body:has(.official-news-header) .wx-main,body:has(.official-news-header) .wx-feed{background:transparent!important;background-color:transparent!important}
body:has(.official-news-header) .page.active{padding-bottom:100px!important;overflow:visible!important}
.official-news-header{box-sizing:border-box!important;width:calc(100% - 32px)!important;max-width:1180px!important;margin:auto!important;padding:0!important;color:var(--gd-ink)!important;background:transparent!important}
.official-news-header .official-news-subtitle{color:var(--gd-muted)!important;margin-top:0!important}
.official-news-tabs{background:#fffaf0!important;border-color:var(--gd-line)!important;gap:6px!important}
.official-news-tabs button{color:var(--gd-muted)!important;background:#fbf3e4!important;border:1px solid transparent!important}
.official-news-tabs button.is-active{color:var(--gd-ink)!important;background:#f2dfb5!important;border-color:#d0a04d!important}
.wx-moments .wx-feed{box-sizing:border-box;width:calc(100% - 32px)!important;max-width:1180px!important;padding:0 0 100px!important}
.wx-moments .official-news-card{background:var(--gd-surface)!important;color:var(--gd-ink)!important;border:1px solid var(--gd-line)!important;border-radius:16px!important;margin:12px 0!important;box-shadow:0 6px 20px #90682615!important}
.wx-moments .official-news-card .wx-post-author,.wx-moments .official-news-card .wx-post-text{color:var(--gd-ink)!important}
.wx-moments .official-news-card .wx-post-time,.official-news-state{color:var(--gd-muted)!important}
.sh-comment-container,.wx-comment-panel{background:#f8efdf!important;border-color:var(--gd-line)!important;color:var(--gd-ink)!important}
/* A 16px control font prevents iOS focus zoom without disabling pinch or browser zoom. */
input:not([type=checkbox]):not([type=radio]),select,textarea,[contenteditable=true]{font-size:16px!important;max-width:100%;box-sizing:border-box;scroll-margin-block:90px;-webkit-text-size-adjust:100%}
button,a,input,select,textarea{touch-action:manipulation}
@media(max-width:480px){.gold-header.ngpg-brand{gap:5px!important;padding:7px 9px!important;min-height:59px!important}.gold-header.ngpg-brand .ngpg-group b{font-size:15px!important}.gold-header.ngpg-brand .ngpg-group em{font-size:7px!important}.gold-header.ngpg-brand .ngpg-crest{width:31px!important;height:36px!important}.gold-header.ngpg-brand .ngpg-cross{width:15px!important;height:15px!important;margin:0!important}.gold-header.ngpg-brand .ngpg-pg{width:50px!important;max-width:50px!important;flex-basis:50px!important}.gold-header.ngpg-brand .gold-member.ngpg-login{padding:4px 6px!important;gap:3px!important;font-size:12px!important;max-width:42%!important}.gold-header .gold-identity-badge{width:19px;height:19px}.gold-member-portrait{width:26px;height:26px}.gold-header .gold-member-avatar{width:20px!important;height:20px!important}.gold-nav{bottom:max(6px,env(safe-area-inset-bottom))!important}.official-news-tabs button{font-size:12px}.gold-shell,body.stage-reference-design main.discovery-page.stage-page,.official-news-header,.wx-moments .wx-feed{width:calc(100% - 20px)!important}}

.frame-classic{--avatar-frame:url("/static/picture/member-frames/classic.svg")}.frame-ice{--avatar-frame:url("/static/picture/member-frames/ice.svg")}.frame-sun{--avatar-frame:url("/static/picture/member-frames/sun.svg")}.frame-creator{--avatar-frame:url("/static/picture/member-frames/creator.svg")}.frame-dragon{--avatar-frame:url("/static/picture/member-frames/dragon.svg")}.frame-lucky{--avatar-frame:url("/static/picture/member-frames/lucky.svg")}.frame-sea{--avatar-frame:url("/static/picture/member-frames/sea.svg")}.frame-moon{--avatar-frame:url("/static/picture/member-frames/moon.svg")}.frame-time{--avatar-frame:url("/static/picture/member-frames/time.svg")}.frame-rose{--avatar-frame:url("/static/picture/member-frames/rose.svg")}.frame-palace{--avatar-frame:url("/static/picture/member-frames/palace.svg")}.frame-peacock{--avatar-frame:url("/static/picture/member-frames/peacock.svg")}.frame-jade{--avatar-frame:url("/static/picture/member-frames/jade.svg")}.frame-angel{--avatar-frame:url("/static/picture/member-frames/angel.svg")}.frame-void{--avatar-frame:url("/static/picture/member-frames/void.svg")}.frame-royal{--avatar-frame:url("/static/picture/member-frames/royal.svg")}.frame-rank-1{--avatar-frame:url("/static/picture/member-frames/rank-1.svg")}.frame-rank-2{--avatar-frame:url("/static/picture/member-frames/rank-2.svg")}.frame-rank-3{--avatar-frame:url("/static/picture/member-frames/rank-3.svg")}

/* Keep the trial-room composer reachable in its dedicated full-height layout. */
.gold-room-page .gold-header.ngpg-brand,.gold-room-page>.gold-nav{display:none!important}
.user-center-popup{background:#4b392c88!important;backdrop-filter:blur(2px)}
.user-center-popup-content.member-gold-modal{background:linear-gradient(125deg,#fbefd5,transparent 28%),#fffdf8!important;color:var(--gd-ink)!important;border-color:#c79b49!important;box-shadow:inset 0 0 0 3px #fff7e6,0 25px 80px #3b271b44!important}
.member-gold-modal .user-center-popup-header h3{color:var(--gd-ink)!important}.member-gold-modal .member-gold-subtitle,.member-gold-modal .form-group label{color:var(--gd-muted)!important}.member-gold-modal .user-center-popup-close{background:#faf0da!important;color:#9c6f24!important;border-color:#dcc08a!important}.member-gold-modal .member-gold-tabs button{color:var(--gd-ink);border-color:var(--gd-line)}.member-gold-modal .member-gold-tabs button.is-active{background:#f4e3bc;border-color:#c39a51}.member-gold-modal .form-group input{background:#fffaf0!important;color:var(--gd-ink)!important;border-color:#dfc18a!important}.member-gold-modal .form-group input::placeholder{color:#ae9168!important}.member-gold-modal .member-gold-submit{background:linear-gradient(110deg,#e9c772,#b98628,#e5c06a)!important;color:#fffdf6!important;border-color:#b38435!important}.member-gold-modal .form-footer a{color:#95671f!important}.member-gold-modal .member-captcha-row button{background:#ba9553;color:#fffdf3}.member-gold-modal .form-error{color:#b44431!important}
.hub-prize-card p{white-space:pre-line}

.trial-chat-portrait,.stage-author-portrait{display:inline-flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;padding:7px;box-sizing:border-box;background:var(--avatar-frame,none) center/contain no-repeat;border:0!important;box-shadow:none!important;border-radius:0!important}
.trial-chat-portrait .trial-chat-avatar,.stage-author-portrait .stage-author-avatar{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:50%!important;border:0!important;box-shadow:none!important}
.trial-chat-portrait.frame-none,.stage-author-portrait.frame-none{padding:3px}
.stage-identity-badge{width:25px;height:25px;object-fit:contain;flex:none}
body.stage-reference-design .stage-reference-member-icon{width:57px!important;height:57px!important;padding:8px!important;box-sizing:border-box;background:var(--avatar-frame,none) center/contain no-repeat!important;border:0!important;box-shadow:none!important;flex:none!important}
body.stage-reference-design .stage-reference-member-icon img{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover}

/* R3: shared cream background, one header outline and readable light content. */
html:has(body.gold-page):not(.arena-page),html:has(body.gold-home),html:has(body.stage-reference-design),html:has(body.stage-compose-body),html:has(body.gold-official-page),
body.gold-page:not(.arena-room-page):not(.arena-entry-page),body.gold-home,body.gold-discover-page,body.stage-reference-design,body.stage-compose-body,body.gold-official-page{
 background:radial-gradient(ellipse at 50% 0,#fff7e7,transparent 42rem),#f5ecda!important;
 background-color:#f5ecda!important;color:var(--gd-ink)!important;
 --gd-muted:#8a6634;--gd-line:#e6c993;--gd-gold:#cb952f;
}
body.gold-home::before{background:none!important}
.ngpg-home-header,.ngpg-shared-header,.ngpg-shared-header .portal-shell-inner{border:0!important;box-shadow:none!important;background:transparent!important}
body.stage-reference-design .discovery-page-header.unified-return-row{display:flex!important;position:static!important;visibility:visible!important;opacity:1!important;height:auto!important;background:transparent!important;border:0!important;box-shadow:none!important;margin:0!important;padding:5px 0 15px!important;min-height:42px!important}
body.stage-reference-design .discovery-page-header.unified-return-row a,body.stage-reference-design .discovery-page-header.unified-return-row h1{color:var(--gd-ink)!important;font-size:15px!important;line-height:1.5!important}
body.gold-official-page .wx-moments .official-news-card{background:#fffdf8!important;color:var(--gd-ink)!important;border:1px solid var(--gd-line)!important;border-radius:16px!important;box-shadow:0 5px 18px #8c6a1710!important;margin:12px 0!important}
body.gold-official-page .wx-moments .official-news-card .wx-post-author,body.gold-official-page .wx-moments .official-news-card .wx-post-text,body.gold-official-page .wx-moments .official-news-card .wx-post-text *{color:var(--gd-ink)!important;-webkit-text-fill-color:var(--gd-ink)!important;text-shadow:none!important}
body.gold-official-page .wx-moments .official-news-card .wx-post-time,body.gold-official-page .wx-moments .official-news-card time{color:var(--gd-muted)!important}
body.gold-official-page .wx-moments .official-news-card .wx-post-tag{background:#f9edcf!important;color:#94621b!important}
body.gold-official-page .wx-moments .official-news-card .official-megaphone{background:linear-gradient(#f9e9c6,#e7c683)!important;color:#7a541d!important}
body.stage-compose-body .discovery-composer{width:calc(100% - 32px);max-width:1180px;margin:auto;padding-bottom:100px;background:transparent!important;color:var(--gd-ink)!important}
body.stage-compose-body .stage-compose-header{position:static!important;background:var(--gd-surface)!important;color:var(--gd-ink)!important;border:1px solid var(--gd-line)!important;border-radius:12px;margin-bottom:18px}
body.stage-compose-body .stage-compose-header a,body.stage-compose-body .stage-compose-header h1{color:var(--gd-ink)!important}
body.stage-compose-body #stagePublishText,body.stage-compose-body .stage-compose-tips,body.stage-compose-body .stage-add-image{background:#fffdf8!important;color:var(--gd-ink)!important;border:1px solid var(--gd-line)!important;border-radius:12px}
body.stage-compose-body .stage-compose-help,body.stage-compose-body .stage-compose-tips small{color:var(--gd-muted)!important}
body.stage-compose-body .stage-compose-header button{background:#b3843b!important;color:#fff!important}

/* Match the transparent opening in each illustrated frame to the real avatar. */
.hub-avatar{display:inline-grid!important;place-items:center!important;padding:0!important;flex:none!important}
.hub-avatar>img{width:66%!important;height:66%!important;object-fit:cover;align-self:center;justify-self:center}
.hub-avatar.frame-none>img{width:90%!important;height:90%!important}
.gold-header .gold-member-avatar{width:66%!important;height:66%!important}
.gold-header .frame-none .gold-member-avatar{width:90%!important;height:90%!important}
body.stage-reference-design .stage-reference-member-icon{padding:10px!important}
body.stage-reference-design .stage-post-actions>button i{color:#a4762b!important}
body.stage-reference-design .stage-post-actions>button.is-liked i{color:#bd6244!important}
body.stage-reference-design .stage-modal-backdrop .stage-tip-modal,body.stage-reference-design .stage-modal-backdrop .stage-comment-modal{background:#fffdf8!important;color:var(--gd-ink)!important;border:1px solid var(--gd-line)!important}
body.stage-reference-design .stage-modal-backdrop .stage-tip-amounts button{background:#fff8e9!important;color:var(--gd-ink)!important;border-color:var(--gd-line)!important}
body.stage-reference-design .stage-modal-backdrop .stage-tip-amounts button.active{background:#f4e2ba!important;border-color:#ba8c3b!important;color:#77501b!important}
