/* Mobile battle v2 follows the illustrated landscape concept.
 * Fixed navy/gold shell, one readable offer per row, compact identity rail.
 * Scoped away from portrait, desktop and the tutorial. */
/* Leave enough scrollable space beyond the world for its rightmost board to
 * center in the area left of the permanent shop, even at the minimum zoom. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #gameCanvas {
  margin-right: calc(var(--mb-shop-width) + 12px) !important;
}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active {
  --mb-shop-width: clamp(184px, 28.45vw, 240px);
  --mb-scout-width: 84px;
  --mb-trait-width: 26px;
  --mb-gap: 4px;
  --mb-tab-height: 32px;
  --mb-action-height: 32px;
  --mb-footer-height: 36px;
  --mb-bench-height: 44px;
  --mb-board-bottom: 0px;
  --mg-hud-height: 44px;
  --mg-action-rail-width: var(--mb-scout-width);
  --mg-drawer-width: var(--mb-shop-width);
  --mg-bench-reserved-height: 0px;
  --mg-bench-height: 0px;
  --mg-dock-height: 0px;
  --mb-navy: #0c2138;
  --mb-deep: #061627;
  --mb-gold: #e6c47b;
  --mb-edge: #6e9bb9;
}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar {
  height:44px!important; min-height:44px!important;
  grid-template-columns:minmax(80px,.8fr) minmax(0,5fr) 44px!important;
  gap:3px!important; padding:1px!important;
  border:1px solid #d4b776!important; border-radius:10px!important;
  background:linear-gradient(145deg,#163a60,#07192b 78%)!important;
  box-shadow:inset 0 1px 0 #fff1c94a,inset 0 -2px 0 #0006,0 2px 5px #0004!important;
}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-player-chip {height:40px!important;min-height:40px!important;min-width:0!important;gap:4px!important;padding:0 4px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-player-chip>div:last-child {min-width:0!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-player-chip strong {max-width:100%!important;font-size:12px!important;line-height:14px!important;color:#fff7e3!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-player-chip>div:last-child>span {font-size:7px!important;line-height:9px!important;color:#b0c9dc!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-hud-stats {height:40px!important;grid-template-columns:minmax(57px,1fr) minmax(88px,1.65fr) minmax(50px,.95fr) minmax(30px,.55fr) minmax(55px,1fr) minmax(78px,1.3fr)!important;gap:3px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat {height:40px!important;min-height:40px!important;min-width:0!important;gap:1px!important;padding:2px 3px!important;border:1px solid #7dabc278!important;border-radius:8px!important;background:linear-gradient(#173751,#0a1e34)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat>span {font-size:8px!important;line-height:9px!important;color:#c1d4e5!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat strong {font-weight:900!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--life {grid-template-columns:auto auto!important;grid-template-rows:1fr!important;gap:5px!important;border-color:#d55a82!important;background:linear-gradient(#551d3c,#321328)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--life>span {color:#ff7585!important;font-size:18px!important;line-height:1!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileLifeValue {font-size:25px!important;line-height:1!important;color:#ffe3e9!important;text-shadow:0 1px 2px #270315!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--gold {grid-template-columns:auto auto!important;grid-template-rows:1fr!important;gap:6px!important;border-color:#ffe8ad!important;background:linear-gradient(155deg,#fff0af,#f5c157 64%,#d89830)!important;box-shadow:inset 0 1px 0 #fffbdc,inset 0 -2px 0 #94601855!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--gold>span {font-size:18px!important;color:#995c12!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileGoldValue {font-size:27px!important;line-height:1!important;color:#40220b!important;text-shadow:0 1px 0 #fff1b9!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileIncomeValue {font-size:15px!important;color:#a5f5cd!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--level {display:grid!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileGameLevelValue {font-size:13px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileXpBuyValue {font-size:11px!important;color:#ffecb7!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBuyXpButton {border-color:#ffe7a1!important;background:linear-gradient(#58604e,#213547 85%)!important;box-shadow:inset 0 1px 0 #fff4c969,inset 0 -3px 0 #081727,0 1px 2px #0008!important;cursor:pointer!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBuyXpButton:active {transform:translateY(1px)!important;box-shadow:inset 0 1px 2px #0008!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileRoundWidget {grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileRoundValue {font-size:9px!important;line-height:12px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTimerValue {padding-left:5px!important;border-left:1px solid #b4c8d752!important;font-size:19px!important;line-height:1!important;color:#ffe5a2!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-top-actions {height:40px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileMenuButton {width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;font-size:9px!important;border-color:#86abc5!important;background:linear-gradient(#183b5d,#0a2037)!important;border-radius:8px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active .mobile-hud-icon {display:inline-grid!important;place-items:center!important;flex:0 0 auto!important;width:24px!important;height:24px!important;font-size:22px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active .mobile-hud-icon svg {width:100%;height:100%;}
body.mobile-battle-layout #mobilePlayerEmblem {display:grid!important;place-items:center;width:30px;height:38px;flex:0 0 30px;filter:drop-shadow(0 2px 2px #0008);}
body.mobile-battle-layout #mobilePlayerEmblem svg {width:100%;height:100%;}
body.mobile-battle-layout .mobile-crest-rim {fill:color-mix(in srgb,var(--player-color,#348fee) 55%,#ffefad);stroke:#071321;stroke-width:1;}
body.mobile-battle-layout .mobile-crest-face {fill:color-mix(in srgb,var(--player-color,#348fee) 45%,#06142c);}
body.mobile-battle-layout .mobile-crest-shine {fill:color-mix(in srgb,var(--player-color,#348fee) 70%,#65d9ff);opacity:.5;}
body.mobile-battle-layout .mobile-crest-mark {fill:#d8eeff;}
body.mobile-battle-layout .mobile-crest-core {fill:var(--player-color,#348fee);}
body.mobile-battle-layout #mobilePlayerEmblem .mobile-crest-rim {fill:#f7d181;stroke:#664719;}
body.mobile-battle-layout #mobilePlayerEmblem .mobile-crest-mark {fill:#ffe3a0;}
body.mobile-battle-layout #mobileTopBar .mobile-stat--life>span,body.mobile-battle-layout #mobileTopBar .mobile-stat--gold>span,body.mobile-battle-layout #mobileTopBar .mobile-menu-label {display:none!important;}
body.mobile-battle-layout .mobile-hud-heart svg {fill:#ff536f;stroke:#bf183e;stroke-width:1;filter:drop-shadow(0 1px 0 #0007);}
body.mobile-battle-layout .mobile-hud-coin svg {fill:#efb337;stroke:#99601c;stroke-width:1.3;}
body.mobile-battle-layout .mobile-hud-coin svg circle:nth-child(2) {fill:#ffd66d;stroke:#c28826;}
body.mobile-battle-layout .mobile-hud-coin svg path {fill:#fff0a1;stroke:#c18b2e;}
body.mobile-battle-layout #mobileTopBar .mobile-stat--income {grid-template-columns:20px auto!important;grid-template-rows:12px 18px!important;gap:0 3px!important;}
body.mobile-battle-layout #mobileTopBar .mobile-hud-income {grid-area:1/1/3/2;width:20px!important;height:26px!important;}
body.mobile-battle-layout .mobile-hud-income img {width:100%;height:100%;object-fit:contain;}
body.mobile-battle-layout #mobileTopBar .mobile-stat--income>span {grid-area:1/2/2/3!important;}
body.mobile-battle-layout #mobileIncomeValue {grid-area:2/2/3/3!important;}
body.mobile-battle-layout #mobileTopBar .mobile-stat--level {grid-template-columns:auto auto!important;grid-template-rows:18px 5px!important;gap:2px!important;}
body.mobile-battle-layout #mobileTopBar .mobile-stat--level>span {grid-area:1/1/2/2!important;}
body.mobile-battle-layout #mobileGameLevelValue {grid-area:1/2/2/3!important;}
body.mobile-battle-layout #mobileXpProgress {grid-area:2/1/3/-1;display:block!important;width:100%;height:5px;overflow:hidden;border:1px solid #8293a5;border-radius:4px;background:#010d1d;}
body.mobile-battle-layout #mobileXpProgress::before {display:block;width:var(--xp-percent,0%);height:100%;border-radius:inherit;background:linear-gradient(#9ceaf9,#1dafdf);content:"";}
body.mobile-battle-layout .mobile-control-icon {display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px;}
body.mobile-battle-layout .mobile-control-icon svg,body.mobile-battle-layout .mobile-nav-glyph svg {display:block;width:100%;height:100%;fill:currentColor;}
body.mobile-battle-layout [data-mobile-icon="menu"] svg {fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;}
body.mobile-battle-layout [data-mobile-icon="recenter"] svg {fill:none;stroke:currentColor;stroke-width:2;}
body.mobile-battle-layout #mobileMenuButton .mobile-control-icon {width:24px;height:24px;}
body.mobile-battle-layout #mobileSheetContextActions .mobile-shop-action-label {display:none!important;}
body.mobile-battle-layout #mobileSheetContextActions .shop-lock-icon {display:none!important;}
body.mobile-battle-layout #mobileSheetContextActions .mobile-control-icon {display:inline-grid!important;width:12px!important;height:12px!important;flex-basis:12px!important;}
body.mobile-battle-layout #mobileBottomNav .mobile-legacy-glyph {display:none!important;}
body.mobile-battle-layout #mobileBottomNav .mobile-control-icon {width:15px!important;height:15px!important;min-width:15px!important;flex-basis:15px!important;}

/* One quiet rail, instead of six large competing colored cards. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail:not([hidden]) {position:fixed!important;top:calc(var(--mg-safe-top) + var(--mg-hud-height) + var(--mb-gap))!important;bottom:var(--mg-safe-bottom)!important;left:var(--mg-safe-left)!important;z-index:55!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(6,minmax(36px,1fr))!important;width:var(--mb-scout-width)!important;gap:2px!important;padding:4px 3px!important;overflow:hidden!important;border:1px solid #e1c68a!important;border-radius:14px!important;background:linear-gradient(110deg,#0f2a40f5,#061727f5)!important;box-shadow:inset 0 1px 0 #fff1c92a,0 2px 6px #0004!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-player {position:relative;display:grid;grid-template-columns:14px minmax(0,1fr);grid-template-rows:14px 16px 4px;align-content:center;align-items:center;min-width:0;min-height:36px;gap:1px 3px;padding:2px 3px;border:1px solid transparent;border-radius:9px;color:#edf7ff;background:transparent;box-shadow:none;touch-action:manipulation;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-player.is-observed {border-color:#fff0b7;background:linear-gradient(#234c66,#11324a);box-shadow:inset 0 1px 0 #b0e8ff75,0 0 0 1px #6ba3bc66;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-player.is-local::before {position:absolute;left:-6px;top:calc(50% - 4px);width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid #f8d17e;content:"";}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-emblem {grid-area:1/1/2/2;display:grid;place-items:center;width:14px;height:16px;color:var(--player-color);filter:drop-shadow(0 1px 2px #0008);}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-emblem svg {width:100%;height:100%;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-name {grid-area:1/2/2/3;display:block;min-width:0;overflow:hidden;font-size:10px;font-weight:800;line-height:13px;color:#d2e4f0;text-overflow:ellipsis;white-space:nowrap;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-life {grid-area:2/1/3/-1;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;line-height:16px;color:#fff5d6;white-space:nowrap;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-life::before {display:inline-block;color:#ff829a;font-size:11px;content:"\2665";}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-health {grid-area:3/1/4/-1;display:block;width:100%;height:4px;overflow:hidden;border-radius:3px;background:#010b15;box-shadow:inset 0 -1px 0 #6d91a74d;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-health-fill {display:block;width:var(--life-percent,100%);height:100%;border-radius:inherit;background:var(--player-color);box-shadow:inset 0 1px 0 #ffffff80;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-player.is-dead {opacity:.48;filter:saturate(.25);}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mapEffectToast,
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #roundCountdown {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #desktopTraitRail:not([hidden]) {position:fixed!important;top:calc(var(--mg-safe-top) + var(--mg-hud-height) + var(--mb-gap))!important;left:calc(var(--mg-safe-left) + var(--mb-scout-width) + 3px)!important;right:auto!important;bottom:auto!important;z-index:55!important;display:grid!important;align-content:start!important;width:var(--mb-trait-width)!important;max-height:calc(100dvh - var(--mg-safe-top) - var(--mg-safe-bottom) - var(--mg-hud-height) - var(--mb-gap))!important;gap:4px!important;padding:1px!important;overflow-x:hidden!important;overflow-y:auto!important;background:transparent!important;pointer-events:auto!important;}
body.mobile-battle-layout #desktopTraitRail .desktop-trait-owner,body.mobile-battle-layout #desktopTraitRail .desktop-trait-name,body.mobile-battle-layout #desktopTraitRail .desktop-trait-popover {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #desktopTraitRail .desktop-trait-item {position:relative!important;width:24px!important;min-width:24px!important;height:28px!important;min-height:28px!important;border:1px solid color-mix(in srgb,var(--trait-color) 50%,#b3d4e355)!important;border-radius:6px!important;background:#0d263b99!important;box-shadow:none!important;opacity:.9!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #desktopTraitRail .desktop-trait-badge {right:0!important;bottom:0!important;min-width:11px!important;height:11px!important;padding:0 2px!important;border-radius:4px!important;background:#061725ed!important;font-size:8px!important;line-height:11px!important;}
body.mobile-battle-layout #mobileStatPopover:not([hidden]),body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTraitPopover:not([hidden]) {position:fixed!important;top:calc(var(--mg-safe-top) + var(--mg-hud-height) + 7px)!important;left:calc(var(--mg-safe-left) + var(--mb-scout-width) + var(--mb-trait-width) + 8px)!important;right:auto!important;bottom:auto!important;z-index:78!important;display:block!important;width:min(280px,calc(100vw - var(--mg-safe-left) - var(--mg-safe-right) - var(--mb-scout-width) - var(--mb-trait-width) - var(--mb-shop-width) - 18px))!important;max-height:calc(100dvh - var(--mg-safe-top) - var(--mg-safe-bottom) - var(--mg-hud-height) - 16px)!important;padding:9px!important;overflow-x:hidden!important;overflow-y:auto!important;border:1px solid #dac48b!important;border-radius:10px!important;background:linear-gradient(#16364f,#071a2e)!important;box-shadow:0 5px 18px #0007!important;transform:none!important;}
body.mobile-battle-layout #mobileStatPopover>header {display:flex;align-items:center;justify-content:space-between;gap:5px;color:#ffe9b2;font-size:13px;}
body.mobile-battle-layout #mobileStatPopover>header,body.mobile-battle-layout #mobileTraitPopover>header {position:sticky!important;top:-9px!important;z-index:2!important;margin:-9px -9px 0!important;padding:9px!important;border-bottom:1px solid #d7c18a4a!important;background:#16364f!important;}
body.mobile-battle-layout #mobileStatPopoverClose {flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border:1px solid #a8bed08c;border-radius:7px;background:#0b2238;color:#eff6ff;font-size:19px;}
body.mobile-battle-layout #mobileStatPopoverBody p {margin:8px 0 0;color:#e2eef7;font-size:11px;line-height:1.4;}

/* The shop owns its own header, scrolling offers, bench and footer. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active >.shell>.sidebar {position:fixed!important;top:calc(var(--mg-safe-top) + var(--mg-hud-height) + var(--mb-gap))!important;right:var(--mg-safe-right)!important;bottom:var(--mg-safe-bottom)!important;left:auto!important;z-index:54!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:var(--mb-tab-height) var(--mb-action-height) minmax(0,1fr) var(--mb-bench-height)!important;width:var(--mb-shop-width)!important;min-width:0!important;max-width:var(--mb-shop-width)!important;height:auto!important;min-height:0!important;gap:0!important;padding:0 4px var(--mb-footer-height)!important;overflow:hidden!important;transform:none!important;border:1px solid #e1c78a!important;border-radius:11px!important;background:linear-gradient(150deg,#153552,#071c31 55%)!important;box-shadow:inset 0 0 0 2px #070e1a,inset 0 3px 0 #ffefc843,0 4px 12px #0006!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopTabs:not([hidden]) {grid-row:1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px!important;min-width:0!important;padding:2px 0!important;background:transparent!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopTabs>button {display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:28px;height:28px;padding:2px 3px;color:#b2c9e3;font:900 11px/1 Inter,system-ui,sans-serif;text-transform:uppercase;border:1px solid #658cb34f;border-radius:7px;background:linear-gradient(#173650,#0b1d34);}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopTabs>button[aria-pressed="true"] {color:#32210b;border-color:#fff0b6;background:linear-gradient(#ffe8a0,#e7b448);box-shadow:inset 0 1px 0 #fffae0,inset 0 -1px 0 #b27a22;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopTabs .mobile-shop-tab-icon {width:17px;height:17px;font-size:16px;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetHeader:not([hidden]) {position:static!important;grid-row:2!important;display:flex!important;align-items:center!important;width:100%!important;height:var(--mb-action-height)!important;min-height:var(--mb-action-height)!important;gap:3px!important;margin:0!important;padding:0 0 3px!important;border:0!important;background:transparent!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="towers"],[data-mobile-panel="monsters"]) #mobileSheetHeader>div:first-child,
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="towers"],[data-mobile-panel="monsters"]) #mobileSheetCloseButton,
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetEyebrow,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetExpandButton {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetHeader .mobile-sheet-actions {display:flex!important;flex:1 1 auto!important;align-items:stretch!important;justify-content:flex-end!important;min-width:0!important;height:100%!important;gap:3px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions:not([hidden]),body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions>.shop-actions {display:flex!important;flex:1 1 auto!important;align-items:stretch!important;width:100%!important;height:100%!important;min-width:0!important;gap:3px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions .shop-action,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions #batchButtons {display:flex!important;flex:1 1 0!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:29px!important;height:29px!important;min-height:29px!important;gap:4px!important;padding:2px 4px!important;color:#e4eef7!important;font-size:9px!important;line-height:11px!important;border:1px solid #79a4c3!important;border-radius:6px!important;background:linear-gradient(#1a3b5b,#0a2038)!important;box-shadow:inset 0 1px 0 #afd9f62e!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions .action-cost {color:#ffdf8c!important;font-size:9px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions #batchButtons.batch-segmented-button {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:1.1 1 0!important;min-width:56px!important;padding:2px!important;gap:1px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions .batch-segment {font-size:8px!important;padding:0!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopRecapButton:not([hidden]) {display:flex!important;flex:0 0 50px!important;align-items:center!important;justify-content:center!important;width:50px!important;min-width:50px!important;height:29px!important;min-height:29px!important;gap:3px!important;padding:2px!important;border:1px solid #cbb681!important;border-radius:6px!important;background:linear-gradient(#3c4546,#172b3c)!important;color:#fff0c5!important;font-size:9px!important;}
body.mobile-battle-layout #mobileShopRecapButton .mobile-control-icon {width:12px!important;height:12px!important;flex-basis:12px!important;}
body.mobile-battle-layout #mobileShopRecapButton.has-new-recap {border-color:#ffe1a0!important;background:linear-gradient(#766046,#2b3c47)!important;box-shadow:inset 0 1px 0 #fff1c45e!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetCloseButton {flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;font-size:18px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetTitle {display:block!important;max-width:none!important;color:#ffe8b8!important;font-size:12px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active >.shell>.sidebar>.panel {position:static!important;grid-row:3!important;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;border:0!important;border-radius:0!important;background:transparent!important;touch-action:pan-y!important;}

/* Large portraits and a distinct golden price anchor on each full-width row. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;grid-auto-rows:44px!important;align-content:start!important;width:100%!important;height:100%!important;min-height:0!important;gap:1px!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-snap-type:y proximity!important;scrollbar-width:thin!important;scrollbar-color:#e3bd70 #071529!important;touch-action:pan-y!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons>.shop-card,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons>.shop-card {position:relative!important;display:block!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;overflow:hidden!important;border:1px solid color-mix(in srgb,var(--rarity-color,#93c6c4) 55%,#799db2)!important;border-radius:7px!important;background:radial-gradient(ellipse at 7% 50%,color-mix(in srgb,var(--rarity-color,#9bc6d7) 17%,transparent),transparent 65%),linear-gradient(115deg,#14354c,#091e34)!important;box-shadow:inset 0 1px 0 #deefff12!important;touch-action:pan-y!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-icon,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-icon {position:absolute!important;top:0!important;right:auto!important;bottom:auto!important;left:2px!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;border-radius:4px!important;background:none!important;box-shadow:none!important;transform:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .choice-icon>img,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .choice-icon>img {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-main,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-main {position:absolute!important;top:5px!important;right:50px!important;bottom:3px!important;left:48px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;width:auto!important;min-width:0!important;height:auto!important;max-height:none!important;gap:3px!important;margin:0!important;padding:0!important;overflow:hidden!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-name,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-name {display:block!important;flex:0 0 15px!important;width:100%!important;min-width:0!important;min-height:15px!important;max-height:15px!important;margin:0!important;padding:0!important;overflow:hidden!important;color:#fff9e8!important;font-size:12px!important;font-weight:850!important;line-height:15px!important;text-align:left!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-cost,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-cost {position:absolute!important;top:6px!important;right:3px!important;bottom:auto!important;left:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;width:43px!important;min-width:43px!important;max-width:43px!important;height:30px!important;min-height:30px!important;gap:3px!important;margin:0!important;padding:2px 3px!important;overflow:hidden!important;color:#462408!important;font-size:13px!important;font-weight:950!important;line-height:16px!important;white-space:nowrap!important;border:1px solid #ffeab3!important;border-radius:7px!important;background:linear-gradient(#ffe599,#f0ba4f 75%,#d99529)!important;box-shadow:inset 0 1px 0 #fff2ca,inset 0 -1px 0 #92561650!important;transform:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .choice-cost .gold-icon,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .choice-cost .gold-icon {width:12px!important;height:12px!important;filter:drop-shadow(0 1px 0 #fff2b450)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active :is(#towerButtons,#monsterButtons) .shop-cost-exact {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active :is(#towerButtons,#monsterButtons) .shop-cost-compact {display:inline!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .mobile-shop-rarity {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons>.shop-card {border-left:3px solid var(--rarity-color)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--rarity-color) 50%,transparent)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .mobile-shop-rarity {position:absolute!important;top:auto!important;left:48px!important;right:50px!important;bottom:1px!important;display:block!important;max-width:max-content!important;height:10px!important;padding:0 3px!important;overflow:hidden!important;border-radius:3px!important;background:color-mix(in srgb,var(--rarity-color) 24%,#06182e)!important;color:color-mix(in srgb,var(--rarity-color) 70%,white)!important;font-size:8px!important;font-weight:800!important;line-height:10px!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-main {top:2px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-shop-floating-badges {position:absolute!important;top:17px!important;right:50px!important;bottom:auto!important;left:48px!important;display:flex!important;align-items:center!important;gap:3px!important;width:auto!important;height:13px!important;min-height:0!important;overflow:hidden!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-shop-floating-badge,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-shop-floating-badge .shop-decision-badge {position:static!important;display:inline-flex!important;align-items:center!important;width:auto!important;min-width:0!important;height:13px!important;min-height:0!important;margin:0!important;padding:0 2px!important;gap:2px!important;font-size:9px!important;line-height:12px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-decision-icon,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-decision-icon>img,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-decision-icon>svg {width:11px!important;min-width:11px!important;height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-decision-row--combat,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-stat-grid,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-trait-list,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-tags {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-decision-row {position:static!important;display:flex!important;min-width:0!important;min-height:12px!important;height:12px!important;gap:2px!important;overflow:hidden!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-decision-row>.shop-decision-badge {display:inline-flex!important;align-items:center!important;min-width:0!important;min-height:12px!important;height:12px!important;padding:0 2px!important;font-size:9px!important;line-height:11px!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-decision-row>.shop-decision-badge:nth-child(n+3) {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-main {top:3px!important;gap:1px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-name {flex-basis:14px!important;min-height:14px!important;max-height:14px!important;line-height:14px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats {position:absolute!important;top:auto!important;right:50px!important;bottom:2px!important;left:48px!important;display:flex!important;justify-content:flex-start!important;width:auto!important;height:10px!important;min-height:0!important;max-height:10px!important;gap:4px!important;overflow:hidden!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats .unit-shop-pill {display:inline-flex!important;align-items:center!important;min-width:0!important;min-height:0!important;height:10px!important;max-height:10px!important;padding:0!important;gap:2px!important;font-size:9px!important;line-height:10px!important;border:0!important;background:transparent!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats .heart-icon,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats .income-icon {width:7px!important;height:7px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-match-badge {top:2px!important;right:auto!important;left:3px!important;min-width:13px!important;min-height:12px!important;padding:0 2px!important;font-size:7px!important;line-height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card--pending-refill .shop-card-pending-copy,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card--pending-refill .shop-card-pending-copy {top:50%!important;left:48px!important;right:4px!important;transform:translateY(-50%)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card--pending-refill .shop-card-loader,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card--pending-refill .shop-card-loader {top:50%!important;left:9px!important;transform:translateY(-50%)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card--pending-refill .shop-card-pending-copy strong,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card--pending-refill .shop-card-pending-copy strong {font-size:10px!important;}

/* Three send offers use all available height, with larger art and two-line names. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons {grid-auto-rows:minmax(58px,1fr)!important;gap:3px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons>.shop-card {height:100%!important;min-height:58px!important;max-height:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-icon {top:50%!important;left:1px!important;width:50px!important;min-width:50px!important;height:54px!important;min-height:54px!important;transform:translateY(-50%)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-main {top:4px!important;left:55px!important;right:50px!important;gap:1px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-name {display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;flex-basis:26px!important;min-height:26px!important;max-height:26px!important;font-size:12px!important;line-height:13px!important;white-space:normal!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-decision-row,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-decision-row>.shop-decision-badge {height:13px!important;min-height:13px!important;font-size:10px!important;line-height:12px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats {left:55px!important;right:50px!important;bottom:3px!important;height:11px!important;max-height:11px!important;gap:4px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats .unit-shop-pill {height:11px!important;max-height:11px!important;font-size:10px!important;line-height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats strong {font-size:10px!important;line-height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-cost {top:50%!important;height:34px!important;min-height:34px!important;transform:translateY(-50%)!important;}

/* A usable 44px bench; its six slots scroll as a single horizontal strip. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost {display:block!important;grid-row:4!important;min-width:0!important;height:44px!important;overflow:hidden!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost .bench-panel {position:static!important;display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;min-height:44px!important;gap:2px!important;margin:0!important;padding:0!important;overflow:hidden!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;border:0!important;border-radius:0!important;background:#0a2032!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost .panel-title {position:static!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:22px!important;min-width:0!important;min-height:0!important;height:44px!important;gap:2px!important;margin:0!important;padding:0!important;pointer-events:auto!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost .panel-title h2 {margin:0!important;font-size:7px!important;line-height:9px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchCountLabel {color:#9fe8e6!important;font-size:9px!important;font-weight:850!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots {display:grid!important;grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:44px!important;grid-template-rows:44px!important;align-content:start!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;gap:2px!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important;touch-action:pan-x!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-slot {position:relative!important;display:block!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:1px!important;overflow:hidden!important;border:1px solid #8eb3c987!important;border-radius:6px!important;background:linear-gradient(#16334d,#0a2035)!important;scroll-snap-align:start!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-slot.empty {border-style:dashed!important;background:#061b2e!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-slot.empty .bench-empty {font-size:15px!important;color:#7192ac!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-slot .choice-icon {position:absolute!important;inset:1px!important;width:auto!important;min-width:0!important;height:40px!important;min-height:0!important;margin:0!important;border:0!important;background:transparent!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .choice-icon>img {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-main {position:absolute!important;right:2px!important;bottom:2px!important;left:auto!important;display:block!important;height:11px!important;min-width:0!important;overflow:hidden!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-title {display:flex!important;align-items:center!important;justify-content:center!important;gap:1px!important;min-width:0!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-title>span {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost #benchSlots .bench-title>strong {display:block!important;flex:0 0 auto!important;padding:0 2px!important;border-radius:3px!important;background:#071426cf!important;color:#ffda86!important;font-size:8px!important;line-height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost .bench-badges,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost .bench-tags,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileShopBenchHost .tower-trait-list {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav {position:absolute!important;top:auto!important;right:4px!important;bottom:0!important;left:auto!important;z-index:56!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:36px!important;grid-auto-flow:column!important;width:calc(100% - 8px)!important;height:36px!important;min-height:36px!important;gap:3px!important;margin:0!important;padding:1px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav .mobile-action-button {display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;gap:3px!important;padding:2px!important;color:#eef4fd!important;border:1px solid #7ba3c6!important;border-radius:7px!important;background:linear-gradient(#204263,#0c2038)!important;box-shadow:inset 0 1px 0 #bbdcff22!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav [data-mobile-panel="towers"],body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav [data-mobile-panel="monsters"],body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileDockBenchCount {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav .mobile-nav-glyph {display:grid!important;place-items:center!important;width:15px!important;height:15px!important;font-size:14px!important;line-height:15px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav .mobile-nav-label {display:block!important;max-width:100%!important;font-size:8px!important;line-height:10px!important;white-space:nowrap!important;}

/* Placement has its own row and leaves shop actions available. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlacementToolbar:not([hidden]) {position:static!important;grid-row:3!important;display:flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important;height:32px!important;min-height:32px!important;max-height:32px!important;gap:3px!important;margin:0!important;padding:0 0 0 4px!important;border:1px solid #c8bc85!important;border-radius:6px!important;background:#14324c!important;transform:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlacementToolbar>span {display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;color:#fff1c4!important;font-size:9px!important;line-height:11px!important;white-space:normal!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlacementToolbar .mobile-action-button {width:48px!important;min-width:48px!important;height:30px!important;min-height:30px!important;padding:2px!important;font-size:9px!important;line-height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active.mobile-placement-active:is([data-mobile-panel="towers"],[data-mobile-panel="monsters"]) >.shell>.sidebar {grid-template-rows:var(--mb-tab-height) var(--mb-action-height) 32px minmax(0,1fr) var(--mb-bench-height)!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active.mobile-placement-active:is([data-mobile-panel="towers"],[data-mobile-panel="monsters"]) >.shell>.sidebar>.panel {grid-row:4!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active.mobile-placement-active:is([data-mobile-panel="towers"],[data-mobile-panel="monsters"]) #mobileShopBenchHost {grid-row:5!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"],[data-mobile-panel="augments"],[data-mobile-panel="upgrades"]) #mobilePlacementToolbar {display:none!important;}

/* The recap is a readable page in Plus, rather than a banner over build cells. */
body.mobile-battle-layout #mobileRoundRecap:not([hidden]) {position:static!important;display:grid!important;gap:7px!important;width:100%!important;min-width:0!important;margin:5px 0!important;padding:6px!important;border:1px solid #b89e68!important;border-radius:8px!important;background:linear-gradient(#142e45,#071b2f)!important;}
body.mobile-battle-layout #mobileRoundRecap [data-round-recap-close] {display:none!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-head {grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-title b {font-size:10px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-head strong {gap:2px!important;font-size:9px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-head strong span {font-size:12px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-eyebrow {font-size:8px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp {grid-template-columns:34px minmax(0,1fr)!important;gap:4px!important;padding:4px!important;border-color:#bfad775c!important;background:#172d3c!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp-icon {width:34px!important;height:34px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp-icon .choice-icon {position:relative!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp-icon img {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp-copy b {font-size:10px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp-copy small,body.mobile-battle-layout #mobileRoundRecap .round-recap-mvp-copy em {font-size:8px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-grid span {padding:4px!important;background:#081a2a!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-grid small {font-size:8px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-grid b {font-size:11px!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-section {gap:3px!important;padding:4px!important;background:#081a2a!important;}
body.mobile-battle-layout #mobileRoundRecap .round-recap-section--split {grid-template-columns:minmax(0,1fr)!important;}

