/* v21.9.9 focused fix: persistent header frame, profile frame and balanced Shop. */
/* Entire image is a genuine, independent overlay, never a pseudo-element. */
.topbar button[data-nav="profile"],.topbar .top-actions-v12 button[data-nav="profile"] {
  position:relative!important;display:block!important;box-sizing:border-box!important;
  flex:0 0 46px!important;width:46px!important;height:46px!important;
  min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important;
  padding:0!important;overflow:visible!important;isolation:isolate!important;border-radius:50%!important;
  background:#0b1f30!important;clip-path:none!important;
}
.topbar button[data-nav="profile"]::before,.topbar button[data-nav="profile"]::after{content:none!important;background:none!important}
.topbar button[data-nav="profile"] > .v190-avatar-face,
.topbar button[data-nav="profile"] > .ttb2191-photo,
.topbar button[data-nav="profile"] > img:not(.ttb2191-frame-layer){position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:cover!important;border-radius:50%!important;clip-path:circle(49.5%)!important;
  pointer-events:none!important;z-index:1!important;}
.topbar button[data-nav="profile"] > img.ttb2191-frame-layer,
.topbar .top-actions-v12 button[data-nav="profile"] > img.ttb2191-frame-layer {
 position:absolute!important;inset:-23%!important;left:-23%!important;top:-23%!important;
 width:146%!important;height:146%!important;min-width:0!important;max-width:none!important;max-height:none!important;
 object-fit:contain!important;clip-path:none!important;transform:none!important;filter:none!important;
 opacity:1!important;display:block!important;pointer-events:none!important;z-index:999!important;
}
/* Profile: target the avatar itself (some versions omit .ttb42-hero wrapper). */
.ttb42-avatar.ttb2191-user-avatar,.profile-card .avatar.ttb2191-user-avatar{
 position:relative!important;overflow:visible!important;isolation:isolate!important;border-radius:50%!important;aspect-ratio:1!important;
}
.ttb42-avatar.ttb2191-user-avatar > img.ttb2191-frame-layer,.profile-card .avatar.ttb2191-user-avatar > img.ttb2191-frame-layer {
 position:absolute!important;top:-23%!important;left:-23%!important;inset:-23%!important;width:146%!important;height:146%!important;
 max-width:none!important;object-fit:contain!important;pointer-events:none!important;clip-path:none!important;z-index:99!important;
}
/* The large heading actually lives in the Buste panel; not outside of the tabs. */
/* v22.4: old first-child header hiding disabled; the shop title is a real heading */
.page:has(#ttb2192-shop-tabs) .shop-head-v12{margin:0 0 6px!important;padding:0!important;min-height:0!important;}
.page:has(#ttb2192-shop-tabs) .shop-head-v12 .shop-balance-v12{margin-left:auto!important}
.page:has(#ttb2192-shop-tabs) .v35-shop-panel[hidden],
.page:has(#ttb2192-shop-tabs) .shop-panel-v12[hidden]{display:none!important}
.ttb2199-booster-intro{margin:0 0 20px!important;padding:0 0 12px!important;text-align:left!important}
.ttb2199-booster-intro .page-title{font-size:clamp(24px,6.5vw,38px)!important;line-height:1.1!important}
/* Keep the ring carousel within the phone's viewport. No enlarged white panels. */
#ttb2191-cosmetics.ttb2196-shop{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:16px 12px!important;overflow:hidden!important}
#ttb2191-cosmetics .ttb2196-wheel{width:100%!important;max-width:100%!important;overflow:hidden!important}
#ttb2191-cosmetics .ttb2196-wheel-stage{width:100%!important;max-width:100%!important;height:clamp(245px,72vw,324px)!important;min-height:0!important;overflow:hidden!important}
#ttb2191-cosmetics .ttb2196-wheel-center{width:clamp(178px,48vw,242px)!important;height:clamp(178px,48vw,242px)!important;flex:0 0 clamp(178px,48vw,242px)!important}
#ttb2191-cosmetics .ttb2196-wheel-avatar{width:73%!important;height:73%!important;border-radius:50%!important}
#ttb2191-cosmetics .ttb2196-wheel-ring{left:-17%!important;top:-17%!important;width:134%!important;height:134%!important;max-width:none!important;object-fit:contain!important;transform:none!important;}
#ttb2191-cosmetics .ttb2196-wheel-stage img{background:transparent!important}
#ttb2191-cosmetics .ttb2196-wheel-side{max-width:30%!important}
@media(max-width:380px){.topbar button[data-nav="profile"]{flex-basis:42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important}}
