/* TO THE BEATZ v21.9.1 */
#ttb2191-cosmetics{margin:15px 0 22px;padding:13px 10px;border:1px solid #345466;border-radius:19px;background:linear-gradient(150deg,#101c2b,#08101a);color:#fff}
.ttb2191-header h3{margin:0 0 3px;font-size:16px}.ttb2191-header small,.ttb2191-preview small{font-size:11px;color:#9eb5c6}.ttb2191-tabs,.ttb2191-go-shop{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}
.ttb2191-tabs button,.ttb2191-go-shop button{min-height:40px;border-radius:11px;border:1px solid #387089;background:#0c2435;color:#e3fbff;font-weight:800}.ttb2191-tabs button.active{background:#126c8a;border-color:#5fe4ee}
.ttb2191-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ttb2191-card{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid #2a4657;background:#09111e;border-radius:14px;padding:7px 5px;text-align:center}.ttb2191-card strong{font-size:11px;min-height:25px;display:grid;place-items:center}.ttb2191-card small{font-size:9px;color:#a5b6c3}.ttb2191-card b{font-size:10px;color:#ffe082}
.ttb2191-card button{min-height:33px;width:100%;border:1px solid #49b8d6;background:#16546b;border-radius:9px;color:#fff;font-size:10px;font-weight:900}.ttb2191-card button:disabled{opacity:.55}
.ttb2191-art{position:relative;width:100%;aspect-ratio:1/1;display:grid;place-items:center;overflow:visible;min-width:0}.ttb2191-art.frame img{width:100%;height:100%;object-fit:contain;object-position:50% 50%;aspect-ratio:1/1;display:block}.ttb2191-art.avatar{overflow:hidden;border-radius:50%;width:83%;margin:0 auto;aspect-ratio:1/1;border:1px solid #365367}.ttb2191-art.avatar img{position:absolute;width:170%;height:170%;max-width:none;object-fit:cover;object-position:50% 20%;top:-16%;left:-35%;border-radius:0;transform:none}
.ttb2191-preview{display:flex;gap:16px;align-items:center;padding:13px;background:#071521;border:1px solid #25465c;border-radius:15px;margin-top:12px}.ttb2191-preview>div{display:flex;flex-direction:column;gap:4px}.ttb2191-avatar-display{width:96px;height:96px;aspect-ratio:1;position:relative;flex:none;border-radius:50%;background:#15283a;display:grid;place-items:center;isolation:isolate}.ttb2191-preview-photo{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 23%;z-index:1}.ttb2191-preview .ttb2191-frame-layer{z-index:3}.ttb2191-placeholder{font-size:38px;font-weight:900}
.ttb2191-message{color:#ffc47f;font-size:11px}.ttb2191-empty{grid-column:1/-1;color:#9eb6c6;font-size:12px;text-align:center}.ttb2191-go-shop button{font-size:11px;min-height:43px}
/* One shared avatar + ring composition, 1:1 irrespective of viewport or parent */
.ttb2191-user-avatar{position:relative!important;isolation:isolate!important;overflow:visible!important;aspect-ratio:1!important;flex-shrink:0!important;border-radius:50%!important}
.ttb2191-user-avatar>.ttb2191-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important;object-position:50% 23%!important;z-index:2!important;pointer-events:none!important}
.ttb2191-frame-layer{position:absolute!important;left:-14%!important;top:-14%!important;width:128%!important;height:128%!important;max-width:none!important;aspect-ratio:1!important;object-fit:contain!important;border-radius:0!important;z-index:5!important;pointer-events:none!important}
/* Prevent the old 2166 straight-hand override and restore clear 30px lift */
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand,#ttb-v200-battle-root .battle-hand-v11 .battle-hand,#ttbSoloV210 .battle-hand-v11 .battle-hand{overflow:visible!important;padding-top:34px!important;padding-bottom:10px!important;min-height:130px!important;height:auto!important;align-items:flex-end!important}
.battle-fullscreen-v11 .battle-hand-v11 .hand-card.v188-fan-card.selected,.battle-fullscreen-v11 .battle-hand-v11 .hand-card.v188-fan-card.refresh-selected,#ttb-v200-battle-root .battle-hand-v11 .hand-card.v188-fan-card.selected,#ttb-v200-battle-root .battle-hand-v11 .hand-card.v188-fan-card.refresh-selected,#ttbSoloV210 .battle-hand-v11 .hand-card.v188-fan-card.selected,#ttbSoloV210 .battle-hand-v11 .hand-card.v188-fan-card.refresh-selected{transform:translate3d(0,-31px,0) rotate(var(--fan-rotate,0deg)) scale(1.055)!important;z-index:99!important;box-shadow:0 0 0 2px #55e8fc,0 14px 20px #000b!important;border-color:#adf6ff!important;position:relative!important}
.battle-fullscreen-v11 .battle-hand-v11,#ttb-v200-battle-root .battle-hand-v11,#ttbSoloV210 .battle-hand-v11{overflow:visible!important}
@media(max-width:390px){#ttb2191-cosmetics{padding:11px 7px}.ttb2191-grid{gap:5px}.ttb2191-card{padding:6px 3px}.ttb2191-card button{font-size:9px}}
@media(prefers-reduced-motion:reduce){.hand-card.v188-fan-card{transition:none!important}}
/* Keep legacy inexpensive profile actions disabled until their authoritative RPC prices are migrated. */
.v61-profile-editor{display:none!important}

/* TO THE BEATZ v21.9.2 — avatar circles, frames and game hand */
#ttb2192-shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
#ttb2192-shop-tabs button{min-width:0;min-height:45px;padding:8px 3px;background:#0d2130;border:1px solid #32566e;color:#defaff;border-radius:12px;font-weight:850;font-size:clamp(10px,2.8vw,14px)}
#ttb2192-shop-tabs button.active{background:#15738f;border-color:#58dce8;color:white}
#ttb2191-cosmetics[hidden],.shop-panel-v12[hidden]{display:none!important}
#ttb2191-cosmetics .ttb2191-tabs{display:none!important} /* shop uses the three section buttons */
/* Profile still uses its Avatar / Cornici choice */
body #ttb2191-cosmetics.ttb2192-profile .ttb2191-tabs{display:grid!important}
.ttb2191-preview{min-width:0}
.ttb2191-preview>div{min-width:0}
.ttb2191-avatar-display{width:clamp(70px,23vw,104px)!important;height:auto!important;aspect-ratio:1/1!important;min-width:0!important;border-radius:50%!important;overflow:visible!important;flex:0 0 auto!important}
.ttb2191-preview-photo{width:100%!important;height:100%!important;aspect-ratio:1!important;inset:0!important;border-radius:50%!important;object-fit:cover!important}
.ttb2191-art.avatar{width:min(100%,118px)!important;aspect-ratio:1!important;height:auto!important;border-radius:50%!important;overflow:hidden!important;position:relative!important;isolation:isolate!important}
.ttb2191-art.avatar>img{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 26%!important;max-width:100%!important;max-height:100%!important;border-radius:50%!important;transform:scale(1.9)!important;transform-origin:50% 27%!important}
.ttb2191-card{min-width:0!important}
.ttb2191-card .ttb2191-art.frame{aspect-ratio:1!important;width:100%!important;height:auto!important}
.ttb2191-card .ttb2191-art.frame img{aspect-ratio:1!important;object-fit:contain!important}
.ttb2191-user-avatar{display:inline-grid!important;place-items:center!important;width:36px!important;height:36px!important;aspect-ratio:1!important;border-radius:50%!important;overflow:visible!important;box-sizing:border-box!important}
.topbar button.ttb2191-user-avatar[data-nav="profile"]{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:50%!important;overflow:visible!important}
.ttb2191-user-avatar>.ttb2191-photo{border-radius:50%!important;overflow:hidden!important;object-fit:cover!important}
.ttb2191-user-avatar>img:not(.ttb2191-frame-layer):not(.ttb2191-photo){width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.ttb2191-frame-layer{border-radius:0!important;object-fit:contain!important;z-index:20!important}
/* Avoid avatar images being squared off by generic battle selectors */
.battle-player-v11 .ttb2191-user-avatar,.v200-mini-avatar.ttb2191-user-avatar,.ttb216-player-avatar-wrap.ttb2191-user-avatar{width:34px!important;height:34px!important;border-radius:50%!important;overflow:visible!important;flex:0 0 34px!important}
.battle-player-v11 .ttb2191-user-avatar>img:not(.ttb2191-frame-layer){width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important}
/* Keep selected cards fully visible above the bottom action, never beneath it. */
.battle-fullscreen-v11 .battle-hand-v11,#ttbSoloV210 .battle-hand-v11,#ttb-v200-battle-root .battle-hand-v11{position:relative!important;z-index:5!important;overflow:visible!important;padding:0 3px 14px!important;min-height:148px!important}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand,#ttbSoloV210 .battle-hand-v11 .battle-hand,#ttb-v200-battle-root .battle-hand-v11 .battle-hand{height:130px!important;min-height:130px!important;padding:17px 4px 8px!important;overflow:visible!important;align-items:center!important;box-sizing:border-box!important}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card,#ttbSoloV210 .battle-hand-v11 .battle-hand>.v188-fan-card,#ttb-v200-battle-root .battle-hand-v11 .battle-hand>.v188-fan-card{height:clamp(85px,11dvh,108px)!important;max-height:108px!important;align-self:center!important;transition:transform .19s ease-out!important}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card.selected,.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card.refresh-selected,#ttbSoloV210 .battle-hand-v11 .battle-hand>.v188-fan-card.selected,#ttbSoloV210 .battle-hand-v11 .battle-hand>.v188-fan-card.refresh-selected,#ttb-v200-battle-root .battle-hand-v11 .battle-hand>.v188-fan-card.selected,#ttb-v200-battle-root .battle-hand-v11 .battle-hand>.v188-fan-card.refresh-selected{transform:translateY(calc(var(--fan-offset,0px) - 25px)) rotate(var(--fan-rotate,0deg)) scale(1.045)!important;z-index:100!important}
.battle-fullscreen-v11 .battle-actions-v11,#ttbSoloV210 .battle-actions-v11,#ttb-v200-battle-root .battle-actions-v11{position:relative!important;z-index:4!important;margin-top:5px!important}
@media(max-height:760px){.battle-fullscreen-v11 .battle-hand-v11,#ttbSoloV210 .battle-hand-v11,#ttb-v200-battle-root .battle-hand-v11{min-height:125px!important}.battle-fullscreen-v11 .battle-hand-v11 .battle-hand,#ttbSoloV210 .battle-hand-v11 .battle-hand,#ttb-v200-battle-root .battle-hand-v11 .battle-hand{height:108px!important;min-height:108px!important;padding-top:8px!important}.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card,#ttbSoloV210 .battle-hand-v11 .battle-hand>.v188-fan-card,#ttb-v200-battle-root .battle-hand-v11 .battle-hand>.v188-fan-card{height:85px!important}}

/* Reserve the hand its own grid row to prevent the lower action button obscuring cards. */
.battle-fullscreen-v11{grid-template-rows:42px 25px 26px minmax(140px,1fr) 27px 34px 146px 44px!important}
@media(max-height:760px){.battle-fullscreen-v11{grid-template-rows:38px 21px 23px minmax(130px,1fr) 23px 30px 122px 40px!important}.battle-fullscreen-v11 .battle-hand-v11,#ttbSoloV210 .battle-hand-v11,#ttb-v200-battle-root .battle-hand-v11{min-height:0!important}}
