/* Reference layout, scoped to the existing mobile game mode. No desktop or trade state changes. */
#mobileCommandMore,#mobileRoundStats,#mobileProfileProgress{display:none}
@layer battlePowerV2 {
@media(max-width:1000px) and (min-height:601px),(max-width:540px){
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui){background:#001323!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel){--m-cyan:#00d9ff;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:52px 66px 60px minmax(170px,1fr) 130px 50px 36px 132px 72px!important;gap:5px!important;padding:5px!important;height:100dvh!important;min-height:850px!important;border:0!important;border-radius:0!important;overflow:visible!important;background:#001522!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader{grid-area:1/1!important;height:52px!important;display:grid!important;grid-template-columns:42px minmax(95px,1fr) minmax(146px,1.25fr) 33px!important;gap:8px!important;padding:0 3px!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileCommandMore{display:grid!important;place-items:center!important;width:42px!important;min-height:38px!important;height:38px!important;padding:0!important;border:1.5px solid #00e2ff!important;border-radius:9px!important;background:radial-gradient(ellipse at top,#095170,#001525 80%)!important;box-shadow:0 0 9px #00cfff88,inset 0 0 6px #00cfff55!important;color:white!important;font:900 20px/1 Arial!important;letter-spacing:2px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #frontierLogo{order:0!important;height:46px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #frontierLogo img{height:46px!important;max-width:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playerProfile{position:relative!important;width:100%!important;height:52px!important;min-height:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:hidden!important;container-type:normal!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playerProfile .player-avatar{position:absolute!important;left:0!important;top:3px!important;width:44px!important;height:44px!important;object-fit:cover!important;border:1.5px solid #00e4f4!important;border-radius:50%!important;box-shadow:0 0 9px #00d8ff22!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playerProfile .profile-display-name{position:absolute!important;left:51px!important;top:0!important;width:calc(100% - 51px)!important;height:23px!important;font:800 17px/1.3 system-ui!important;color:white!important;text-align:left!important;transform:none!important;text-shadow:0 1px 2px #000!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #profileRoleBadge{position:absolute!important;left:51px!important;top:23px!important;height:13px!important;max-width:calc(100% - 51px)!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;color:#ffce38!important;font:700 10px/1 system-ui!important;clip-path:none!important;white-space:nowrap!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #profileRoleBadge svg{width:13px!important;height:13px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #profileLevelBadge{left:51px!important;top:auto!important;bottom:2px!important;font:800 10px/1.2 system-ui!important;color:#00e6ff!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileProfileProgress{display:block!important;position:absolute!important;left:92px!important;right:2px!important;bottom:4px!important;width:calc(100% - 94px)!important;height:5px!important;border:0!important;border-radius:9px!important;overflow:hidden!important;background:#064362!important;appearance:none!important}
#mobileProfileProgress::-webkit-progress-bar{background:#064362}#mobileProfileProgress::-webkit-progress-value{background:linear-gradient(90deg,#00e5eb,#00a9ee);border-radius:9px}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playingGuideButton{width:33px!important;height:45px!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playingGuideButton img{width:33px!important;height:45px!important;object-fit:contain!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2{grid-area:2/1!important;width:100%!important;height:66px!important;position:relative!important;inset:auto!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar .bp-heading>span{font-size:14px!important;letter-spacing:.3px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar .bp-rail{top:37%!important;height:7%!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar .bp-legend{bottom:6%!important;height:31%!important;gap:18%!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar .bp-team-label{font-size:10px!important;line-height:1.1!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar .bp-troop-total{font-size:11px!important;line-height:1.2!important;white-space:nowrap!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar .bp-reinforcement{font-size:7px!important;line-height:1!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #marketChartPanel.chart-collapsed{grid-area:3/1!important;position:relative!important;inset:auto!important;width:100%!important;height:60px!important;padding:4px 7px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #marketChartPanel.chart-collapsed #quoteLatest{font-size:17px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #marketChartPanel.chart-collapsed #quoteChange{font-size:11px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #marketChartPanel .chart-timeframes button{min-height:29px!important;font-size:12px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #scene{grid-area:4/1!important;position:relative!important;inset:auto!important;width:calc(100% + 10px)!important;margin-left:-5px!important;height:100%!important;min-height:170px!important;border:0!important;border-radius:0!important;object-fit:cover!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) .battle-hud.reference-neon-host{grid-area:5/1!important;height:130px!important;position:relative!important;inset:auto!important;width:100%!important;transform:none!important;z-index:8!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel.reference-neon{position:relative!important;display:block!important;height:130px!important;min-height:0!important;padding:0!important;border:1px solid #007baf!important;border-top:2px solid #00cfff!important;border-radius:20px 20px 5px 5px!important;background:radial-gradient(ellipse at 50% 50%,#064136,#00243b 63%,#00172a)!important;box-shadow:inset 0 0 0 3px #07364b,0 -4px 14px #00a9e522!important;overflow:visible!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .phone-profit-label{position:absolute!important;left:25%!important;right:25%!important;top:4px!important;height:17px!important;font:700 12px/1.3 system-ui!important;text-align:center!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .neon-center{position:static!important;display:contents!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel.reference-neon #np{position:absolute!important;left:20%!important;right:20%!important;top:19px!important;width:60%!important;height:44px!important;font:900 46px/1 F1Barlow,system-ui!important;letter-spacing:-1px!important;margin:0!important;transform:none!important;text-shadow:0 0 15px currentColor!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel.reference-neon #roundAction{position:absolute!important;left:19%!important;top:67px!important;width:62%!important;height:53px!important;min-height:53px!important;padding:0 12px!important;clip-path:polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%)!important;border:2px solid #9affee!important;border-radius:9px!important;background:linear-gradient(120deg,#008c43,#00d477 42%,#007f38)!important;box-shadow:inset 0 0 0 3px #033e45,inset 0 0 12px white!important;font:900 32px/1 F1Barlow,system-ui!important;color:white!important;letter-spacing:1px!important;text-shadow:0 0 8px #fff8!important;transform:none!important;filter:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=red] #roundAction,html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-neon-color=red] #roundAction{background:linear-gradient(120deg,#8b1733,#df3349,#8b1733)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=blue] #roundAction,html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-neon-color=blue] #roundAction{background:linear-gradient(120deg,#0053a6,#00a6ed,#0053a6)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #roundAction:disabled{opacity:.55!important;filter:saturate(.5)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-neon-long-command=true] #roundAction{font-size:16px!important;letter-spacing:0!important;white-space:normal!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel>.today-profit{position:absolute!important;right:5px!important;top:30px!important;width:18%!important;height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:4px!important;border:1px solid #00caff!important;border-radius:10px!important;background:linear-gradient(#043b59,#001a2c)!important;box-shadow:inset 0 0 5px #00bfff55!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel>.today-profit>span{font:700 9px/1 system-ui!important;letter-spacing:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel>.today-profit>b{font:800 18px/1 F1Barlow,system-ui!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .neon-left{position:absolute!important;left:3px!important;top:31px!important;width:16%!important;height:54px!important;display:block!important;grid-area:auto!important;background:none!important;border:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .neon-connection{position:relative!important;inset:auto!important;width:100%!important;height:27px!important;padding:3px!important;display:block!important;border:0!important;overflow:hidden!important;background:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .neon-status,html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .neon-dot{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #roundGuidance{position:absolute!important;left:18%!important;right:18%!important;top:121px!important;bottom:auto!important;height:auto!important;max-height:20px!important;font-size:9px!important;line-height:1.2!important;z-index:4!important;background:#002130!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #blitzDetailsButton{position:absolute!important;inset:18px auto auto 4px!important;width:16%!important;height:82px!important;min-height:0!important;transform:none!important;margin:0!important;padding:3px!important;border:1px solid #1675a5!important;border-radius:12px 3px!important;background:#00233b!important;font-size:9px!important;box-shadow:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #blitzDetailsButton[hidden]{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #blitzDetailsButton .bz-portrait{height:46px!important;width:100%!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #blitzDetailsButton small{font-size:8px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats{grid-area:6/1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:center!important;height:50px!important;border:1px solid #00bdf3!important;border-radius:10px!important;padding:6px 4px!important;background:linear-gradient(130deg,#052e45,#001829)!important;box-shadow:inset 0 0 10px #0073a22a!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:0!important;border-right:1px solid #12637d!important;position:static!important;inset:auto!important;background:none!important;margin:0!important;padding:0 3px!important;text-align:center!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats>div:last-child{border:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats span,html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats dt{font:500 11px/1 system-ui!important;letter-spacing:0!important;color:#a3c6d6!important;margin:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats b,html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats dd{font:800 22px/1.1 F1Barlow,system-ui!important;color:#edf7ff!important;margin:0!important;white-space:nowrap!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #mobileRoundStats #balanceValue{color:#ffdf67!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneTargetsRow{grid-area:7/1!important;height:36px!important;border:1px solid #e5b548!important;border-radius:8px!important;box-shadow:inset 0 0 10px #dba32544!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneTargetsRow .neon-target-caption{font-size:16px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneTargetsRow .target-pair{font-size:13px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel{grid-area:8/1!important;height:132px!important;padding:6px 9px!important;border-radius:15px!important;border:1px solid #00c8f5!important;background:linear-gradient(130deg,#04354d,#001b2c)!important;grid-template-rows:22px 42px 51px!important;gap:3px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .phone-smart-heading b{font-size:15px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel #systemStatsSummary{height:42px!important;padding:4px 7px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel #systemStatsSummary .smart-current{font-size:12px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console{height:51px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel #regimeContent dl{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .radar-lights{top:0!important;height:51px!important;bottom:0!important;align-items:center!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .radar-indicator{border:0!important;gap:2px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .lamp-housing{width:36px!important;height:36px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .lamp-label{font-size:11px!important;font-weight:750!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) .game-dock.icon-dock{grid-area:9/1!important;position:relative!important;inset:auto!important;height:72px!important;padding:0!important;border:1px solid #267dba!important;border-radius:13px!important;background:linear-gradient(#0b3653,#00182a)!important;box-shadow:inset 0 0 0 2px #124f72!important;overflow:visible!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu{position:static!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:100%!important;height:70px!important;padding:3px 0!important;gap:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>button{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>button:is([data-menu=world],[data-menu=stats],[data-menu=settings],[data-menu=lot],[data-menu=battlefield]){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;height:64px!important;min-height:44px!important;font:750 11px/1.2 system-ui!important;padding:4px 1px!important;border:0!important;border-right:1px solid #154866!important;background:none!important;color:#e4f5ff!important;border-radius:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=world]{order:0!important}html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=stats]{order:1!important}html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=settings]{order:2!important}html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=lot]{order:3!important}html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=battlefield]{order:4!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>button svg{width:27px!important;height:27px!important;stroke-width:1.7!important;filter:drop-shadow(0 0 2px #11b9ff55)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=settings]{border:1px solid #00d5ff!important;border-radius:10px!important;background:linear-gradient(#07577a,#00192e)!important;box-shadow:0 0 9px #00bdff77,inset 0 0 8px #00caff55!important;color:#00e8ff!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenuMore{position:fixed!important;left:10px!important;right:10px!important;top:65px!important;bottom:auto!important;z-index:60!important;max-height:calc(100dvh - 90px)!important;overflow:auto!important;padding:14px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border:1px solid #00caff!important;background:#04273bf7!important;border-radius:14px!important;box-shadow:0 10px 80px #000d!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenuMore[hidden]{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenuMore button{min-height:54px!important;font-size:12px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) :is(#walletHud,#eaLink,#portfolioMode,#lumiPanel,#lumiPortrait,#reinforcementToggle){display:none!important}
}
}

