/* Gameficate cartridge — Match questions: the item cards in the question panel's answer box (js/ui/MatchAnswers.js).
   Each item has a colour (--mc) and a number; the same colour and number mark its links on the map. */
.quizbox.mt {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mt-head b {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  letter-spacing: 0;
}
.mt-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 3px;
}
/* ---------- One item ---------- */
.mt-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas: 'n img text' 'n img chips';
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 60px;
  padding: 8px 12px;
  text-align: start;
  border-radius: calc(14px * var(--rs, 1));
  background: var(--soft2);
  border: 2px solid var(--line);
  color: var(--navy);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.mt-item:hover:not(:disabled) {
  border-color: var(--mc);
}
.mt-item.sel {
  border-color: var(--mc);
  background: color-mix(in srgb, var(--mc) 12%, var(--card));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 25%, transparent);
  transform: translateX(4px);
}
.mt-item:disabled {
  cursor: default;
  opacity: 1;
}
.mt-n {
  grid-area: n;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mc);
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 0 0 3px #fff;
}
.mt-item img {
  grid-area: img;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}
.mt-text {
  grid-area: text;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.mt-chips {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.mt-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
/* After checking: ✓ right link, ✗ wrong link, + a link that was missed. */
.mt-chip {
  padding: 2px 9px;
  border-radius: calc(999px * var(--rs, 1));
  font-size: 13px;
  font-weight: 800;
}
.mt-chip.ok {
  background: color-mix(in srgb, var(--green) 16%, var(--card));
  color: color-mix(in srgb, var(--green) 70%, #000);
}
.mt-chip.bad {
  background: color-mix(in srgb, var(--red) 14%, var(--card));
  color: color-mix(in srgb, var(--red) 70%, #000);
  text-decoration: line-through;
}
.mt-chip.miss {
  background: color-mix(in srgb, var(--gold) 22%, var(--card));
  color: color-mix(in srgb, var(--gold) 45%, #000);
}
.mt-help {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
