/* Закон 5: мини-игра «Тающая корзина». Только переменные цветов из course.css. */
.kz-basket { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.kz-item { --f: 1; min-width: 0; min-height: 44px; display: grid; place-items: center; padding: 6px 0; border-radius: 12px; border: 2px solid var(--accent); background: linear-gradient(to top, var(--tint) calc(var(--f) * 100%), transparent calc(var(--f) * 100%)); font-size: 0.7rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-align: center; white-space: nowrap; overflow: hidden; }
@media (min-width: 480px) { .kz-item { font-size: 0.82rem; min-height: 52px; } }
.kz-item.part { border-style: dashed; }
.kz-item.gone { border: 2px dashed var(--line-strong); color: var(--muted); text-decoration: line-through; opacity: 0.55; }
.kz-anim .kz-item { transition: background 0.4s ease, opacity 0.4s ease, border-color 0.4s ease; }

.kz-chart { display: block; width: 100%; height: auto; max-width: 460px; }
.kz-axis { stroke: var(--line-strong); stroke-width: 1; }
.kz-full { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.kz-t { fill: var(--muted); font: 600 11px var(--sans); }
.kz-l-cash, .kz-l-dep { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.kz-l-cash { stroke: var(--bad); }
.kz-l-dep { stroke: var(--p1); }
.kz-d-cash { fill: var(--bad); }
.kz-d-dep { fill: var(--p1); }

.kz-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.85rem; color: var(--muted); }
.kz-key { display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.kz-key.cash { background: var(--bad); }
.kz-key.dep { background: var(--p1); }
.kz-key.full { height: 0; border-top: 2px dashed var(--line-strong); border-radius: 0; }
.kz-rate { display: grid; gap: 6px; justify-items: start; }
.kz-rate .seg button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.kz-rate .seg button[disabled] { cursor: default; opacity: 0.6; }
.kz-rate .seg button[disabled][aria-pressed="true"] { opacity: 1; }
.kz-log .pill { font-variant-numeric: tabular-nums; }
.kz-log:empty, .kz-log:empty + .kz-log-note { display: none; }
.kz-end { display: grid; gap: 12px; }
.kz-end:empty { display: none; }
