/* Four existing-style consumable icons in each battle card. */
.battle-consumables { gap:3px; padding-inline:2px }
.battle-consumables > button,.battle-consumables > button:hover:not(:disabled) {
  width:31px; min-width:0; flex:0 0 31px;
}
.battle-consumables img { width:27px; height:29px }
.battle-consumables .battle-joint.armed img { filter:brightness(1.2) drop-shadow(0 0 4px #84e56c) }
.battle-consumables .battle-mash.armed img { filter:brightness(1.2) drop-shadow(0 0 4px #f5aa68) }
.battle-unit-card .battle-boost-mark { position:absolute; top:3px; right:4px; font-size:.55rem;
  font-weight:700; line-height:1.2; color:#a8eea4; text-align:right; pointer-events:none }
/* Keep five wallet items tidy at desktop widths and in the narrow mobile strip. */
.topbar .wallet { gap:7px; white-space:nowrap }
.topbar .wallet > span { display:inline-flex; align-items:center; gap:3px }
.topbar .wallet > span img { width:16px; height:17px; object-fit:contain }
@media(max-width:1100px) { .topbar .wallet { gap:4px; font-size:.6rem } }
@media(max-width:750px) { .topbar .wallet { gap:3px; font-size:.5rem } .topbar .wallet > span img { width:12px; height:13px } }

/* The page-level resource layout belongs to profile.css.
   No old profile grid, borders or separators are applied here. */

/* Header resource order: row 1: Gold / Power-Pee / Nano;
   row 2: Joints / Mash, directly beneath Gold and Power-Pee. */
@media(min-width:981px) {
  .topbar .profile-shortcut > .wallet {
    display:grid;
    grid-template-columns:repeat(3,max-content);
    grid-template-rows:auto auto;
    justify-content:end;
    justify-items:start;
    column-gap:14px;
    row-gap:4px;
  }
  .topbar .wallet > span { justify-content:flex-start; }
  .topbar .wallet > span:nth-child(1) { grid-column:1; grid-row:1; }
  .topbar .wallet > span:nth-child(2) { grid-column:2; grid-row:1; }
  .topbar .wallet > span:nth-child(3) { grid-column:3; grid-row:1; }
  .topbar .wallet > span:nth-child(4) { grid-column:1; grid-row:2; }
  .topbar .wallet > span:nth-child(5) { grid-column:2; grid-row:2; }
}
/* The narrow header can wrap naturally instead of clipping resources. */
@media(max-width:400px) {
  .topbar .profile-shortcut > .wallet { grid-template-columns:repeat(2,max-content); justify-content:start; column-gap:12px; row-gap:2px; }
}
