:root{--ink:#183f35;--green:#17664f;--soft:#e9f1e9;--paper:#f7f8f2;--muted:#78877e;--line:#e4e9df;--orange:#dc9a44}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #dda24c;outline-offset:4px}button:disabled{opacity:.45;cursor:default}.header{height:94px;max-width:1260px;padding:0 38px;display:flex;align-items:center;margin:auto;gap:26px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:22px;font-weight:700}.brand img{width:48px;height:48px;object-fit:contain}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:400;margin-top:5px}.edition{margin-left:auto;font-size:11px;letter-spacing:2px;color:var(--muted)}.edition i{font-style:normal;color:var(--green);margin-left:13px}.icon-btn{border:1px solid #d9e1d5;border-radius:50%;background:transparent;color:var(--ink);width:34px;height:34px;font-size:18px}.icon-btn:hover{background:var(--soft)}main{max-width:1120px;padding:0 30px;margin:auto}.intro{padding:51px 0 34px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--muted);display:flex;align-items:center;gap:8px}.eyebrow>span{width:6px;height:6px;background:#8aa783;border-radius:50%}h1{font-size:42px;letter-spacing:-2px;margin:17px 0 14px;line-height:1.45;font-weight:700}h1 span{color:#62826a}.intro p{font-size:13px;color:var(--muted);line-height:1.9;margin:0}.mobile-break{display:none}.layout{display:grid;grid-template-columns:minmax(0,704px) minmax(245px,1fr);gap:28px;align-items:start}.game-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px 28px 0;box-shadow:0 10px 32px #25432b04}.game-top{display:flex;align-items:center;justify-content:space-between}.game-top h2{font-size:21px;margin:9px 0 22px;letter-spacing:.5px}.game-top h2 span{font-size:9px;color:#7b8a73;border:1px solid #dfe7d9;padding:3px 7px;border-radius:4px;vertical-align:middle;margin-left:5px;font-weight:400}.level-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;gap:4px;background:#f2f5ee;border-radius:10px}.level-tabs button{padding:11px 3px;border:0;background:transparent;color:var(--muted);font-size:11px;border-radius:7px}.level-tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 5px #2646260c;font-weight:700}.stats{display:flex;justify-content:space-between;margin:24px 0 23px}.stats>div{display:flex;flex-direction:column;gap:8px}.stats span{color:var(--muted);font-size:10px}.stats strong{font-size:25px;letter-spacing:1px;font-weight:500;font-variant-numeric:tabular-nums}.stats .level-mark{text-align:right}.level-mark strong{font-size:15px;padding-top:7px;color:#789077}.board-wrap{background:#f0f4ed;border:1px solid #e5ecdf;border-radius:13px;padding:17px}.board-label{display:flex;justify-content:space-between;font-size:10px;color:#73806d;margin-bottom:15px}.board-label b{margin:0 5px;color:#a0ad96}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.amber{background:var(--orange)}.green{background:#359b74}.board{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;max-width:485px;margin:auto}.tile{aspect-ratio:1;background:#fff;border:1px solid #dee6d7;box-shadow:0 3px 0 #dfe7d7;border-radius:10px;position:relative;padding:0;display:flex;align-items:center;justify-content:center;touch-action:manipulation;transition:background .2s,border-color .2s}.tile:hover:not(:disabled){background:#f9fcf6;border-color:#9cb995}.tile svg{width:100%;height:100%;overflow:visible}.tile .pipe-shadow{fill:none;stroke:#d9e4d2;stroke-width:18;stroke-linecap:butt;stroke-linejoin:round}.tile .pipe-core{fill:none;stroke:#f5f8ef;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round}.tile .pipe-water{fill:none;stroke:#e2ae61;stroke-width:8;stroke-dasharray:5 3;animation:flow 1.2s linear infinite}.tile.clean .pipe-water{stroke:#5aab88}.tile.wet{background:#fcfaf1}.tile.clean{background:#edf7ee}.tile.special{background:#e2ecdc;border-color:#c9d9c2}.tile.source{background:#fff5df;border-color:#ead1a3}.tile.sink{background:#e0eee7;border-color:#bcd6c7}.tile .badge{position:absolute;width:35px;height:35px;border-radius:10px;background:var(--green);box-shadow:0 2px 5px #12432c22;color:white;display:grid;place-items:center;font-size:18px;border:3px solid #eff6e9}.tile.source .badge{background:#d4a150;border-color:#fff4d9}.tile.sink .badge{background:#38775f}.tile .tile-name{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:8px;color:#56754d;line-height:1}.tile.hinted{animation:hint 1s ease-in-out 2;outline:3px solid #ddb05c;outline-offset:0}.legend{display:flex;justify-content:space-between;font-size:9px;color:#7a8b72;margin-top:16px}.feedback{font-size:11px;min-height:42px;display:flex;align-items:center;line-height:1.7;color:#6b8063;padding:8px 0}.feedback.error{color:#b77c30}.controls{display:flex;gap:10px}.controls button{border-radius:8px;padding:13px 15px;font-size:12px}.secondary{background:white;border:1px solid #dce4d6;color:#5c7255}.secondary span{font-size:10px;margin-left:3px;color:#8d9c85}.primary{border:0;background:var(--green);color:#fff;flex:1;display:flex;align-items:center;justify-content:space-between}.primary:hover{background:#104f3d}.game-foot{border-top:1px solid #eef1e9;margin-top:22px;padding:16px 0;display:flex;justify-content:space-between;color:#92a08b;font-size:9px}aside{display:flex;flex-direction:column;gap:20px}.mission{padding:27px 23px;background:#eaf0e4;border:1px solid #dfe7d9;border-radius:16px}.mission h2{font-size:19px;margin:17px 0 12px}.mission p{font-size:11px;color:#7c8b71;line-height:1.9;margin:0}.mission ol{padding:0;margin:24px 0 0;list-style:none;display:flex;flex-direction:column;gap:21px}.mission li{display:flex;gap:11px}.mission li>span{font-size:10px;color:#9aab8c;border:1px solid #d0ddc6;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.mission b{font-size:12px;font-weight:500}.mission small{display:block;font-size:10px;color:#819276;line-height:1.8;margin-top:4px}.product-card{border-radius:16px;overflow:hidden;background:#e8e7df;position:relative;min-height:285px}.product-card>img{width:100%;height:305px;object-fit:cover;object-position:center 49%;display:block}.product-info{background:linear-gradient(transparent,#163c31ed 38%);color:white;position:absolute;inset:90px 0 0;padding:48px 22px 16px}.product-info>span{font-size:9px;letter-spacing:1px;color:#d9e3d3}.product-info h3{font-size:19px;margin:10px 0}.product-info p{font-size:11px;margin:0 0 7px;color:#d8e1d2}.product-info small{font-size:9px;color:#b7c9b5;letter-spacing:1px}.product-info button{display:flex;width:100%;justify-content:space-between;margin-top:17px;padding:10px 0 0;border:0;border-top:1px solid #ffffff35;color:#fff;background:transparent;font-size:10px}.aside-note{font-size:9px;line-height:1.8;text-align:center;color:#9aa591;margin:0}footer{display:flex;justify-content:space-between;font-size:10px;color:#93a08b;padding:34px 0 26px}dialog{border:1px solid #dde6d7;border-radius:22px;width:min(440px,calc(100% - 32px));padding:39px 30px;color:var(--ink);box-shadow:0 30px 90px #102a2b22}dialog::backdrop{background:#17342d66;backdrop-filter:blur(5px)}dialog .close{position:absolute;right:13px;top:13px}dialog h2{font-size:26px;line-height:1.5;margin:16px 0}dialog p{font-size:13px;color:#75836b;line-height:1.9}dialog .primary{width:100%;margin-top:25px;padding:15px 20px;border-radius:9px;font-size:14px}dialog .medal{font-size:48px;display:block;text-align:center;color:#498b69}dialog .result{text-align:center}dialog .result-stats{display:flex;justify-content:space-evenly;margin:24px 0;background:var(--soft);border-radius:12px;padding:20px}dialog .result-stats b{font-size:23px;display:block}dialog .result-stats small{font-size:10px;color:var(--muted)}.stars{color:#d7ac61;letter-spacing:7px;font-size:25px}@keyframes flow{to{stroke-dashoffset:-32}}@keyframes hint{50%{background:#fce7b1}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1450px){.intro{padding-top:60px}main{max-width:1190px}.layout{grid-template-columns:minmax(0,750px) 1fr}.board{max-width:495px}}@media(max-width:800px){.header{height:76px;padding:0 22px}.layout{grid-template-columns:1fr;max-width:620px;margin:auto}main{padding:0 20px}.intro{padding:30px 0 27px;max-width:620px;margin:auto}h1{font-size:34px}aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mission{padding:20px 17px}.mission h2{font-size:16px}.mission ol{gap:16px}.aside-note{grid-column:1/-1}.product-card>img{height:100%;min-height:330px}.product-info{inset:auto 0 0;padding:40px 18px 18px}.edition{font-size:9px}footer{gap:20px;font-size:9px}}@media(max-width:480px){.edition{display:none}.header{gap:12px}.header>.icon-btn{margin-left:auto}.brand{font-size:19px}.brand img{width:40px;height:40px}.brand small{font-size:9px}main{padding:0 16px}.intro .eyebrow{font-size:8px;letter-spacing:1.7px}h1{font-size:33px;letter-spacing:-1px;line-height:1.38;margin:14px 0}.mobile-break{display:block}.intro p{font-size:11px}.desktop-break{display:none}.game-card{padding:20px 14px 0;border-radius:16px}.game-top h2{font-size:18px;margin-bottom:19px}.game-top .eyebrow{font-size:8px}.level-tabs button{font-size:10px;padding:11px 0}.stats{margin:22px 2px 18px}.stats span{font-size:9px}.stats strong{font-size:22px}.stats .level-mark strong{font-size:12px}.board-wrap{padding:12px 9px}.board-label{font-size:8px;margin-bottom:12px}.board{gap:5px}.tile{border-radius:7px}.tile .badge{width:27px;height:27px;border-width:2px;font-size:15px;border-radius:8px}.tile .tile-name{font-size:7px;bottom:2px}.legend{font-size:8px;gap:3px;margin-top:13px}.legend .dot{width:5px;height:5px;margin-right:2px}.controls{gap:6px}.controls button{font-size:10px;padding:13px 10px}.game-foot{font-size:8px}.feedback{font-size:10px}aside{grid-template-columns:1fr}.mission{padding:24px}.mission ol{gap:16px}.mission h2{font-size:20px}.mission p{font-size:12px}.mission small{font-size:11px}.product-card{min-height:240px}.product-card>img{height:260px;min-height:0;object-position:center 51%}.product-info{padding-top:55px}.product-info h3{font-size:23px}footer{display:block;text-align:center;line-height:2.3}footer span{display:block}}
