/* RIMBA TCG • Battle Presentation REV4 • v59.68.4
   Single final paint layer. Does not change game rules, event handlers or data.
   Scoped to the existing .battle-shell.rimba-5968 rendered in app.v59.68.js. */

@keyframes rpro-idle {
  0%,100% { transform:translate3d(0,0,0) scale(1); }
  50% { transform:translate3d(0,-5px,0) scale(1.018,.99); }
}
@keyframes rpro-idle-small {
  0%,100% { transform:translate3d(0,0,0) scale(1); }
  50% { transform:translate3d(0,-3px,0) scale(1.012,.994); }
}
@keyframes rpro-vs-glow {0%,100%{opacity:.8}50%{opacity:1}}

html:has(.battle-shell.rimba-5968),
body:has(.battle-shell.rimba-5968),
#app:has(.battle-shell.rimba-5968) { height:100%;overflow:hidden!important; }
.battle-shell.rimba-5968 {
  --rpro-dock:clamp(186px,26dvh,248px);
  --rpro-meta:51px;
  box-sizing:border-box!important;
  width:100%!important;height:100dvh!important;min-height:0!important;
  max-height:100dvh!important;overflow:hidden!important;isolation:isolate;
}
.battle-shell.rimba-5968 .battle.battle-compact {
  box-sizing:border-box!important;
  position:relative!important;z-index:3!important;
  width:100%!important;max-width:1600px!important;
  height:100dvh!important;max-height:100dvh!important;min-height:0!important;
  margin:0 auto!important;padding:8px 14px 8px!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) clamp(66px,7vw,100px) minmax(0,1fr)!important;
  grid-template-rows:clamp(55px,9dvh,72px) clamp(30px,4.5dvh,37px) minmax(0,1fr) var(--rpro-dock)!important;
  gap:4px 7px!important;align-items:stretch!important;
  background:linear-gradient(180deg,rgba(8,22,33,.58),rgba(13,50,47,.08) 36%,rgba(5,21,27,.34) 78%,rgba(6,18,27,.75))!important;
}
.battle-shell.rimba-5968 .battle.battle-compact::before,
.battle-shell.rimba-5968 .battle.battle-compact::after { pointer-events:none!important; }

