#maze-panel{min-width:0;background:#f9fbff;border:1px solid #dce3f0;border-radius:24px;overflow:hidden}.m-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px}.m-head small{font-size:12px;color:#6952bb;letter-spacing:2px}.m-head h2{margin:6px 0 0;font-size:26px}.m-head select{max-width:45%;border:1px solid #d5ceeb;border-radius:8px;padding:9px;background:white;font:inherit;font-size:14px}.m-stats{display:flex;justify-content:space-between;padding:0 24px 20px;color:#77758d;font-size:14px}.m-stats strong{color:#4c3899;margin-left:10px;font-size:20px}.m-field{padding:24px;background:#eeedf7}#m-board{position:relative;aspect-ratio:1;max-width:480px;margin:auto;touch-action:none;outline-offset:5px}#m-cells{display:grid;grid-template-columns:repeat(var(--size),1fr);width:100%;height:100%}.m-cell,.m-wall{margin:6%;border-radius:16%;border:0;min-width:0;min-height:0}.m-cell{background:#fff;box-shadow:0 3px 0 #d8d5ea;font-size:14px;color:#63519c;position:relative}.m-cell.filled{background:#d9cef8;box-shadow:0 3px 0 #c3b4e7}.m-cell.current{background:#7051c3;color:#fff;box-shadow:0 0 0 3px #b6a0eb inset}.m-wall{background:#dfdeec}#m-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#m-line{fill:none;stroke:#9474d6;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;opacity:.6}.m-actions{padding:20px 24px;display:flex;flex-wrap:wrap;gap:10px}.m-actions button{border:1px solid #d1c8e5;border-radius:9px;padding:10px 16px;background:white;color:#55457c}#m-next{background:#7051c3;color:white;border-color:#7051c3}#m-status{padding:0 24px 12px;line-height:1.7;font-size:14px;min-height:44px;margin:0;color:#675c7e}.m-help{font-size:13px;padding:0 24px 20px;color:#78748a;margin:0}.game-tab[data-game=maze].active{background:#ede6fb;border-color:#baa3e8}.game-tab[data-game=maze] .tab-fruit{color:#7051c3}@media(max-width:800px){.m-head{padding:18px}.m-head h2{font-size:22px}.m-field{padding:16px}.m-stats{padding:0 18px 16px}.m-stats strong{font-size:18px}.m-cell{font-size:12px}.m-actions{padding:16px 18px}#m-status,.m-help{padding-left:18px;padding-right:18px}}
/* Equal tracks keep touch coordinates and the connection line on cell centers. */
#m-cells{grid-template-rows:repeat(var(--size),minmax(0,1fr))}
