/* ---- Levels ---- */
.lv-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: var(--surface); border-radius: 28px; padding: 28px 32px; box-shadow: 0 3px 0 var(--line); }
.lv-level { width: 120px; height: 120px; border-radius: 30px; background: var(--level-soft); color: var(--level-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.lv-level__n { font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; }
.lv-hero__mid { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lv-hero__sub { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.lv-boost { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; align-items: flex-start; }
.lv-boost span { display: flex; align-items: center; gap: 8px; }

.lv-boosts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.lv-stored { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--soft); align-items: flex-start; font-weight: 600; }
.lv-stored > span:first-child { display: flex; align-items: center; gap: 8px; }
.lv-step[data-kind="gems"] .lv-swatch { color: #19A3C7; }
.lv-step[data-kind="boost"] .lv-swatch { color: var(--teal-ink); }
.lv-step:not([data-kind="cosmetic"]) .lv-card { padding: 10px 12px; }
.lv-step:not([data-kind="cosmetic"]) .lv-swatch { aspect-ratio: 2.4; }
.lv-track { display: flex; gap: 0; overflow-x: auto; padding: 6px 4px 14px; scrollbar-width: thin; }
.lv-step { flex: 0 0 168px; display: flex; flex-direction: column; gap: 12px; }
.lv-dotrow { display: flex; align-items: center; }
.lv-line { flex: 1; height: 6px; background: var(--line); }
.lv-step:first-child .lv-line--a, .lv-step:last-child .lv-line--b { background: transparent; }
.lv-step[data-state="Unlocked"] .lv-line--a, .lv-step[data-state="Unlocked"] .lv-line--b, .lv-step[data-state="Next"] .lv-line--a { background: #FFC93C; }
.lv-dot { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-head); font-size: 20px; background: var(--soft); border: 3px solid var(--line); flex: none; }
.lv-step[data-state="Unlocked"] .lv-dot { background: #FFC93C; color: #1A1D3A; border-color: #B88A10; }
.lv-step[data-state="Next"] .lv-dot { background: var(--surface); border-color: var(--accent); }
.lv-card { margin: 0 8px; background: var(--surface); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 3px solid transparent; box-shadow: 0 2px 0 var(--line); }
.lv-step[data-state="Next"] .lv-card { border-color: var(--accent); }
.lv-step[data-state="Locked"] .lv-card { border-style: dashed; border-color: var(--line); } /* dashed, not faded (faded text fails contrast) */
.lv-swatch { aspect-ratio: 1; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.lv-swatch span { width: 54%; height: 54%; border-radius: 30%; border: 2px solid rgba(128,128,140,.55); }
.lv-card__txt { display: flex; flex-direction: column; gap: 2px; }
.lv-state { font-size: 13px; font-weight: 600; color: var(--muted); }
.lv-step[data-state="Unlocked"] .lv-state { color: var(--teal-ink); }
.lv-step[data-state="Next"] .lv-state { color: var(--accent-text); }
.lv-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

@media (max-width: 720px) {
  .lv-hero { padding: 18px; gap: 16px; border-radius: 22px; }
  .lv-level { width: 84px; height: 84px; border-radius: 22px; }
  .lv-level__n { font-size: 40px; }
  .lv-track { flex-direction: column; overflow: visible; padding: 0; }
  .lv-step { flex: none; flex-direction: row; align-items: stretch; gap: 14px; }
  .lv-dotrow { flex-direction: column; width: 44px; flex: none; }
  .lv-line { flex: 1; width: 6px; height: auto; min-height: 12px; }
  .lv-card { margin: 8px 0; flex: 1; flex-direction: row; align-items: center; gap: 12px; }
  .lv-swatch { width: 52px; flex: none; }
}
.lv-track, .bz-rowtrack, .bz-chips, .pr-tablewrap, .ls-work__area { position: relative; }
