/* White silhouettes already include their black edge in the SVG artwork. */
@layer ballerClaudeHome {
 :root[data-baller-type] :is(.bc-plaza-back,.bc-page-corner,.og-back)>.bc-solid-back {
  display:block!important;
  position:static!important;
  width:27px!important;
  height:35px!important;
  max-width:72%!important;
  max-height:82%!important;
  object-fit:contain!important;
  transform:translateY(-2px)!important;
  filter:none!important;
  pointer-events:none!important;
 }
 :root[data-baller-type] :is(.bc-page-home,.bc-plaza-home-link)>.bc-solid-home {
  display:block!important;
  width:34px!important;
  height:34px!important;
  max-width:76%!important;
  max-height:82%!important;
  object-fit:contain!important;
  filter:none!important;
  pointer-events:none!important;
 }
 :root[data-baller-type] .bc-page-bar:has(>.bc-store-balance) {
  grid-template-columns:44px minmax(0,1fr) auto 44px!important;
 }
 :root[data-baller-type].is-plaza-lobby :is(#closeBallers,#rosterHome)>img {
  filter:none!important;
 }
 :root[data-baller-type].is-plaza-lobby #closeBallers>img {
  translate:0 -2px;
 }
 @media(orientation:landscape) {
  .bc-claude-home .bc-home-shortcuts {
   position:absolute;
   top:calc(var(--bc-claude-offset-y) + 100 * var(--bc-claude-unit));
   right:calc(var(--bc-claude-offset-x) + 24 * var(--bc-claude-unit));
   display:grid;
   gap:calc(24 * var(--bc-claude-unit));
   pointer-events:auto;
  }
  .bc-claude-chrome .bc-plaza-corners>button,
  :root[data-baller-type] .bc-shop-page:has(.bc-plaza-store)>.bc-page-bar>.bc-page-corner {
   box-sizing:border-box!important;
   background:var(--bc-claude-gray-surface)!important;
   border:1px solid #000!important;
   border-bottom-width:var(--bc-claude-button-bottom-edge)!important;
   border-radius:var(--bc-claude-button-radius)!important;
   box-shadow:var(--bc-claude-button-shadow)!important;
   color:white!important;
   touch-action:manipulation;
   position:absolute!important;
   top:calc(var(--bc-claude-offset-y) + 14 * var(--bc-claude-unit))!important;
   display:grid!important;
   place-items:center;
   width:calc(66 * var(--bc-claude-unit))!important;
   height:calc(66 * var(--bc-claude-unit))!important;
   min-height:0!important;
   padding:0!important;
   pointer-events:auto;
  }
  .bc-claude-chrome .bc-plaza-corners>.bc-plaza-back,
  :root[data-baller-type] .bc-shop-page:has(.bc-plaza-store)>.bc-page-bar>.bc-page-back {
   left:calc(var(--bc-claude-offset-x) + 24 * var(--bc-claude-unit))!important;
  }
  .bc-claude-chrome .bc-plaza-corners>.bc-plaza-home-link,
  :root[data-baller-type] .bc-shop-page:has(.bc-plaza-store)>.bc-page-bar>.bc-page-home {
   right:calc(var(--bc-claude-offset-x) + 24 * var(--bc-claude-unit))!important;
  }
  :is(.bc-home-shortcuts,.bc-plaza-corners)>button:focus-visible {
   outline:2px solid #9befff;
   outline-offset:2px;
  }
  :root[data-baller-type] .bc-trophy-scene.og-modal>header>:is(.og-back,.bc-page-home) {
   pointer-events:auto!important;
  }
  :root[data-baller-type] .bc-trophy-scene.og-modal>header>.bc-page-home {
   position:static!important;
   grid-column:-2;
   grid-row:1/3;
   display:grid;
   place-items:center;
   width:38px;
   height:38px;
   padding:0;
  }
  :root[data-baller-type] .bc-claude-chrome button.bc-plaza-settings {
   height:calc(50 * var(--bc-claude-unit))!important;
  }
 }
}

