/* Home only. Preserve the original elbow/wordmark geometry at every size. */
body[data-site-home].home-motion .topbar.classic-mascot-header{
  --lion-scale:.85;display:flex!important;flex-wrap:nowrap!important;
  align-items:center!important;gap:18px!important;min-height:0!important;height:auto!important;
  padding:12px 28px!important;overflow:visible!important;
}
body[data-site-home].home-motion .topbar>.classic-mascot-brand{
  position:relative!important;left:auto!important;top:auto!important;display:block!important;
  flex:0 0 calc(208px * var(--lion-scale))!important;
  width:calc(208px * var(--lion-scale))!important;height:calc(132px * var(--lion-scale))!important;
  overflow:visible!important;isolation:isolate;
}
body[data-site-home].home-motion .topbar .classic-mascot-brand .approved-logo{
  position:absolute!important;left:0!important;top:calc(36px * var(--lion-scale))!important;
  width:calc(132px * var(--lion-scale))!important;height:calc(88px * var(--lion-scale))!important;
  max-width:none!important;object-fit:contain!important;transform:none!important;z-index:1!important;
}
body[data-site-home].home-motion .topbar .classic-lion-mascot{
  display:block!important;left:calc(74px * var(--lion-scale))!important;top:calc(-7px * var(--lion-scale))!important;
  width:calc(144px * var(--lion-scale))!important;height:calc(144px * var(--lion-scale))!important;z-index:2!important;
}
body[data-site-home].home-motion .topbar .classic-lion-mascot[hidden]{display:none!important}
body[data-site-home].home-motion .topbar>.top-actions,
body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking{
  display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;align-items:center!important;
  justify-content:flex-end!important;min-width:0!important;width:auto!important;max-width:none!important;
  min-height:76px!important;padding:9px!important;gap:8px!important;border-radius:23px!important;box-sizing:border-box!important;
}
body[data-site-home].home-motion .topbar>.top-actions>button,
body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking>button,
body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{
  display:flex!important;position:relative!important;flex:0 1 auto!important;align-items:center!important;justify-content:center!important;
  width:auto!important;max-width:none!important;min-width:44px!important;height:56px!important;min-height:56px!important;
  padding:8px 12px!important;font-size:13px!important;gap:7px!important;border-radius:16px!important;box-sizing:border-box!important;
}
body[data-site-home].home-motion .topbar>.top-actions>.home-world-ranking-open{min-width:158px!important;font-size:14px!important}
body[data-site-home].home-motion .topbar .home-world-ranking-icon{width:42px!important;height:40px!important;flex:none!important}
body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{min-width:104px!important;padding:0 10px 0 2px!important;gap:5px!important}
body[data-site-home].home-motion .topbar .classic-bank-art.home-bank-art{width:54px!important;height:54px!important;flex:0 0 54px!important;margin:0!important}
body[data-site-home].home-motion .topbar .classic-bank-count b{font-size:20px!important;line-height:21px!important}
body[data-site-home].home-motion .topbar .classic-bank-count small{font-size:10px!important}
body[data-site-home].home-motion .topbar .friends-toolbar-trigger{max-width:none!important;white-space:nowrap!important}
body[data-site-home].home-motion .topbar .friends-online-count{min-width:22px!important;height:22px!important;font-size:12px!important}

@media(max-width:1100px){
  body[data-site-home].home-motion .topbar.classic-mascot-header{--lion-scale:.65;gap:12px!important;padding-inline:18px!important}
  body[data-site-home].home-motion .topbar>.top-actions,
  body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking{padding:7px!important;gap:5px!important;min-height:66px!important}
  body[data-site-home].home-motion .topbar>.top-actions>button,
  body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking>button,
  body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{height:50px!important;min-height:50px!important;padding-inline:8px!important;font-size:12px!important}
  body[data-site-home].home-motion .topbar>.top-actions>.home-world-ranking-open{min-width:124px!important;font-size:12px!important}
  body[data-site-home].home-motion .topbar .home-world-ranking-icon{width:34px!important;height:34px!important}
  body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{min-width:90px!important;padding-inline:4px!important}
  body[data-site-home].home-motion .topbar .classic-bank-art.home-bank-art{width:46px!important;height:46px!important;flex-basis:46px!important}
  body[data-site-home].home-motion .topbar .classic-bank-count b{font-size:18px!important}
}
@media(max-width:900px){body[data-site-home].home-motion .topbar.classic-mascot-header{--lion-scale:.52;gap:10px!important}}

