:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#173f33;background:#eff2e9;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:linear-gradient(110deg,#e9eee2,#f4f3eb)}button,select,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit;cursor:pointer;min-width:44px;min-height:44px}button{border:0;border-radius:9px;background:transparent}button:hover{background:#dfe7d8}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #ca8e2c;outline-offset:3px}header{max-width:1220px;margin:auto;height:85px;padding:15px 32px;display:flex;align-items:center;gap:25px;border-bottom:1px solid #d2dbcc}.brand{display:flex;gap:13px;align-items:center;color:inherit;font-weight:700;font-size:22px;text-decoration:none}.brand span{font-size:10px;letter-spacing:1.7px;border-left:1px solid #9eb4a1;padding-left:13px}.other{font-size:11px;color:#637967;text-decoration:none;margin-left:auto}.tools{display:flex;align-items:center;gap:7px}.tools button,.tools select{border:1px solid #cbd7c4;border-radius:9px;background:#f8f9f2;width:42px;text-align:center}.tools select{appearance:none;font-size:11px}main{max-width:1120px;margin:32px auto 20px;padding:0 32px;display:grid;grid-template-columns:1fr 500px;align-items:center;gap:100px}.overline{font-size:9px;font-weight:750;letter-spacing:2px;color:#7f927d}.exit-sign{width:230px;height:120px;border:4px solid #fbfff3;outline:1px solid #719a7b;border-radius:9px;background:#176343;box-shadow:0 6px 15px #173a3520;color:#ffffee;padding:12px 20px;margin:30px 0}.exit-sign svg{width:100%;height:100%}h1{font-size:59px;font-weight:750;line-height:1.1;letter-spacing:-2.5px;margin:30px 0 20px}h1 span{display:block;font-size:20px;letter-spacing:-.3px;font-weight:450;margin-top:15px}.description{font-size:15px;line-height:1.8;color:#70836c;max-width:330px}ol{list-style:none;margin:30px 0;padding:0;display:grid;gap:20px}li{display:flex;gap:17px;font-size:12px;line-height:1.6}li b{color:#90a086;font-size:10px}.save{font-size:10px;color:#8a9982;margin-top:35px}.game{border:1px solid #c8d3bd;border-radius:20px;background:#f9faf2;padding:22px;box-shadow:0 25px 65px #244e3212;min-width:0}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:10px}#levels{font-size:20px;font-weight:650;letter-spacing:-.5px}.building{font-size:8px;letter-spacing:2px;color:#849379}#help{border:1px solid #cbd6c1;border-radius:50%;min-height:30px;min-width:30px;width:30px;height:30px}.hud{display:flex;justify-content:space-between;margin:17px 5px;font-size:11px;color:#708366;font-variant-numeric:tabular-nums}#remaining{font-weight:650;color:#345c40}#lives{color:#b18b39;letter-spacing:4px}.map-shell{position:relative;padding:14px 14px 8px;background:#e8eddd;border:1px solid #b7c9a7;border-radius:10px}.map{width:min(100%,var(--map-size,420px));aspect-ratio:1;margin:auto;overflow:hidden;background-color:#f6f8ec;background-image:linear-gradient(#abbf9a30 1px,transparent 1px),linear-gradient(90deg,#abbf9a30 1px,transparent 1px);background-size:calc(100% / 12) calc(100% / 12);border:1px solid #bacaa9;border-radius:3px}#board{display:block;width:100%;height:100%;touch-action:manipulation}.arrow{cursor:pointer;outline:none}.arrow .line{fill:none;stroke:var(--ink);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;transition:opacity .15s}.arrow .head{fill:var(--ink);stroke:none}.arrow .hit{stroke:transparent;stroke-width:26;fill:none;pointer-events:stroke}.arrow:focus-visible .line,.arrow:hover .line{stroke:#c08c2b}.arrow:focus-visible .head,.arrow:hover .head{fill:#c08c2b}.arrow.hint .line{stroke:#bb7c14;filter:drop-shadow(0 0 4px #e1af43)}.arrow.hint .head{fill:#bb7c14}.arrow.blocked .line{stroke:#bb5145}.arrow.blocked .head{fill:#bb5145}.arrow.out{pointer-events:none;animation:escape .45s ease-in both}@keyframes escape{to{transform:translate(var(--dx),var(--dy));opacity:0}}.corner{position:absolute;width:12px;height:12px;border-color:#6b9260;border-style:solid;pointer-events:none}.a{top:5px;left:5px;border-width:2px 0 0 2px}.b{top:5px;right:5px;border-width:2px 2px 0 0}.c{bottom:5px;left:5px;border-width:0 0 2px 2px}.d{bottom:5px;right:5px;border-width:0 2px 2px 0}.map-label{display:flex;gap:12px;justify-content:center;align-items:center;margin-top:8px;font-size:8px;color:#66815d;letter-spacing:3px}.map-label>span:first-child,.map-label>span:last-child{font-size:14px}#status{min-height:30px;text-align:center;font-size:11px;line-height:1.5;color:#788c6f;margin:13px 0 5px}.actions{display:flex;justify-content:center;gap:50px}.actions button{display:flex;flex-direction:column;gap:4px;align-items:center;padding:7px 10px}.actions span{font-size:25px;line-height:1}.actions small{font-size:10px;color:#72886a}.bottom{display:flex;gap:12px;align-items:center;margin-top:20px;padding-top:16px;border-top:1px solid #dce3d0;font-size:8px;letter-spacing:1px;color:#7e9174}.bottom b{margin-left:auto;white-space:nowrap;letter-spacing:0}#dots{display:flex;gap:4px}#dots i{width:5px;height:5px;border-radius:50%;background:#dee5d3}#dots i.done{background:#477344}dialog{max-width:min(430px,calc(100% - 28px));max-height:85dvh;overflow:auto;border:1px solid #b9cca8;border-radius:18px;background:#fbfcf2;color:#264c37;padding:28px;box-shadow:0 25px 100px #163c3340}dialog::backdrop{background:#173d3466;backdrop-filter:blur(5px)}dialog h2{font-size:30px;letter-spacing:-1px;margin:7px 0 14px}dialog p{font-size:14px;line-height:1.7}.primary,#close{width:100%;margin-top:18px;background:#1a613e;color:#fffde9;min-height:48px}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.level-grid button{border:1px solid #c6d4b8}.level-grid button.done{background:#d8e9ca}.level-grid button.current{box-shadow:inset 0 0 0 2px #23653f}.medal{font-size:44px;color:#1a613e}.other:hover{text-decoration:underline}@media(max-width:950px){main{gap:35px;grid-template-columns:1fr 460px}h1{font-size:45px}}@media(max-width:740px){header{height:60px;padding:8px 14px;gap:10px}.brand{font-size:17px}.brand span{font-size:8px;padding-left:8px;letter-spacing:.7px}.other{font-size:10px}.tools{gap:4px}.tools button,.tools select{width:35px;min-width:35px;min-height:38px}main{display:block;max-width:510px;margin:0 auto;padding:7px 12px 12px}aside .overline,aside .exit-sign,aside .description,aside ol,aside .save{display:none}h1{font-size:28px;letter-spacing:-1px;margin:4px 4px 14px;display:flex;align-items:center;justify-content:space-between}h1 span{font-size:11px;font-weight:400;margin:0;letter-spacing:0;color:#829076}.game{padding:13px;border-radius:16px}.hud{margin:10px 4px}.map-shell{padding:9px 9px 5px}.map-label{margin-top:5px}.actions{gap:35px}.bottom{margin-top:10px;padding-top:12px}#status{margin:8px 0 0;min-height:30px}.actions button{padding:5px 10px}.actions span{font-size:23px}.building{font-size:7px}.panel-top #levels{font-size:18px}}@media(max-height:600px) and (min-width:741px){header{height:55px}main{margin:8px auto;grid-template-columns:1fr 420px;gap:55px}.exit-sign{width:170px;height:88px;margin:12px 0}h1{font-size:40px;margin:15px 0}.description{font-size:12px}ol{gap:8px;margin:15px 0}.save{margin-top:12px}.game{padding:12px}.hud{margin:6px 4px}.bottom{display:none}#status{min-height:24px}.actions button{flex-direction:row;gap:7px}.actions{gap:20px}}@media(max-height:500px) and (max-width:900px) and (min-width:500px){header{height:50px}main{display:block;max-width:780px;margin:0 auto;padding:0 12px 8px}aside{display:none}.game{display:grid;grid-template-columns:minmax(180px,1fr) 210px;gap:0 18px;padding:8px 16px}.panel-top{grid-column:1;grid-row:1}.hud{grid-column:1;grid-row:2;margin:3px}.map-shell{grid-column:1;grid-row:3 / 6;padding:6px}.map-label{display:none}#status{grid-column:2;grid-row:3;align-self:end}.actions{grid-column:2;grid-row:4;gap:4px}.bottom{grid-column:2;grid-row:5;align-self:start}.actions button{padding:6px}.building{display:none}}@media(prefers-reduced-motion:reduce){.arrow.out{animation-duration:.01s}}body{padding-bottom:env(safe-area-inset-bottom)}

.brand-icon{width:37px;height:37px;display:block;flex-shrink:0}@media(max-width:400px){.brand-icon{width:29px;height:29px}}
