/* Ponzi Schemes lesson. All rules scoped under .pnz-* */
.pnz-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pnz-note { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 330px; }
.pnz-pic img { width: 100%; max-width: 360px; max-height: 32vh; object-fit: cover; display: block; border-radius: 12px; filter: sepia(.25); }

/* the town */
.pnz-stats { width: 100%; max-width: 360px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pnz-st { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.pnz-st span { font: 600 12px var(--sans); color: var(--dim); line-height: 1.15; }
.pnz-st b { font: 700 18px var(--sans); color: var(--text); }
.pnz-need.lit { color: var(--gold); }
.pnz-stats.broke .pnz-st:nth-child(2) b, .pnz-stats.broke .pnz-st:nth-child(3) b { color: var(--red); }
.pnz-town { display: block; width: 100%; max-width: 360px; height: auto; }
.pnz-d { fill: rgba(169,155,255,.16); transition: fill .25s; }
.pnz-d.new { fill: var(--gold); }
.pnz-d.paid { fill: rgba(123,92,253,.55); }
.pnz-d.last { fill: rgba(255,107,107,.55); }
.pnz-key { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font: 600 12px var(--sans); color: var(--dim); }
.pnz-key span { display: inline-flex; align-items: center; gap: 5px; }
.pnz-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pnz-key .k-new { background: var(--gold); }
.pnz-key .k-paid { background: rgba(123,92,253,.55); }
.pnz-key .k-idle { background: rgba(169,155,255,.16); }

/* timeline */
.pnz-tl { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; padding: 8px 4px; }
.pnz-tlrow { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font: 700 14px var(--sans); color: var(--text); }
.pnz-bar { height: 20px; border-radius: 6px; background: rgba(169,155,255,.08); overflow: hidden; }
.pnz-bar i { display: block; height: 100%; width: 0; border-radius: 6px; }
.pnz-p { background: var(--gold); }
.pnz-m { background: var(--violet-bright); }
.pnz-tlax { display: flex; justify-content: space-between; margin-left: 72px; font: 600 12px var(--sans); color: var(--faint); }

/* the run */
.pnz-bars { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; padding: 8px 4px; }
.pnz-brow { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font: 600 13px var(--sans); color: var(--dim); }
.pnz-brow b { color: var(--text); font: 700 15px var(--sans); }
.pnz-bt { grid-column: 1 / -1; height: 22px; border-radius: 6px; background: rgba(169,155,255,.08); overflow: hidden; }
.pnz-bt i { display: block; height: 100%; width: 0; transition: width .9s ease-out; }
.pnz-ask { background: var(--violet-bright); }
.pnz-bank { background: var(--red); min-width: 0; }

@media (max-height: 700px) {
  .pnz-pic img { max-height: 28vh; }
  .pnz-town { max-height: 150px; }
  .pnz-st b { font-size: 16px; }
}
