/* TO THE BEATZ v23.2 – compact battle identities */
.battle-fullscreen-v11 .battle-top-v11{grid-template-columns:clamp(30px,8vw,38px) minmax(0,1fr) 18px minmax(0,1fr) clamp(32px,8vw,40px)!important;gap:3px!important;min-height:0!important;height:57px!important;align-items:center!important;overflow:visible!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11{display:grid!important;grid-template-columns:31px minmax(0,1fr)!important;grid-template-rows:1fr!important;align-items:center!important;min-width:0!important;min-height:51px!important;max-height:55px!important;height:55px!important;padding:4px!important;gap:5px!important;overflow:visible!important;border-radius:13px!important;box-sizing:border-box!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident{grid-column:2!important;grid-row:1!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;overflow:hidden!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident>b{display:block!important;color:#fff!important;font-size:clamp(10px,2.6vw,14px)!important;line-height:1.15!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;margin:0!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident>.ttb2194-battle-counts{display:block!important;flex:none!important;white-space:nowrap!important;margin:0!important;overflow:hidden!important;font-size:clamp(6px,1.5vw,9px)!important;line-height:1.2!important;color:#9fbbcd!important;letter-spacing:0!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident .ttb2194-battle-counts em{display:inline!important;padding:0!important;margin:0!important;border:0!important;background:none!important;font-size:inherit!important;color:inherit!important;line-height:inherit!important;font-weight:500!important;font-style:normal!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident .ttb2194-battle-counts em:not(:last-child):after{content:' · ';white-space:pre}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident .ttb2194-battle-counts b{font-size:inherit!important;color:#c7dfed!important;display:inline!important;font-weight:700!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-icon{grid-column:1!important;grid-row:1!important;position:relative!important;display:block!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;float:none!important;border:0!important;border-radius:50%!important;overflow:visible!important;align-self:center!important;justify-self:center!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-icon img:not(.ttb2191-frame-layer){display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-icon img.ttb2191-frame-layer{position:absolute!important;inset:-16%!important;width:132%!important;height:132%!important;object-fit:contain!important;z-index:3!important;pointer-events:none!important}
.battle-fullscreen-v11 .battle-vs-v11{font-size:clamp(11px,2.7vw,15px)!important;text-align:center!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-icon img.ttb232-generic{object-fit:cover!important}
.battle-fullscreen-v11{grid-template-rows:58px 25px 26px minmax(140px,1fr) 27px 34px 146px 44px!important}
@media(max-height:760px){.battle-fullscreen-v11{grid-template-rows:58px 21px 23px minmax(130px,1fr) 23px 30px 122px 40px!important}}
@media(max-width:370px){.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11{grid-template-columns:26px minmax(0,1fr)!important;gap:3px!important;padding:3px!important}.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-icon{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important}.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11 .ttb232-ident>.ttb2194-battle-counts{font-size:6px!important}}
.ttb2196-wheel-hint[data-ttb225-note],.ttb2196-wheel-hint,#ttb231-rename-status,.ttb227-starter-help{display:none!important}

/* v23.15 battle header compact stats + avatar frame reliability */
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident>.ttb2194-battle-counts{display:flex!important;flex-wrap:wrap!important;gap:3px!important;white-space:normal!important;overflow:visible!important;margin:0!important;font-size:clamp(6px,1.6vw,8px)!important;line-height:1.05!important;color:#9fbbcd!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident .ttb2194-battle-counts em{display:inline-flex!important;align-items:center!important;gap:2px!important;padding:1px 4px!important;border-radius:999px!important;background:rgba(255,255,255,.07)!important;color:#9fbbcd!important;font-weight:600!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident .ttb2194-battle-counts em:not(:last-child):after{content:none!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident .ttb2194-battle-counts b{color:#fff!important;font-weight:800!important}
.battle-fullscreen-v11 .battle-top-v11 .v200-avatar-shell{position:relative!important;display:block!important;width:100%!important;height:100%!important}
.battle-fullscreen-v11 .battle-top-v11 .v200-avatar-shell .v200-face,.battle-fullscreen-v11 .battle-top-v11 .v200-avatar-shell .v200-face-letter{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:50%!important}
.battle-fullscreen-v11 .battle-top-v11 .v200-avatar-shell .v200-face{object-fit:cover!important}
.battle-fullscreen-v11 .battle-top-v11 .v200-avatar-shell .v200-face-letter{display:grid!important;place-items:center!important;background:#17304a!important;color:#fff!important;font-weight:800!important;font-size:12px!important}
.battle-fullscreen-v11 .battle-top-v11 .v200-avatar-shell .ttb2191-frame-layer{position:absolute!important;inset:-16%!important;width:132%!important;height:132%!important;object-fit:contain!important;pointer-events:none!important;z-index:3!important}


/* v23.17 — battle HUD counters compact and readable */
.battle-fullscreen-v11 .battle-top-v11{height:54px!important}
.battle-fullscreen-v11 .battle-top-v11 .battle-player-v11{min-height:48px!important;max-height:52px!important;height:52px!important;padding:4px 5px!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident{gap:2px!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident>.ttb2194-battle-counts,
#ttb-v200-battle-root .v200-top-profile .ttb2194-battle-counts{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;overflow:hidden!important;white-space:nowrap!important;margin:0!important;line-height:1!important;font-size:6px!important;letter-spacing:0!important;color:#9fbbcd!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident .ttb2194-battle-counts em,
#ttb-v200-battle-root .v200-top-profile .ttb2194-battle-counts em{display:inline-flex!important;align-items:center!important;gap:2px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;color:#9fbbcd!important;font-style:normal!important;font-weight:700!important;min-width:0!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident .ttb2194-battle-counts em:not(:last-child):after,
#ttb-v200-battle-root .v200-top-profile .ttb2194-battle-counts em:not(:last-child):after{content:'·'!important;color:rgba(255,255,255,.35)!important;margin-left:4px!important}
.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident .ttb2194-battle-counts b,
#ttb-v200-battle-root .v200-top-profile .ttb2194-battle-counts b{display:inline!important;font-size:inherit!important;line-height:1!important;color:#fff!important;font-weight:800!important}
#ttb-v200-battle-root .v200-top-profile>div:last-child{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;min-width:0!important}
#ttb-v200-battle-root .v200-top-profile b{display:block!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:390px){.battle-fullscreen-v11 .battle-top-v11 .ttb232-ident>.ttb2194-battle-counts,#ttb-v200-battle-root .v200-top-profile .ttb2194-battle-counts{font-size:5.5px!important;gap:3px!important}}


/* v23.19 – battle header final alignment: avatar left, name top, counters bottom horizontal */
.battle-top-v11{min-height:58px!important;align-items:center!important}
.battle-top-v11 .battle-player-v11{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:3px!important;align-items:center!important;min-height:48px!important;height:auto!important;padding:5px 7px!important;overflow:hidden!important}
.battle-top-v11 .battle-player-v11>.ttb232-icon{grid-column:1!important;grid-row:1 / span 2!important;width:30px!important;height:30px!important;align-self:center!important;display:grid!important;place-items:center!important;overflow:visible!important}
.battle-top-v11 .battle-player-v11>.ttb232-icon>img,.battle-top-v11 .battle-player-v11>.ttb232-icon .v200-mini-avatar,.battle-top-v11 .battle-player-v11>.ttb232-icon .ttb2191-user-avatar{width:30px!important;height:30px!important;max-width:none!important;flex:0 0 30px!important}
.battle-top-v11 .battle-player-v11>.ttb232-ident{grid-column:2!important;grid-row:1 / span 2!important;min-width:0!important;display:grid!important;grid-template-rows:auto auto!important;row-gap:2px!important;align-content:center!important}
.battle-top-v11 .battle-player-v11>.ttb232-ident>b,.battle-top-v11 .battle-player-v11>b{grid-row:1!important;display:block!important;min-width:0!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.05!important;font-size:clamp(10px,2.8vw,13px)!important}
.battle-top-v11 .battle-player-v11>.ttb232-ident>.ttb2194-battle-counts,.battle-top-v11 .battle-player-v11>.ttb2194-battle-counts{grid-row:2!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;min-width:0!important;overflow:hidden!important;margin:0!important;white-space:nowrap!important}
.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:3px!important;border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;margin:0!important;color:#9fc1d5!important;font-size:7px!important;line-height:1!important;font-style:normal!important;font-weight:800!important;min-width:0!important}
.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em img{width:12px!important;height:12px!important;display:block!important;flex:0 0 12px!important}
.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em b{display:inline!important;color:#fff!important;font-size:inherit!important;line-height:1!important;font-weight:900!important}
.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em:not(:last-child)::after{content:'·';display:inline-block;margin-left:5px;color:rgba(255,255,255,.28)!important;font-weight:700!important}
.battle-top-v11 .battle-player-v11 .v200-top-profile{display:contents!important}
.battle-top-v11 .battle-player-v11 .v200-top-profile>.v200-mini-avatar{display:none!important}
.battle-top-v11 .battle-player-v11 .v200-top-profile>div:last-child{display:contents!important}
@media(max-width:390px){.battle-top-v11 .battle-player-v11{column-gap:6px!important;padding:4px 5px!important}.battle-top-v11 .battle-player-v11>.ttb232-icon{width:28px!important;height:28px!important}.battle-top-v11 .battle-player-v11>.ttb232-icon>img,.battle-top-v11 .battle-player-v11>.ttb232-icon .v200-mini-avatar,.battle-top-v11 .battle-player-v11>.ttb232-icon .ttb2191-user-avatar{width:28px!important;height:28px!important;flex-basis:28px!important}.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts{gap:6px!important}.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em{font-size:6.5px!important}.battle-top-v11 .battle-player-v11 .ttb2194-battle-counts em img{width:11px!important;height:11px!important}}


/* v23.28 — responsive battle arena: reclaim vertical space and let the Cypher field adapt */
:root{
  --ttb-battle-hand-row: clamp(96px, 18svh, 126px);
  --ttb-battle-action-row: clamp(38px, 7svh, 44px);
  --ttb-battle-footer-row: clamp(30px, 6svh, 36px);
}
.battle-fullscreen-v11{height:100svh!important;min-height:100svh!important;grid-template-rows:auto auto auto minmax(0,1fr) auto var(--ttb-battle-hand-row) var(--ttb-battle-action-row)!important;align-content:stretch!important}
.battle-fullscreen-v11 .battle-board-v11{height:100%!important;min-height:0!important;align-self:stretch!important}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slots{height:100%!important;align-items:stretch!important}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slot{height:100%!important;min-height:0!important}
.battle-fullscreen-v11 .battle-board-v11 .field-stack,.battle-fullscreen-v11 .battle-board-v11 .field-card,.battle-fullscreen-v11 .battle-board-v11 .slot-empty{min-height:0!important;height:100%!important}
.battle-fullscreen-v11 .battle-message-v11{display:none!important}
.battle-fullscreen-v11 .battle-hand-v11{padding:4px 4px 2px!important}
.battle-fullscreen-v11 .battle-hand-v11 .zone-title{display:none!important}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand{height:auto!important;min-height:90px!important;padding-top:6px!important;padding-bottom:1px!important}
.battle-fullscreen-v11 .battle-actions-v11{min-height:0!important}
.battle-fullscreen-v11 .battle-actions-v11 button{min-height:0!important;height:100%!important}
@media(max-height:760px){
  .battle-fullscreen-v11{grid-template-rows:auto auto auto minmax(0,1fr) auto clamp(84px,17svh,104px) clamp(36px,6.5svh,40px)!important;gap:4px!important}
  .battle-fullscreen-v11 .battle-hand-v11 .battle-hand{min-height:78px!important}
}
@media(max-height:680px){
  .battle-fullscreen-v11{gap:3px!important}
  .battle-fullscreen-v11 .battle-board-v11{padding:4px!important}
  .battle-fullscreen-v11 .battle-board-v11 .slot-num{margin-bottom:1px!important}
}
