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