/* A single, readable receipt for earned XP and deliberate skill choices. */
#victory-growth[hidden] { display:none !important; }
#victory-growth { width:100%; margin:1.25rem 0; scroll-margin-top:5rem; }
.has-victory-growth #training-milestone,
.has-victory-growth #progression-camp .pg-growth-receipt,
.has-victory-growth #progression-rewards .pg-growth-receipt { display:none !important; }
.vg-panel {
  --vg-gold:#edc477; --vg-cream:#f6eddc; --vg-muted:#b7c8b9; --vg-line:rgba(223,190,123,.28);
  overflow:hidden; color:var(--vg-cream); border:1px solid var(--vg-line); border-radius:20px;
  background:radial-gradient(ellipse at 10% 0,rgba(84,117,89,.32),transparent 58%),linear-gradient(135deg,#102826,#091a1b 74%);
  box-shadow:0 16px 44px rgba(0,0,0,.22); isolation:isolate; text-align:left;
}
.vg-panel *, .vg-panel *::before, .vg-panel *::after { box-sizing:border-box; }
.vg-panel button { font:inherit; -webkit-tap-highlight-color:transparent; }
.vg-panel button:focus-visible { outline:3px solid #f6dca1; outline-offset:4px; }
.vg-heading { display:flex; align-items:center; gap:.8rem; padding:1.15rem 1.25rem .8rem; }
.vg-eyebrow { display:block; color:var(--vg-gold); font-size:.67rem; font-weight:750; letter-spacing:.12em; line-height:1.5; text-transform:uppercase; }
.vg-heading h2 { margin:.2rem 0 .35rem; color:var(--vg-cream); font-family:var(--font-display,Georgia,serif); font-size:clamp(1.35rem,2vw,1.8rem); font-weight:500; line-height:1.2; text-wrap:balance; }
.vg-heading p { margin:0; color:var(--vg-muted); font-size:.82rem; line-height:1.55; }
.vg-victory-mark { display:grid; place-items:center; flex:none; width:44px; height:44px; color:var(--vg-gold); border:1px solid var(--vg-line); border-radius:50%; background:radial-gradient(circle,rgba(236,193,112,.2),transparent 72%); }
.vg-victory-mark svg { width:25px; height:25px; }
.vg-company { display:grid; grid-template-columns:repeat(auto-fit,minmax(95px,1fr)); gap:.4rem; padding:.3rem 1.25rem .8rem; }
.vg-companion {
  display:flex; align-items:center; gap:.45rem; width:100%; min-width:0; min-height:60px; padding:.5rem .45rem;
  color:var(--vg-cream); text-align:left; cursor:pointer; border:1px solid rgba(197,214,196,.16); border-radius:9px;
  background:rgba(243,235,213,.035); transition:border-color .18s ease,background .18s ease; position:relative;
}
.vg-companion:hover { border-color:var(--vg-line); background:rgba(243,235,213,.07); }
.vg-companion.is-selected { border-color:var(--vg-gold); background:linear-gradient(140deg,rgba(182,147,72,.2),rgba(42,79,65,.25)); box-shadow:inset 0 0 0 1px rgba(234,196,119,.06); }
.vg-portrait { display:block; flex:none; width:27px; height:34px; overflow:hidden; border-radius:6px; background:rgba(0,0,0,.18); }
.vg-portrait img, .vg-portrait svg { display:block; width:100%; height:100%; object-fit:cover; object-position:center 25%; }
.vg-portrait > span { display:block; width:100%; height:100%; }
.vg-companion-copy { display:flex; flex-direction:column; align-items:flex-start; gap:.2rem; min-width:0; }
.vg-companion-copy > strong { color:var(--vg-cream); font-size:.71rem; line-height:1.25; overflow-wrap:anywhere; }
.vg-award { color:var(--vg-gold); font-variant-numeric:tabular-nums; font-size:.78rem; font-weight:700; line-height:1.3; white-space:nowrap; }
.vg-new-sp { color:#f5d597; }
.vg-point-rule { display:flex; gap:.5rem; align-items:flex-start; margin:0 1.25rem .9rem; color:var(--vg-muted); font-size:.72rem; line-height:1.6; }
.vg-point-rule svg { width:15px; height:15px; flex:none; margin-top:3px; color:var(--vg-gold); }
.vg-bonus { margin:0 1.6rem 1rem; color:var(--vg-gold); font-size:.75rem; }
.vg-detail { padding:1rem 1.25rem; background:rgba(0,0,0,.16); border-top:1px solid var(--vg-line); }
.vg-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.7rem; }
.vg-detail-heading h3 { margin:.15rem 0 0; color:var(--vg-cream); font-family:inherit; font-size:1rem; line-height:1.4; }
.vg-available { flex:none; color:var(--vg-gold); font-size:.8rem; font-weight:650; font-variant-numeric:tabular-nums; }
.vg-role { color:var(--vg-muted); font-size:.65rem; line-height:1.5; }
.vg-receipt { display:grid; gap:0; margin:0 0 1rem; padding:0; }
.vg-receipt > div { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:36px; padding:.4rem 0; border-top:1px solid rgba(223,190,123,.13); }
.vg-receipt dt { color:var(--vg-muted); font-size:.76rem; line-height:1.5; }
.vg-receipt dd { display:flex; align-items:flex-end; flex-direction:column; gap:.15rem; margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.vg-receipt dd strong { color:var(--vg-cream); font-size:1rem; font-weight:650; line-height:1.4; }
.vg-receipt dd [data-vg-xp],.vg-receipt dd .vg-new-sp { color:var(--vg-gold); }
.vg-receipt dd span { color:var(--vg-muted); font-size:.69rem; line-height:1.4; }
.vg-detail > p { color:var(--vg-muted); font-size:.82rem; line-height:1.6; }
.vg-skill { padding:1rem 1.1rem; border:1px solid var(--vg-line); border-radius:12px; background:linear-gradient(130deg,rgba(97,118,79,.12),rgba(218,173,86,.025)); }
.vg-skill-label { display:flex; align-items:center; gap:.5rem; color:var(--vg-gold); font-size:.66rem; letter-spacing:.025em; }
.vg-skill-label svg { width:18px; height:18px; }
.vg-skill h4 { margin:.5rem 0; color:var(--vg-cream); font-family:var(--font-display,Georgia,serif); font-size:1.4rem; font-weight:500; line-height:1.3; }
.vg-effect { margin:0; max-width:65ch; color:#e2e8d9; font-size:.9rem; line-height:1.65; }
.vg-move-values { display:flex; flex-wrap:wrap; gap:.5rem 1.1rem; margin:.8rem 0 .3rem; }
.vg-move-values > span { display:inline-flex; gap:.35rem; align-items:center; color:var(--vg-muted); font-size:.78rem; }
.vg-move-values svg { width:19px; height:19px; color:var(--vg-gold); }
.vg-move-values b { color:var(--vg-cream); font-size:1.05rem; font-variant-numeric:tabular-nums; }
.vg-value-note { display:block; color:#a5b9a9; font-size:.65rem; line-height:1.5; }
.vg-pattern { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:.8rem 0 .1rem; color:var(--vg-muted); font-size:.72rem; }
.vg-face { display:inline-flex; align-items:center; gap:.25rem; border:1px solid rgba(215,192,144,.25); border-radius:6px; padding:.2rem .45rem; color:#e5d4ad; }
.vg-face svg { width:19px; height:19px; }
.vg-slot-note { margin:.8rem 0 0; color:var(--vg-muted); font-size:.75rem; line-height:1.65; }
.vg-slot-note.is-replacement { padding:.55rem .7rem; border-left:2px solid var(--vg-gold); color:#e9d2a0; background:rgba(231,175,73,.06); }
.vg-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:.85rem; }
.vg-button { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:44px; max-width:100%; padding:.65rem .95rem; color:#ead9b4; border:1px solid transparent; border-radius:9px; background:transparent; font-size:.8rem; line-height:1.4; font-weight:650; text-align:center; cursor:pointer; }
.vg-button:hover:not(:disabled) { color:var(--vg-cream); border-color:var(--vg-line); background:rgba(239,212,160,.07); }
.vg-button.vg-primary { min-height:48px; min-width:215px; padding:.75rem 1.2rem; color:#18221b; border:1px solid #edce8a; background:linear-gradient(115deg,#efd091,#d6ae64); box-shadow:0 4px 12px rgba(0,0,0,.15); }
.vg-button.vg-primary:hover:not(:disabled) { color:#12221a; border-color:#fce0a7; background:linear-gradient(115deg,#f5dbaa,#e9c276); }
.vg-button:disabled { opacity:.55; cursor:default; }
.vg-next-level { margin:.75rem 0 0; color:#a3b9a8 !important; font-size:.72rem !important; }
.vg-role-note { margin:.75rem 0 0; color:var(--vg-muted); font-size:.72rem !important; }
.vg-permission { padding:.8rem; border:1px solid var(--vg-line); border-radius:8px; }
.vg-confirmed { display:flex; align-items:center; gap:.75rem; padding:1rem; color:#d1e9c5; border:1px solid rgba(150,200,142,.35); border-radius:12px; background:rgba(118,166,108,.08); }
.vg-confirmed > span { display:grid; place-items:center; width:33px; height:33px; flex:none; font-size:1.2rem; border-radius:50%; border:1px solid rgba(168,211,158,.55); }
.vg-confirmed p { display:flex; flex-direction:column; gap:.25rem; margin:0; font-size:.85rem; line-height:1.5; }
.vg-confirmed small { color:var(--vg-muted); font-size:.75rem; }
.vg-live { color:#ead4a2; font-size:.77rem; line-height:1.6; }
.vg-live:not(:empty) { padding:.75rem 1.6rem; border-top:1px solid var(--vg-line); }
.vg-keepsake { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.75rem 1.6rem; border-top:1px solid var(--vg-line); color:var(--vg-muted); font-size:.75rem; }
.vg-keepsake .vg-button { border-color:var(--vg-line); }
@media (max-width:640px) {
  #victory-growth { margin:.8rem 0; scroll-margin-top:1rem; }
  .vg-panel { border-radius:15px; }
  .vg-heading { gap:.75rem; padding:1.15rem 1rem .8rem; }
  .vg-victory-mark { width:40px; height:40px; }
  .vg-victory-mark svg { width:23px; height:23px; }
  .vg-heading h2 { font-size:1.4rem; }
  .vg-heading p { font-size:.76rem; }
  .vg-company { gap:.35rem; padding:.25rem 1rem .7rem; }
  .vg-companion { gap:.35rem; min-height:58px; padding:.45rem .35rem; }
  .vg-portrait { width:24px; height:31px; }
  .vg-companion-copy > strong { font-size:.67rem; }
  .vg-award { font-size:.75rem; }
  .vg-point-rule { margin:0 1rem .8rem; font-size:.69rem; }
  .vg-detail { padding:1rem; }
  .vg-detail-heading { gap:.5rem; margin-bottom:.7rem; }
  .vg-detail-heading h3 { font-size:.9rem; }
  .vg-available { font-size:.72rem; }
  .vg-skill { padding:.85rem; }
  .vg-skill h4 { font-size:1.3rem; }
  .vg-effect { font-size:.83rem; }
  .vg-button { font-size:.75rem; padding:.65rem .6rem; }
  .vg-button.vg-primary { width:100%; }
  .vg-actions { justify-content:space-between; gap:.3rem; }
  .vg-actions > .vg-button:not(.vg-primary) { flex:1; }
  .vg-live:not(:empty) { padding:.75rem 1rem; }
  .vg-keepsake { padding:.75rem 1rem; gap:.6rem; }
  .vg-keepsake > span { max-width:55%; }
}
@media (prefers-reduced-motion:reduce) { .vg-panel *, .vg-panel *::before, .vg-panel *::after { transition:none !important; animation:none !important; } }
.vg-onward{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.6fr);gap:1rem;padding:1.2rem;border:1px solid #c5ae6c55;border-radius:14px;background:linear-gradient(135deg,#183d3b,#10272c);margin-top:1rem;color:var(--text,#edf1df)}
.vg-onward h3{margin:.35rem 0;font-family:var(--font-display,Georgia,serif);font-size:1.25rem;color:#ebd79d}
.vg-onward p{margin:.4rem 0;line-height:1.5}.vg-onward small{display:block;line-height:1.5;color:#b8ccca}
.vg-onward-actions{display:flex;flex-direction:column;justify-content:center;gap:.6rem}.vg-onward .vg-button{min-height:44px;min-width:0;width:100%;white-space:normal}
@media(max-width:540px){.vg-onward{grid-template-columns:1fr;padding:1rem}.vg-onward-actions .vg-button{width:100%}}