/* Remaining informational overlays stay outside the shop. */
body.mobile-battle-layout #roundRecapPanel:not([hidden]),
body.mobile-battle-layout #threatPanel:not([hidden]) {
  top: auto !important;
  right: calc(var(--mg-safe-right) + var(--mb-shop-width) + var(--mb-gap)) !important;
  bottom: var(--mg-safe-bottom) !important;
  left: calc(var(--mg-safe-left) + var(--mb-scout-width) + var(--mb-gap)) !important;
  width: auto !important;
  max-height: 38px !important;
  min-height: 0 !important;
  padding: 2px 5px !important;
  overflow: hidden !important;
  transform: none !important;
}

body.mobile-battle-layout #roundRecapPanel .round-recap-head {
  grid-template-columns: minmax(0, 1fr) auto 32px !important;
}

body.mobile-battle-layout #roundRecapPanel .round-recap-toggle,
body.mobile-battle-layout #roundRecapPanel .round-recap-close {
  min-height: 30px !important;
  height: 30px !important;
}

body.mobile-battle-layout.mobile-placement-active #roundRecapPanel,
body.mobile-battle-layout.mobile-placement-active #threatPanel,
body.mobile-battle-layout.selected-panel-open #roundRecapPanel,
body.mobile-battle-layout.selected-panel-open #threatPanel {
  visibility: hidden !important;
  pointer-events: none !important;
}





