/* One compact HUD row; the existing balances remain in the details dialog. */
:root{--resource-bar-height:64px}
body[data-screen] .campaign-wallet.resource-wallet{position:relative;z-index:41;display:block;height:var(--resource-bar-height);padding:8px 14px;border:0;border-bottom:1px solid #b9bfce45;background:linear-gradient(#283947,#16262fed);color:#fff;letter-spacing:0;text-shadow:0 2px 2px #172030;flex-wrap:nowrap}
body[data-screen=arena] .campaign-wallet.resource-wallet{display:none}
.wallet-main-row{display:grid;grid-template-columns:minmax(0,1.38fr) repeat(2,minmax(0,1fr));align-items:center;gap:16px;width:min(660px,100%);height:100%;margin:auto}
.resource-wallet .wallet-profile{position:relative;isolation:isolate;display:flex;align-items:center;width:100%;height:36px;padding:0 26px 0 43px;border:2px solid #869ab4;border-radius:5px;background:linear-gradient(#68717f,#363941);box-shadow:0 2px #0d1725,inset 0 1px #bac6d8;color:#fff;text-align:left;cursor:pointer}
.resource-wallet .wallet-avatar{position:absolute;z-index:2;left:-2px;top:50%;transform:translateY(-50%);width:46px;height:48px;border:2px solid #ffe17e;border-radius:7px 7px 4px 4px;background:linear-gradient(#4ae2ff,#1c6ea5 50%,#183548);box-shadow:0 2px 2px #10172a, inset 0 0 0 2px #3d5672;overflow:hidden}
.wallet-avatar img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 1px #123554)}
.campaign-wallet.resource-wallet .wallet-level-label{position:relative;z-index:1;font-size:14px;font-weight:900;white-space:nowrap;color:white;text-shadow:0 2px 1px #21364b,1px 0 #21364b,-1px 0 #21364b}
.resource-wallet .wallet-level-label b{margin:0;color:inherit;font-size:inherit}
.wallet-profile progress{position:absolute;z-index:0;inset:0 0 0 40px;width:calc(100% - 40px);height:100%;border:0;border-radius:3px;appearance:none;background:transparent;overflow:hidden;pointer-events:none}
.wallet-profile progress::-webkit-progress-bar{background:transparent}
.wallet-profile progress::-webkit-progress-value{background:linear-gradient(#93efff,#36c9fc 40%,#1394cc 41%,#177aac);border-right:1px solid #c2fbff;box-shadow:inset 0 2px #c0fbff99}
.wallet-profile progress::-moz-progress-bar{background:linear-gradient(#93efff,#36c9fc 40%,#1394cc 41%,#177aac)}
.wallet-profile .wallet-crown{position:absolute;z-index:2;right:-7px;top:50%;transform:translateY(-50%);width:31px;height:38px;filter:drop-shadow(0 2px 1px #45391a)}
.campaign-wallet.resource-wallet .wallet-currency{position:relative;display:flex;align-items:center;justify-content:flex-end;min-width:0;height:31px;padding:0 36px 0 27px;border-block:1px solid #8b9baa;border-radius:4px;background:linear-gradient(#5d6371,#373845);box-shadow:0 2px #0e1820,inset 0 1px #8c94a166;white-space:nowrap}
.wallet-currency .wallet-resource-icon{position:absolute;left:-5px;top:50%;transform:translateY(-50%);width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 2px 1px #1b2028)}
.campaign-wallet.resource-wallet .wallet-currency b{min-width:0;margin:0;color:#fff;font-size:16px;font-weight:900;letter-spacing:-.3px;font-variant-numeric:tabular-nums;text-shadow:0 2px 1px #242434}
.wallet-currency .wallet-add{position:absolute;right:-5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:44px;padding:0;border:0;background:none;color:#24670c;cursor:pointer}
.campaign-wallet.resource-wallet .wallet-add span{display:grid;place-items:center;width:28px;height:29px;border:2px solid #89e343;border-radius:5px;background:linear-gradient(#bdff6b 0 43%,#78d829 44%,#42a019);box-shadow:0 2px #204b18,inset 0 2px #edffa8;color:#21690b;font-size:30px;line-height:1;font-weight:900;text-shadow:0 1px #a7f264}
.resource-wallet :is(.wallet-profile,.wallet-add):focus-visible{outline:3px solid #fff0a1;outline-offset:3px}
.wallet-dialog{border:2px solid #acb7de;border-radius:12px;background:linear-gradient(130deg,#626985,#393f5b);box-shadow:0 6px #232b41,0 20px 70px #0008}
.wallet-dialog header{border-color:#a9b9d655;align-items:center;gap:12px}
.wallet-dialog h2{color:#fff;font:800 22px/1.2 Inter,Arial,sans-serif}
.wallet-dialog p{color:#e6eafb;font-size:13px}.wallet-dialog #wallet-level-summary{color:#9de7ff;font-weight:800}
.wallet-details{display:grid;gap:6px;margin:16px 0 0}.wallet-details>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:8px 10px;border:1px solid #a6b7d62b;border-radius:5px;background:#1c23353b}
.wallet-details dt{display:flex;align-items:center;gap:8px;font-size:12px;color:#e4e8f7}.wallet-details img{width:24px;height:24px;object-fit:contain}.wallet-details dd{margin:0;color:#fff;font-size:14px;font-weight:800;text-align:right;overflow-wrap:anywhere}
body:is([data-screen=heroes],[data-screen=bag]) .heroes-screen{top:var(--resource-bar-height)}
body:is([data-screen=castle],[data-screen=summon]) .castle-screen{height:calc(100dvh - var(--resource-bar-height) - 70px - env(safe-area-inset-bottom))}
@media(max-width:600px){
  :root{--resource-bar-height:52px}
  body[data-screen] .campaign-wallet.resource-wallet{padding:4px 8px}
  .wallet-main-row{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:11px}
  .resource-wallet .wallet-profile{height:29px;padding:0 19px 0 34px}
  .resource-wallet .wallet-avatar{width:35px;height:40px}
  .wallet-profile progress{left:31px;width:calc(100% - 31px)}
  .campaign-wallet.resource-wallet .wallet-level-label{font-size:11px}
  .wallet-profile .wallet-crown{right:-7px;width:24px;height:30px}
  .campaign-wallet.resource-wallet .wallet-currency{height:26px;padding:0 24px 0 17px}
  .wallet-currency .wallet-resource-icon{left:-5px;width:27px;height:29px}
  .campaign-wallet.resource-wallet .wallet-currency b{font-size:12px;letter-spacing:-.4px}
  .wallet-currency .wallet-add{right:-7px;width:34px}
  .campaign-wallet.resource-wallet .wallet-add span{width:24px;height:26px;font-size:25px}
}
@media(max-width:340px){.wallet-main-row{gap:9px;grid-template-columns:minmax(0,1.38fr) repeat(2,minmax(0,1fr))}.resource-wallet .wallet-profile{padding-left:30px}.resource-wallet .wallet-avatar{width:32px}.campaign-wallet.resource-wallet .wallet-level-label{font-size:10px}.campaign-wallet.resource-wallet .wallet-currency b{font-size:11px}}
