/* Fuzzball Ladder screens. Layout only: colours, borders and fonts come from the skin. */

/* ---------- stage overlay ---------- */
.stage { cursor: default; }
.opp-pill { flex-direction: column; align-items: flex-start; gap: 1px; max-width: 62%; white-space: normal; }
.opp-pill b { font-size: var(--fs-sm); }
.opp-pill small, .score-pill small { font-size: var(--fs-xs); opacity: .85; }
.score-pill { flex-direction: column; align-items: flex-end; gap: 1px; }
.score-pill b { font-size: var(--fs-lg); }
.lives { display: inline-flex; gap: 2px; }
.lives .spr { width: 16px; height: 16px; }
.lives .spr.gone { opacity: .25; }
.stage-btn.small { padding: 4px 12px; min-width: 56px; }
.perk-btn { animation: perk-pulse 1s steps(2) infinite; }
@keyframes perk-pulse { 50% { transform: translateY(-3px); } }

/* ---------- upgrade list: one line per stat, two ways to pay ---------- */
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.group-head h2 { margin: 0; font-size: var(--fs-md); color: var(--accent); }
.group-head small { font-size: var(--fs-xs); color: var(--ink-soft); }
.up-row { gap: 8px; padding: 7px; min-height: 0; }
.up-row .row-icon, .up-row .row-icon .spr { width: 32px; height: 32px; }
.up-row .row-sub { font-size: var(--fs-xs); }
.up-btns { display: flex; gap: 2px; flex: none; }
.up-btns .btn { min-width: 70px; padding: 5px 4px; }
.up-btns .btn-label { font-size: var(--fs-xs); }

/* ---------- training plan ---------- */
.plan-row { gap: 8px; padding: 6px 8px; min-height: 0; }
.plan-row .row-main { display: flex; align-items: center; gap: 8px; }
.plan-row .rank { color: var(--accent); min-width: 22px; }
.plan-row .btn { min-width: 46px; padding: 4px; }
.plan-row.skipped .row-title { opacity: .5; }
.plan-row .row-title { white-space: normal; overflow: visible; line-height: 1.15; }   /* two-word names wrap on narrow phones instead of being cut off */
.plan-row .row-main { min-width: 0; }
.switches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.switches .btn { min-width: 0; white-space: normal; }

/* ---------- perk choice ---------- */
.perk-list { display: flex; flex-direction: column; gap: 8px; }
.perk-card { width: calc(100% - var(--u) * 2); min-height: 56px; white-space: normal; text-align: center; }
.perk-card small { font-size: var(--fs-sm); opacity: .9; }
.perk-card.tradeoff b::after { content: " (trade-off)"; font-size: var(--fs-xs); opacity: .8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .chip { margin: 0; }

@media (max-width: 400px) { .up-btns .btn { min-width: 62px; } }