body.mobile-battle-layout #augmentBookOverlay:not([hidden]),
body.mobile-battle-layout #powerBookOverlay:not([hidden]),
body.mobile-battle-layout #traitsOverlay:not([hidden]) {
  padding: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

body.mobile-battle-layout #augmentBookOverlay .augment-book-panel,
body.mobile-battle-layout #powerBookOverlay .power-book-panel,
body.mobile-battle-layout #traitsOverlay .traits-panel {
  position: fixed !important;
  top: calc(var(--mg-safe-top) + var(--mg-hud-height) + var(--mb-gap)) !important;
  right: var(--mg-safe-right) !important;
  bottom: calc(var(--mg-safe-bottom) + var(--mb-footer-height) + var(--mb-bench-height) + 2px) !important;
  left: auto !important;
  display: block !important;
  width: var(--mb-shop-width) !important;
  min-width: 0 !important;
  max-width: var(--mb-shop-width) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 7px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid #d8b66b99 !important;
  border-radius: 10px !important;
  background: #102234fc !important;
  pointer-events: auto !important;
}

body.mobile-battle-layout #augmentBookTitle,
body.mobile-battle-layout #powerBookTitle,
body.mobile-battle-layout #traitsPanelTitle {
  font-size: 11px !important;
  white-space: normal !important;
}

