/* Mistake map on the guest Listening/Reading result (lr.js renderGuestMap, 12-04). Colours are app.css tokens only:
   correct = accent tint, wrong = the "below" tint, not answered = neutral paper. */
.qmap { margin-top: 18px; }
.qmap-part + .qmap-part { margin-top: 14px; }
.qmap-h { font-family: var(--f-body); font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.qmap-h span { font-family: var(--f-mono); font-weight: 500; color: var(--mute); margin-left: 6px; }
.qmap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 768px) { .qmap-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.qmap-grid li { margin: 0; }
.qcell { position: relative; display: grid; place-items: center; width: 100%; min-height: 36px; padding: 0; border: 1px solid transparent;
  border-radius: 10px; font: 600 13px/1 var(--f-mono); text-decoration: none; cursor: default;
  animation: qmap-pop .22s ease-out both; animation-delay: calc(var(--i, 0) * 18ms); }
.qcell.ok { background: var(--t-50); color: var(--t-700); border-color: var(--t-100); }
.qcell.miss { background: var(--below-soft); color: var(--below); }
.qcell.blank { background: var(--paper-2); color: var(--mute); border: 1px dashed var(--line-2); }
.qcell.open, .qcell.lock { cursor: pointer; }
.qcell.open { box-shadow: inset 0 0 0 2px currentColor; }
.qcell:focus-visible { outline: 2px solid var(--t-700); outline-offset: 2px; }
/* small padlock drawn with a mask (no image file), top-right of the cell */
.qcell.lock::after, .qmap-lockh::before { content: ""; display: block; width: 9px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M2 4V3a2.5 2.5 0 0 1 5 0v1h.5A1 1 0 0 1 8.5 5v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm1 0h3V3a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 10'%3E%3Cpath d='M2 4V3a2.5 2.5 0 0 1 5 0v1h.5A1 1 0 0 1 8.5 5v4a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm1 0h3V3a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.qcell.lock::after { position: absolute; top: 3px; right: 3px; opacity: .65; }
.qmap-legend { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.qkey { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 6px; vertical-align: -1px; }
.qkey:first-child { margin-left: 0; }
.qkey.ok { background: var(--t-50); border: 1px solid var(--t-100); }
.qkey.miss { background: var(--below-soft); border: 1px solid var(--below-soft); }
.qkey.blank { background: var(--paper-2); border: 1px dashed var(--line-2); }
.qmap-why { margin-top: 22px; }
.qmap-why h2 { font-size: 19px; margin: 0 0 4px; }
.qmap-item { scroll-margin-top: 80px; }
.qmap-item + .qmap-item .item-row { border-top: 1px solid var(--line); }
.qmap-unlock { scroll-margin-top: 80px; }
.qmap-unlock:focus { outline: none; }
.qmap-unlock h2 { font-size: clamp(21px, 3vw, 25px); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.qmap-lockh::before { width: 16px; height: 18px; flex: none; color: var(--t-700); }
.qmap-reg { margin-top: 6px; }
@keyframes qmap-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qcell { animation: none; } }