/* One navigation treatment for native pages and the Ballers roster iframe. */
@layer ballerLilitaEverywhere {
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash :is(button.bc-page-corner,button.bc-plaza-back,button.bc-plaza-home-link,button.og-back:has(>.bc-solid-back)),
 :root[data-baller-type].is-plaza-lobby #ballerPicker :is(#closeBallers,#rosterHome) {
  box-sizing:border-box!important;place-items:center!important;flex:none!important;
  width:60px!important;height:42px!important;min-width:0!important;min-height:0!important;
  padding:4px 10px!important;margin:0!important;border:1.5px solid #000!important;border-bottom-width:4px!important;border-radius:4px!important;
  background:linear-gradient(#5e5576 0 10%,#353c52 10% 85%,#272c3d 85%)!important;
  box-shadow:0 3px 1px #0008!important;transform:skew(-5deg)!important;clip-path:none!important;filter:none!important;overflow:visible!important;
 }
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash :is(button.bc-page-corner,button.bc-plaza-back,button.bc-plaza-home-link,button.og-back:has(>.bc-solid-back))::before,
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash :is(button.bc-page-corner,button.bc-plaza-back,button.bc-plaza-home-link,button.og-back:has(>.bc-solid-back))::after {content:none!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash .bc-page-bar:not(:where(.bc-master-profile>.bc-page-bar)) {
  position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;
  height:56px!important;min-height:56px!important;padding:7px calc(90px + env(safe-area-inset-right)) 7px calc(90px + env(safe-area-inset-left))!important;
 }
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash .bc-page-bar>h1 {flex:1!important;min-width:0!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash .bc-page-bar>button.bc-page-corner {
  position:absolute!important;top:max(7px,env(safe-area-inset-top))!important;bottom:auto!important;
 }
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash .bc-page-bar>button.bc-page-back {left:max(16px,env(safe-area-inset-left))!important;right:auto!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash .bc-page-bar>button.bc-page-home {right:max(16px,env(safe-area-inset-right))!important;left:auto!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash .bc-plaza-corners>:is(.bc-plaza-back,.bc-plaza-home-link) {top:max(7px,env(safe-area-inset-top))!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash dialog.og-modal>header:has(>:is(.bc-page-home,.og-back:has(>.bc-solid-back))) {
  min-height:54px!important;height:54px!important;padding-top:7px!important;padding-bottom:7px!important;
 }
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash dialog.bc-trophy-scene>header>:is(.og-back,.bc-page-home) {grid-row:1/3!important;align-self:center!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash dialog.bc-trophy-scene>header {grid-template-columns:60px minmax(0,1fr) auto 60px!important;gap:2px 8px!important;}
 :root[data-baller-type] .online-app.og-reference-v4.is-baller-clash :is(button.bc-page-corner,button.bc-plaza-back,button.bc-plaza-home-link,button.og-back) > :is(img.bc-solid-back,img.bc-solid-home),
 :root[data-baller-type].is-plaza-lobby #ballerPicker :is(#closeBallers,#rosterHome)>img {
  position:static!important;inset:auto!important;display:block!important;width:30px!important;height:30px!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:translateY(-3px)!important;translate:none!important;filter:none!important;
 }
 :root[data-baller-type].is-plaza-lobby #ballerPicker .roster-shell {grid-template-rows:56px minmax(0,1fr)!important;}
 /* The dossier hides the catalogue header. It must occupy the remaining
    canvas rather than the catalogue's reserved 56px header track. */
 :root[data-baller-type].is-plaza-lobby #ballerPicker .roster-shell:has(>#ballerDossier:not([hidden])) {grid-template-rows:minmax(0,1fr)!important;}
 :root[data-baller-type].is-plaza-lobby #ballerPicker .roster-header {padding:7px 16px!important;}
 :root[data-baller-type].is-plaza-lobby #ballerPicker :is(#closeBallers,#rosterHome) {position:relative!important;inset:auto!important;}
}