/* Player ALWAYS on the left, enemy ALWAYS on the right (the HTML starts with enemy). */
.battle-shell.rimba-5968 .battle.battle-compact>.battle-top {
  display:grid!important;grid-column:1/-1!important;grid-row:1!important;
  grid-template-columns:minmax(0,1fr) minmax(138px,25%) minmax(0,1fr)!important;
  margin:0!important;padding:0!important;gap:8px!important;width:100%!important;
  max-width:none!important;align-items:stretch!important;min-height:0!important;
}
.battle-shell.rimba-5968 .battle-top>.avatar-panel:not(.enemy) {grid-column:1!important;grid-row:1!important;}
.battle-shell.rimba-5968 .battle-top>.avatar-panel.enemy {grid-column:3!important;grid-row:1!important;}
.battle-shell.rimba-5968 .battle-top>.domain-banner {grid-column:2!important;grid-row:1!important;}
.battle-shell.rimba-5968 .battle-top>.avatar-panel {
  display:flex!important;align-items:center!important;gap:8px!important;
  padding:5px 9px!important;min-width:0!important;min-height:0!important;
  border:1px solid rgba(118,203,175,.43)!important;border-radius:12px!important;
  background:linear-gradient(140deg,rgba(8,35,38,.95),rgba(10,25,38,.96))!important;
  box-shadow:0 5px 16px #06172366!important;
}
.battle-shell.rimba-5968 .battle-top>.avatar-panel.enemy {border-color:rgba(255,163,114,.44)!important;background:linear-gradient(140deg,#342d32ed,#0a1b29f4)!important;}
.battle-shell.rimba-5968 .battle-top .avatar-circle {width:38px!important;height:38px!important;flex:none!important;overflow:hidden!important;}
.battle-shell.rimba-5968 .battle-top .avatar-panel>div:last-child {min-width:0!important;}
.battle-shell.rimba-5968 .battle-top .avatar-panel b {font-size:clamp(11px,1.15vw,16px)!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;}
.battle-shell.rimba-5968 .battle-top .avatar-panel small {font-size:11px!important;line-height:1.1!important;color:#f0d69a!important;}
.battle-shell.rimba-5968 .battle-top .point-dot {width:8px!important;height:8px!important;}
.battle-shell.rimba-5968 .battle-top .domain-banner {min-height:0!important;min-width:0!important;border-radius:12px!important;padding:5px 8px!important;gap:5px!important;overflow:hidden!important;}
.battle-shell.rimba-5968 .battle-top .domain-banner b {font-size:11px!important;line-height:1.15!important;}
.battle-shell.rimba-5968 .battle-top .domain-banner small {font-size:9px!important;line-height:1.13!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;}

/* Objective/arena information must never steal height from characters. */
.battle-shell.rimba-5968 .battle-guidance-row {display:none!important;}
.battle-shell.rimba-5968 .battle.battle-compact>.battle-mobile-brief {
  grid-column:1/-1!important;grid-row:2!important;display:block!important;
  min-height:0!important;margin:0!important;padding:0!important;
}
.battle-shell.rimba-5968 .battle-mobile-brief .mobile-brief-row {display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;height:100%!important;max-width:660px!important;margin:auto!important;}
.battle-shell.rimba-5968 .battle-mobile-brief .mobile-arena-card,
.battle-shell.rimba-5968 .battle-mobile-brief .mobile-objective-card {
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:0!important;min-width:0!important;height:100%!important;gap:6px!important;
  padding:3px 10px!important;border-radius:8px!important;
  background:#092733df!important;border:1px solid #7cc9ab35!important;
}
.battle-shell.rimba-5968 .battle-mobile-brief small {font-size:9px!important;white-space:nowrap!important;color:#8addc1!important;}
.battle-shell.rimba-5968 .battle-mobile-brief b {font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;}
.battle-shell.rimba-5968 .battle-mobile-brief span {font-size:9px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.battle-shell.rimba-5968 .battle.battle-compact>.team-label {display:none!important;}
.battle-shell.rimba-5968 .battle.battle-compact>.battle-intent-inline {display:none!important;}

/* Formation: three units in one plane, center unit advanced, rank attached to HP/name. */
.battle-shell.rimba-5968 .battle.battle-compact>.enemy-team+.unit-row,
.battle-shell.rimba-5968 .battle.battle-compact>.enemy-team+.beginner-lane {grid-column:3!important;grid-row:3!important;}
.battle-shell.rimba-5968 .battle.battle-compact>.player-team+.unit-row,
.battle-shell.rimba-5968 .battle.battle-compact>.player-team+.beginner-lane {grid-column:1!important;grid-row:3!important;}
.battle-shell.rimba-5968 .battle.battle-compact>.unit-row {
  display:flex!important;justify-content:center!important;align-items:flex-end!important;
  position:relative!important;isolation:isolate!important;
  min-width:0!important;min-height:0!important;height:100%!important;
  margin:0!important;padding:4px 2px 3px!important;gap:clamp(2px,.45vw,9px)!important;
  transform:none!important;overflow:visible!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card {
  position:relative!important;display:flex!important;flex-direction:column!important;
  justify-content:flex-end!important;align-items:stretch!important;
  flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;
  height:90%!important;min-height:0!important;max-height:100%!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;overflow:visible!important;
  transform:translateY(8px)!important;transition:filter .18s ease!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(1) {height:83%!important;transform:translateY(12px)!important;z-index:1!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(2) {height:100%!important;transform:translateY(0)!important;z-index:4!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(3) {height:89%!important;transform:translateY(8px)!important;z-index:2!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:only-child {flex:0 1 95%!important;width:95%!important;height:100%!important;transform:none!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-last-child(2):first-child,
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-last-child(2):first-child~.unit-card {flex:0 1 48%!important;width:48%!important;height:94%!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card::before {
  bottom:calc(var(--rpro-meta) + 1px)!important;left:12%!important;width:76%!important;
  height:12px!important;background:#001719ac!important;filter:blur(6px)!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-art {
  flex:1 1 0!important;min-width:0!important;min-height:0!important;
  position:relative!important;top:auto!important;left:auto!important;width:100%!important;
  height:auto!important;max-height:none!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:flex-end!important;justify-content:center!important;
  border:0!important;background:transparent!important;overflow:visible!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-art .living-figure {
  width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
  position:relative!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;
  transform:none!important;animation:none!important;transform-origin:50% 80%!important;
}
/* Mirror the entire enemy figure, not just img, so nested artwork always faces inward.
   Animation runs on the image; it cannot cancel this mirroring transform. */
.battle-shell.rimba-5968 .battle.battle-compact .unit-card.enemy-unit .unit-art .living-figure {transform:scaleX(-1)!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-card:not(.enemy-unit) .unit-art .living-figure {transform:none!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-art .battle-unit-image,
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-art .card-art-image img,
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-art .unit-icon-art {
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center bottom!important;
  transform:none!important;animation:rpro-idle var(--unit-idle-duration,3.6s) ease-in-out infinite!important;
  animation-delay:var(--unit-idle-delay,0s)!important;transform-origin:center bottom!important;
  filter:drop-shadow(0 12px 7px rgba(0,0,0,.6))!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(odd) .unit-art .battle-unit-image,
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(odd) .unit-art .card-art-image img {animation-name:rpro-idle-small!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .statusline {top:5px!important;bottom:auto!important;left:0!important;right:0!important;z-index:9!important;pointer-events:none!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .statusline .r68-evolve {pointer-events:auto!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .r68-evolve {
  position:absolute!important;top:auto!important;bottom:calc(-1 * (var(--rpro-meta) + 4px))!important;
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  font-size:clamp(8px,.65vw,10px)!important;line-height:1.05!important;
  padding:4px 5px!important;min-height:22px!important;max-width:99%!important;
  color:#fce6af!important;background:#12393ce9!important;border:1px solid #c7ad72!important;
  box-shadow:0 2px 8px #0009!important;z-index:12!important;white-space:nowrap!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-meta {
  flex:0 0 var(--rpro-meta)!important;height:var(--rpro-meta)!important;min-height:var(--rpro-meta)!important;
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:5px 6px!important;align-self:stretch!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  border:1px solid rgba(105,198,172,.43)!important;border-radius:9px!important;
  background:linear-gradient(180deg,rgba(6,28,35,.94),rgba(5,17,26,.98))!important;
  box-shadow:0 4px 13px #0009!important;text-align:center!important;position:relative!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .enemy-unit .unit-meta {border-color:#ed9b7a78!important;background:linear-gradient(180deg,rgba(45,31,34,.96),rgba(11,18,29,.98))!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta .type {display:none!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta h4 {
  margin:0!important;padding:0 22px 0 0!important;display:block!important;
  color:#f5fcf8!important;font-size:clamp(10px,1vw,15px)!important;font-weight:900!important;
  line-height:1.14!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta .r68-rank {
  position:absolute!important;top:4px!important;right:4px!important;bottom:auto!important;left:auto!important;
  z-index:10!important;display:block!important;transform:none!important;animation:none!important;
  padding:2px 5px!important;font-size:10px!important;line-height:1.1!important;
  border-radius:6px!important;border:1px solid #e9d194a8!important;
  background:#274d4a!important;color:#ffebb9!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .enemy-unit .r68-rank {background:#633d35!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block {margin:2px auto 0!important;font-size:10px!important;line-height:1!important;gap:2px!important;display:flex!important;justify-content:center!important;align-items:center!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block b {font-size:12px!important;line-height:1!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row .hpbar {height:5px!important;flex:0 0 5px!important;margin-top:3px!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:is(.selectable-target,.targeted) {filter:drop-shadow(0 0 10px #f7d69a)!important;outline:2px solid #ffdd88!important;outline-offset:3px!important;border-radius:8px!important;}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card.dead {opacity:.5!important;}

/* Turns live between actual teams, not in a huge empty central column. */
.battle-shell.rimba-5968 .battle.battle-compact>.battle-turn-bridge {
  display:flex!important;grid-column:2!important;grid-row:3!important;
  position:relative!important;align-self:center!important;justify-self:center!important;
  width:100%!important;min-width:0!important;height:auto!important;min-height:105px!important;
  padding:10px 3px!important;gap:5px!important;
  background:linear-gradient(150deg,#0a2a32df,#0b1a29e8)!important;
  border:1px solid #cdbd8766!important;border-radius:14px!important;
  box-shadow:0 8px 19px #0006!important;z-index:9!important;
}
.battle-shell.rimba-5968 .battle-turn-bridge:before {content:'VS'!important;display:block!important;font-size:clamp(27px,3vw,47px)!important;line-height:1!important;animation:rpro-vs-glow 3.1s ease-in-out infinite!important;}
.battle-shell.rimba-5968 .battle-turn-bridge span,
.battle-shell.rimba-5968 .battle-turn-bridge b {display:block!important;font-size:clamp(8px,.85vw,11px)!important;line-height:1.16!important;text-align:center!important;white-space:normal!important;}

/* Dock: no phantom empty columns. Card art occupies the LEFT, writing the RIGHT. */
.battle-shell.rimba-5968 .battle.battle-compact>.v53-battle-dock {
  display:grid!important;grid-column:1/-1!important;grid-row:4!important;
  grid-template-columns:minmax(0,1fr) clamp(146px,15vw,196px)!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;height:100%!important;max-height:100%!important;
  min-height:0!important;min-width:0!important;position:relative!important;inset:auto!important;
  gap:8px!important;align-items:stretch!important;padding:8px!important;margin:0!important;
  border:1px solid #85b9ae63!important;border-radius:13px!important;
  background:linear-gradient(165deg,#102d37f6,#061925fb)!important;
  box-shadow:0 -6px 23px #0015249e!important;overflow:hidden!important;z-index:16!important;
}
.battle-shell.rimba-5968 .v53-battle-dock>.hand-drawer-toggle {display:none!important;}
.battle-shell.rimba-5968 .v53-battle-dock>.hand-panel.hand-drawer {
  grid-column:1!important;grid-row:1!important;
  position:relative!important;inset:auto!important;margin:0!important;
  display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  border:0!important;padding:0!important;overflow:hidden!important;background:none!important;box-shadow:none!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .hand-drawer-head {height:19px!important;min-height:19px!important;flex:none!important;margin:0!important;padding:0 2px 3px!important;font-size:11px!important;line-height:1!important;text-align:left!important;}
.battle-shell.rimba-5968 .v53-battle-dock .hand-drawer-head button {display:none!important;}
.battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2 {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:minmax(0,1fr)!important;grid-auto-rows:minmax(0,1fr)!important;
  align-items:stretch!important;justify-items:stretch!important;
  flex:1 1 0!important;min-height:0!important;max-height:none!important;min-width:0!important;
  width:100%!important;gap:7px!important;margin:0!important;padding:0!important;overflow:visible!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card {
  position:relative!important;min-width:0!important;min-height:0!important;max-width:none!important;
  width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;
  display:grid!important;grid-template-columns:minmax(58px,43%) minmax(0,1fr)!important;
  grid-template-rows:18px minmax(26px,auto) minmax(0,1fr) 12px!important;
  grid-template-areas:'art kind' 'art title' 'art desc' 'art owner'!important;
  column-gap:6px!important;row-gap:1px!important;
  justify-items:stretch!important;align-items:stretch!important;
  padding:6px!important;margin:0!important;border-radius:10px!important;
  background:linear-gradient(160deg,#194950,#112536)!important;
  color:#ecf7f2!important;overflow:hidden!important;transition:filter .16s,box-shadow .16s,translate .16s!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card:not(:disabled):hover {filter:brightness(1.2)!important;translate:0 -2px!important;}
.battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card.selected {outline:2px solid #f7dd9b!important;outline-offset:-2px!important;}
.battle-shell.rimba-5968 .v53-battle-dock .action-card .kind {
  display:block!important;grid-area:kind!important;position:static!important;order:unset!important;
  font-size:clamp(8px,.7vw,10px)!important;line-height:1.2!important;
  text-align:left!important;letter-spacing:.035em!important;padding:2px 25px 0 0!important;
  background:transparent!important;white-space:nowrap!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .action-card .cost {position:absolute!important;right:5px!important;top:5px!important;z-index:5!important;width:24px!important;height:24px!important;min-width:24px!important;border-radius:50%!important;font-size:12px!important;}
.battle-shell.rimba-5968 .v53-battle-dock .action-card>.a-icon {
  grid-area:art!important;position:relative!important;order:unset!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;max-height:100%!important;
  overflow:hidden!important;padding:0!important;margin:0!important;border:1px solid #ffffff12!important;border-radius:8px!important;
  background:radial-gradient(ellipse at center,#7dc1a827,#07303822 72%)!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .action-card .a-icon .r68-skill-character,
.battle-shell.rimba-5968 .v53-battle-dock .action-card .a-icon .support-card-icon,
.battle-shell.rimba-5968 .v53-battle-dock .action-card .a-icon .card-art-image {display:flex!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;align-items:center!important;justify-content:center!important;}
.battle-shell.rimba-5968 .v53-battle-dock .action-card .a-icon img {display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;}
.battle-shell.rimba-5968 .v53-battle-dock .action-card .a-icon .owner-thumb {display:none!important;}
.battle-shell.rimba-5968 .v53-battle-dock .action-card h5 {
  display:-webkit-box!important;grid-area:title!important;order:unset!important;
  -webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  text-align:left!important;font-size:clamp(9px,.9vw,13px)!important;line-height:1.15!important;
  color:#fff7df!important;margin:0!important;min-height:0!important;max-height:35px!important;
  overflow:hidden!important;white-space:normal!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .action-card p {
  grid-area:desc!important;order:unset!important;display:-webkit-box!important;
  -webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;
  text-align:left!important;font-size:clamp(8px,.72vw,10px)!important;line-height:1.24!important;
  margin:0!important;padding:0!important;min-height:0!important;max-height:none!important;
  color:#c7e1dc!important;overflow:hidden!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .action-card .owner-name-tag {
  grid-area:owner!important;order:unset!important;display:block!important;position:static!important;
  font-size:9px!important;line-height:1.08!important;text-align:left!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#a9d5c6!important;
}
.battle-shell.rimba-5968 .v53-battle-dock>.always-end-turn {
  grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:stretch!important;gap:7px!important;
  position:relative!important;inset:auto!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;padding:9px!important;margin:0!important;
  border-radius:10px!important;border:1px solid #6faf9a5e!important;
  background:linear-gradient(150deg,#183b3b,#10232e)!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .end-turn-btn {
  display:block!important;flex:none!important;height:auto!important;min-height:54px!important;
  border-radius:10px!important;padding:7px!important;font-size:clamp(12px,1.25vw,17px)!important;
  font-weight:900!important;letter-spacing:.02em!important;line-height:1.2!important;
  background:linear-gradient(160deg,#fce8b8,#cea067)!important;color:#21190f!important;
}
.battle-shell.rimba-5968 .v53-battle-dock .always-end-turn small {display:block!important;font-size:10px!important;text-align:center!important;line-height:1.35!important;max-height:none!important;min-height:0!important;}
.battle-shell.rimba-5968 .v53-battle-dock .basic-attack-btn {
  flex:none!important;width:100%!important;min-height:38px!important;max-height:none!important;
  background:#1b5654!important;border:1px solid #72e4c1!important;color:#ecfff7!important;
  font-size:11px!important;border-radius:8px!important;
}
.battle-shell.rimba-5968 .battle.battle-compact>.selected-action-panel {
  position:absolute!important;z-index:55!important;
  left:50%!important;right:auto!important;top:auto!important;
  bottom:calc(var(--rpro-dock) + 14px)!important;
  transform:translateX(-50%)!important;width:min(510px,96vw)!important;
  max-height:min(30dvh,240px)!important;overflow:auto!important;
  border:1px solid #dfc18a99!important;border-radius:13px!important;
  background:#0b2936f5!important;box-shadow:0 8px 29px #000b!important;
}
.battle-shell.rimba-5968 .battle.battle-compact>.v53-armor-strip,
.battle-shell.rimba-5968 .battle.battle-compact>.god-passive-strip,
.battle-shell.rimba-5968 .battle.battle-compact>.power-battle-banner {max-height:70px!important;max-width:38%!important;top:17%!important;bottom:auto!important;overflow:auto!important;z-index:18!important;}

/* Beginner 1v1: active unit is large; two reserves appear behind, not under it. */
.battle-shell.rimba-5968.beginner-1v1 .battle.battle-compact>.beginner-lane {
  display:block!important;position:relative!important;width:100%!important;max-width:none!important;
  min-height:0!important;height:100%!important;margin:0!important;padding:0!important;overflow:visible!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-active-stage {
  display:block!important;position:relative!important;grid-column:auto!important;
  width:65%!important;height:100%!important;min-height:0!important;margin:auto!important;
  z-index:5!important;filter:none!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-unit-row {
  display:flex!important;align-items:flex-end!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0 0 3px!important;transform:none!important;overflow:visible!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card,
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card.living-unit {
  width:100%!important;max-width:none!important;min-width:0!important;
  height:100%!important;min-height:0!important;max-height:100%!important;
  padding:0!important;margin:0!important;transform:none!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card .unit-art,
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card.living-unit .unit-art {
  flex:1 1 0!important;top:auto!important;left:auto!important;
  width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  padding:0!important;margin:0!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card .living-figure,
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card.living-unit .living-figure {width:100%!important;height:100%!important;min-height:0!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card .battle-unit-image,
.battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card .unit-art .card-art-image img {
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  transform:none!important;object-position:center bottom!important;
  animation:rpro-idle 3.5s ease-in-out infinite!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-reserves {
  display:grid!important;position:absolute!important;inset:auto 0 calc(var(--rpro-meta) + 8px) 0!important;
  grid-template-columns:minmax(0,1fr) minmax(35px,25%) minmax(0,1fr)!important;
  width:100%!important;height:auto!important;max-height:38%!important;
  min-height:0!important;transform:none!important;margin:0!important;padding:0!important;
  z-index:3!important;align-items:end!important;gap:3px!important;pointer-events:none!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-card {
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;
  width:100%!important;max-width:110px!important;height:100%!important;min-height:60px!important;
  max-height:110px!important;margin:0!important;padding:4px!important;transform:none!important;
  border-radius:10px!important;pointer-events:auto!important;overflow:hidden!important;
  background:linear-gradient(180deg,#183e3dbb,#081d2cfa)!important;
}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-card.left {grid-column:1!important;justify-self:start!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-card.right {grid-column:3!important;justify-self:end!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-reserve-core-gap {grid-column:2!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-art {display:flex!important;flex:1 1 0!important;min-height:0!important;width:100%!important;height:auto!important;align-items:center!important;justify-content:center!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-art img {width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane.enemy .beginner-side-art {transform:scaleX(-1)!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .reserve-label {display:none!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-copy {width:100%!important;text-align:center!important;font-size:9px!important;line-height:1.1!important;overflow:hidden!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-copy span {display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-copy b {font-size:9px!important;}

@media(max-width:1000px) {
 .battle-shell.rimba-5968 {--rpro-dock:clamp(170px,27dvh,210px);--rpro-meta:43px;}
 .battle-shell.rimba-5968 .battle.battle-compact {grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr)!important;padding:6px 8px!important;gap:4px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card {grid-template-columns:minmax(38px,40%) minmax(0,1fr)!important;column-gap:4px!important;padding:4px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta h4 {font-size:10px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta .r68-rank {font-size:9px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card .owner-name-tag {font-size:8px!important;}
 .battle-shell.rimba-5968 .battle-top .point-dot {width:6px!important;height:6px!important;}
}
@media(max-width:700px) and (orientation:portrait) {
 .battle-shell.rimba-5968 {--rpro-dock:clamp(220px,39dvh,330px);--rpro-meta:37px;}
 .battle-shell.rimba-5968 .battle.battle-compact {
   grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr)!important;
   grid-template-rows:48px 27px minmax(0,1fr) var(--rpro-dock)!important;
   gap:2px 3px!important;padding:4px!important;
 }
 .battle-shell.rimba-5968 .battle.battle-compact>.battle-top {grid-template-columns:minmax(0,1fr) 75px minmax(0,1fr)!important;gap:3px!important;}
 .battle-shell.rimba-5968 .battle-top>.avatar-panel {padding:3px 4px!important;gap:3px!important;border-radius:7px!important;}
 .battle-shell.rimba-5968 .battle-top .avatar-circle {width:25px!important;height:25px!important;}
 .battle-shell.rimba-5968 .battle-top .avatar-panel b {font-size:9px!important;}
 .battle-shell.rimba-5968 .battle-top .avatar-panel small {font-size:9px!important;}
 .battle-shell.rimba-5968 .battle-top .points {display:none!important;}
 .battle-shell.rimba-5968 .battle-top>.domain-banner {padding:3px!important;border-radius:7px!important;}
 .battle-shell.rimba-5968 .battle-top .domain-banner .d-icon {display:none!important;}
 .battle-shell.rimba-5968 .battle-top .domain-banner b {font-size:9px!important;}
 .battle-shell.rimba-5968 .battle-top .domain-banner small {font-size:7px!important;}
 .battle-shell.rimba-5968 .battle-mobile-brief .mobile-brief-row {gap:3px!important;}
 .battle-shell.rimba-5968 .battle-mobile-brief .mobile-arena-card,
 .battle-shell.rimba-5968 .battle-mobile-brief .mobile-objective-card {gap:3px!important;padding:2px 4px!important;}
 .battle-shell.rimba-5968 .battle-mobile-brief small {font-size:7px!important;}
 .battle-shell.rimba-5968 .battle-mobile-brief b {font-size:8px!important;}
 .battle-shell.rimba-5968 .battle-mobile-brief span {display:none!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.unit-row {gap:1px!important;padding:1px 0!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(1) {height:78%!important;transform:translateY(6px)!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(2) {height:94%!important;transform:none!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card:nth-child(3) {height:81%!important;transform:translateY(5px)!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta {padding:3px 2px!important;border-radius:5px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta h4 {font-size:8px!important;padding-right:0!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta .r68-rank {top:-11px!important;right:0!important;font-size:8px!important;padding:1px 4px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block {font-size:8px!important;gap:1px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block b {font-size:9px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hpbar {height:4px!important;flex-basis:4px!important;margin-top:2px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .r68-evolve {font-size:7px!important;min-height:18px!important;padding:2px 3px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.battle-turn-bridge {min-height:85px!important;padding:4px 1px!important;gap:4px!important;border-radius:8px!important;}
 .battle-shell.rimba-5968 .battle-turn-bridge:before {font-size:24px!important;}
 .battle-shell.rimba-5968 .battle-turn-bridge span,
 .battle-shell.rimba-5968 .battle-turn-bridge b {font-size:7px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.v53-battle-dock {
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:minmax(0,1fr) 37px!important;
   gap:4px!important;padding:4px!important;border-radius:9px!important;
 }
 .battle-shell.rimba-5968 .v53-battle-dock>.hand-panel.hand-drawer {grid-column:1!important;grid-row:1!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-drawer-head {height:17px!important;min-height:17px!important;font-size:10px!important;padding:0 2px 2px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2 {grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:4px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card {grid-template-columns:minmax(46px,38%) minmax(0,1fr)!important;grid-template-rows:14px minmax(16px,auto) 1fr 10px!important;column-gap:5px!important;padding:3px 4px!important;border-radius:7px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card .kind {font-size:8px!important;padding-top:0!important;padding-right:14px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card .cost {height:17px!important;width:17px!important;min-width:17px!important;border-width:1px!important;right:2px!important;top:2px!important;font-size:9px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card h5 {font-size:10px!important;line-height:1.06!important;max-height:23px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card p {font-size:8px!important;line-height:1.12!important;-webkit-line-clamp:3!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card .owner-name-tag {font-size:7px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock>.always-end-turn {grid-column:1!important;grid-row:2!important;flex-direction:row!important;align-items:center!important;justify-content:space-evenly!important;gap:5px!important;padding:3px 5px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .end-turn-btn {width:auto!important;flex:1 1 0!important;min-height:29px!important;font-size:11px!important;padding:3px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .basic-attack-btn {width:auto!important;flex:1 1 0!important;min-height:29px!important;font-size:10px!important;padding:3px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .always-end-turn small {display:none!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.selected-action-panel {bottom:calc(var(--rpro-dock) + 6px)!important;max-height:33dvh!important;width:min(360px,97vw)!important;}
 .battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-active-stage {width:75%!important;}
 .battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-card {min-height:43px!important;max-height:78px!important;padding:2px!important;border-radius:6px!important;}
 .battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-copy {font-size:7px!important;}
 .battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-copy b {font-size:7px!important;}
}
@media(max-width:370px) and (orientation:portrait) {
 .battle-shell.rimba-5968 .battle-top .avatar-circle {display:none!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta h4 {font-size:7px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card h5 {font-size:9px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card p {font-size:7px!important;}
}
@media(max-height:540px) and (orientation:landscape) {
 .battle-shell.rimba-5968 {--rpro-dock:clamp(112px,32dvh,154px);--rpro-meta:32px;}
 .battle-shell.rimba-5968 .battle.battle-compact {grid-template-rows:39px 0px minmax(0,1fr) var(--rpro-dock)!important;grid-template-columns:minmax(0,1fr) 53px minmax(0,1fr)!important;gap:2px!important;padding:3px 5px!important;}
 .battle-shell.rimba-5968 .battle-top .avatar-circle {width:23px!important;height:23px!important;}
 .battle-shell.rimba-5968 .battle-top .avatar-panel {padding:2px 5px!important;}
 .battle-shell.rimba-5968 .battle-top .avatar-panel b {font-size:10px!important;}
 .battle-shell.rimba-5968 .battle-top .points {display:none!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.battle-mobile-brief {display:none!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta {padding:2px 3px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta h4 {font-size:9px!important;padding-right:14px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta .r68-rank {top:2px!important;right:2px!important;font-size:8px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block {font-size:8px!important;margin-top:1px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hpbar {height:3px!important;flex-basis:3px!important;margin-top:2px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.battle-turn-bridge {min-height:78px!important;padding:3px 1px!important;gap:3px!important;}
 .battle-shell.rimba-5968 .battle-turn-bridge:before {font-size:26px!important;}
 .battle-shell.rimba-5968 .battle-turn-bridge span,
 .battle-shell.rimba-5968 .battle-turn-bridge b {font-size:7px!important;}
 .battle-shell.rimba-5968 .battle.battle-compact>.v53-battle-dock {grid-template-columns:minmax(0,1fr) 135px!important;grid-template-rows:minmax(0,1fr)!important;padding:5px!important;gap:5px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock>.always-end-turn {grid-column:2!important;grid-row:1!important;flex-direction:column!important;padding:4px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-drawer-head {height:15px!important;min-height:15px!important;font-size:9px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2 {grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:3px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card {grid-template-columns:minmax(30px,38%) minmax(0,1fr)!important;grid-template-rows:12px minmax(12px,auto) 1fr 0!important;padding:3px!important;gap:1px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card .kind {font-size:7px!important;padding-top:0!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card h5 {font-size:9px!important;line-height:1.02!important;max-height:20px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card p {font-size:7px!important;line-height:1.08!important;-webkit-line-clamp:2!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .action-card .owner-name-tag {display:none!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .end-turn-btn {min-height:34px!important;font-size:12px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .basic-attack-btn {min-height:28px!important;font-size:9px!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .always-end-turn small {font-size:8px!important;}
 .battle-shell.rimba-5968.beginner-1v1 .beginner-lane .beginner-side-card {max-height:66px!important;min-height:40px!important;}
}
@media(prefers-reduced-motion:reduce) {
 .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-art img,
 .battle-shell.rimba-5968 .battle-turn-bridge:before {animation:none!important;}
 .battle-shell.rimba-5968 .v53-battle-dock .hand-grid-2x2>.action-card {transition:none!important;}
}
/* Stretch badge rail across the figure only; evolution button sits at its feet. */
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .statusline {
  top:0!important;bottom:var(--rpro-meta)!important;height:auto!important;min-height:0!important;
}
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .statusline .r68-evolve {
  top:auto!important;bottom:3px!important;left:50%!important;right:auto!important;
}
/* The legacy battle art translated every picture -50% on X.
   Override that separately from the mirrored INNER figure. */
.battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-art {
  transform:none!important;translate:none!important;left:auto!important;right:auto!important;
}
@media(max-width:700px) and (orientation:portrait) {
 /* Dramatic compact formation: overlap art columns, but keep individual target buttons. */
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row {
   display:block!important;position:relative!important;isolation:isolate!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card {
   position:absolute!important;left:auto!important;right:auto!important;
   bottom:2px!important;flex:none!important;min-width:0!important;
   width:45%!important;max-width:45%!important;height:75%!important;
   transform:none!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(1) {
   left:0!important;right:auto!important;bottom:1px!important;
   width:45%!important;max-width:45%!important;height:71%!important;
   transform:none!important;z-index:1!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(2) {
   left:50%!important;right:auto!important;bottom:2px!important;
   width:60%!important;max-width:60%!important;height:100%!important;
   transform:translateX(-50%)!important;z-index:3!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(3) {
   right:0!important;left:auto!important;bottom:1px!important;
   width:45%!important;max-width:45%!important;height:78%!important;
   transform:none!important;z-index:2!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:only-child {
   left:50%!important;right:auto!important;width:68%!important;max-width:68%!important;
   height:100%!important;transform:translateX(-50%)!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-last-child(2):first-child {
   left:5%!important;right:auto!important;width:52%!important;max-width:52%!important;height:90%!important;
 }
 .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-last-child(2):first-child~.unit-card {
   right:5%!important;left:auto!important;width:52%!important;max-width:52%!important;height:90%!important;
 }
}
/* v59.68.4 specificity guard: the 570 KB legacy stylesheet has #app rules.
   Only layout declarations are reasserted here; battle state/effects remain native. */
#app .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card {
  padding:0!important;justify-content:flex-end!important;align-items:stretch!important;
  min-height:0!important;max-height:100%!important;
}
#app .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-art {
  top:auto!important;left:auto!important;right:auto!important;
  margin:0!important;padding:0!important;min-height:0!important;
  flex:1 1 0!important;height:auto!important;max-height:none!important;
  transform:none!important;
}
#app .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-meta {
  flex:0 0 var(--rpro-meta)!important;min-height:var(--rpro-meta)!important;
  height:var(--rpro-meta)!important;padding:4px 5px!important;
}
#app .battle-shell.rimba-5968 .battle.battle-compact>.v53-battle-dock {
  grid-column:1/-1!important;grid-row:4!important;
}
@media(max-width:700px) and (orientation:portrait) {
  #app .battle-shell.rimba-5968 .battle.battle-compact {padding:4px!important;}
  #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row {
    padding:0!important;margin:0!important;min-height:0!important;max-height:none!important;
  }
  #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(1) {
    width:42%!important;max-width:42%!important;left:0!important;height:72%!important;bottom:1px!important;
    min-height:0!important;max-height:100%!important;transform:none!important;
  }
  #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(2) {
    width:52%!important;max-width:52%!important;left:50%!important;height:96%!important;bottom:2px!important;
    min-height:0!important;max-height:100%!important;transform:translateX(-50%)!important;
  }
  #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(3) {
    width:42%!important;max-width:42%!important;right:0!important;height:78%!important;bottom:1px!important;
    min-height:0!important;max-height:100%!important;transform:none!important;
  }
  #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:only-child {
    width:73%!important;max-width:73%!important;left:50%!important;height:100%!important;
    transform:translateX(-50%)!important;
  }
  #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-art img {
    object-position:center bottom!important;
  }
  #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row>.unit-card .unit-meta {
    padding:3px 2px!important;
  }
  #app .battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card,
  #app .battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card.living-unit {
    min-height:0!important;max-height:100%!important;height:100%!important;
    padding:0!important;justify-content:flex-end!important;transform:none!important;
  }
  #app .battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card .unit-art,
  #app .battle-shell.rimba-5968.beginner-1v1 .beginner-unit-row>.unit-card.living-unit .unit-art {
    top:auto!important;height:auto!important;max-height:none!important;min-height:0!important;
    width:100%!important;flex:1 1 0!important;transform:none!important;
  }
}
/* Final mobile formation: three separate HP/name labels, overlapping *art only*. */
@media(max-width:700px) and (orientation:portrait) {
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(1) {
   width:28%!important;max-width:28%!important;left:0!important;height:72%!important;z-index:1!important;
 }
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(2) {
   width:48%!important;max-width:48%!important;left:50%!important;height:96%!important;
   transform:translateX(-50%)!important;z-index:3!important;
 }
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .battle.battle-compact>.unit-row>.unit-card:nth-child(3) {
   width:28%!important;max-width:28%!important;right:0!important;height:78%!important;z-index:2!important;
 }
 /* image grows into adjacent empty visual space; HP/name panels keep their own width */
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .unit-row>.unit-card .unit-art .living-figure {
   transform:scale(1.48)!important;transform-origin:50% 100%!important;
 }
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .unit-row>.unit-card.enemy-unit .unit-art .living-figure {
   transform:scaleX(-1) scale(1.48)!important;
 }
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .unit-row>.unit-card:nth-child(2) .unit-art .living-figure {
   transform:scale(1.28)!important;
 }
 #app .battle-shell.rimba-5968:not(.beginner-1v1) .unit-row>.unit-card.enemy-unit:nth-child(2) .unit-art .living-figure {
   transform:scaleX(-1) scale(1.28)!important;
 }
 #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta h4 {
   display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
   padding-right:0!important;margin-top:2px!important;font-size:8px!important;
 }
 #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row .unit-meta .r68-rank {
   top:-12px!important;right:2px!important;font-size:8px!important;padding:1px 4px!important;
 }
 #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block small {font-size:7px!important;}
 #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row .hp-block b {font-size:9px!important;}
 /* Level-up tap still works for ALL three cards; show actual dynamic cost. */
 #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row .r68-evolve {
   font-size:0!important;letter-spacing:0!important;padding:2px 5px!important;
   min-height:19px!important;max-width:95%!important;white-space:nowrap!important;
 }
 #app .battle-shell.rimba-5968 .battle.battle-compact .unit-row .r68-evolve::after {
   content:'✦ ' attr(data-evo-cost) '⚡';font-size:9px!important;font-weight:900!important;
 }
}
