*{box-sizing:border-box}body{margin:0;background:#e5efcb;color:var(--ink,#283f32);font-family:var(--font,system-ui);background-image:radial-gradient(ellipse at 15% 0,#fff6d8 0,transparent 60%)}main{max-width:1180px;margin:auto;padding:12px}header{display:flex;align-items:center;gap:10px;margin-bottom:8px}h1{font-size:clamp(18px,2.4vw,28px);margin:0;flex:1}button,a.back{min-height:48px;min-width:48px;border:2px solid #526839;border-radius:14px;background:#fff9e6;color:#283f32;font:inherit;font-weight:750;cursor:pointer;box-shadow:0 3px 0 #7e8759}a.back{display:grid;place-items:center;text-decoration:none;padding:6px 12px}button:active{box-shadow:none;transform:translateY(2px)}button:focus-visible,a:focus-visible{outline:4px solid #7046ad;outline-offset:3px}button:disabled{opacity:.45;cursor:default}header button{padding:4px 12px}header [data-help-slot]:empty{display:none}.workbench{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;align-items:center}.journey{min-width:0}#board{position:relative;aspect-ratio:5/3;overflow:hidden;border:5px solid #658242;border-radius:34% 27% 29% 24%/12% 15% 14% 12%;box-shadow:0 7px 0 #b5c577;background:#77c9d0}.stream-art{position:absolute;inset:0;width:100%;height:100%}.stone{position:absolute;width:15%;height:24%;border:3px solid #7c9677;background:#d1d6b1;border-radius:45% 42% 35% 48%;transform:translate(-50%,-50%);box-shadow:0 4px 0 #3e888877}.stone.rock{background:none;border:0;box-shadow:none;width:19%;height:30%}.stone img{width:100%;height:100%;object-fit:contain}#frog{position:absolute;width:21%;height:36%;transform:translate(-50%,-62%);transition:left .3s ease,top .3s ease;z-index:4;pointer-events:none}#frog img{width:100%;height:100%;object-fit:contain}#flower{position:absolute;width:20%;height:40%;left:80%;top:24%;pointer-events:none;z-index:3}#flower svg{width:100%;height:100%}.petals{display:none}.arrived .petals{display:block}.arrived .bud{display:none}.arrived #frog{transform:translate(-70%,-45%)}#trail span{position:absolute;width:7%;height:8%;border:2px dashed #4f7439;border-radius:50%;transform:translate(-50%,-50%);background:#f8e7a5aa;z-index:2}#blocked-mark{display:none;position:absolute;width:32px;height:32px;transform:translate(15px,-55px);background:#ffe5a1;border:3px solid #94512b;border-radius:50%;font-weight:900;text-align:center;z-index:5}.blocked #blocked-mark{display:block}.actions{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:8px;margin-top:12px}.actions button{height:60px;display:flex;align-items:center;justify-content:center;gap:3px}.actions img{width:44px;height:48px;object-fit:contain}#go{background:#e4f1ae}#stop{background:#ffdfd3}#status{font-size:clamp(15px,2vw,21px);font-weight:800;margin:12px 0 0;min-height:48px;text-align:center}.repair{padding:16px;background:#e9bc79;border:4px solid #8f6039;border-radius:24px;box-shadow:0 8px #ae8952,inset 0 0 0 4px #f5d49d}#cards{display:flex;gap:8px;margin-bottom:12px}#cards button{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;min-height:56px;padding:3px;font-size:20px}#cards img{width:30px;height:38px;object-fit:contain}#cards svg{width:35px;height:24px;fill:none;stroke:#628051;stroke-width:4}button[aria-pressed=true]{border:3px solid #6a3895;background:#f0e4ff;box-shadow:0 3px #6a3895}#cards button[aria-pressed=true]:after{content:'✓';font-size:16px}.step-label{display:flex;justify-content:space-between;margin-bottom:6px;font-size:15px}#steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#steps button{height:64px;position:relative;display:flex;align-items:center;justify-content:center;padding:0}.arrow{font-size:36px;line-height:1}#steps small{position:absolute;left:7px;top:4px;font-size:12px}#steps button.current{border:4px dashed #846014;background:#ffdf7d;box-shadow:0 0 0 3px #fff3bf}#steps button.fault{border:4px double #9d432f;background:#ffe1b8}#steps button.fault:after{content:'!';position:absolute;right:5px;top:2px;font-size:16px}#arrows{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;border-top:3px solid #bd8b50;margin-top:12px;padding-top:10px}#arrows button{font-size:32px;min-height:56px;line-height:1}.bottom{display:flex;align-items:center;gap:8px;margin-top:12px}.bottom button{padding:4px 10px;font-size:14px}#save{font-size:12px;margin:0;flex:1}.credit{font-size:11px;margin:16px 0 0;text-align:center;color:#49603c}#demo[hidden]{display:none}#demo{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;margin-bottom:8px;background:#f6e1a0;border:3px solid #a16e37;border-radius:16px}#demo button{padding:3px 12px}.demo-cue{outline:5px solid #aa5e13;outline-offset:2px;box-shadow:0 0 0 8px #ffe4a9!important}
@media(max-width:650px) and (min-height:451px){main{padding:8px}header{gap:6px;margin-bottom:7px}h1{font-size:17px}header button{padding:3px 6px;font-size:13px}a.back{padding:4px 6px;font-size:13px}.workbench{display:block}#board{aspect-ratio:2.05}.actions{margin-top:8px;gap:6px}.actions button{height:56px;font-size:14px}.actions img{width:34px;height:42px}#status{font-size:15px;margin:7px 0;min-height:36px}.repair{padding:8px;border-width:3px;border-radius:18px}#cards{gap:5px;margin-bottom:6px}#cards button{min-height:48px;font-size:17px}#cards img{height:32px;width:26px}#cards svg{width:24px}#steps{grid-template-columns:repeat(6,1fr);gap:3px}#steps button{height:50px;min-width:0}.arrow{font-size:28px}#steps small{font-size:10px;left:3px;top:2px}#arrows{margin-top:7px;padding-top:6px;gap:5px}#arrows button{min-height:48px;font-size:29px}.bottom{margin-top:7px}.credit{margin-top:10px}#demo{padding:4px;margin-bottom:5px;font-size:12px}#demo button{min-height:48px;padding:2px 9px}}
@media(max-width:360px) and (min-height:451px){#steps{grid-template-columns:repeat(3,1fr)}#steps button{height:48px}#board{aspect-ratio:2.4}#status{min-height:32px}.credit{display:none}.repair{padding:6px}header h1{font-size:15px}.actions{margin-top:5px}#cards button{min-height:48px}}
@media(max-height:450px){main{padding:6px 10px}header{margin-bottom:6px}h1{font-size:19px}.workbench{grid-template-columns:1fr 1.2fr;gap:12px;align-items:start}#board{aspect-ratio:1.85;max-height:calc(100vh - 160px)}.actions{margin-top:7px;gap:5px}.actions button{height:52px;font-size:13px}.actions img{height:40px;width:32px}#status{font-size:14px;min-height:32px;margin:7px 0}.repair{padding:8px;border-width:3px}#cards{margin-bottom:5px;gap:5px}#cards button{min-height:48px}#cards img{height:31px;width:25px}#cards svg{width:30px}#steps{grid-template-columns:repeat(6,1fr);gap:4px}#steps button{height:50px;min-width:0}.arrow{font-size:28px}#steps small{left:3px;top:2px;font-size:10px}.step-label{font-size:13px;margin-bottom:3px}#arrows{margin-top:6px;padding-top:5px;gap:5px}#arrows button{min-height:48px}.bottom{margin-top:6px}.credit{display:none}#demo{position:absolute;left:12px;top:65px;width:calc(44% - 12px);z-index:8;margin:0;padding:4px;flex-wrap:wrap;font-size:12px}#demo strong{display:none}#demo button{padding:2px 10px}body:has(#demo:not([hidden])) #board{filter:saturate(.95)} }
@media(max-height:340px){header{height:48px}header h1{font-size:16px}.workbench{gap:8px;grid-template-columns:.8fr 1.25fr}.repair{padding:5px}#cards img,#cards svg{display:none}#cards button{min-height:48px}.step-label{display:none}#steps button{height:48px}#steps{gap:3px}.bottom{margin-top:4px}#save{font-size:10px}.actions button{height:48px;font-size:12px}.actions img{width:23px;height:32px}#status{font-size:12px;min-height:30px;margin:5px 0}#board{max-height:155px}#demo{top:62px;width:36%;left:8px;gap:4px}#demo button{min-height:48px;font-size:12px;padding:2px 5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
body:has(#demo:not([hidden])) header h1,body:has(#demo:not([hidden])) #show{visibility:hidden}#demo{position:absolute;right:12px;left:auto;top:8px;width:auto;z-index:8;padding:0;border:0;background:transparent;margin:0}#demo strong{display:none}#demo button{min-height:48px}body:has(#demo:not([hidden])) header{min-height:48px}
.orders{display:flex;gap:6px;align-items:flex-start}.orders #cards{flex:1;min-width:0}.orders #reset{width:48px;flex:0 0 48px;min-height:56px;font-size:30px}.orders #cards button{min-width:48px}.orders #cards svg{display:none}.bottom{min-height:14px}.bottom:has(#save:empty){display:none}@media(max-width:650px),(max-height:450px){.orders #reset{min-height:48px}.orders #cards img{width:24px}.orders #cards button{gap:1px}}
@media(min-width:651px) and (max-aspect-ratio:1/1){.workbench{grid-template-columns:1fr;gap:10px}#board{aspect-ratio:2.1}.repair{padding:12px}#steps{grid-template-columns:repeat(6,1fr)}#steps button{height:64px}#cards button{max-width:150px}#cards{justify-content:flex-start}.actions button{height:64px}#status{margin:10px 0;min-height:34px}}

/* Reserve the shared Help target without displacing the repair station. */
#fix-help-slot{display:block;width:48px;height:48px;flex:0 0 48px}#fix-help-slot>.nb-help-lane{min-height:48px;padding:0;background:transparent}#fix-help-slot .nb-help-trigger{min-width:48px;width:48px;min-height:48px;height:48px;padding:0;font-size:0}#fix-help-slot .nb-help-trigger::before{content:"☎️";font-size:24px}header h1{min-width:0}body:has(#demo:not([hidden])) #fix-help-slot{visibility:hidden}

#steps button[aria-pressed=true]::before{content:"✓";position:absolute;right:4px;bottom:2px;font-size:12px;font-weight:900;line-height:1;color:#6a3895}
