/* Compact inked currency tags; all values stay live HTML. */
#tab-profile.reverse-home .hub-wallet {
  --wallet-paper: #e9dfcc;
  --wallet-caption: #bcb5a9;
  --wallet-surface: #1a1d20;
  --wallet-edge: #cabb9d35;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#tab-profile.reverse-home .hub-wallet-cell,
#tab-profile.reverse-home .hub-wallet-cell:first-child,
#tab-profile.reverse-home .hub-wallet-cell + .hub-wallet-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 94px;
  margin: 0;
  padding: 8px 4px 10px;
  gap: 3px;
  border: 1px solid var(--wallet-edge);
  border-radius: 5px 12px 5px 12px;
  background: var(--wallet-surface);
  color: var(--wallet-paper);
  text-align: center;
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease;
}
/* Short print strokes echo the surrounding menu art. */
#tab-profile.reverse-home .hub-wallet-cell::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 9px;
  height: 6px;
  border-top: 1px solid #ddc79880;
  border-left: 1px solid #ddc79880;
  pointer-events: none;
}
#tab-profile.reverse-home .hub-wallet-cell::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 10px;
  border-top: 1px solid #a3444a;
  transform: rotate(-35deg);
  pointer-events: none;
}
#tab-profile.reverse-home .hub-wallet-cell .wallet-symbol {
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
  object-fit: contain;
}
#tab-profile.reverse-home .hub-wallet-cell b,
#tab-profile.reverse-home .hub-wallet-cell.c-coin b {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 700 18px/1.15 ReverseMenu, var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  color: var(--wallet-paper);
  text-shadow: none;
}
#tab-profile.reverse-home .hub-wallet-cell span {
  color: var(--wallet-caption);
  font: 400 10px/1.3 ReverseMenu, var(--font-body);
  white-space: nowrap;
  text-shadow: none;
}
#tab-profile.reverse-home .hub-wallet-cell:active {
  transform: none;
  border-color: #e0c494;
  background: #292724;
}
#tab-profile.reverse-home .hub-wallet-cell:focus-visible {
  outline: 2px solid #e0c494;
  outline-offset: 3px;
}
@media (hover: hover) {
  #tab-profile.reverse-home .hub-wallet-cell:hover { border-color: #d3ba8580; }
}
html[data-theme="light"] #tab-profile.reverse-home .hub-wallet {
  --wallet-paper: #302b26;
  --wallet-caption: #62594f;
  --wallet-surface: #f0e9dc;
  --wallet-edge: #66543d40;
}
html[data-theme="light"] #tab-profile.reverse-home .hub-wallet-cell {
  background: var(--wallet-surface) !important;
  border-color: var(--wallet-edge) !important;
  color: var(--wallet-paper) !important;
}
html[data-theme="light"] #tab-profile.reverse-home .hub-wallet-cell span { color: var(--wallet-caption) !important; }
html[data-theme="light"] #tab-profile.reverse-home .hub-wallet-cell::before { border-color: #78634580; }
html[data-theme="light"] #tab-profile.reverse-home .hub-wallet-cell:active { background: #e3d7c2 !important; border-color: #786345 !important; }
@media (max-width: 359px) {
  #tab-profile.reverse-home .hub-wallet { gap: 5px; }
  #tab-profile.reverse-home .hub-wallet-cell { min-height: 88px; padding: 7px 3px 9px; }
  #tab-profile.reverse-home .hub-wallet-cell .wallet-symbol { width: 28px; height: 28px; }
  #tab-profile.reverse-home .hub-wallet-cell b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #tab-profile.reverse-home .hub-wallet-cell { transition: none; }
}
