.mf-bar{display:flex;gap:8px;align-items:stretch}.mf-modes{flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr;border:2px solid var(--ink);border-radius:6px;overflow:hidden}.mf-mode{min-height:48px;padding:0 8px;border:0;background:var(--card);color:var(--ink);font-size:18px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px}.mf-mode+.mf-mode{border-left:2px solid var(--ink)}.mf-mode[aria-pressed=true]{background:var(--yellow);box-shadow:inset 0 -4px 0 var(--ink)}.mf-mode:disabled{opacity:.45;cursor:default}.mf-tagicon{font-size:11px;letter-spacing:.06em;color:var(--stamp-ink);border:2px solid var(--stamp-ink);border-radius:3px;padding:2px 3px 1px;transform:rotate(-6deg)}.mf-undo{flex:0 0 auto}.mf-undo.urgent{background:var(--yellow);box-shadow:0 0 0 3px var(--stamp)}.mf-count{margin:10px 0 8px;font-size:15px;color:var(--muted)}.mf-count b{font-weight:400;color:var(--ink);font-size:17px}.mf-grid{display:grid;grid-template-columns:14px repeat(var(--w),minmax(44px,56px));gap:2px;justify-content:center;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}.mf-corner,.mf-col,.mf-row{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}.mf-col{padding-bottom:2px}.mf-cell{aspect-ratio:1;min-width:44px;min-height:44px;padding:0;margin:0;border-radius:4px;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;color:var(--ink);-webkit-tap-highlight-color:transparent}.mf-cell.s-h,.mf-cell.s-f{background-color:var(--kraft);background-image:linear-gradient(transparent 41%,rgba(251,245,230,.38) 41%,rgba(251,245,230,.38) 59%,transparent 59%);border:1px solid var(--brass-d);box-shadow:inset 0 -3px #231d182e}.mf-cell.s-h:hover:not(:disabled){background-color:var(--yellow)}.mf-cell.s-o{background:var(--card);border:1px solid var(--edge);cursor:default}.mf-cell.n1{color:var(--navy)}.mf-cell.n2{color:var(--teal-ink)}.mf-cell.n3{color:var(--stamp-ink)}.mf-cell.n4{color:var(--brass-d)}.mf-cell.n5,.mf-cell.n6,.mf-cell.n7,.mf-cell.n8{color:var(--ink);text-decoration:underline;text-decoration-thickness:2px}.mf-tag{font-size:11px;letter-spacing:.05em;color:var(--stamp-ink);background:var(--card);border:2px solid var(--stamp-ink);border-radius:3px;padding:3px 3px 2px;transform:rotate(-8deg)}.mf-cell.hinted{box-shadow:inset 0 0 0 3px var(--navy)}.mf-cell:focus-visible{outline:3px solid var(--navy);outline-offset:1px;z-index:1}.mf-cat{width:70%;height:70%}.mf-cat .head{fill:var(--ink)}.mf-cat .lid{fill:none;stroke:var(--card);stroke-width:1.6;stroke-linecap:round}.mf-cat .eye{fill:var(--yellow)}.mf-cell.cat{background:var(--card);border:1px solid var(--edge)}.mf-cell.s-x{background:var(--stamp);border:2px solid var(--ink)}.mf-cell.s-x .mf-cat .head{fill:var(--ink)}.mf-awake .mf-cell.s-x{animation:mf-jolt .3s ease-out 2}@keyframes mf-jolt{50%{transform:translateY(-4px) rotate(-4deg)}}.mf-cell:disabled{cursor:default;opacity:1}@media(min-width:720px){.mf-grid{gap:3px;grid-template-columns:18px repeat(var(--w),minmax(44px,56px))}.mf-bar{max-width:420px;margin:0 auto;width:100%}.mf-count{text-align:center}}@media(prefers-reduced-motion:reduce){.mf-awake .mf-cell.s-x{animation:none}}
