/* Canada Memory (Social Studies). Cards are 3:4. Board on the left, matched pairs on the right (below on narrow screens). Touch targets are whole cards. */
.cm-screen .lead { margin-bottom: 12px; }
.cm-status { font-size: 1.3rem; font-weight: 900; color: var(--green-dark); margin: 6px 0 12px; min-height: 1.5em; }
.cm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.cm-board { display: grid; grid-template-columns: repeat(var(--cm-cols), minmax(0, 1fr)); gap: 10px; max-width: 900px; }
.cm-slot { padding: 0; margin: 0; border: 0; background: transparent; aspect-ratio: 3 / 4; border-radius: 12px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cm-slot img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cm-slot.cm-up { outline: 4px solid var(--blue-action); outline-offset: 2px; }
.cm-slot.cm-gone { visibility: hidden; }
.cm-slot:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.cm-side { padding: 12px; border: 3px solid var(--green-dark); border-radius: 18px; background: var(--paper); }
.cm-side summary { cursor: pointer; font-size: 1.2rem; font-weight: 900; min-height: 44px; display: flex; align-items: center; }
.cm-side[open] summary { margin-bottom: 8px; }
.cm-matched { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-matched li { display: flex; align-items: center; gap: 10px; font-weight: 800; line-height: 1.15; }
.cm-matched img { flex: none; width: 36px; height: 48px; }
.cm-matched small { font-weight: 700; color: var(--muted); }
.cm-card-icon { height: 84px; width: auto; display: block; }
.cm-win { margin-top: 18px; }
@media (max-width: 900px) { .cm-layout { grid-template-columns: 1fr; } .cm-matched { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cm-caption { color: var(--ink); font-size: 1.25rem; font-weight: 900; margin: 0 0 10px; min-height: 1.5em; }
/* Map of Canada, top right: faint outline, each matched place fills in at its real location. */
.cm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cm-top-text { flex: 1 1 auto; min-width: 0; }
.cm-map { flex: none; width: 240px; height: auto; }
.cm-piece { fill: none; stroke: #A39B84; stroke-width: 1.6; stroke-linejoin: round; opacity: .8; }
.cm-piece.cm-on { fill: var(--cm-fill); stroke: var(--ink); stroke-width: 1.4; opacity: 1; }
@media (max-width: 900px) { .cm-map { width: 170px; } }
.cm-swatch { flex: none; width: 14px; height: 36px; border-radius: 6px; border: 2px solid var(--ink); }
