/* Barre des ressources */
/* Neutralise l'ancienne règle « .resources span » (pastilles) à l'intérieur de la nouvelle barre. */
.resources .rb span { padding: 0; border: 0; border-radius: 0; background: none; }
.res-icon, .rb-icon { display: inline-grid; place-items: center; flex: none; }
.res-icon .rsvg, .rb-icon .rsvg { width: 100%; height: 100%; display: block; }
.res-icon { width: 1.25em; height: 1.25em; vertical-align: -.28em; }

.resources-panel { display: flex; align-items: center; gap: 6px; }
.rb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.rb-group { display: flex; align-items: center; gap: 4px; }
.resources .rb .rb-sep { width: 1px; height: 30px; background: var(--border); margin: 0 4px; }
.rb-arrow { color: var(--muted); font-size: .8rem; opacity: .7; }
.rb-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .035); cursor: default; outline: none; }
.rb-item:hover, .rb-item:focus-visible { border-color: rgba(228, 178, 58, .45); background: rgba(255, 255, 255, .07); }
.rb-item:focus-visible { box-shadow: 0 0 0 2px rgba(228, 178, 58, .6); }
.resources .rb .rb-icon { width: 30px; height: 30px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.rb-text { display: grid; line-height: 1.1; }
.rb-text strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-text small { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.rb-gold .rb-text strong { color: #ffd76a; }
.rb-reputation .rb-text strong { color: #fff1b8; }
.rb-crystals .rb-text strong { color: #d4c4ff; }
.rb-dungeonEssence .rb-text strong { color: #9fe9ff; }
.rb-raidEssence .rb-text strong { color: #ffaed6; }

.resources .rb .rb-delta { position: absolute; right: 6px; top: -4px; padding: 1px 6px; border-radius: 999px; font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.resources .rb .rb-delta.show { opacity: 1; transform: translateY(-6px); }
.resources .rb .rb-delta.up { background: rgba(84, 227, 158, .9); color: #052014; }
.resources .rb .rb-delta.down { background: rgba(255, 95, 122, .9); color: #2a0610; }

.resources .rb .rb-tip { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: 260px; display: none; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: #0d1829; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); font-size: .8rem; line-height: 1.4; color: var(--text); }
.resources .rb .rb-item:hover .rb-tip, .resources .rb .rb-item:focus-visible .rb-tip { display: grid; }
.rb-tip b { font-size: .9rem; }
.rb-tip-value { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd76a; }
.rb-tip em { font-style: normal; color: var(--muted); }
.resources .rb .rb-group:last-child .rb-item:last-child .rb-tip { left: auto; right: 0; }

.resources-panel.resources-collapsed .rb { display: none; }
@media (max-width: 900px) {
  .resources .rb .rb-sep { display: none; }
  .rb-text small { display: none; }
  .rb-item { padding-right: 8px; }
  .resources .rb .rb-icon { width: 26px; height: 26px; }
}
