:root{color-scheme:light;font-family:ui-rounded,Trebuchet MS,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#193c34;background:#f7f2e6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #193c34;--ink-soft: #567168;--leaf: #2c7566;--leaf-dark: #18574f;--water: #327b83;--water-light: #d8ece7;--sun: #e5bd67;--clay: #d87554;--soil: #77513a;--paper: #fffdf6;--line: #dcd3bd;--shadow: 0 16px 40px rgba(48, 57, 40, .1)}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:#f7f2e6}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 8% 20%,#e7efe3 0,transparent 32%),radial-gradient(ellipse at 95% 40%,#e1efeb 0,transparent 28%),#f7f2e6}button,select{font:inherit}button{color:inherit}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #bd683f;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.demo-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{width:min(1320px,100%);min-height:88px;margin:0 auto;padding:14px clamp(16px,3vw,38px);display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid rgba(106,126,102,.16)}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-mark{width:48px;height:48px;flex:0 0 auto;display:grid;place-items:center;position:relative;border-radius:17px;background:var(--leaf-dark);color:#f5e6b8;font-family:Georgia,serif;font-size:29px;font-weight:700;box-shadow:0 4px #9ab89f}.brand-mark i{position:absolute;right:2px;bottom:0;color:#9bd0c3;font:700 19px/1 system-ui;transform:rotate(90deg)}.eyebrow{margin:0;color:#658078;font-size:10px;font-weight:800;letter-spacing:.18em;line-height:1.4;text-transform:uppercase}.brand h1{margin:2px 0 0;font-family:Georgia,Times New Roman,serif;font-size:clamp(20px,2.7vw,27px);line-height:1.08;letter-spacing:-.025em}.top-actions{display:flex;align-items:center;gap:9px}.top-button,.language-picker{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;border:1px solid rgba(71,105,89,.14);border-radius:999px;background:#fffdf6bf;color:var(--ink);font-weight:700;box-shadow:0 3px 9px #3039280d}.top-button{cursor:pointer}.top-button:hover,.language-picker:hover{background:var(--paper);border-color:#aabfb1}.top-button span:first-child{color:var(--leaf);font-size:18px}.language-picker{padding-right:10px}.language-picker select,.modal-language select{min-height:42px;border:0;background:transparent;color:var(--ink);font-weight:700;cursor:pointer}.main-layout{width:min(1230px,100%);flex:1;margin:0 auto;padding:28px clamp(14px,3vw,34px) 20px}.game-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.game-heading h2{margin:4px 0 5px;font:700 clamp(28px,4vw,38px)/1.06 Georgia,"Times New Roman",serif;letter-spacing:-.035em}.level-line{display:flex;align-items:center;gap:9px}.level-kicker{color:var(--leaf-dark);font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.subdued{color:#82958c}.completion-pill{min-height:24px;display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;background:#e7eddf;color:#4a7354;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.goal-copy{max-width:780px;margin:0;color:var(--ink-soft);font-size:14px;line-height:1.5}.pause-button{min-height:46px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 17px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font-weight:800;cursor:pointer}.pause-button:hover{border-color:#aabfb1;transform:translateY(-1px)}.pause-button span{color:var(--leaf);font-size:16px}.status-ribbon{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px}.stat-chip{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid rgba(108,126,103,.15);border-radius:999px;background:#fffdf6b8;color:#425e53;font-size:12px;font-weight:800}.stat-chip span{color:var(--clay);font-size:15px}.water-key{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:#648079;font-size:11px;font-weight:700}.water-dot{width:23px;height:23px;display:inline-grid;place-items:center;border-radius:50%;background:var(--water);color:#fff;font:800 11px/1 ui-monospace,monospace}.play-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(300px,.84fr);align-items:start;gap:18px}.board-card,.trace-card,.tutorial-card,.result-card,.finale-card{border:1px solid rgba(128,130,101,.22);border-radius:24px;background:#fffdf6ed;box-shadow:var(--shadow)}.board-card{padding:clamp(12px,2vw,21px);overflow:hidden}.board-frame{padding:16px clamp(10px,2vw,21px) 12px;border:1px solid #5a4737;border-radius:20px;background:linear-gradient(145deg,#806047,#664a36);box-shadow:inset 0 2px 5px #1c191433}.board-index-row,.source-row,.cell-row{display:grid;grid-template-columns:34px repeat(5,minmax(0,1fr));gap:7px}.board-index-row{margin-bottom:4px;color:#f3e8ca;font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.board-index-row b{padding:2px 0 5px}.source-row{min-height:37px;align-items:end;margin-bottom:5px}.source-slot{display:flex;justify-content:center;align-items:flex-end;min-width:0}.source-drop{min-height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:2px 8px;border:1px solid rgba(194,224,211,.34);border-radius:12px 12px 4px 4px;background:#286c72;color:#fff9e6;font:800 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}.source-drop span{color:#9fe1d1;font-size:13px}.row-index{display:flex;align-items:center;justify-content:center;color:#f3e8ca;font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.cell-grid{display:flex;flex-direction:column;gap:7px}.cell-row{align-items:stretch}.garden-cell{position:relative;min-width:44px;min-height:44px;aspect-ratio:1;display:grid;place-items:center;padding:4px;overflow:visible;border:2px solid rgba(57,83,57,.18);border-radius:13px;background:#e1d1a8;color:#315b43;cursor:pointer;touch-action:manipulation;transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease}.garden-cell:hover:not(:disabled){border-color:#f5e2a8;transform:translateY(-1px)}.garden-cell:disabled{cursor:default}.garden-cell.cell-selected{border-color:#ffeab1;box-shadow:0 0 0 2px #ffe6a573}.garden-cell.crop-cell{background:#d0db9b;color:#44784f}.garden-cell.rock-cell{background:#c2aa89;color:#74604d}.garden-cell.soil-cell{background:linear-gradient(135deg,#dfc99a,#cfb686)}.garden-cell.has-channel{background:#b9d4c1;color:#1e655e}.plant{width:min(75%,49px);height:min(75%,49px);color:#397b4f}.plant-ripe{color:#39784e}.stone{width:min(83%,52px);height:min(83%,52px);color:#806d59}.growth-badge{position:absolute;right:3px;bottom:3px;min-width:25px;min-height:18px;display:grid;place-items:center;padding:1px 3px;border-radius:6px;background:#fffdeff0;color:#284c3d;font:800 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.channel-mark{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.channel-mark b{font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.soil-dots{color:#8d6b4c;font-size:21px;letter-spacing:.1em}.water-badge{position:absolute;top:-6px;right:-6px;min-width:22px;min-height:22px;display:grid;place-items:center;padding:0 4px;border:2px solid #fffdf6;border-radius:50%;background:var(--water);color:#fff;font:800 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;box-shadow:0 2px 5px #1835373d}.board-foot{display:flex;align-items:center;justify-content:center;gap:5px;padding-top:9px;color:#e8ddc3;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.board-foot span{color:#a9d4c6;font-size:17px}.channel-panel{padding:17px 2px 1px}.channel-panel h3{margin:0 0 10px;font:700 15px/1.2 Georgia,serif}.channel-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.channel-button{min-width:0;min-height:65px;display:flex;align-items:center;gap:7px;padding:7px;border:1px solid #d9d1bb;border-radius:13px;background:#faf7ed;text-align:left;cursor:pointer}.channel-button:hover{border-color:#83aaa0;background:#f0f6eb}.channel-button.tool-active{border:2px solid var(--leaf);padding:6px;background:#e5f0e7;box-shadow:0 2px #225e4b24}.tool-glyph{width:31px;height:42px;position:relative;flex:0 0 auto;display:grid;place-items:center;color:var(--water)}.tool-glyph b{position:absolute;right:-2px;bottom:0;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;background:var(--leaf-dark);color:#fff;font:800 9px/1 ui-monospace,monospace}.tool-label{min-width:0;display:flex;flex-direction:column;gap:2px}.tool-label strong{font-size:10px;line-height:1.15}.tool-label small{color:#698176;font-size:9px;line-height:1.15}.action-row{display:grid;grid-template-columns:minmax(115px,1fr) minmax(90px,.65fr) 48px;gap:8px;margin-top:12px}.primary-action,.secondary-action,.next-action{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:0;border-radius:13px;font-weight:800;cursor:pointer;touch-action:manipulation}.primary-action{background:var(--leaf-dark);color:#fff9e8;box-shadow:0 3px #0f4842}.primary-action:hover:not(:disabled){background:#21695f;transform:translateY(-1px)}.secondary-action{border:1px solid #c9d3c4;background:#edf2e8;color:#345b4d}.secondary-action:hover:not(:disabled){background:#e0ebdd}.primary-action:disabled,.secondary-action:disabled{opacity:.44;cursor:not-allowed}.primary-action span,.secondary-action span{font-size:18px}.restart-action{padding:0;font-size:22px}.preview-toggle{min-height:54px;display:flex;align-items:center;gap:11px;margin-top:9px;padding:7px 11px;border:1px dashed #c5d3c4;border-radius:13px;color:#365f51;cursor:pointer}.preview-toggle input{position:absolute;width:1px;height:1px;opacity:0}.fake-check{width:22px;height:22px;flex:0 0 auto;display:grid;place-items:center;border:1px solid #9bb5a4;border-radius:6px;background:#fffdf7;color:transparent;font-size:14px;font-weight:900}.preview-toggle input:checked+.fake-check{background:var(--leaf-dark);color:#fff}.preview-toggle input:focus-visible+.fake-check{outline:3px solid #bd683f;outline-offset:2px}.preview-toggle span:last-child{display:flex;flex-direction:column;gap:2px}.preview-toggle strong{font-size:12px}.preview-toggle small{color:#71857a;font-size:10px;line-height:1.25}.live-message{min-height:20px;margin:8px 0 0;color:#63776d;font-size:12px}.live-message.has-message{color:#8f4933;font-weight:700}.side-column{display:flex;flex-direction:column;gap:13px}.trace-card,.tutorial-card,.result-card,.finale-card{padding:18px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-head h3{margin:2px 0 0;font:700 21px/1.12 Georgia,serif}.trace-water{color:#5a9b92;font-size:25px}.trace-intro,.trace-empty{margin:9px 0 0;color:#647970;font-size:12px;line-height:1.5}.trace-list{max-height:276px;display:flex;flex-direction:column;gap:5px;overflow:auto;margin:12px 0 0;padding:0 3px 0 0;list-style:none}.trace-list li{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:start;gap:7px;padding:7px 8px;border-radius:9px;background:#f0f2e6;color:#40594f;font:10px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.trace-number{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:var(--water);color:#fff;font-weight:900}.tutorial-card{background:#fffaf0}.tutorial-card ol{display:flex;flex-direction:column;gap:9px;margin:11px 0 0;padding:0;list-style:none}.tutorial-card li{display:grid;grid-template-columns:24px 1fr;gap:9px;align-items:start;color:#53675e;font-size:12px;line-height:1.45}.tutorial-card li span{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#e9d99f;color:#4c5636;font-weight:900}.keyboard-hint{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;padding:4px 7px;color:#708077}.keyboard-hint>span{color:#60918a;font-size:19px}.keyboard-hint p{margin:0;font-size:10px;line-height:1.5}.result-card{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;border-color:#9dc2a0;background:#e9f2e0}.result-symbol{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#d4e7ce;color:#3e8652;font-size:22px}.result-card h3{margin:0;font:700 20px/1.1 Georgia,serif}.result-card p{margin:4px 0 0;color:#5d7367;font-size:12px;line-height:1.4}.result-card .next-action{grid-column:1 / -1;min-height:44px;background:var(--leaf-dark);color:#fff}.result-lost{border-color:#d1aa88;background:#f6ead9}.result-lost .result-symbol{background:#ead2b6;color:#965437}.finale-card{text-align:center;background:linear-gradient(150deg,#fff7dc,#e8f2e4)}.finale-sun{display:inline-grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#f2df9e;color:#bd6845;font-size:31px}.finale-card .eyebrow{margin-top:13px}.finale-card h3{margin:3px 0 7px;font:700 29px/1.08 Georgia,serif}.finale-card>p:not(.eyebrow){max-width:420px;margin:0 auto;color:#5a7165;font-size:13px;line-height:1.55}.finale-actions{display:flex;flex-direction:column;gap:8px;margin-top:17px}.finale-actions .secondary-action{min-height:44px}.footer-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:21px 0 0;color:#7a897d;font-size:11px}.footer-note span{color:var(--leaf);font-size:15px}.is-paused{opacity:.55;pointer-events:none}.overlay{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:#1c312a6b}.modal-card{width:min(650px,100%);max-height:min(88vh,860px);overflow:auto;padding:clamp(17px,3vw,27px);border:1px solid #d1c8ae;border-radius:22px;background:var(--paper);box-shadow:0 24px 80px #152c2638}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.modal-head h2{margin:0;font:700 clamp(23px,4vw,31px)/1.12 Georgia,serif}.icon-button{width:46px;height:46px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#f5f0e2;font-size:27px;cursor:pointer}.modal-copy{color:#5f7468;font-size:14px;line-height:1.55}.modal-primary{width:100%;margin-top:8px}.mini-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.map-level{min-height:67px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:8px 11px;border:1px solid #d9d4c1;border-radius:12px;background:#f5f2e7;text-align:left;cursor:pointer}.map-level>span{color:#7a8d80;font:800 10px/1 ui-monospace,monospace}.map-level strong{font:700 13px/1.1 Georgia,serif}.map-level:hover,.map-current{border-color:var(--leaf);background:#e7f0e5}.map-done>span{color:#428058}.modal-language{display:flex;justify-content:flex-end;margin-top:12px}.modal-language label{display:inline-flex;align-items:center;gap:8px;color:#64776d;font-size:12px;font-weight:700}.modal-language select{min-height:44px;padding:0 9px;border:1px solid var(--line);border-radius:10px;background:#fff}.rules-goal{padding:12px 14px;border-radius:12px;background:#edf4e9;color:#35594c;font-size:13px;line-height:1.55}.rules-list{display:flex;flex-direction:column;gap:9px;padding-left:22px;color:#53685d;font-size:13px;line-height:1.55}.rules-list li::marker{color:#3d8374;font-weight:800}.help-channels{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0}.help-channels>div{min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 4px;border:1px solid #d9e0d2;border-radius:12px;background:#f5f7ed;color:var(--water);text-align:center}.help-channels b{color:var(--ink);font-size:10px}.help-channels small{color:#718279;font-size:9px;line-height:1.2}.help-subhead{margin:16px 0 4px;font:700 19px/1.1 Georgia,serif}@media(max-width:900px){.play-grid{grid-template-columns:minmax(0,1fr)}.side-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.keyboard-hint{grid-column:1 / -1}}@media(max-width:560px){.topbar{min-height:73px;padding:10px 13px;gap:8px}.brand{gap:8px}.brand-mark{width:40px;height:40px;border-radius:14px;font-size:24px}.eyebrow{font-size:8px;letter-spacing:.14em}.brand h1{max-width:150px;font-size:18px}.top-actions{gap:5px}.top-button,.language-picker{min-height:44px;padding:0 10px;gap:5px}.top-button{width:44px;padding:0}.top-button .wide-label{display:none}.language-picker{max-width:120px}.language-picker select{width:81px;padding:0;font-size:11px}.main-layout{padding:18px 10px 16px}.game-heading{align-items:center;margin-bottom:14px}.game-heading h2{font-size:27px}.goal-copy{max-width:250px;font-size:12px}.pause-button{min-height:44px;padding:0 11px;font-size:12px}.status-ribbon{gap:6px;margin-bottom:9px}.stat-chip{min-height:31px;padding:0 9px;font-size:10px}.water-key{margin-left:0;font-size:10px}.board-card{padding:9px;border-radius:19px}.board-frame{padding:12px 7px 9px;border-radius:15px}.board-index-row,.source-row,.cell-row{grid-template-columns:25px repeat(5,minmax(0,1fr));gap:4px}.board-index-row{font-size:10px}.source-row{min-height:33px;margin-bottom:4px}.source-drop{min-height:26px;gap:3px;padding:2px 5px;font-size:10px}.cell-grid{gap:4px}.garden-cell{min-width:44px;min-height:44px;padding:2px;border-radius:10px}.growth-badge{right:1px;bottom:1px;min-width:22px;min-height:16px;font-size:9px}.water-badge{top:-5px;right:-5px;min-width:19px;min-height:19px;font-size:9px}.channel-panel{padding-top:12px}.channel-list{gap:5px}.channel-button{min-height:57px;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 2px;text-align:center}.channel-button.tool-active{padding:3px 1px}.tool-glyph{width:28px;height:30px}.tool-label{align-items:center}.tool-label strong{font-size:9px}.tool-label small{display:none}.action-row{grid-template-columns:minmax(115px,1fr) minmax(85px,.7fr) 46px;gap:6px}.primary-action,.secondary-action{min-height:48px;padding:0 8px;font-size:12px}.side-column{display:flex}.trace-card,.tutorial-card,.result-card,.finale-card{padding:15px;border-radius:18px}.trace-list{max-height:240px}.footer-note{margin-top:14px}}@media(max-width:360px){.language-picker{max-width:103px;padding:0 6px}.language-picker select{width:73px;font-size:10px}.brand h1{max-width:128px;font-size:16px}.board-frame{padding-right:5px;padding-left:5px}.board-index-row,.source-row,.cell-row{grid-template-columns:21px repeat(5,minmax(0,1fr));gap:3px}.source-drop{font-size:9px}.garden-cell{min-height:44px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
