/* v21.9.6: consistent circular header + distinct Shop tabs + touch carousel */
.topbar .top-actions-v12 button[data-nav="profile"]{position:relative!important;width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;aspect-ratio:1!important;padding:0!important;border-radius:50%!important;background-clip:padding-box!important;overflow:visible!important;flex:0 0 43px!important;isolation:isolate!important;box-shadow:0 0 0 1px rgba(95,230,243,.34)!important;}
.topbar .top-actions-v12 button[data-nav="profile"]>img:not(.ttb2191-frame-layer){position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;clip-path:circle(50% at 50% 50%)!important;}
.topbar .top-actions-v12 button[data-nav="profile"]>.ttb2191-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;clip-path:circle(50% at 50% 50%)!important;z-index:3!important;}
.topbar .top-actions-v12 button[data-nav="profile"]>.ttb2191-frame-layer{position:absolute!important;left:-16%!important;top:-16%!important;width:132%!important;height:132%!important;object-fit:contain!important;z-index:8!important;clip-path:none!important;filter:none!important;}
/* Only the selected section is displayed. Original booster carousel preserved untouched. */
/* v22.4: section-specific booster heading now hidden via ttb222-old-heading instead */
.shop-head-v12.ttb2196-nonbooster{padding:0!important;margin:0!important;min-height:0!important;}
.page:has(#ttb2192-shop-tabs) .v35-shop-panel[hidden],.page:has(#ttb2192-shop-tabs) .shop-panel-v12[hidden],#ttb2191-cosmetics[hidden]{display:none!important;}
#ttb2192-shop-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:14px 0 18px!important;padding:5px!important;border-radius:18px!important;background:rgba(8,22,34,.96)!important;border:1px solid rgba(86,180,207,.28)!important;}
#ttb2192-shop-tabs button{border-radius:13px!important;min-height:54px!important;border:1px solid transparent!important;background:rgba(17,36,53,.8)!important;color:#a9c1d1!important;font-size:clamp(11px,2.75vw,14px)!important;font-weight:950!important;letter-spacing:.045em!important;}
#ttb2192-shop-tabs button.active{background:linear-gradient(135deg,#1bd4e9,#1379b4)!important;border-color:#89faff!important;color:#051019!important;box-shadow:0 4px 20px rgba(26,219,241,.18)!important;}
#ttb2191-cosmetics.ttb2196-shop{border-radius:22px!important;margin-top:0!important;padding:18px 12px 14px!important;background:linear-gradient(155deg,rgba(13,35,53,.98),rgba(5,11,22,.99))!important;}
.ttb2196-section-header{text-align:center;display:grid;gap:7px;margin-bottom:13px}.ttb2196-section-header h2{font-size:clamp(21px,5vw,29px);font-weight:950;letter-spacing:-.035em;color:#fff;margin:0}.ttb2196-section-header p{color:#aac3d1;font-size:12px;line-height:1.45;margin:0 auto;max-width:38ch}
.ttb2196-wheel{width:100%;max-width:550px;margin:0 auto;text-align:center;overflow:hidden}
.ttb2196-wheel-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:clamp(232px,64vw,320px);isolation:isolate;overflow:hidden;touch-action:pan-y;}
.ttb2196-wheel-stage:before{content:"";position:absolute;inset:9% 16%;background:radial-gradient(circle,rgba(41,212,248,.2),transparent 65%);pointer-events:none}
.ttb2196-wheel-center{position:relative;z-index:4;display:grid;place-items:center;width:clamp(175px,46vw,256px);height:clamp(175px,46vw,256px);flex:none;filter:drop-shadow(0 12px 18px rgba(0,0,0,.45));animation:ttb2196-arrive .24s ease-out both}
@keyframes ttb2196-arrive{from{opacity:.65;transform:scale(.91) rotate(-4deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.ttb2196-wheel-avatar{position:relative;width:74%;height:74%;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#284b6c,#0d182a);box-shadow:0 0 0 2px rgba(99,198,230,.38)}
.ttb2196-wheel-photo{width:100%!important;height:100%!important;position:absolute!important;inset:0!important;object-fit:cover!important;object-position:center 23%!important;border-radius:50%!important;clip-path:circle(50%)!important;}
.ttb2196-wheel-ring{position:absolute!important;left:-25%!important;top:-25%!important;width:150%!important;height:150%!important;max-width:none!important;object-fit:contain!important;pointer-events:none!important;z-index:5!important;}
.ttb2196-placeholder{font-size:70px;color:white;font-weight:900}
.ttb2196-wheel-side{position:absolute!important;z-index:2!important;top:50%!important;width:clamp(98px,26vw,154px)!important;height:clamp(132px,37vw,194px)!important;border:0!important;background:transparent!important;color:#a5c0d4!important;opacity:.42!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:4px!important;transform:translateY(-50%) scale(.78)!important;cursor:pointer!important;}
.ttb2196-wheel-side.left{left:-5%!important;transform:translateY(-50%) scale(.78) rotate(-13deg)!important}.ttb2196-wheel-side.right{right:-5%!important;transform:translateY(-50%) scale(.78) rotate(13deg)!important}
.ttb2196-wheel-side img{width:100%!important;max-height:155px!important;object-fit:contain!important;aspect-ratio:1!important;border-radius:50%!important}.ttb2196-wheel-side span{font-size:10px!important;font-weight:800!important;max-width:95px!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important;}
.ttb2196-wheel-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:9px;margin-top:0}
.ttb2196-wheel-controls>button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid #3c879c;background:#0e3449;color:#efffff;font-size:33px;line-height:1;cursor:pointer}
.ttb2196-wheel-name{min-width:0;display:grid;gap:4px}.ttb2196-wheel-name strong{font-size:19px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ttb2196-wheel-name small{font-size:11px;color:#ffdf79;font-weight:850;letter-spacing:.04em}
.ttb2196-wheel-dots{display:flex;justify-content:center;gap:5px;margin:13px 0 15px;flex-wrap:wrap}.ttb2196-wheel-dots button{padding:0;width:7px;height:7px;border-radius:50%;border:0;background:#476176}.ttb2196-wheel-dots button.active{width:19px;border-radius:8px;background:#3fe5f4}
.ttb2196-wheel-actions{display:grid;gap:9px;grid-template-columns:1fr;max-width:350px;margin:auto}.ttb2196-wheel-actions button{min-height:48px;border-radius:12px;font-weight:950;font-size:12px;letter-spacing:.02em;cursor:pointer;padding:9px}.ttb2196-spin{background:#102c41;border:1px solid #3285a1;color:#cbfaff}.ttb2196-purchase{background:linear-gradient(100deg,#26d8ed,#1b97c3);border:1px solid #74f1ff;color:#04151e}.ttb2196-purchase:disabled{opacity:.66}.ttb2196-wheel-hint{font-size:10px;color:#89a7b9;margin:14px auto 0;max-width:38ch;line-height:1.5}
/* Compact HUD: identity above, aligned counters in an independent row. */
.battle-top-v11 .battle-player-v11{background:linear-gradient(120deg,rgba(14,39,58,.8),rgba(12,24,42,.9))!important;border:1px solid rgba(86,168,204,.24)!important;border-radius:15px!important;min-height:65px!important;padding:6px 7px!important;gap:4px 7px!important;}
.battle-top-v11 .battle-player-v11>b{font-size:clamp(10px,2.8vw,13px)!important;line-height:16px!important;}
.battle-top-v11 .battle-player-v11>span.ttb2194-battle-counts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;margin-top:4px!important;}
.ttb2194-battle-counts em{border:1px solid rgba(75,151,185,.24)!important;background:rgba(5,15,30,.55)!important;border-radius:7px!important;padding:4px 1px!important;display:flex!important;flex-direction:column!important;gap:3px!important;font-size:clamp(7px,1.8vw,10px)!important;color:#9cbdd0!important;line-height:1!important;font-weight:800!important;}
.ttb2194-battle-counts em b{font-size:clamp(11px,2.9vw,16px)!important;color:#f7fdff!important;}
.battle-top-v11{min-height:70px!important;align-items:center!important;}
.battle-top-v11 .battle-player-v11 .v200-top-profile{grid-template-columns:30px minmax(0,1fr)!important;gap:8px!important;}
@media(max-width:390px){.ttb2196-wheel-stage{min-height:240px}.battle-top-v11 .battle-player-v11{padding:5px 4px!important}.ttb2194-battle-counts em{font-size:7px!important}}
@media(prefers-reduced-motion:reduce){.ttb2196-wheel-center{animation:none!important}}

/* Give the refreshed status HUD its own grid track. */
.battle-fullscreen-v11{grid-template-rows:70px 25px 26px minmax(140px,1fr) 27px 34px 146px 44px!important;}
@media(max-height:760px){.battle-fullscreen-v11{grid-template-rows:64px 21px 23px minmax(130px,1fr) 23px 30px 122px 40px!important;}}

/* v23.19 override anchor */
.battle-top-v11 .battle-player-v11>span.ttb2194-battle-counts,.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;white-space:nowrap!important}.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em{display:inline-flex!important;flex-direction:row!important;background:transparent!important;border:0!important;padding:0!important}