/* Zadania smoka (module 'zadania') — every selector starts with .mod-zadania.
 * Module area 1040 x 712:
 *   story band 0–160 (the only module with 2 lines of text: line boxes 78 px, number chips 72 px high —
 *   the drawn chip is the whole hit area, §1.4 helpers ≥ 72) + ear | picture 16–700 x 168–586 (caption strip
 *   "zeszyt" at its bottom, 74 px) |
 *   right column 716–1030: keypad 290–704 (its ✓ sits in the main-button corner) or 2 choice buttons |
 *   answer strip 24–700 x 598–706 (question + answer boxes) | action bar 592–712 (Dalej / Gotowe / Wydaję).
 * L6: the counting-up line fills the picture, the problem card is in the right column; while she gives change
 * Cofnij (left) moves the answer strip to 262.
 * Colours: tokens of css/base.css (error = amber --err, success = gold, unknown "?" = accent violet). */

.mod-zadania .zd-scene > *,
.mod-zadania .zd-scene .zd-abs {
  position: absolute;
}

/* ---------- story band ---------- */

.mod-zadania .zd-band {
  height: 160px;
  padding: 0 16px 0 24px;
}
.mod-zadania .zd-band .task-content {
  font-family: var(--font);
  font-size: 30px;
  font-weight: 700;
  min-width: 0;
}
.mod-zadania .zd-story {
  display: block;
  width: 100%;
  /* 2 lines x 78 = 156 of the band's 157 px: 72-px chips with 6 px between the rows */
  line-height: 78px;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mod-zadania .zd-story.is-short {
  font-size: 32px;
}
.mod-zadania .zd-story.is-in {
  opacity: 1;
  transform: none;
}
.mod-zadania .zd-story.is-reading {
  color: var(--ink);
  text-shadow: 0 0 1px rgba(123, 92, 214, 0.25);
}
.mod-zadania .zd-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  /* the tap target itself (no invisible extension): ≥ 72 px; width follows the label (nowrap, auto) */
  height: 72px;
  min-width: 72px;
  margin: 0 3px;
  padding: 0 14px;
  border: 3px solid var(--gold-deep);
  border-radius: 16px;
  background: var(--gold-soft);
  box-shadow: 0 3px 0 rgba(201, 143, 0, 0.35);
  font-family: var(--font);
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mod-zadania .zd-chip:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(201, 143, 0, 0.35);
}
.mod-zadania .zd-chip.zd-glow {
  animation: zd-glow 1.6s ease-out;
}

/* ---------- picture ---------- */