body.mobile-battle-layout #augmentBookCloseButton,
body.mobile-battle-layout #powerBookCloseButton,
body.mobile-battle-layout #traitsPanelCloseButton {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 2px !important;
  font-size: 9px !important;
}

body.mobile-battle-layout #mobileCameraControls:not([hidden]) {
  top: auto !important;
  right: calc(var(--mg-safe-right) + var(--mb-shop-width) + var(--mb-gap)) !important;
  bottom: var(--mg-safe-bottom) !important;
  left: calc(var(--mg-safe-left) + var(--mb-scout-width) + var(--mb-gap)) !important;
  z-index: 53 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  gap: 3px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #102739ed !important;
  pointer-events: auto !important;
}

body.mobile-battle-layout #mobileCameraControls > button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

body.mobile-battle-layout #mobileCameraControls .mobile-zoom-readout {
  display: none !important;
}

body.mobile-battle-layout #mobileCameraControls .mobile-board-readout {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 120px !important;
  height: 44px !important;
  padding: 0 3px !important;
  overflow: hidden !important;
  font-size: 8px !important;
  line-height: 44px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}


/* Compact player cards inherit their player's colour, with a clear identity row. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-row {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:30px 24px 26px!important;gap:2px!important;padding:2px!important;margin:0 0 2px!important;border:1px solid color-mix(in srgb,var(--player-color,#809cbd) 70%,#bdd9e5)!important;border-left-width:3px!important;border-radius:9px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--player-color,#458ac5) 28%,#0c233b),#0b1b2e 85%)!important;box-shadow:inset 0 1px 0 #eef6ff21!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-row.is-local {border-color:#f8d187!important;box-shadow:inset 0 1px 0 #ffe6a44a!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-row.is-observed {outline:1px solid #d3edff99!important;outline-offset:-3px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-main {grid-area:1/1/2/-1!important;display:grid!important;grid-template-columns:12px minmax(0,1fr) auto!important;align-items:center!important;gap:4px!important;width:100%!important;min-width:0!important;height:30px!important;min-height:30px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#fff4df!important;text-align:left!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-dot {width:12px!important;height:14px!important;border:1px solid #e1edf3aa!important;border-radius:3px!important;background:var(--player-color)!important;box-shadow:inset 0 1px 0 #fff5!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-main>strong {min-width:0!important;overflow:hidden!important;font-size:12px!important;line-height:14px!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-life {grid-area:1/3/2/4!important;width:auto!important;min-width:43px!important;padding:3px!important;border:1px solid #e77b934f!important;border-radius:6px!important;background:#3d1d32a6!important;color:#ffd3da!important;font-size:14px!important;font-weight:900!important;line-height:17px!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-stat {grid-area:auto!important;grid-row:2!important;display:grid!important;align-content:center!important;min-width:0!important;padding:0 3px!important;border:1px solid #b9d2df1c!important;border-radius:4px!important;background:#04142670!important;line-height:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-stat small {font-size:8px!important;color:#b2c9d8!important;line-height:10px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-stat b {min-width:0!important;overflow:hidden!important;font-size:10px!important;line-height:12px!important;color:#edf5ff!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-stat--gold b {color:#ffde89!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-stat--income b {color:#b0efc4!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-row--shrink .mobile-player-stat--score {display:none!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-actions {grid-area:3/1/4/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;justify-self:stretch!important;gap:3px!important;width:100%!important;min-width:0!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-actions>button {display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;width:100%!important;min-width:0!important;height:26px!important;min-height:26px!important;padding:2px!important;border:1px solid #a9bed34d!important;border-radius:5px!important;background:linear-gradient(#2940558c,#0b2038ad)!important;color:#e5f1fa!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-actions>button>b {font-size:11px!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .mobile-player-action-label {min-width:0!important;overflow:hidden!important;font-size:8px!important;line-height:10px!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobilePlayersPanel .power-box-mini-icon {width:12px!important;min-width:12px!important;max-width:12px!important;height:12px!important;flex:0 0 12px!important;object-fit:contain!important;}

body.mobile-battle-layout #mobileAugmentsPanel > button {
  width: 100% !important;
  min-height: 44px !important;
  margin-bottom: 4px !important;
  font-size: 11px !important;
}


/* Secondary views temporarily use the whole shop column. The arena width and
 * all permanent HUD hit targets stay fixed while their contents scroll. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) > .shell > .sidebar {
  grid-template-rows: 32px minmax(0, 1fr) !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) #mobileShopTabs,
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) #mobileShopBenchHost {
  display: none !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) #mobileSheetHeader:not([hidden]) {
  grid-row: 1 !important;
  height: 32px !important;
  min-height: 32px !important;
  justify-content: space-between !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) #mobileSheetHeader > div:first-child {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) #mobileSheetHeader .mobile-sheet-actions {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) #mobileSheetContextActions {
  display: none !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active:is([data-mobile-panel="players"], [data-mobile-panel="augments"], [data-mobile-panel="upgrades"]) > .shell > .sidebar > .panel {
  grid-row: 2 !important;
}

body.mobile-battle-layout #mobilePlayersPanel > .panel-title,
body.mobile-battle-layout #mobileAugmentsPanel > .panel-title {
  display: none !important;
}


body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel:not([hidden]) {
  top: calc(var(--mg-safe-top) + var(--mg-hud-height) + var(--mb-gap) + var(--mb-tab-height) + var(--mb-action-height) + 1px) !important;
  right: calc(var(--mg-safe-right) + 5px) !important;
  bottom: calc(var(--mg-safe-bottom) + var(--mb-footer-height) + var(--mb-bench-height) + 1px) !important;
  left: auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: 28px minmax(0, 1fr) 44px !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  width: calc(var(--mb-shop-width) - 10px) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 4px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  transform: none !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel > button:nth-of-type(n) {
  grid-row: 3 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 2px !important;
  font-size: 9px !important;
  line-height: 11px !important;
  white-space: normal !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel > button:nth-of-type(1) { grid-column: 1 !important; }
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel > button:nth-of-type(2) { grid-column: 2 !important; }
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel > button:nth-of-type(3) { grid-column: 3 !important; }

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel > .panel-title {
  display: none !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel .selected-tower-visual {
  position: relative !important;
  grid-area: 1 / 1 / 2 / 2 !important;
  justify-self: start !important;
  align-self: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.mobile-battle-layout #selectedTowerVisual .choice-icon {
  position: absolute !important;
  inset: 0 !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
}

body.mobile-battle-layout #selectedTowerVisual .choice-icon > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel #placedTowerName {
  grid-area: 1 / 1 / 2 / -1 !important;
  align-self: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 0 0 32px !important;
  overflow: hidden !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel #placedTowerStats {
  grid-area: 2 / 1 / 3 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-self: stretch !important;
  align-content: start !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 2px !important;
  gap: 3px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  font-size: 9px !important;
  line-height: 12px !important;
  scrollbar-width: thin !important;
  touch-action: pan-y !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel[data-kind="creep"] {
  grid-template-rows: 28px minmax(0, 1fr) !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #selectedTowerPanel .selected-stat-row {
  min-width: 0 !important;
  min-height: 14px !important;
  padding: 1px 0 !important;
  white-space: normal !important;
}


/* Body-mounted menu and backdrop share one stacking context on iOS/WebKit. */
body.mobile-battle-layout.game-menu-open #gameArea::after {
  display: none !important;
  content: none !important;
  pointer-events: none !important;
}

