/* Meaning Match — two visible columns joined by lines. Knowing, not remembering. */
.dxg .mm {
	position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: clamp(6px, 1.4vh, 12px); padding: clamp(8px, 1.6vh, 18px) clamp(10px, 3vw, 32px);
}
.mm-top { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; }
.mm-skill { font-family: var(--g-head); font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; background: #DDF2F0; color: #0E4A49; }
.mm-count { font-family: var(--g-head); font-size: 1rem; color: var(--g-navy); font-variant-numeric: tabular-nums; }

.mm-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: clamp(48px, 10vw, 150px); width: min(100%, 860px); }
.mm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.mm-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke: #7CCBC4; animation: mm-draw .4s ease-out; }
@keyframes mm-draw { from { stroke-dasharray: 0 600; } to { stroke-dasharray: 600 0; } }
.mm-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 12px); }
.mm-head { margin: 0 0 2px; font-family: var(--g-head); font-weight: 500; font-size: .95rem; color: var(--g-muted); text-align: center; }

.mm-tile {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: clamp(50px, 8.2vh, 64px);
	padding: 4px 14px; margin: 0; border-radius: 16px; cursor: pointer; touch-action: none; text-align: center;
	border: 3px solid var(--g-border); border-bottom-width: 5px; background: #fff; color: var(--g-navy);
	transition: transform .1s ease, border-color .15s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent;
}
.mm-tile--part { background: #E2F5F3; border-color: #9FD6D0; }
.mm-tile--meaning { border-left: 8px solid #F2A08F; }
.mm-tile__main { font-family: var(--g-head); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.mm-tile--meaning .mm-tile__main { font-family: var(--g-body); font-weight: 700; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.mm-tile__type { font-family: var(--g-body); font-size: .78rem; color: #0E4A49; background: #fff; border-radius: 999px; padding: 1px 8px; }
.mm-tile:hover:not(.is-done) { transform: translateY(-2px); border-color: var(--g-aqua); }
.mm-tile:focus-visible { outline: 4px solid var(--g-blue); outline-offset: 3px; }
.mm-tile.is-selected { border-color: var(--g-blue); box-shadow: 0 0 0 4px rgba(46, 94, 158, .18); transform: translateY(-2px); }
.mm-tile.is-selected::before { content: "●"; position: absolute; left: 8px; font-size: .7rem; color: var(--g-blue); }
.mm-tile.is-lifted { z-index: 20; box-shadow: 0 14px 26px rgba(28, 43, 61, .25); transition: none; cursor: grabbing; }
.mm-tile.is-over { border-color: var(--g-aqua); border-style: dashed; background: #F3FBFA; }
.mm-tile.is-wrong { animation: dxg-wiggle .38s ease-in-out; border-color: #F2A08F; }
.mm-tile.is-done { cursor: default; border-style: solid; }
.mm-tile.is-done::after { content: "✓"; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	background: var(--g-aqua); color: #fff; font-size: 13px; font-weight: 700; font-family: var(--g-body); }
.mm-tint0 { background: #E2F5F3 !important; border-color: #7CCBC4 !important; } .mm-line.mm-tint0 { stroke: #7CCBC4; }
.mm-tint1 { background: #FCE8E3 !important; border-color: #F2A08F !important; } .mm-line.mm-tint1 { stroke: #F2A08F; }
.mm-tint2 { background: #FFF6D6 !important; border-color: #E0C052 !important; } .mm-line.mm-tint2 { stroke: #E0C052; }
.mm-tint3 { background: #E6F4EA !important; border-color: #8FCBA2 !important; } .mm-line.mm-tint3 { stroke: #8FCBA2; }
.mm-tint4 { background: #E2F3F5 !important; border-color: #86C4CD !important; } .mm-line.mm-tint4 { stroke: #86C4CD; }

/* Word equation: re + play → replay · play again */
.mm-example { min-height: 64px; text-align: center; opacity: 0; transition: opacity .25s; }
.mm-example.is-on { opacity: 1; animation: dxg-in .25s ease-out; }
.mm-eq { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 10px; font-family: var(--g-head); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--g-navy); }
.mm-eq__part { padding: 0 8px; border-radius: 8px; background: #fff; border: 2px solid var(--g-border); }
.mm-eq__part.is-morph { background: #E2F5F3; border-color: #7CCBC4; }
.mm-eq__op { color: var(--g-muted); }
.mm-eq__word { font-weight: 600; color: var(--g-blue); }
.mm-eq__meaning { margin: 2px 0 0; font-size: 1.05rem; color: var(--g-muted); }
.mm-msg { margin: 0; min-height: 1.5em; font-family: var(--g-head); font-weight: 500; color: var(--g-blue); text-align: center; }
.mm-streak {
	position: absolute; top: 8px; right: 14px; padding: 4px 14px; border-radius: 999px; background: #FFF5D1; border: 2px solid #E9C85A;
	font-family: var(--g-head); font-weight: 600; font-size: 0.95rem; color: #5C4500; opacity: 0; transition: opacity .2s;
}
.mm-streak.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mm-line { animation: none; } }
@media (max-width: 599px) {
	.dxg .mm { gap: 6px; padding: 8px; justify-content: flex-start; }
	.mm-board { column-gap: 26px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
	.mm-tile { min-height: 50px; padding: 4px 8px; flex-direction: column; gap: 2px; }
	.mm-tile--meaning { border-left-width: 5px; }
	.mm-tile__main { font-size: 1.35rem; }
	.mm-tile--meaning .mm-tile__main { font-size: 1rem; }
	.mm-tile__type { font-size: .7rem; padding: 0 6px; }
	.mm-skill { display: none; }
	.mm-eq { font-size: 1.15rem; }
	.mm-streak { position: static; font-size: .8rem; padding: 2px 10px; }
	.mm-streak:not(.is-on) { display: none; }
}