.mod-zadania .zd-scenebox {
  position: absolute;
  left: 16px;
  top: 168px;
  width: 684px;
  height: 418px;
  border-radius: 22px;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.mod-zadania .zd-scene {
  position: absolute;
  left: 0;
  top: 0;
  width: 678px;
  height: 412px;
}
.mod-zadania .zd-scene.is-enter {
  animation: zd-in 0.45s ease-out;
}
.mod-zadania .zd-tap {
  cursor: pointer;
}
.mod-zadania .zd-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.mod-zadania .zd-part-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mod-zadania .zd-part-top.is-col {
  flex-direction: column;
  gap: 6px;
}
.mod-zadania .zd-art-svg,
.mod-zadania .zd-dragon {
  display: block;
  flex: none;
  filter: drop-shadow(0 3px 0 rgba(42, 34, 56, 0.12));
}
.mod-zadania .zd-pile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mod-zadania .zd-money {
  filter: drop-shadow(0 2px 0 rgba(42, 34, 56, 0.16));
}
.mod-zadania .zd-money.is-gone {
  visibility: hidden;
}
.mod-zadania .is-arriving {
  opacity: 0;
}
.mod-zadania .zd-fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  pointer-events: none;
}
.mod-zadania .zd-fly > * {
  display: block;
}
.mod-zadania .zd-qmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}
.mod-zadania .zd-tray .zd-qmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* price tags: md from App.money, smaller variants for rows of baskets */
.mod-zadania .zd-tag .money-tag-main {
  font-size: 32px;
}
.mod-zadania .zd-tag-sm .money-tag-body {
  min-height: 44px;
  padding: 2px 14px 2px 36px;
}
.mod-zadania .zd-tag-sm .money-tag-main {
  font-size: 26px;
}
.mod-zadania .zd-tag-sm .money-tag-hole {
  left: 14px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
}
.mod-zadania .zd-tag-xs .money-tag-body {
  min-height: 36px;
  padding: 1px 10px 1px 30px;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
}
.mod-zadania .zd-tag-xs .money-tag-main {
  font-size: 22px;
}
.mod-zadania .zd-tag-xs .money-tag-hole {
  left: 10px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
}
.mod-zadania .zd-qtag {
  display: inline-flex;
  align-items: center;
  position: relative;
  height: 58px;
  padding: 0 24px 0 44px;
  background: linear-gradient(180deg, #fbf7ff 0%, var(--accent-soft) 100%);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%);
  border-radius: 0 12px 12px 0;
  filter: drop-shadow(0 0 0.8px var(--accent)) drop-shadow(0 0 0.8px var(--accent));
}
.mod-zadania .zd-qtag.zd-tag-xs {
  height: 36px;
  padding: 0 14px 0 28px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
}
.mod-zadania .zd-qtag-hole {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #c9b8f2;
}
.mod-zadania .zd-qtag.zd-tag-xs .zd-qtag-hole {
  left: 9px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
}
.mod-zadania .zd-qtag-q {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
}
.mod-zadania .zd-tag-xs .zd-qtag-q {
  font-size: 24px;
}

/* running totals */
.mod-zadania .zd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 2px 14px;
  border-radius: 999px;
  border: 3px solid var(--gold);
  background: var(--gold-soft);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mod-zadania .zd-pill.is-on {
  opacity: 1;
}
.mod-zadania .zd-tray-pill {
  position: absolute;
  right: 12px;
  top: -22px;
  font-size: 30px;
}
.mod-zadania .zd-runpill {
  width: 112px;
}
.mod-zadania .zd-runpill-s {
  width: 84px;
  font-size: 22px;
  min-height: 34px;
  padding: 0 6px;
}
.mod-zadania .zd-totpill {
  font-size: 30px;
  min-height: 52px;
  padding: 4px 22px;
}

/* the tray "together" */
.mod-zadania .zd-tray {
  border: 4px dashed #d8c7a4;
  border-radius: 24px;
  background: rgba(255, 241, 191, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mod-zadania .zd-tray-pile {
  max-width: 396px;
  padding: 10px;
}

/* ---------- bar model ---------- */

.mod-zadania .zd-bars {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 32px;
}
.mod-zadania .zd-bars.is-slim {
  gap: 18px;
  padding-top: 4px;
}
.mod-zadania .zd-barrow {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
}
.mod-zadania .zd-baricon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mod-zadania .zd-bars.is-slim .zd-baricon {
  width: 46px;
  height: 46px;
}
.mod-zadania .zd-bars.is-slim .zd-baricon svg {
  width: 40px;
  height: 40px;
}
.mod-zadania .zd-bartrack {
  position: relative;
  display: flex;
  align-items: center;
}
.mod-zadania .zd-seg {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 3px solid rgba(42, 34, 56, 0.25);
  margin-right: -3px;
  transition: width 0.45s ease;
}
.mod-zadania .zd-bars.is-slim .zd-seg {
  height: 40px;
}
.mod-zadania .zd-seg.is-known {
  background: linear-gradient(180deg, #ffe48a 0%, var(--gold) 100%);
  border-color: var(--gold-deep);
}
.mod-zadania .zd-seg.is-price {
  background: linear-gradient(180deg, #fde3c6 0%, #f6c08d 100%);
  border-color: #c98a4a;
}
.mod-zadania .zd-seg.is-money {
  background: linear-gradient(180deg, #ffe48a 0%, var(--gold) 100%);
  border-color: var(--gold-deep);
}
.mod-zadania .zd-seg.is-gap {
  background: var(--accent-soft);
  border: 3px dashed var(--accent);
}
.mod-zadania .zd-seg.is-gap.is-done,
.mod-zadania .zd-seg.is-gap.is-filling {
  background: #fff7d6;
  border-style: solid;
  border-color: var(--gold-deep);
}
.mod-zadania .zd-seg.is-ghost {
  background: repeating-linear-gradient(135deg, #f3ecdc 0 8px, #fbf6ea 8px 16px);
  border: 3px dashed #c4b38f;
}
.mod-zadania .zd-seg.is-extra {
  background: linear-gradient(180deg, #c9b8f2 0%, #9f86e8 100%);
  border-color: var(--accent);
}
.mod-zadania .zd-seg.is-gap.is-bpart .zd-seglab {
  position: static;
  transform: none;
  background: transparent;
  box-shadow: none;
}
.mod-zadania .zd-seg.is-cut {
  background: repeating-linear-gradient(135deg, #fff 0 7px, var(--accent-soft) 7px 14px);
  border: 3px dashed var(--accent);
  opacity: 0.85;
}
.mod-zadania .zd-seglab {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  z-index: 1;
}
.mod-zadania .zd-seg.is-gap .zd-seglab,
.mod-zadania .zd-seg.is-extra .zd-seglab,
.mod-zadania .zd-seg.is-cut .zd-seglab {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.mod-zadania .zd-seg.is-gap.is-done .zd-seglab,
.mod-zadania .zd-seg.is-gap.is-filling .zd-seglab {
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--gold);
}
.mod-zadania .zd-segcoins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.mod-zadania .zd-segcoins:empty {
  display: none;
}
.mod-zadania .zd-barend {
  margin-left: 14px;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.mod-zadania .zd-barend-b {
  color: var(--accent);
}
.mod-zadania .zd-bars.is-growing .zd-seg {
  animation: zd-grow 0.5s ease-out both;
  transform-origin: left center;
}

/* ---------- groups: baskets in a row ---------- */

.mod-zadania .zd-basket {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 18px;
}
.mod-zadania .zd-basket-in {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  z-index: 1;
}
.mod-zadania .zd-basket > svg {
  position: relative;
  z-index: 2;
}
.mod-zadania .zd-under {
  min-height: 52px;
}
.mod-zadania .zd-pills-ref {
  pointer-events: none;
  border-radius: 16px;
}

/* ---------- number line (#29, #45) ---------- */

.mod-zadania .zd-jl {
  border-radius: 16px;
}
.mod-zadania .zd-jl-svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.mod-zadania .zd-jl-base {
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}
.mod-zadania .zd-jl-tick {
  stroke: var(--ink-soft);
  stroke-width: 2;
}
.mod-zadania .zd-jl-tick.is-major {
  stroke: var(--ink);
  stroke-width: 3;
}
.mod-zadania .zd-jl-lab {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  fill: var(--ink);
  text-anchor: middle;
}
.mod-zadania .zd-jl-arc {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 4;
  stroke-linecap: round;
}
.mod-zadania .zd-jl-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mod-zadania .zd-jl-icon {
  position: absolute;
}
.mod-zadania .zd-jl-icon svg {
  width: 100%;
  height: 100%;
}
.mod-zadania .zd-jl-rest {
  position: absolute;
  height: 28px;
  border-radius: 8px;
  border: 3px dashed var(--accent);
  background: var(--accent-soft);
}
.mod-zadania .zd-jl-restlab {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- sharing: a bowl of coins and the receivers ---------- */

.mod-zadania .zd-bowl {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mod-zadania .zd-coingrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 2px;
  max-width: 270px;
}
.mod-zadania .zd-recv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  padding-top: 4px;
}
.mod-zadania .zd-recv-pic {
  height: 64px;
  display: flex;
  align-items: flex-end;
}
.mod-zadania .zd-stack {
  display: grid;
  grid-template-columns: repeat(2, 24px);
  grid-auto-rows: 24px;
  gap: 2px;
  justify-content: center;
}
.mod-zadania .zd-stack-s {
  grid-template-columns: repeat(2, 22px);
  grid-auto-rows: 22px;
}

/* ---------- change: the top row and the receipt ---------- */

.mod-zadania .zd-chgtop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.mod-zadania .zd-chgitem,
.mod-zadania .zd-chgpaid,
.mod-zadania .zd-chgcoin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 16px;
}
.mod-zadania .zd-word {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-soft);
}
.mod-zadania .zd-times {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink-soft);
}
.mod-zadania .zd-chgcoin .zd-times {
  color: var(--accent);
}
.mod-zadania .zd-receipt,
.mod-zadania .zd-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 18px 10px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mod-zadania .zd-receipt.is-leaving {
  opacity: 0;
  transform: translateY(20px);
}
.mod-zadania .zd-rc-head,
.mod-zadania .zd-list-head {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink-soft);
  text-align: center;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 4px;
}
.mod-zadania .zd-rc-row,
.mod-zadania .zd-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-size: 26px;
  border-radius: 10px;
}
.mod-zadania .zd-rc-row b,
.mod-zadania .zd-list-row b {
  margin-left: auto;
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;
}
.mod-zadania .zd-rc-row.is-sum,
.mod-zadania .zd-list-row.is-sum {
  border-top: 3px solid var(--ink);
  padding-top: 4px;
  font-weight: 800;
}
.mod-zadania .zd-rc-sum,
.mod-zadania .zd-list-sum {
  color: var(--accent);
}
.mod-zadania .zd-list-name {
  font-weight: 700;
}

/* ---------- rides ---------- */

.mod-zadania .zd-clockbadge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--line);
  font-size: 26px;
}
.mod-zadania .zd-clocks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 14px;
}
.mod-zadania .zd-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mod-zadania .zd-clocklab {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- baskets (#33) and the price of one (#34) ---------- */

.mod-zadania .zd-bigbasket {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
}
.mod-zadania .zd-bk-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  padding: 0 10px;
  margin-bottom: -14px;
  position: relative;
  z-index: 3;
}
.mod-zadania .zd-bk-body {
  width: 100%;
  height: 56px;
  background: repeating-linear-gradient(90deg, #d9a55b 0 18px, #c98f48 18px 21px), #d9a55b;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  border-radius: 6px;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 -6px 0 rgba(138, 90, 34, 0.35);
}
.mod-zadania .zd-bk-it {
  display: inline-flex;
}
.mod-zadania .zd-order {
  border: 4px dashed #d8c7a4;
  border-radius: 22px;
  background: rgba(236, 230, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mod-zadania .zd-loose {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 380px;
}
.mod-zadania .zd-bkrow {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  justify-content: center;
}
.mod-zadania .zd-bkcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mod-zadania .zd-bktag.is-hidden {
  visibility: hidden;
}
.mod-zadania .zd-unitleft {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.mod-zadania .zd-unitbasket {
  width: 300px;
  margin-top: -18px;
}
.mod-zadania .zd-unitrow {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 3;
}
.mod-zadania .zd-unitcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 56px;
  border-radius: 12px;
}
.mod-zadania .zd-unitcoins {
  max-width: 150px;
  border-radius: 12px;
}
.mod-zadania .zd-unitright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  max-width: 300px;
}
.mod-zadania .zd-unititem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* the little picture of the extra (superfluous) datum, L4 */
.mod-zadania .zd-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 3px dashed #d8c7a4;
  background: rgba(255, 255, 255, 0.7);
}
.mod-zadania .zd-sign {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mod-zadania .zd-sign b {
  position: absolute;
  top: 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.mod-zadania .zd-stars {
  display: flex;
  flex-wrap: wrap;
  width: 76px;
  justify-content: center;
  gap: 3px;
}
.mod-zadania .zd-xlody {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ---------- caption under the picture: the operation (symbol) ---------- */

.mod-zadania .zd-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: repeating-linear-gradient(180deg, #fffefa 0 35px, #e7eefb 35px 37px), #fffefa;
  border-top: 3px solid var(--line);
  opacity: 0;
  transform: translateY(74px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 5;
}
.mod-zadania .zd-note.is-on {
  opacity: 1;
  transform: none;
}
.mod-zadania .zd-note-line {
  /* the caption has "zł" / "gr": --font-num (Arial Rounded) has no "ł" (§1.4), so the text font */
  font-family: var(--font);
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mod-zadania .zd-note.is-two .zd-note-line {
  font-size: 28px;
  line-height: 1.2;
}

/* help cards (1 zł = 100 gr) */
.mod-zadania .zd-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 3px solid var(--err);
  box-shadow: var(--shadow-sm);
  z-index: 6;
}
.mod-zadania .zd-eq {
  font-size: 40px;
  font-weight: 800;
}

/* ---------- answer strip under the picture: question + boxes ---------- */

.mod-zadania .zd-qstrip {
  position: absolute;
  left: 24px;
  top: 598px;
  width: 676px;
  height: 108px;
  display: flex;
  align-items: center;
  gap: 22px;
  visibility: hidden;
  z-index: 3;
}
.mod-zadania .zd-qstrip.is-on {
  visibility: visible;
}
.mod-zadania.zd-l6.zd-giving .zd-qstrip {
  /* while she gives change: between Cofnij (24–208, ~242 with extra-large text) and the main button (~796);
     later the keypad needs the right column again, so the strip goes back to 24–700 */
  left: 262px;
  width: 520px;
}
.mod-zadania.zd-l6 .zd-q {
  max-width: 520px;
  font-size: 30px;
}
.mod-zadania .zd-q {
  flex: 0 1 auto;
  max-width: 430px;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.mod-zadania .zd-qstrip.is-sign .zd-q {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
}
.mod-zadania .zd-sign-you,
.mod-zadania .zd-sign-me {
  padding: 4px 14px;
  border-radius: 14px;
  background: #fff;
  border: 3px solid var(--line);
  white-space: nowrap;
}
.mod-zadania .zd-sign-me {
  border-color: var(--accent);
}
.mod-zadania .zd-sign-dot {
  color: var(--ink-soft);
}
.mod-zadania .zd-l6cap {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 700;
  white-space: nowrap;
}
.mod-zadania .zd-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 22px;
  padding: 4px 6px;
}
.mod-zadania .zd-box {
  width: 118px;
  height: 84px;
  border-radius: 18px;
  border: 4px solid var(--line);
  background: #fff;
  font-family: var(--font-num);
  font-size: 54px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: inset 0 3px 0 rgba(42, 34, 56, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mod-zadania .zd-box.is-gr {
  width: 100px;
}
.mod-zadania .zd-box.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}
.mod-zadania .zd-box.is-ghost {
  color: #c4b9a4;
}
.mod-zadania .zd-field.is-stale .zd-box {
  color: var(--ink-soft);
}
.mod-zadania .zd-field.is-err .zd-box {
  border-color: var(--err);
  background: var(--err-soft);
  box-shadow: none;
}
.mod-zadania .zd-field.is-ok .zd-box {
  border-color: var(--gold-deep);
  background: var(--gold-soft);
  box-shadow: 0 0 0 5px rgba(242, 183, 5, 0.35);
}
.mod-zadania .zd-unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 6px;
  border-radius: 14px;
  padding: 0 4px;
}

/* ---------- right column: keypad, choices, the L6 problem card ---------- */

.mod-zadania .zd-pad {
  position: absolute;
  left: 716px;
  top: 290px;
  width: 316px;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s 0.35s;
  z-index: 4;
}
.mod-zadania .zd-pad.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s;
}
.mod-zadania .zd-pad .keypad {
  gap: 10px;
}
.mod-zadania .zd-pad .key.zd-key-hit {
  background: var(--gold-soft);
  transform: translateY(3px);
}
.mod-zadania .zd-choices {
  position: absolute;
  left: 716px;
  top: 176px;
  width: 316px;
  height: 408px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  z-index: 4;
}
.mod-zadania .zd-choices.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
.mod-zadania .zd-choices.is-locked {
  pointer-events: none;
}
.mod-zadania .zd-choice {
  width: 316px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 32px;
}
.mod-zadania .zd-choices.is-yesno .zd-choice {
  min-height: 118px;
  flex-direction: row;
  gap: 14px;
  font-size: 38px;
}
.mod-zadania .zd-choice .btn-icon svg,
.mod-zadania .zd-choice svg.zd-art-svg {
  width: 76px;
  height: 76px;
}
.mod-zadania .zd-choices.is-yesno .zd-choice .ico {
  width: 44px;
  height: 44px;
}
.mod-zadania .zd-choice.is-ok {
  border-color: var(--gold-deep);
  background: var(--gold-soft);
  box-shadow: 0 0 0 5px rgba(242, 183, 5, 0.35);
}
.mod-zadania .zd-choice.is-err {
  border-color: var(--err);
  background: var(--err-soft);
}
.mod-zadania .zd-side {
  position: absolute;
  left: 716px;
  top: 176px;
  width: 316px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.mod-zadania .zd-side.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
.mod-zadania .zd-side-notes,
.mod-zadania .zd-side-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.mod-zadania .zd-side-paid {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- L6: pick, price dials, coins row with the dragon's ticks ---------- */

.mod-zadania .zd-pickcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 22px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--font);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}
.mod-zadania .zd-pickcard:active {
  transform: translateY(3px);
}
.mod-zadania .zd-pickname {
  line-height: 1;
}
.mod-zadania .zd-pricebox {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
}
.mod-zadania .zd-pricebox .money-tag-main {
  font-size: 56px;
}
.mod-zadania .zd-dials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.mod-zadania .zd-dial {
  width: 128px;
  height: 96px;
  border-radius: 22px;
  border: 0;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  font-family: var(--font);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
}
.mod-zadania .zd-dial[data-d='10'],
.mod-zadania .zd-dial[data-d='-10'] {
  background: #fff1d6;
}
.mod-zadania .zd-dial:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.mod-zadania .zd-cu .money-drawer.is-hidden {
  visibility: hidden;
}
.mod-zadania .zd-crow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 3;
  background: rgba(255, 253, 247, 0.96);
  border-radius: 18px;
}
.mod-zadania .zd-ccell {
  position: relative;
  min-width: 96px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 16px;
  border: 3px solid transparent;
  background: transparent;
  padding: 4px;
}
.mod-zadania .zd-ticks {
  display: flex;
  gap: 4px;
  min-height: 30px;
}
.mod-zadania .zd-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.mod-zadania .zd-crow.is-findable .zd-ccell {
  border-color: var(--line);
  background: #fff;
  cursor: pointer;
}
.mod-zadania .zd-ccell.is-found {
  border-color: var(--gold-deep) !important;
  background: var(--gold-soft) !important;
}

/* ---------- attention effects ---------- */

.mod-zadania .zd-glow {
  animation: zd-glow 1.6s ease-out;
}
.mod-zadania .zd-pulse {
  animation: zd-pulse 0.9s ease-out;
}
.mod-zadania .zd-amber {
  outline: 5px solid var(--err);
  outline-offset: 4px;
  border-radius: 16px;
  background-color: rgba(255, 233, 212, 0.55);
}
.mod-zadania .zd-scene.zd-amber {
  outline-offset: -6px;
}
.mod-zadania .zd-nonum .money-tag,
.mod-zadania .zd-nonum .zd-tag,
.mod-zadania .zd-nonum .zd-pill,
.mod-zadania .zd-nonum .zd-seglab,
.mod-zadania .zd-nonum .zd-barend,
.mod-zadania .zd-nonum .zd-jl-lab,
.mod-zadania .zd-nonum .zd-clocklab,
.mod-zadania .zd-nonum .zd-list-row b,
.mod-zadania .zd-nonum .zd-rc-row b {
  opacity: 0.08;
  transition: opacity 0.3s ease;
}

@keyframes zd-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 183, 5, 0.85);
    background-color: rgba(255, 241, 191, 0.9);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(242, 183, 5, 0.25);
    background-color: rgba(255, 241, 191, 0.6);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(242, 183, 5, 0);
  }
}
@keyframes zd-pulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes zd-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes zd-grow {
  from {
    transform: scaleX(0.05);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod-zadania .zd-pulse,
  .mod-zadania .zd-scene.is-enter,
  .mod-zadania .zd-bars.is-growing .zd-seg {
    animation: none;
  }
  .mod-zadania .zd-pad,
  .mod-zadania .zd-pad.is-on,
  .mod-zadania .zd-note {
    transform: none;
    transition-duration: 0.15s;
  }
}

/* sparse pictures (two things, no bars yet) sit lower and move up when the bars come */
.mod-zadania .zd-mover {
  transition: top 0.38s ease;
}
.mod-zadania .zd-choice {
  font-family: var(--font);
}
.mod-zadania .zd-nowrap {
  white-space: nowrap;
}
.mod-zadania .zd-chgtop.is-tight {
  gap: 12px;
}
.mod-zadania .zd-chgtop.is-tight .zd-chgitem,
.mod-zadania .zd-chgtop.is-tight .zd-chgpaid,
.mod-zadania .zd-chgtop.is-tight .zd-chgcoin {
  gap: 6px;
  padding: 2px;
}
.mod-zadania .zd-chgtop.is-tight .zd-word {
  font-size: 24px;
}
.mod-zadania .zd-eggtray {
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, #d8c6a6 0 30px, #c9b591 30px 34px);
  box-shadow: inset 0 -4px 0 rgba(126, 107, 80, 0.35);
}
/* picture parts that react to a tap are at least 88 px (§1.4) */
.mod-zadania .zd-thing {
  padding: 6px;
  min-width: 88px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.mod-zadania .zd-chgitem,
.mod-zadania .zd-chgpaid,
.mod-zadania .zd-chgcoin {
  min-height: 88px;
}

/* #37: a compact list card, so the two bars fit between it and the caption strip (review fix) */
.mod-zadania .zd-k-list .zd-list {
  gap: 2px;
  padding: 6px 16px 8px;
}
.mod-zadania .zd-k-list .zd-list-head {
  font-size: 22px;
  padding-bottom: 2px;
}
.mod-zadania .zd-k-list .zd-list-row {
  min-height: 32px;
  font-size: 26px;
}
.mod-zadania .zd-k-list .zd-list-row b {
  font-size: 26px;
}
.mod-zadania .zd-k-list .zd-list-row.is-sum {
  padding-top: 2px;
}
.mod-zadania .zd-bars.is-slim.is-list {
  padding-top: 30px;
}
