/* Classic maths puzzles (P0178) */
.mp-tool .controls button[aria-pressed="true"] { background: #3B6970; color: #FFFFFF; }
.mp-count { display: inline-block; margin-left: 8px; }
.mp-pegs { display: flex; gap: 8px; margin: 10px 0; }
.mp-peg { position: relative; flex: 1 1 0; display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; min-height: 220px; padding: 0 4px 10px; border: 2px solid #E5E0D5; border-radius: 12px; background: #FBFAF6; cursor: pointer; }
.mp-peg[aria-pressed="true"] { border-color: #C38B4A; background: #FBF1E4; }
.mp-peg:focus { outline: 3px solid #C38B4A; }
.mp-pole { position: absolute; left: 50%; bottom: 10px; width: 8px; height: 180px; margin-left: -4px; background: #8C96A6; border-radius: 4px; }
.mp-disk { position: relative; display: block; height: 22px; margin-top: 3px; border-radius: 11px; color: #FFFFFF; font-weight: bold; font-size: .8em; line-height: 22px; text-align: center; }
.mp-jugs { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 10px 0; }
.mp-jug { flex: 0 1 180px; text-align: center; }
.mp-jlab { font-weight: bold; margin: 0 0 6px; }
.mp-tank { position: relative; width: 90px; margin: 0 auto 8px; border: 3px solid #24334B; border-top: 0; border-radius: 0 0 12px 12px; background: #FFFFFF; overflow: hidden; }
.mp-water { position: absolute; left: 0; right: 0; bottom: 0; background: #5E9AA8; }
.mp-sbtn { display: block; width: 100%; min-height: 44px; margin: 4px 0; border: 2px solid #3B6970; border-radius: 10px; background: #FFFFFF; color: #3B6970; font: inherit; font-weight: bold; cursor: pointer; }
.mp-river { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.mp-bank { flex: 1 1 160px; padding: 8px; border-radius: 12px; background: #E9F2E3; min-height: 160px; }
.mp-bh { margin: 0 0 6px; font-size: 1em; }
.mp-water-col { flex: 1 1 160px; padding: 8px; border-radius: 12px; background: #DCEAF2; text-align: center; }
.mp-boat { font-weight: bold; }
.mp-item { display: inline-block; min-height: 44px; margin: 3px; padding: 0 12px; border: 2px solid #24334B; border-radius: 22px; background: #FFFFFF; color: #24334B; font: inherit; cursor: pointer; }
.mp-item[aria-pressed="true"] { background: #C38B4A; color: #FFFFFF; border-color: #8A5A1F; }
.mp-bwrap { max-width: 480px; }
.mp-board { display: grid; border: 3px solid #24334B; }
.mp-k5 { grid-template-columns: repeat(5, 1fr); }
.mp-k6 { grid-template-columns: repeat(6, 1fr); }
.mp-k7 { grid-template-columns: repeat(7, 1fr); }
.mp-k8 { grid-template-columns: repeat(8, 1fr); }
.mp-sq { aspect-ratio: 1 / 1; min-width: 0; min-height: 36px; border: 0; padding: 0; background: #F2E8D5; color: #24334B; font: inherit; font-weight: bold; cursor: pointer; }
.mp-dark { background: #B58863; color: #FFFFFF; }
.mp-can { box-shadow: inset 0 0 0 4px #3B6970; }
.mp-here { background: #C38B4A; color: #FFFFFF; }
.mp-sq:focus { outline: 3px solid #24334B; outline-offset: -3px; }
