*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:system-ui,sans-serif;background:#294f38;color:#513515}body{display:grid;place-items:center}#game{position:relative;width:min(100vw,76dvh);height:100dvh;overflow:hidden;isolation:isolate}#art{width:100%;height:100%;display:block;pointer-events:none}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}#game>button,#game>output,#board,#msg{position:absolute}#game>button{border:0;background:transparent;color:white;font-weight:800}#pause{left:1%;top:1.5%;width:13%;height:9%}output{pointer-events:none;text-align:center;font-weight:900;display:grid;place-content:center;line-height:1.05}#moves{left:6%;width:14%;top:12%;height:7%;background:#efbe71;border-radius:18%;font-size:23px}output small{font-size:10px}#score,#best{width:11%;top:13.2%;height:3.3%;color:#fff2cc;background:#885323;border-radius:7px;font-size:14px}#score{left:69%}#best{left:81.5%}#board{left:11.55%;top:27.45%;width:77.1%;height:48.3%;display:grid;grid-template:repeat(6,1fr)/repeat(6,1fr);touch-action:none}.tile{border:0;padding:0;background:transparent;position:relative}.tile.selected,.tile:focus-visible{outline:3px solid #ffbd41;outline-offset:-3px;border-radius:8px}.tile.hit{filter:brightness(1.8);box-shadow:inset 0 0 16px gold}#msg{bottom:17%;left:50%;transform:translateX(-50%);white-space:nowrap;color:#fff6ce;background:#395630e8;border-radius:20px;padding:5px 12px;font-size:13px;pointer-events:none}#msg:empty{display:none}.tool{top:83.5%;width:18%;height:15%;display:flex;align-items:end;justify-content:center;text-shadow:0 1px 4px #263718;padding-bottom:2px}#hammer{left:11%}#map{left:31%}#rules{left:52%}#mix{left:72%}.tool[aria-pressed=true]{filter:drop-shadow(0 0 5px gold);outline:2px solid gold;border-radius:35%}dialog{width:min(85vw,340px);border:3px solid #af7640;border-radius:18px;padding:22px;background:#fff2ce;text-align:center;color:#573516}dialog::backdrop{background:#112e3480}dialog h2{margin:0}dialog p{line-height:1.6}#actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}#actions button{border:0;border-radius:8px;padding:10px 14px;background:#ff8a3d;color:#49240e;font-weight:bold;min-height:44px}#actions button:disabled{background:#ded8c9;color:#777}