*{box-sizing:border-box}body{margin:0;background:#eef1e4;color:#294e3a;font-family:Arial,sans-serif}button,select{font:inherit;touch-action:manipulation}button{cursor:pointer}header{display:flex;align-items:center;gap:24px;background:#0c1b2d;color:#dcece8;padding:14px 4%}header a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand img{width:44px}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#8bbcc7;margin-top:5px}.back{font-size:13px}.tools{display:flex;gap:6px;margin-left:auto}.tools button{height:40px;width:40px;border:1px solid #496670;background:#173543;color:#e5f0e3;border-radius:12px}main{max-width:880px;padding:18px 24px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.heading p{font-size:9px;letter-spacing:2.4px;color:#7e9472;margin:0 0 5px}h1{margin:0;font-size:30px}#speed-label{font-size:11px;color:#7d8f70}.game{max-width:660px;margin:auto;background:#fafbed;border:1px solid #c0d0ad;border-radius:21px;overflow:hidden;box-shadow:0 10px 30px #304b2c08}.hud{display:flex;justify-content:space-between;padding:13px 23px;font-size:9px;color:#7a9271;letter-spacing:2px}.hud b{font-size:24px;letter-spacing:0;margin-left:10px;color:#345f42}.lawn{position:relative;width:min(100%,var(--board-size,580px));margin:auto;border:7px solid #5d7950;border-radius:8px;background:#82aa65;box-shadow:inset 0 0 0 2px #bfd098}canvas{display:block;aspect-ratio:1;width:100%;height:auto;touch-action:none;outline-offset:-4px}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#25482466;padding:14px}#overlay[hidden]{display:none}.panel{background:#f7f7e8f5;border:1px solid #d6dab8;color:#365c3d;text-align:center;border-radius:22px;padding:24px;max-width:380px;width:100%;box-shadow:0 10px 30px #1c3e2a33}.mower-mark{width:78px;height:65px}.eyebrow{font-size:8px;letter-spacing:2px;color:#8a9a75}.panel h2{font-size:29px;margin:10px 0}.panel p:not(.eyebrow){font-size:13px;line-height:1.6;color:#7c8e71}.panel small{display:block;font-size:10px;color:#92a080;margin-top:13px}.primary{padding:14px 22px;border:0;border-radius:11px;background:#3a6b46;color:#f1f5df;font-weight:700}.panel .primary{width:100%;margin-top:15px}#speed-picker{display:flex;justify-content:center;align-items:center;gap:14px;color:#839475;font-size:12px}select{border:1px solid #c4d1b4;background:#eaf0df;color:#436b43;padding:8px 14px;border-radius:9px}#status{margin:0;text-align:center;padding:12px 12px 7px;font-size:11px;line-height:1.4;color:#738b67;min-height:32px}.instructions{display:flex;justify-content:space-between;padding:9px 18px 15px;color:#8d9f7e;font-size:9px}.instructions b{font-weight:400;margin-left:8px}dialog{max-width:440px;width:90%;max-height:85dvh;border:1px solid #c1d0af;border-radius:20px;padding:25px;background:#f7f8ea;color:#375c3d;line-height:1.6}dialog h2{line-height:1.2;margin:0 0 16px}dialog p{font-size:13px}dialog::backdrop{background:#183a2c99}dialog .primary{width:100%;margin-top:10px}button:focus-visible,select:focus-visible{outline:3px solid #d6b060;outline-offset:2px}@media(max-width:650px){header{padding:9px 10px;gap:10px}.brand span{display:none}.brand img{width:34px}.back{font-size:12px}.tools button{width:34px;height:36px}main{padding:10px 5px}.heading{padding:0 8px;margin-bottom:10px}h1{font-size:25px}.heading p{font-size:7px;letter-spacing:1.4px}#speed-label{font-size:9px}.game{border-radius:14px}.hud{padding:12px 15px;font-size:8px;letter-spacing:1.4px}.hud b{display:block;font-size:22px;margin:4px 0 0}.lawn{border-width:5px}.panel{padding:18px}.mower-mark{width:58px;height:49px}.panel h2{font-size:25px;margin:7px 0}.panel .eyebrow{display:none}.panel p:not(.eyebrow){font-size:12px;line-height:1.5}.panel small{font-size:8px;margin-top:10px}.panel .primary{padding:12px;margin-top:12px}#speed-picker{font-size:10px;gap:10px}select{font-size:11px;padding:6px 10px}#status{padding:11px 12px 6px;font-size:10px}.instructions{font-size:8px;padding:7px 12px 12px}.instructions b{margin-left:3px}}@media(max-height:500px) and (min-width:600px){header{padding:5px 12px}.brand img{width:30px}.brand small{display:none}.tools button{width:32px;height:32px}main{padding:5px 12px;max-width:850px}.heading{margin:0 0 5px}.heading p{display:none}h1{font-size:19px}.game{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:0 14px;max-width:600px;border:0;background:none;box-shadow:none;overflow:visible}.lawn{grid-column:1;grid-row:1/4;justify-self:end;margin:0}.hud{grid-column:2;grid-row:1;align-self:end;padding:5px;gap:4px;letter-spacing:1px}.hud b{display:block;font-size:20px;margin:4px 0 0}.hud span{font-size:7px}#status{grid-column:2;grid-row:2;align-self:center;padding:12px 4px;font-size:10px}.instructions{grid-column:2;grid-row:3;flex-direction:column;gap:10px;align-self:start;font-size:9px;padding:5px}.instructions b{display:block;margin:5px 0}.panel{padding:12px}.panel .mower-mark,.panel .eyebrow,.panel small{display:none}.panel h2{font-size:20px;margin:0}.panel p:not(.eyebrow){font-size:10px;margin:6px 0}#speed-picker{font-size:9px}.panel select{font-size:9px;padding:4px}.panel .primary{font-size:10px;padding:8px;margin-top:7px}}

[hidden]{display:none!important}
