/* Additions remain inside the approved HUD's existing boxes. */
#hud-xp-segments>i{position:relative}
#hud-xp-segments em{display:none;position:absolute;top:0;height:100%;background:linear-gradient(#efffff,#76f8cc);box-shadow:0 0 4px #b4ffe9;pointer-events:none}
.xp-projected #hud-xp-segments em{display:block;animation:xp-ghost 1.3s ease-in-out infinite}
#hud-xp-next{position:absolute;left:0;right:0;bottom:0;height:2px;background:#263e50;pointer-events:none;z-index:2}
#hud-xp-next[hidden]{display:none}
#hud-xp-next i{display:block;height:100%;background:#8fe9ff;animation:xp-ghost 1.3s ease-in-out infinite}
#xp-label.xp-projection-label{color:#a6ffe1!important;font-variant-numeric:tabular-nums;font-size:10px!important;white-space:nowrap}
@keyframes xp-ghost{50%{opacity:.55}}
body.playing #hud-shop-gold{position:relative}
body.playing #hud-shop-gold .gold-balance{align-self:start;margin-top:0}
body.playing #hud-shop-gold:has(.hud-win-streak){display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0!important;line-height:1.1!important}
.hud-win-streak{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:15px;min-width:28px;font:700 11px/1 system-ui;color:#ffde9c;white-space:nowrap}
.hud-win-streak img{width:12px;height:12px;object-fit:contain}.hud-win-streak b{font-size:11px;font-variant-numeric:tabular-nums}
body.playing.equipment-xp #xp-btn,body.playing.equipment-xp #reroll-btn{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;text-align:left;gap:3px!important}
body.playing.equipment-xp #xp-btn>span,body.playing.equipment-xp #reroll-btn>b{margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;flex:0 0 auto;font-size:11px!important;line-height:1!important}
body.playing.equipment-xp #xp-btn>span .hud-coin,body.playing.equipment-xp #reroll-btn>b .hud-coin{width:13px!important;height:13px!important;margin:0!important}
@media(prefers-reduced-motion:reduce){.xp-projected #hud-xp-segments em,#hud-xp-next i{animation:none}}
/* v0.12.20 (manager request, user feedback): touch long-press preview on XP button; capped XP button clearly off (all layouts, phone included) */
#xp-btn{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
html body.playing #xp-btn[data-state=max][disabled]:disabled,html body.playing #shared-shop-dock #xp-btn[data-state=max][disabled]:disabled{filter:grayscale(.9) brightness(.72)!important;opacity:.6!important}
html body.playing #xp-btn[data-state=max]:disabled span{text-decoration:line-through;opacity:.55}