body.mobile-battle-layout #mobileMenuBackdrop:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0006 !important;
  box-shadow: none !important;
  touch-action: manipulation !important;
}

body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #gameMenuPanel:not([hidden]) {
  position: fixed !important;
  top: calc(var(--mg-safe-top) + var(--mg-hud-height) + 5px) !important;
  right: var(--mg-safe-right) !important;
  bottom: var(--mg-safe-bottom) !important;
  left: auto !important;
  z-index: 82 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: min(320px, calc(100vw - var(--mg-safe-left) - var(--mg-safe-right) - 12px)) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border: 1px solid #dcc184a1 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #172d40, #0a1929) !important;
  box-shadow: inset 0 1px 0 #fff0c225, 0 8px 28px #0008 !important;
  transform: none !important;
  touch-action: pan-y !important;
}

body.mobile-battle-layout #gameMenuPanel > * {
  flex-shrink: 0 !important;
}

body.mobile-battle-layout #gameMenuPanel #mobileCloseMenuButton {
  display: grid !important;
  align-self: flex-end !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff1d1 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  border: 1px solid #c9b98075 !important;
  border-radius: 7px !important;
  background: #223b50 !important;
}


/* Small phones preserve readable rows, accepting a shorter scrolling list. */
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #roundRecapPanel:not([hidden]) {top:calc(var(--mg-safe-top) + var(--mg-hud-height) + var(--mb-gap))!important;right:var(--mg-safe-right)!important;bottom:calc(var(--mg-safe-bottom) + var(--mb-footer-height) + var(--mb-bench-height))!important;left:auto!important;z-index:79!important;width:var(--mb-shop-width)!important;max-height:none!important;padding:6px!important;overflow-y:auto!important;background:#0b2135fa!important;}
body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #threatPanel:not([hidden]) {display:none!important;}
@media(max-width:650px) {
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active {--mb-shop-width:184px;--mb-scout-width:76px;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar {grid-template-columns:70px minmax(0,1fr) 40px!important;gap:2px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-hud-stats {grid-template-columns:minmax(47px,1fr) minmax(67px,1.4fr) minmax(40px,.85fr) minmax(25px,.55fr) minmax(47px,1fr) minmax(60px,1.2fr)!important;gap:2px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-player-chip {padding:0 2px!important;gap:3px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-player-chip strong {font-size:10px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--life,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTopBar .mobile-stat--gold {gap:3px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileLifeValue {font-size:21px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileGoldValue {font-size:23px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileRoundValue {font-size:8px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileTimerValue {font-size:15px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail {padding-inline:2px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-player {grid-template-columns:12px minmax(0,1fr);gap:1px 3px;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-emblem {width:12px;height:14px;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-name {font-size:9px;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileScoutRail .mobile-scout-life {font-size:13px;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-icon,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-icon {left:1px!important;width:36px!important;min-width:36px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-main,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-main,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .tower-shop-floating-badges,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats {left:40px!important;right:47px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-name,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-name {font-size:11px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .mobile-shop-rarity {left:40px!important;right:47px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-icon {width:40px!important;min-width:40px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-main,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .unit-shop-floating-stats {left:44px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #towerButtons .shop-card .choice-cost,body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #monsterButtons .shop-card .choice-cost {width:40px!important;min-width:40px!important;max-width:40px!important;font-size:12px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav .mobile-nav-glyph {width:12px!important;font-size:12px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileBottomNav .mobile-nav-label {font-size:7px!important;}
 body.mobile-battle-layout.mobile-game-v2.mobile-landscape.mobile-ui.match-active #mobileSheetContextActions .mobile-shop-action-label {display:none!important;}
}
