body.richclass-entry #partnerReturn { display:none!important; }
.richclass-return { display:none; }
body.richclass-selecting .topbar .brand,
body.richclass-selecting .topbar .director-exit { display:none!important; }
body.richclass-selecting .richclass-return {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:6px 10px; box-sizing:border-box;
  flex:0 1 auto; border:1px solid #9ba99f; border-radius:8px;
  background:#edf0e7; color:#234236; text-decoration:none;
  font:700 16px/1.35 'Noto Sans KR',sans-serif;
  white-space:nowrap; letter-spacing:-.03em;
}
:root[data-theme=dark] body.richclass-selecting .richclass-return {
  background:#e9ecdf; color:#233d33; border-color:#adbba8;
}
.richclass-return:focus-visible { outline:3px solid #d3a63c; outline-offset:3px; }
/* Keep profile and settings together, rather than spacing all header items equally. */
body:has(#hub:not([hidden])) .topbar { justify-content:flex-start!important; align-items:center!important; gap:8px!important; }
body:has(#hub:not([hidden])) .topbar #hubLogin { margin-left:auto!important; margin-right:0!important; flex:0 0 44px!important; width:44px!important; height:44px!important; }
body:has(#hub:not([hidden])) .topbar .settings-button { margin:0!important; flex:0 0 44px!important; width:44px!important; height:44px!important; }
@media(max-width:360px) {
  body.richclass-selecting .topbar { gap:6px!important; }
  body.richclass-selecting .richclass-return { font-size:15px; padding:6px 8px; }
}
/* The full return strip belongs to the entrance, outside the fixed game header. */
body:not(:has(#hub:not([hidden]))) #partnerReturn { display: none !important; }
