/* Gains strip — transient row of small icon boxes pinned at the bottom of
   the screen (components/gains.ts). Item / xp / level-up / discovery gains
   each get a small box that lingers then fades; colors from theme.css vars
   only. Mobile lifts the strip above the activity dock (.lift). */

.gains-strip {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 55; display: flex; gap: 6px; align-items: flex-end;
  pointer-events: none; max-width: 90vw;
}

.gain-box {
  position: relative; flex: none;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-modal);
  border: var(--border-w) solid var(--border);
  border-radius: var(--corner);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  opacity: 1; transition: opacity 0.26s ease, transform 0.26s ease;
}
.gain-box.out { opacity: 0; transform: translateY(6px); }
.gain-box.pop { animation: gain-pop 0.22s ease; }
@keyframes gain-pop {
  0% { transform: translateY(8px) scale(0.6); opacity: 0; }
  60% { transform: translateY(-2px) scale(1.08); opacity: 1; }
  100% { transform: none; }
}

/* count / amount / level badge — bottom-right pill */
.gain-badge {
  position: absolute; right: -4px; bottom: -5px;
  padding: 0 3px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 9px; line-height: 12px; color: var(--text);
}
.gain-badge:empty { display: none; }

/* per-kind accents */
.gain-box.xp { border-color: var(--bar-xp); }
.gain-box.xp .gain-badge { color: var(--bar-xp); }
.gain-box.lvl { border-color: var(--gold); }
.gain-box.lvl .gain-badge { color: var(--gold); border-color: var(--gold); }
.gain-box.disc { border-color: var(--discovery); }

/* tiny identifying chip (stat abbr / mini skill icon) — top-left corner */
.gain-chip {
  position: absolute; left: -4px; top: -5px;
  padding: 0 2px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 8px; line-height: 11px; font-weight: 600;
}
.gain-chip-icon { padding: 0; line-height: 0; }

/* reduced motion: plain show/hide, no pop/fade travel */
html[data-motion="reduced"] .gain-box { transition: none; animation: none; }

/* mobile: sit above the activity dock while it's shown */
.gains-strip.lift { bottom: 122px; }
