/* Keep the original resource owners and click handlers; one grid places all five balances. */
.game-hud598{--hud-top:calc(52px + env(safe-area-inset-top))}
.game-hud598 header{display:grid;grid-template-columns:38px minmax(0,1fr) repeat(5,minmax(60px,110px)) minmax(0,1fr) repeat(3,36px);gap:7px;height:52px;padding:6px 12px;align-items:center}
.game-hud598 header #resources,.game-hud598 header #researchWallet{display:contents!important}
.game-hud598 header #accountButton{grid-column:1;grid-row:1}
.game-hud598 header #resources>.resource{grid-row:1;min-width:0;width:100%;height:36px;justify-content:center;margin:0;padding:3px 7px;font-size:13px;line-height:1.1;gap:6px;overflow:hidden}
.game-hud598 header #resources>.resource:nth-child(1){grid-column:3}.game-hud598 header #resources>.resource:nth-child(2){grid-column:4}.game-hud598 header #resources>.resource:nth-child(3){grid-column:5}
.game-hud598 header #researchWallet>span{grid-row:1;min-width:0;width:100%;height:36px;padding:3px 7px!important;justify-content:center;gap:6px;border-radius:10px;overflow:hidden;line-height:1.1}
.game-hud598 header #researchWallet>span:nth-child(1){grid-column:6}.game-hud598 header #researchWallet>span:nth-child(2){grid-column:7}
.game-hud598 header #researchWallet>span b{font-size:13px;line-height:1.1}.game-hud598 header #researchWallet>span:before{font-size:17px;line-height:1.1}
.game-hud598 header #researchWallet>.vip-pill,.game-hud598 header #researchWallet>span:nth-child(3),.game-hud598 header #hudFullscreen598{display:none!important}
.game-hud598 header #noticesBell593,.game-hud598 header #chatBell601,.game-hud598 header #settings{position:static!important;inset:auto!important;grid-row:1;margin:0;width:36px!important;min-width:0!important;height:36px!important;min-height:0!important;flex-basis:auto!important}
.game-hud598 header #noticesBell593{grid-column:9}.game-hud598 header #chatBell601{grid-column:10}.game-hud598 header #settings{grid-column:11}
@media(max-width:900px){.game-hud598 header{grid-template-columns:34px repeat(5,minmax(0,1fr)) repeat(3,30px);gap:4px;padding:5px 7px}.game-hud598 header #resources>.resource:nth-child(1){grid-column:2}.game-hud598 header #resources>.resource:nth-child(2){grid-column:3}.game-hud598 header #resources>.resource:nth-child(3){grid-column:4}.game-hud598 header #researchWallet>span:nth-child(1){grid-column:5}.game-hud598 header #researchWallet>span:nth-child(2){grid-column:6}.game-hud598 header #noticesBell593{grid-column:7}.game-hud598 header #chatBell601{grid-column:8}.game-hud598 header #settings{grid-column:9}.game-hud598 header #noticesBell593,.game-hud598 header #chatBell601,.game-hud598 header #settings{width:30px!important;height:32px!important}.game-hud598 header #researchWallet>span b,.game-hud598 header #resources>.resource{font-size:11px}}
@media(max-width:600px){.game-hud598{--hud-top:calc(46px + env(safe-area-inset-top))}.game-hud598 header{height:46px;grid-template-columns:28px repeat(5,minmax(0,1fr)) repeat(3,26px);gap:3px;padding:5px 6px}.game-hud598 header #accountButton{width:28px;height:30px;flex-basis:auto;border-radius:9px}.game-hud598 header #resources>.resource{height:31px;padding:2px 3px;gap:2px;font-size:9px;letter-spacing:-.15px}.game-hud598 header #resources>.resource i{font-size:12px}.game-hud598 header #researchWallet>span{height:31px;padding:2px 3px!important;gap:2px;border-radius:9px}.game-hud598 header #researchWallet>span b{font-size:9px;letter-spacing:-.15px}.game-hud598 header #researchWallet>span:before{font-size:12px}.game-hud598 header #noticesBell593,.game-hud598 header #chatBell601,.game-hud598 header #settings{width:26px!important;height:30px!important;border-radius:9px}.game-hud598 header #settings{font-size:18px}.game-hud598 header #chatBell601 svg{width:15px;height:15px}}
@media(max-width:360px){.game-hud598 header #resources>.resource{flex-direction:column;gap:0;font-size:8px;line-height:10px;padding:2px}.game-hud598 header #resources>.resource i{font-size:10px;line-height:11px}.game-hud598 header #researchWallet>span{flex-direction:column;gap:0;padding:2px!important}.game-hud598 header #researchWallet>span b{font-size:8px;line-height:10px}.game-hud598 header #researchWallet>span:before{font-size:10px;line-height:11px}}
@media(max-height:500px) and (orientation:landscape){.game-hud598{--hud-top:calc(44px + env(safe-area-inset-top))}.game-hud598 header{height:44px;padding-top:4px;padding-bottom:4px}}

/* Compact strategic markers at whole-world scale; full art remains in detail views. */
.world-sparse652 .region-markers625>button{width:10px!important;height:10px!important;min-width:0!important;padding:0!important;background:#cab67b!important;border:1px solid #52644f!important;border-radius:3px!important;box-shadow:0 1px 2px #17352b88}.world-sparse652 .region-markers625>button.region-owned-marker625{background:#9fc3ae!important}.world-sparse652 .region-markers625 img,.world-sparse652 .region-markers625 small{display:none!important}

/* v653: one visual treatment for every balance; keep their existing event owners. */
.game-hud598{--hud-top:calc(48px + env(safe-area-inset-top))}
.game-hud598 header{height:48px;grid-template-columns:36px minmax(0,1fr) repeat(5,minmax(56px,92px)) minmax(0,1fr) repeat(3,32px);gap:9px;padding:6px 12px}
.game-hud598 header :is(#resources>.resource,#researchWallet>span:nth-child(-n+2)){display:flex!important;align-items:center;justify-content:center;min-width:0;width:100%;height:30px!important;min-height:0!important;padding:3px 6px!important;margin:0!important;gap:5px!important;border:1px solid #b7c8ce55!important;border-radius:10px!important;background:linear-gradient(180deg,#153a50,#0e293e)!important;color:#fff0c5!important;box-shadow:none!important;white-space:nowrap;overflow:hidden;line-height:1.1}
.game-hud598 header #resources>.resource{font-size:12px!important;font-weight:750}
.game-hud598 header #researchWallet>span:nth-child(-n+2) b{font-size:12px!important;font-weight:750;line-height:1.1}
.game-hud598 header #resources>.resource i,.game-hud598 header #researchWallet>span:nth-child(-n+2):before{font-size:15px!important;line-height:1;flex-shrink:0}
.game-hud598 header :is(#noticesBell593,#chatBell601,#settings){width:32px!important;height:32px!important}
@media(max-width:900px){.game-hud598 header{grid-template-columns:32px repeat(5,minmax(0,1fr)) repeat(3,28px);gap:6px;padding:6px 9px}.game-hud598 header #resources>.resource,.game-hud598 header #researchWallet>span:nth-child(-n+2) b{font-size:10px!important}.game-hud598 header :is(#noticesBell593,#chatBell601,#settings){width:28px!important;height:30px!important}}
@media(max-width:600px){.game-hud598{--hud-top:calc(42px + env(safe-area-inset-top))}.game-hud598 header{height:42px;grid-template-columns:26px repeat(5,minmax(0,1fr)) repeat(3,24px);gap:4px;padding:5px 5px}.game-hud598 header #accountButton{width:26px;height:28px}.game-hud598 header :is(#resources>.resource,#researchWallet>span:nth-child(-n+2)){height:27px!important;padding:2px!important;gap:2px!important;border-radius:8px!important}.game-hud598 header #resources>.resource,.game-hud598 header #researchWallet>span:nth-child(-n+2) b{font-size:8px!important;letter-spacing:-.15px}.game-hud598 header #resources>.resource i,.game-hud598 header #researchWallet>span:nth-child(-n+2):before{font-size:11px!important}.game-hud598 header :is(#noticesBell593,#chatBell601,#settings){width:24px!important;height:28px!important}}
@media(max-width:360px){.game-hud598 header :is(#resources>.resource,#researchWallet>span:nth-child(-n+2)){flex-direction:column;gap:0!important}.game-hud598 header #resources>.resource,.game-hud598 header #researchWallet>span:nth-child(-n+2) b{font-size:8px!important;line-height:10px}.game-hud598 header #resources>.resource i,.game-hud598 header #researchWallet>span:nth-child(-n+2):before{font-size:9px!important;line-height:10px}}
