:root{color-scheme:light;--paper:#f7f6ee;--ink:#334d3d;--muted:#74816f;--green:#557852;--deep:#436640;--line:#e4e7da;--water:#69bdc7;--ease:cubic-bezier(.2,.75,.25,1)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;-webkit-font-smoothing:antialiased}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.15;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23798760' opacity='.24' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");z-index:-1}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #3d797b;outline-offset:4px}button:disabled{cursor:default}button svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.site-header{height:85px;max-width:1120px;margin:0 auto;padding:0 34px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:21px;font-weight:750;letter-spacing:-.7px}.brand>svg{width:34px;height:34px}.header-actions{display:flex;gap:8px}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e0e4d7;border-radius:50%;background:#fbfaf4;color:#677761;transition:background .15s,transform .15s}.icon-button svg{width:22px;height:22px}.icon-button:active{transform:scale(.95)}.icon-button[aria-pressed=true]{background:#e7ecd9;color:#436640}.game-shell{max-width:520px;margin:30px auto 0;padding:0 12px}.intro{text-align:center;margin-bottom:29px}.eyebrow{display:flex;align-items:center;justify-content:center;gap:7px;color:#7c876c;font-size:12px;font-weight:600;letter-spacing:.8px}.eyebrow>span{width:6px;height:6px;background:#b8be87;border-radius:50%}h1{margin:13px 0 11px;font-size:35px;font-weight:750;letter-spacing:-1.7px;line-height:1.3}.intro>p{font-size:15px;color:var(--muted);letter-spacing:-.35px;margin:0}.garden-stage{position:relative}.garden-topline{display:flex;align-items:center;justify-content:space-between;padding:0 7px;margin-bottom:16px}.garden-heading{display:flex;align-items:center;gap:12px}.garden-number{width:41px;height:41px;border-radius:14px;background:#e9eddf;border:1px solid #e0e5d5;display:grid;place-items:center;color:#687d54;font:italic 23px Georgia,serif}.garden-caption{font-size:10px;letter-spacing:.5px;color:#909a83}.garden-heading h2{font-size:17px;letter-spacing:-.5px;font-weight:700;line-height:1.4;margin:2px 0 0}.flower-counter{display:flex;align-items:center;gap:8px;border:1px solid #e2e6d8;background:#fcfbf4;border-radius:30px;padding:8px 13px;color:#667b58;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums}.flower-counter svg{width:22px;height:22px}.garden-frame{position:relative;padding:16px 16px 20px;border-radius:30px;background:#dce3c9;border:1px solid #cbd5b6;box-shadow:0 7px 0 #c7d1b2,0 8px 0 1px #c3cdaa,0 20px 45px -24px #64754166;isolation:isolate}.garden-inset{border-radius:18px;padding:4px;background:#b8c9a3;box-shadow:inset 0 2px 5px #71845e30;overflow:hidden}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));aspect-ratio:1;gap:0;position:relative;isolation:isolate}.cell{position:relative;appearance:none;display:block;width:100%;min-width:0;aspect-ratio:1;border:0;border-radius:9px;background:#d4dfbd;padding:0;overflow:visible;outline-offset:-5px!important;transition:background .25s ease;isolation:isolate}.cell:nth-child(3n+1){background:#d9e2c1}.cell:nth-child(5n+2){background:#d1ddba}.cell:after{content:"";position:absolute;inset:1px;border:1px solid #f7f9e929;border-radius:8px;pointer-events:none}.cell.path{cursor:pointer}.cell.path:hover{background:#e3e9d0}.cell.path:active{background:#e8edda}.cell.empty{background:#d1ddba}.cell:disabled{opacity:1;cursor:default}.cell.source{background:#d0debf}.cell.flower{background:#dae3c3}.tile-svg{width:100%;height:100%;display:block;overflow:visible;position:absolute;inset:0;pointer-events:none}.pipe-rotor{transform-origin:50px 50px;transition:transform .25s var(--ease)}.channel-shadow{stroke:#a7b995;stroke-width:26;fill:none;stroke-linecap:butt;stroke-linejoin:round}.channel-bank{stroke:#eef0d8;stroke-width:20;fill:none;stroke-linecap:butt;stroke-linejoin:round}.channel-bed{stroke:#c8bfa0;stroke-width:13;fill:none;stroke-linecap:butt;stroke-linejoin:round}.water-path{stroke:#6bbbc4;stroke-width:13;fill:none;stroke-linecap:butt;stroke-linejoin:round;opacity:0;transition:opacity .22s ease}.water-shine{stroke:#e2f6e8;stroke-width:2.2;stroke-linecap:round;fill:none;stroke-dasharray:3 19;opacity:0}.cell.wet .water-path{opacity:1}.cell.wet .water-shine{opacity:.6;animation:water-drift 4s linear infinite}.water-surface{fill:#6bbbc4;opacity:0;transition:opacity .25s}.cell.wet .water-surface{opacity:1}.cell.path.wet{background:#d5e2c1}.tile-art{position:absolute;inset:0;pointer-events:none;z-index:3}.tile-art svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:none}.flower-picture{transform-origin:50% 75%;transition:transform .6s var(--ease),opacity .35s}.cell.new-bloom .flower-picture{animation:flower-open .75s var(--ease) both}.cell.new-bloom:before{content:"";position:absolute;inset:12%;border:2px solid #fff9cf;border-radius:50%;animation:bloom-ring .8s ease-out both;z-index:5;pointer-events:none}.cell.hint{z-index:6;box-shadow:inset 0 0 0 3px #b58a43}.cell.hint:before{content:"";position:absolute;inset:5px;border:2px dashed #fff8d8;border-radius:12px;animation:hint-breathe 1.7s ease-in-out infinite;pointer-events:none}.tap-marker{position:absolute;right:5px;bottom:5px;background:#fffdf1e8;border:1px solid #d4dcbf;color:#6c8456;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;z-index:5;box-shadow:0 2px 3px #62744915;pointer-events:none;animation:hint-breathe 2s ease-in-out infinite}.tap-marker svg{width:14px;height:14px;stroke-width:1.8}.frame-front{display:flex;gap:5px;position:absolute;bottom:6px;left:50%;transform:translateX(-50%)}.frame-front i{width:4px;height:3px;border-radius:50%;background:#bbc6a3}.butterfly{position:absolute;width:42px;height:42px;right:-14px;top:12%;transform:rotate(12deg);opacity:0;pointer-events:none;transition:opacity .6s}.butterfly.visible{opacity:1;animation:butterfly-float 5s ease-in-out infinite}.butterfly svg{width:100%;height:100%;fill:none;stroke:none}.feedback-line{height:48px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;color:#7a896d;letter-spacing:-.25px;text-align:center;padding:0 3px}.water-dot{width:6px;height:8px;border-radius:70% 30% 60% 40%;background:#88b9b6;transform:rotate(30deg);flex-shrink:0}.feedback-line.success{color:#50764d}.game-controls{display:flex;justify-content:center;gap:8px}.control-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;border:1px solid #e0e4d6;background:#fdfcf6;color:#66765d;border-radius:13px;padding:0 13px;font-size:12px;font-weight:600;transition:transform .15s,background .15s,opacity .15s}.control-button svg{width:17px;height:17px;flex-shrink:0}.control-button:disabled{opacity:.38}.control-button:active:not(:disabled){transform:translateY(1px);background:#eaf0de}.completion{display:flex;align-items:center;justify-content:space-between;background:#edf1e3;padding:16px 18px;border:1px solid #dfe7d1;border-radius:18px;animation:completion-in .35s var(--ease)}.completion-label{font-size:10px;letter-spacing:1.1px;color:#81936b}.completion h3{margin:5px 0 0;font-size:17px;letter-spacing:-.6px;font-weight:700}.next-button{border:0;background:var(--green);color:#fffdf0;display:flex;align-items:center;justify-content:center;gap:13px;border-radius:12px;min-height:45px;padding:0 16px;font-size:13px;font-weight:650;transition:background .15s,transform .15s}.next-button svg{width:16px;height:16px;stroke-width:2}.next-button:active{transform:scale(.98);background:var(--deep)}.garden-nav{max-width:360px;margin:26px auto 0}.garden-nav-label{display:flex;justify-content:space-between;color:#869179;font-size:11px;letter-spacing:.4px;margin:0 4px 10px}.garden-nav-label span:last-child{font-variant-numeric:tabular-nums}.level-buttons{display:flex;justify-content:space-between;gap:3px}.level-button{width:38px;height:38px;border:1px solid transparent;background:transparent;display:grid;place-items:center;color:#8a947f;border-radius:50%;font-size:12px;font-weight:600;position:relative;transition:background .15s,transform .15s}.level-button:after{content:"";position:absolute;inset:5px;border:1px solid #e0e5d5;border-radius:50%;z-index:-1}.level-button.active{background:#e6ecd9;color:#4c6f49;border-color:#cfdcbf}.level-button.done:not(.active){color:#7e9866}.level-button.done svg{width:17px;height:17px;fill:#e4bd74;stroke:#b49255;stroke-width:1}.level-button:active{transform:scale(.95)}.quiet-note{display:flex;align-items:center;justify-content:center;gap:5px;color:#929b85;font-size:11px;margin:22px 0 0}.quiet-note svg{width:17px;height:17px}.site-footer{text-align:center;padding:26px 0;color:#a6ad99;font-size:10px;letter-spacing:1px}.stage-decoration{position:absolute;pointer-events:none}.decoration-left{width:115px;left:-168px;top:120px;transform:rotate(-9deg)}.decoration-left>svg{display:block;width:100%;height:auto}.decoration-left span{display:block;transform:rotate(9deg);font-size:11px;color:#a4ac93;text-align:center;letter-spacing:.5px;margin:8px -15px 0}.decoration-right{width:98px;right:-145px;top:288px;transform:rotate(10deg)}.decoration-right>svg{width:100%;height:auto}.sr-only{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #e1e6d7;border-radius:26px;padding:34px 28px 24px;background:#faf9f1;color:var(--ink);max-width:400px;width:calc(100% - 32px);box-shadow:0 24px 80px #2c422e25}dialog::backdrop{background:#273c2b55;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:13px;top:13px;border:0;background:transparent}.dialog-eyebrow{font-size:11px;letter-spacing:1px;color:#81936d}dialog h2{font-size:24px;letter-spacing:-1px;margin:12px 0}.help-illustration{max-width:260px;margin:16px auto}.help-illustration svg{width:100%;height:auto}dialog ol{padding:0;margin:0;list-style:none}dialog li{display:flex;gap:12px;align-items:flex-start;margin:17px 0}dialog li>span{font-size:11px;background:#e7ecd9;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;flex-shrink:0;color:#6b8257}dialog li p{font-size:12px;color:#7c886f;margin:0;line-height:1.8}dialog li strong{display:block;font-size:14px;color:#4c6247;font-weight:650}.help-start{width:100%;margin-top:24px}.keyboard-note{font-size:10px;color:#939d88;text-align:center;margin-bottom:0}
@keyframes water-drift{to{stroke-dashoffset:-44}}@keyframes flower-open{0%{transform:scale(.55) rotate(-8deg);opacity:.25}65%{transform:scale(1.08) rotate(3deg);opacity:1}100%{transform:scale(1) rotate(0)}}@keyframes bloom-ring{0%{transform:scale(.5);opacity:.8}100%{transform:scale(1.5);opacity:0}}@keyframes hint-breathe{0%,100%{opacity:1}50%{opacity:.5}}@keyframes butterfly-float{0%,100%{transform:translate(0,0) rotate(12deg)}50%{transform:translate(-10px,-9px) rotate(-5deg)}}@keyframes completion-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover){.icon-button:hover,.control-button:hover:not(:disabled){background:#eaf0de}.next-button:hover{background:#456b42}.level-button:hover{background:#eaf0df}}
@media(min-width:1000px){.game-shell{margin-top:35px}.intro{margin-bottom:30px}}
@media(max-width:850px){.stage-decoration{display:none}.site-header{max-width:650px}}
@media(max-width:540px){.site-header{height:68px;padding:0 20px;border-bottom-color:#e8eadf}.brand{font-size:19px;gap:7px}.brand>svg{width:29px;height:29px}.header-actions{gap:5px}.icon-button{width:40px;height:40px}.game-shell{padding:0 20px;margin-top:25px}.intro{margin-bottom:25px}.eyebrow{font-size:10px}h1{font-size:29px;letter-spacing:-1.3px;margin:11px 0 9px}.intro>p{font-size:13px}.garden-topline{margin-bottom:12px;padding:0 2px}.garden-number{width:35px;height:35px;border-radius:11px;font-size:21px}.garden-heading{gap:9px}.garden-heading h2{font-size:15px}.garden-caption{font-size:9px}.flower-counter{padding:6px 10px;font-size:13px;gap:5px}.flower-counter svg{width:19px;height:19px}.garden-frame{padding:11px 11px 15px;border-radius:24px}.garden-inset{border-radius:14px;padding:3px}.cell{border-radius:7px}.feedback-line{height:45px;font-size:12px}.game-controls{gap:6px}.control-button{flex:1;padding:0 5px;font-size:11px;gap:5px;min-height:44px;border-radius:11px}.control-button svg{width:16px;height:16px}.garden-nav{margin-top:22px;max-width:340px}.level-button{width:36px;height:40px;font-size:11px}.level-buttons{gap:1px}.completion{padding:12px 13px}.completion h3{font-size:15px}.completion .next-button{font-size:12px;gap:7px;padding:0 11px}.quiet-note{margin-top:18px;font-size:10px}.site-footer{padding:23px 0;font-size:9px}.butterfly{width:33px;height:33px;right:-9px}.tap-marker{width:21px;height:21px;right:3px;bottom:3px}.tap-marker svg{width:12px;height:12px}}
@media(max-width:350px){.game-shell{padding:0 13px}.site-header{padding:0 14px}h1{font-size:26px}.intro>p{font-size:12px}.control-button{font-size:10px;gap:3px}.level-button{width:32px}.completion h3{font-size:13px}.completion .next-button{font-size:11px;padding:0 8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.completion{margin-top:14px}
/* Game artwork must not inherit the toolbar icon stroke. */
.tile-svg{stroke:none}
:root{--muted:#64715f}
.eyebrow{color:#667457}.garden-caption{color:#68765c}.feedback-line{color:#65765a}.garden-nav-label{color:#65735c}.level-button{color:#647258}.quiet-note{color:#6b785f}.site-footer{color:#727d68}.completion-label{color:#647a50}.dialog-eyebrow{color:#647b50}dialog li p{color:#65735a}.keyboard-note{color:#6c785f}
.level-button{height:44px;flex:1;min-width:0}.control-button{font-size:13px}.game-controls{margin-top:2px}
@media(max-width:540px){.control-button{font-size:12px}.garden-caption{font-size:10px}.garden-nav-label{font-size:12px}.level-button{font-size:12px}.quiet-note{font-size:11px}.site-footer{font-size:10px}.completion-label{font-size:11px}}
@media(max-width:350px){.control-button{font-size:11px}.level-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.level-button{width:100%;height:44px}.level-button:after{inset:5px 21px}}
/* Small labels stay readable on the warm paper, including hover states. */
.decoration-left span{color:#647253}.garden-number{color:#596f45}.garden-caption{color:#5d6d50}.flower-counter{color:#586e4b}.control-button{color:#52664b}.quiet-note{color:#5d6e52}.site-footer{color:#617153}.dialog-eyebrow{color:#566f43}.keyboard-note{color:#5c6e50}
.completion-label{color:#566f43}
/* A quiet, continuous cue for the first three gardens. */
.cell.guided{z-index:6;background:#e4e9ca}
.cell.guided:before{content:"";position:absolute;inset:3px;border:3px solid #b48a40;border-radius:10px;box-shadow:0 0 0 2px #fff8da,inset 0 0 13px #fff3bd99;opacity:1;animation:guide-glow 1.9s cubic-bezier(.45,0,.55,1) infinite;pointer-events:none;z-index:4}
.cell.guided .tap-marker{right:7px;bottom:7px;width:28px;height:28px;border-color:#dec68d;background:#fff8df;color:#6e572c;box-shadow:0 2px 5px #66552d1c;animation:none}
.cell.guided .tap-marker svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feedback-line.teaching{color:#765b2f;font-weight:600}.feedback-line.teaching .water-dot{background:#bc984f}
@keyframes guide-glow{0%,100%{opacity:.4}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.cell.guided:before{opacity:1}}