/* final alignment */
@layer battlePowerV2{@media(max-width:1000px) and (min-height:601px),(max-width:540px){
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader>*{grid-area:auto!important;grid-row:1!important;order:0!important;min-width:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #mobileCommandMore{grid-column:1!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #frontierLogo{grid-column:2!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playerProfile{grid-column:3!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playingGuideButton{grid-column:4!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader .player-identity{position:static!important;display:contents!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel>.today-profit{left:auto!important;bottom:auto!important;transform:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .today-profit b{text-align:center!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #roundAction:before,#roundPanel #roundAction:after{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #roundAction{background-image:linear-gradient(120deg,#008c43,#00d477 42%,#007f38)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=blue] #roundAction,#roundPanel[data-neon-color=blue] #roundAction{background-image:linear-gradient(120deg,#0053a6,#00a6ed,#0053a6)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=red] #roundAction,#roundPanel[data-neon-color=red] #roundAction{background-image:linear-gradient(120deg,#8b1733,#df3349,#8b1733)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>button>span{display:block!important;font:750 11px/1.2 system-ui!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .regime-panel{height:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .signals-panel{position:static!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .radar-lights{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneSmartPanel .tactical-console .radar-indicator{display:flex!important;flex-direction:column!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel .neon-art{display:none!important}
}}

/* compact polish */
@layer battlePowerV2{@media(max-width:1000px) and (min-height:601px),(max-width:540px){
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-legend{top:auto!important;bottom:8%!important;height:34%!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-side-summary{position:static!important;inset:auto!important;transform:none!important;height:100%!important;min-height:0!important;align-items:center!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-troop-copy{height:100%!important;min-height:0!important;gap:0!important;transform:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-reinforcement{font-size:6px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-portrait{height:24px!important;max-width:28px!important;flex-basis:23px!important;border:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-summary-sell{flex-direction:row-reverse!important;text-align:right!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battlePowerBar.bp-v2 .bp-summary-sell .bp-troop-copy{align-items:flex-end!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>button>span:after{display:none!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=battlefield]>span{font-size:0!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #battleMenu>[data-menu=battlefield]>span:after{display:block!important;content:"สมรภูมิ"!important;font:750 11px/1.2 system-ui!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=green] #roundAction{background:linear-gradient(120deg,#008c43,#00d477 42%,#007f38)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=red] #roundAction{background:linear-gradient(120deg,#8b1733,#df3349,#8b1733)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=blue] #roundAction{background:linear-gradient(120deg,#0053a6,#00a6ed,#0053a6)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel[data-command-color=unknown] #roundAction{background:linear-gradient(120deg,#35434c,#6a7d89,#35434c)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneTargetsRow:has(#targetsButton:disabled){opacity:.55!important;filter:saturate(.5)!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel:has(#blitzDetailsButton:not([hidden])) .neon-left{top:99px!important;height:15px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #blitzDetailsButton .bz-portrait{display:block!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playerProfile:not(.has-role-badge) .profile-display-name{top:6px!important}
html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #phoneGameHeader #playerProfile:not(.has-role-badge) #profileLevelBadge{bottom:5px!important}
}}

/* today detail action */
#mobileTodayDetails{display:none}
@layer battlePowerV2{@media(max-width:1000px) and (min-height:601px),(max-width:540px){html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel #mobileTodayDetails{display:block!important;position:absolute!important;right:0!important;top:0!important;width:13px!important;min-width:0!important;min-height:24px!important;height:24px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#0df0ff!important;font:800 22px/1 Arial!important;pointer-events:auto!important}html body.phone-reference.mobile-command-ref.mobile-command-active.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage:has(#roundPanel) #roundPanel>.today-profit>span{padding-right:5px!important;font-size:8px!important}}}