/* A single horizontal band on phones: recognizable shortcuts with native accessible names. */
@media(max-width:760px){
  body[data-site-home].home-motion .topbar.classic-mascot-header{--lion-scale:.53;gap:8px!important;padding:9px 12px!important}
  body[data-site-home].home-motion .topbar>.top-actions,
  body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking{
    display:flex!important;order:0!important;flex:1 1 0!important;flex-wrap:nowrap!important;
    min-height:56px!important;padding:5px!important;gap:4px!important;grid-template-columns:none!important;border-radius:18px!important;
  }
  body[data-site-home].home-motion .topbar>.top-actions>button,
  body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking>button,
  body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{
    flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;
    height:44px!important;min-height:44px!important;padding:3px!important;font-size:0!important;gap:0!important;border-radius:12px!important;
  }
  body[data-site-home].home-motion .topbar>.top-actions>.home-world-ranking-open{min-width:0!important;font-size:0!important}
  body[data-site-home].home-motion .topbar .home-world-ranking-open>span{display:none!important}
  body[data-site-home].home-motion .topbar .home-world-ranking-icon{width:32px!important;height:32px!important}
  body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{flex:1.2 1 0!important;min-width:0!important;padding:0!important}
  body[data-site-home].home-motion .topbar .classic-bank-art.home-bank-art{width:40px!important;height:40px!important;flex:0 0 40px!important}
  body[data-site-home].home-motion .topbar .classic-bank-count{position:absolute!important;right:1px!important;bottom:1px!important;align-items:center!important;min-width:14px!important;padding:1px 2px!important;border-radius:5px!important;background:#edf3ffed!important;pointer-events:none}
  body[data-site-home].home-motion .topbar .classic-bank-count b{font-size:10px!important;line-height:10px!important}
  body[data-site-home].home-motion .topbar .classic-bank-count small{font-size:6px!important;line-height:7px!important}
  body[data-site-home].home-motion .topbar>.top-actions>#language-toggle{flex:.8 1 0!important;font-size:11px!important}
  body[data-site-home].home-motion .topbar .language-button>span{display:none!important}
  body[data-site-home].home-motion .topbar #account-access::before,
  body[data-site-home].home-motion .topbar .friends-toolbar-trigger::before{content:'';display:block;width:24px;height:24px;background:currentColor;flex:none;mask-position:center;mask-repeat:no-repeat;mask-size:contain}
  body[data-site-home].home-motion .topbar #account-access::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4h6v16h-6M3 12h12m-4-4 4 4-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
  body[data-site-home].home-motion .topbar .friends-toolbar-trigger::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M2 20v-3a7 7 0 0 1 14 0v3zM16 4a3 3 0 0 1 0 6m2 3a6 6 0 0 1 4 6v1h-4' fill='black' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E")}
  body[data-site-home].home-motion .topbar .friends-online-count{position:absolute!important;right:2px!important;top:2px!important;min-width:14px!important;width:auto!important;height:14px!important;padding:1px 3px!important;box-sizing:border-box!important;font-size:9px!important;line-height:12px!important;border-radius:5px!important}
  body[data-site-home].home-motion .topbar .profile-chip-name,
  body[data-site-home].home-motion .topbar .profile-chip .chevron{display:none!important}
  body[data-site-home].home-motion .topbar .profile-avatar{width:30px!important;height:34px!important;flex:none!important}
}
@media(max-width:600px){body[data-site-home].home-motion .topbar.classic-mascot-header{--lion-scale:.43;gap:6px!important;padding:8px 10px!important}}
@media(max-width:360px){
  body[data-site-home].home-motion .topbar.classic-mascot-header{--lion-scale:.35;gap:5px!important;padding:8px!important}
  body[data-site-home].home-motion .topbar>.top-actions,
  body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking{padding:4px!important;gap:2px!important;min-height:50px!important}
  body[data-site-home].home-motion .topbar>.top-actions>button,
  body[data-site-home].home-motion .topbar>.top-actions.has-world-ranking>button,
  body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{height:40px!important;min-height:40px!important;padding:1px!important}
  body[data-site-home].home-motion .topbar .home-world-ranking-icon{width:27px!important;height:28px!important}
  body[data-site-home].home-motion .topbar .classic-bank-art.home-bank-art{width:34px!important;height:34px!important;flex-basis:34px!important}
  body[data-site-home].home-motion .topbar .profile-avatar{width:26px!important;height:30px!important}
  body[data-site-home].home-motion .topbar #language-toggle{font-size:10px!important}
}

/* The connected account owns its sign-out action; the home header stays clear. */
body[data-site-home].home-motion .topbar #account-access[hidden],body[data-site-home] #profile-signout[hidden]{display:none!important}
body[data-site-home] #profile-dialog #profile-form .studio-footer .profile-signout{display:block;width:100%;min-height:34px;margin:6px 0 0;padding:7px 12px;border:1px solid #e1a5b3;border-radius:9px;background:#fff4f6;color:#9e1738;font:800 12px/16px 'Trebuchet MS',Arial,sans-serif;text-align:center;cursor:pointer}
body[data-site-home] #profile-signout:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){
 body[data-site-home].home-motion .topbar>.top-actions>#account-access:not([hidden]){display:flex!important;flex:1.35 1 0!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;font-size:8px!important;line-height:9px!important;white-space:nowrap!important}
 body[data-site-home].home-motion .topbar #account-access::before{width:18px!important;height:18px!important}
}
@media(max-width:360px){body[data-site-home].home-motion .topbar>.top-actions>#account-access:not([hidden]){font-size:7px!important}}

/* Compact XP counter: no bank building in the home header. */
body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{
 display:flex!important;position:relative!important;align-self:center!important;
 flex:0 0 auto!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 width:max-content!important;min-width:42px!important;height:42px!important;min-height:42px!important;
 padding:3px 7px!important;gap:0!important;border:1px solid #bfd4f4!important;border-radius:999px!important;
 background:linear-gradient(160deg,#fff,#e8f1ff)!important;box-shadow:0 2px 6px #14386a12!important;overflow:visible!important;
}
body[data-site-home].home-motion .topbar .classic-bank-art.home-bank-art{display:none!important}
body[data-site-home].home-motion .topbar .classic-bank-count{
 position:static!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;gap:1px!important;background:transparent!important;box-shadow:none!important;border:0!important;
 color:#14386a!important;line-height:1!important;pointer-events:none;
}
body[data-site-home].home-motion .topbar .classic-bank-count::before,
body[data-site-home].home-motion .topbar .classic-bank-count::after{content:none!important;display:none!important;animation:none!important}
body[data-site-home].home-motion .topbar .classic-bank-count b{
 color:#14386a!important;text-shadow:none!important;font-size:13px!important;font-weight:900!important;line-height:14px!important;
 font-variant-numeric:tabular-nums;white-space:nowrap!important;letter-spacing:-.4px!important;
}
body[data-site-home].home-motion .topbar .classic-bank-count small{
 color:#35547c!important;text-shadow:none!important;font-size:9px!important;font-weight:900!important;line-height:10px!important;letter-spacing:.5px!important;
}
@media(max-width:360px){
 body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{min-width:38px!important;height:38px!important;min-height:38px!important;padding-inline:5px!important}
 body[data-site-home].home-motion .topbar .classic-bank-count b{font-size:12px!important;line-height:13px!important}
}

/* Subtle embossed XP lettering and amount, badge geometry unchanged. */
body[data-site-home].home-motion .topbar .classic-bank-count b,
body[data-site-home].home-motion .topbar .classic-bank-count small{
 color:#23558f!important;
 text-shadow:0 -1px 0 #fff,0 .6px 0 #14386a,0 1.2px 0 #102e56,0 1.8px 1.2px #14386a32!important;
}

/* XP typography must never inherit bank clipping/ellipsis. */
body[data-site-home].home-motion .topbar .classic-bank-count,
body[data-site-home].home-motion .topbar .classic-bank-count b,
body[data-site-home].home-motion .topbar .classic-bank-count small{
 overflow:visible!important;text-overflow:clip!important;max-height:none!important;flex-shrink:0!important;
}
body[data-site-home].home-motion .topbar .classic-bank-count{padding:2px!important;gap:0!important}
body[data-site-home].home-motion .topbar .classic-bank-count b{
 display:block!important;font-size:14px!important;line-height:18px!important;letter-spacing:0!important;
 color:#164a81!important;text-shadow:0 -1px 0 #fff,0 .75px 0 #0d2f57,0 1.25px 1px #14386a24!important;
}
body[data-site-home].home-motion .topbar .classic-bank-count small{
 display:block!important;font-size:10px!important;line-height:13px!important;color:#164a81!important;
 text-shadow:0 -1px 0 #fff,0 .65px 0 #0d2f57!important;
}
body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{padding-inline:6px!important}
body[data-site-home].home-motion .topbar .friends-toolbar-trigger{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}
body[data-site-home].home-motion .topbar .friends-toolbar-trigger::before{
 content:''!important;display:block!important;flex:0 0 28px!important;width:28px!important;height:28px!important;
 mask:none!important;-webkit-mask:none!important;background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20fill%3D%22%23174b81%22%20opacity%3D%22.35%22%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%228%22%20r%3D%224.5%22%2F%3E%3Cpath%20d%3D%22M16%2029V20a7%207%200%200%201%2014%200v9z%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23174b81%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2210%22%20r%3D%225%22%2F%3E%3Cpath%20d%3D%22M2%2029v-7a9%209%200%200%201%2018%200v7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat!important;
}
@media(max-width:760px){
 body[data-site-home].home-motion .topbar>.top-actions>.friends-toolbar-trigger{min-width:30px!important;gap:0!important}
 body[data-site-home].home-motion .topbar .friends-toolbar-trigger::before{width:25px!important;height:25px!important;flex-basis:25px!important}
 body[data-site-home].home-motion .topbar .friends-online-count{top:-3px!important;right:-3px!important;min-width:12px!important;height:12px!important;font-size:8px!important;line-height:10px!important;padding:1px 2px!important}
}
@media(max-width:360px){
 body[data-site-home].home-motion .topbar .classic-bank-count b{font-size:12px!important;line-height:16px!important}
 body[data-site-home].home-motion .topbar .classic-bank-count small{font-size:9px!important;line-height:11px!important}
 body[data-site-home].home-motion .topbar>.top-actions>.classic-xp-bank.home-bank-trigger{padding-inline:4px!important}
}
