:root{--zc-background:#f6f5ef;--zc-surface:#fffefa;--zc-ink:#22252c;--zc-muted:#647079;--zc-accent:#355ce4;--zc-accent-ink:#fff;--zc-soft:#e9edf3;--zc-border:#cbd2dc;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--zc-background);color:var(--zc-ink);font:14px/1.55 system-ui,sans-serif}header{display:flex;justify-content:space-between;gap:16px;font:9px/1.5 ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--zc-muted)}button,select{font:inherit;min-height:46px;padding:10px 15px;border:1px solid var(--zc-border);border-radius:8px;background:var(--zc-surface);color:var(--zc-ink);cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid var(--zc-accent);outline-offset:4px}.wide{width:100%;margin:6px 0}.eyebrow{font:9px/1.5 ui-monospace,monospace;letter-spacing:.13em;color:var(--zc-muted)}h1,h2,p{margin:0}h2{font-size:25px;line-height:1.2;letter-spacing:-.04em}.intro p,aside p{font-size:12px;color:var(--zc-muted)}.caption{display:flex;justify-content:space-between;gap:12px;font:10px/1.5 ui-monospace,monospace;color:var(--zc-muted);padding:13px 0}#status{font-size:11px;line-height:1.6;color:var(--zc-muted);margin-top:12px}footer{font-size:9px;color:var(--zc-muted);border-top:1px solid var(--zc-border);padding-top:13px}canvas{display:block;width:100%;touch-action:none}label{font-size:11px}summary{cursor:pointer;min-height:44px;padding-top:12px}input[type=range]{min-height:44px;width:100%;accent-color:var(--zc-accent)}[data-motion=reduced] *,[data-motion=reduced] *::before,[data-motion=reduced] *::after{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


:root{--zc-garden-green:#315f4d;--zc-garden-lime:#e0edab;--zc-garden-sky:#c8e5e7}main{max-width:1200px;margin:auto;padding:23px 30px}header{padding-bottom:12px;border-bottom:1px solid var(--zc-border)}.intro{display:flex;align-items:end;justify-content:space-between;position:relative;gap:24px;padding:26px 0 22px}.intro>.eyebrow{position:absolute;top:23px;right:0}h1{font:750 clamp(43px,6vw,71px)/1 system-ui,sans-serif;letter-spacing:-.065em;max-width:400px}.intro p{max-width:210px;font-size:12px;line-height:1.8;margin-top:20px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:33px;align-items:center}.stage{position:relative;border-radius:21px;overflow:hidden;border:1px solid #b0c7b3;background:var(--zc-garden-sky);box-shadow:0 7px 0 #759c7b}.garden-label{position:absolute;top:19px;left:21px;font:8px ui-monospace,monospace;letter-spacing:.1em;color:#345e54;pointer-events:none}canvas{height:418px}.directions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:0 18px 19px;background:#d4e4c7}.directions button{font-size:10px;padding:8px 2px;min-height:48px;background:var(--zc-garden-green);color:#eff7df;border:0;border-radius:8px;box-shadow:0 3px 0 #143e32}.directions button:before{font-size:17px;vertical-align:-1px;margin-right:6px}[data-dir=up]:before{content:'\2191'}[data-dir=left]:before{content:'\2190'}[data-dir=down]:before{content:'\2193'}[data-dir=right]:before{content:'\2192'}.directions button:active{transform:translateY(2px);box-shadow:0 1px 0 #143e32}.courtyards{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-bottom:24px}.courtyards span{display:grid;place-items:center;aspect-ratio:1;font:10px ui-monospace,monospace;border:1px solid var(--zc-border);border-radius:50%;color:var(--zc-muted)}.courtyards .current{background:var(--zc-garden-lime);border:2px solid var(--zc-garden-green);color:var(--zc-garden-green)}.courtyards .planted{background:var(--zc-garden-green);color:#f0f7de;border-color:var(--zc-garden-green)}h2{font-size:30px;line-height:1.1;max-width:190px;letter-spacing:-.045em;margin:0 0 14px}aside p{line-height:1.8;margin-bottom:13px}.primary{background:var(--zc-garden-green);color:#f0f7de;border:0;border-radius:8px;font-size:12px}#undo,#reset{width:calc(50% - 4px);font-size:10px;padding:8px 4px}#reset{margin-left:4px}#hint,#sound{background:none;border:0;font-size:10px;min-height:40px;margin:0}#status{border-top:1px solid var(--zc-border);padding-top:12px}.planted .garden-label:after{content:' / ROOTED';font-weight:700}.caption{padding-top:20px;font-size:9px}footer{margin-top:17px}
@media(max-width:680px){main{padding:14px 15px}header{font-size:7px;padding-bottom:9px}.intro{padding:17px 0 15px;gap:12px}.intro>.eyebrow{display:none}h1{font-size:40px;max-width:175px}.intro p{font-size:10px;line-height:1.5;max-width:128px;margin:0}.layout{grid-template-columns:1fr;gap:6px}.stage{border-radius:13px;box-shadow:0 4px 0 #759c7b}canvas{height:275px}.garden-label{font-size:7px;top:13px;left:15px}.directions{padding:0 11px 13px;gap:6px}.directions button{font-size:9px;min-height:44px}.directions button:before{font-size:15px;margin-right:3px}.caption{padding:13px 0 8px;font-size:8px}aside{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px}aside h2,aside>p:not(#status){display:none}.courtyards{grid-column:1/-1;grid-template-columns:repeat(10,1fr);margin:0 0 2px;gap:4px}.courtyards span{font-size:8px}#undo,#reset{width:100%;margin:0;min-height:42px}#hint,#next{margin:0;min-height:44px}#sound{grid-column:1/-1;min-height:34px}#status{grid-column:1/-1;margin:0;font-size:10px;padding-top:8px}footer{font-size:8px}}

/* Courtyard canvas and four directions stay together; secondary actions scroll. */
html,body{height:100%;overflow:hidden}
main{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden}
header,.intro,footer{flex:none}
.layout{flex:1 1 0;min-height:0;align-items:stretch}
.layout>section{min-height:0;display:flex;flex-direction:column}
.stage{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
canvas{flex:1 1 0;height:auto;min-height:0}
.directions{flex:none}
.caption{flex:none;padding-top:8px}
aside{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
aside:focus-visible{outline:2px solid var(--zc-garden-green);outline-offset:-2px}
footer{margin-top:5px;padding-top:6px}
@media(max-width:680px){main{padding:7px 10px 5px}.intro{padding:6px 0}.intro h1{font-size:clamp(31px,9vw,38px)}.intro p{line-height:1.25}.layout{display:flex;flex-direction:column;gap:4px}.layout>section{flex:1 1 0}.stage{min-height:0}.directions{padding:0 7px 7px;gap:4px}.directions button{min-height:38px}.caption{padding:5px 0 0}aside{flex:0 1 168px;min-height:100px;gap:3px 6px}.courtyards{margin:0}.courtyards span{min-height:16px}#undo,#reset,#hint,#next{min-height:36px}#sound{min-height:30px}#status{padding-top:4px}footer{margin-top:2px}}

@media(min-width:681px) and (max-height:760px){.intro{padding:10px 0 11px}.intro h1{font-size:clamp(43px,4.4vw,56px);max-width:none}.intro p{margin-top:22px}.courtyards{margin-bottom:8px}aside h2{font-size:26px;margin-bottom:7px}aside p{line-height:1.4;margin-bottom:7px}#hint,#next{display:inline-block;width:calc(50% - 4px);min-height:38px;margin:2px 0}#next{margin-left:4px}#sound{min-height:34px}}
