/* Round score vs. running total: the big number on each card is this round's score,
   the plum pill under the card is the total banked over the match (what the leaderboard ranks). */
.ptotal { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; height: 21px; padding: 0 8px 0 6px; border-radius: 11px; background: var(--plum); border: 2px solid #fff; box-shadow: 0 2px 0 rgba(107, 47, 87, 0.25); color: #fff; font-size: 13px; line-height: 1; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; z-index: 1; }
.ptotal svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--butter); display: block; }
.ptotal b { font-weight: 900; }
.ptotal.bump { animation: totalBump 0.3s ease-out; }
.ptotal.gain { background: #ff4fae; }
#card1 .ptotal.gain { background: var(--mintD); }

/* round-win stars move to the inner top edge, the "next +N" tag to the outer top corner (over the avatar) */
.pwins { left: auto; right: 10px; }
#card1 .pwins { right: auto; left: 10px; }
.ptag { left: -6px; right: auto; top: -11px; bottom: auto; transform: scale(0); transform-origin: 30% 50%; }
.ptag.on { transform: scale(1); }
#card1 .ptag { left: auto; right: -6px; transform-origin: 70% 50%; }

/* a second note line on round cards (next round / overtime) */
#banner .b3 { display: inline-block; max-width: 100%; margin-top: 8px; padding: 3px 14px; border-radius: 14px; background: var(--plum); color: #fff; font-size: 15px; line-height: 1.3; font-weight: 900; white-space: nowrap; }
#banner .b3.ot { background: #ff4fae; animation: otPulse 0.7s ease-in-out infinite; }
#banner .b3:empty { display: none; }

@keyframes totalBump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.25); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes otPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
