/* #567 (Alex, HANDOFF exp_and_run_start): the party exp bar, the pops, the victory tally, the outcome panel's count-up — after exp_ui_reference.html */
:root { --exp: #7fd0ff; --exp2: #d6f2ff; }
.xb { display: inline-flex; align-items: center; gap: 8px; min-width: 180px; }
.xb-lab { font-size: 0.62rem; letter-spacing: 0.14em; color: #a89a78; }
.xb-bar { position: relative; flex: 1; min-width: 90px; height: 12px; border-radius: 7px; background: #0b0907; border: 1px solid #5a4630; box-shadow: inset 0 1px 3px #000; overflow: hidden; }
.xb-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(#bfe8ff, #4aa8e0 55%, #2a78b0); box-shadow: 0 0 10px #7fd0ff88; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.xb-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff0, #ffffff66, #fff0); background-size: 40% 100%; background-repeat: no-repeat; animation: xb-sheen 2.4s linear infinite; }
.xb-pend { position: absolute; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(135deg, #d6f2ff55 0 5px, #d6f2ff22 5px 10px); border-right: 2px solid #d6f2ffaa; transition: width 0.4s ease, left 0.4s ease; }
.xb-num { font-variant-numeric: tabular-nums; color: #f3e6c4; font-size: 0.85rem; white-space: nowrap; }
.xb-next, .xb-fight { font-size: 0.68rem; color: var(--exp2); letter-spacing: 0.06em; white-space: nowrap; }
.xb-bar.lv { animation: xb-lv 0.9s ease-out; }
.xb-slim { gap: 6px; min-width: 160px; }
.xb-slim .xb-bar { height: 8px; }
.xb-slim .xb-num { font-size: 0.72rem; }
.combat-page .nav-bar.compact-nav .xb { margin: 0 auto; flex: 1; max-width: 460px; }
body.map-v2 .map-topbar .tb-exp .info-value .xb { min-width: 220px; }
@keyframes xb-sheen { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
@keyframes xb-lv { 0%, 100% { box-shadow: inset 0 1px 3px #000; } 30% { box-shadow: 0 0 0 2px #ffe9a8, 0 0 26px #e2b956; } }

/* the pops */
.xb-pop { position: fixed; z-index: 1200; transform: translate(-50%, -100%); font: 900 18px Georgia, 'Times New Roman', serif; color: var(--exp2); text-shadow: 0 0 8px #4aa8e0, 0 2px 2px #000; pointer-events: none; animation: xb-pop 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; transition: left 0.7s cubic-bezier(0.4, 0, 0.7, 1), top 0.7s cubic-bezier(0.4, 0, 0.7, 1), transform 0.7s ease, opacity 0.5s ease 0.35s; }
.xb-pop.fly { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
@keyframes xb-pop { 0% { opacity: 0; transform: translate(-50%, -60%) scale(0.6); } 25% { opacity: 1; transform: translate(-50%, -120%) scale(1.15); } 100% { opacity: 1; transform: translate(-50%, -130%) scale(1); } }
.bump { animation: xb-bump 0.18s ease-out; }
@keyframes xb-bump { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* C · the victory tally */
.exp-tally { margin: 0.6rem auto 0.9rem; max-width: 460px; padding: 0.6rem 0.9rem 0.8rem; border: 1px solid rgba(201, 168, 76, 0.38); border-radius: 10px; background: rgba(10, 8, 6, 0.55); text-align: left; }
.exp-tally-rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.4rem; }
.exp-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: #d8ccaa; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.exp-row.on { opacity: 1; transform: none; }
.exp-row-n { color: var(--exp2); font-variant-numeric: tabular-nums; }
.exp-tally-total { display: flex; align-items: baseline; gap: 10px; margin: 0.2rem 0 0.4rem; }
.exp-total-lab { font-size: 0.7rem; letter-spacing: 0.16em; color: #a89a78; }
.exp-total-n { font: 900 1.6rem Georgia, 'Times New Roman', serif; color: var(--exp2); text-shadow: 0 0 10px #4aa8e088; font-variant-numeric: tabular-nums; display: inline-block; }
.exp-tally .xb { display: flex; width: 100%; }
.exp-lvl { display: none; margin-top: 0.6rem; text-align: center; }
.exp-lvl.on { display: block; animation: xb-lvi 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
.exp-lvl-title { display: block; font: 900 1.25rem Georgia, 'Times New Roman', serif; color: #ffe9a8; letter-spacing: 0.12em; text-shadow: 0 0 14px #e2b956; }
.exp-lvl small { display: block; font-size: 0.78rem; color: #b8a882; margin-top: 3px; }
@keyframes xb-lvi { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: scale(1); } }

/* D · the outcome panel */
.exp-out { margin-top: 10px; padding-top: 9px; border-top: 1px solid #a8916088; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exp-out-t { font: 900 1.3rem Georgia, 'Times New Roman', serif; color: var(--exp); font-variant-numeric: tabular-nums; min-width: 64px; display: inline-block; }
.exp-out-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.exp-chip { font-size: 0.72rem; padding: 2px 7px; border-radius: 9px; border: 1px solid #4aa8e066; color: var(--exp2); background: #0b1a26; }
.exp-chip.cap { color: #b8a882; border-color: #5a463066; }
.exp-out.lv .exp-out-t { animation: xb-bump 0.4s ease-out; text-shadow: 0 0 14px #e2b956; color: #ffe9a8; }
@media (prefers-reduced-motion: reduce) { .xb-fill, .xb-pend, .exp-row { transition: none; } .xb-fill::after, .xb-pop, .bump, .exp-lvl.on, .xb-bar.lv { animation: none; } }
