*{box-sizing:border-box}:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-synthesis:none;color:#294757;background:#f4f2eb}body{margin:0}a{color:inherit}button,textarea{font:inherit}button,a,textarea{-webkit-tap-highlight-color:transparent}button{min-width:44px;min-height:46px;padding:10px 14px;border:1px solid #bbcbd0;border-radius:9px;background:#faf9f3;color:#315766;font-weight:650;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #a65e3d;outline-offset:4px}.primary{background:#396c7d;color:#fffdf3;border-color:#396c7d}.topbar{max-width:1160px;padding:12px 28px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #d4dcd7}.topbar a{min-height:44px;display:flex;align-items:center;text-decoration:none;font-size:12px;font-weight:700}.topbar>span{font-size:9px;letter-spacing:1.4px;color:#80999f}main{max-width:1160px;padding:28px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:650;color:#7b969d}.intro h1{font-size:46px;letter-spacing:3px;line-height:1.2;margin:8px 0 12px;font-weight:750}.intro h1 span{font-weight:400}.intro h1 i{font-style:normal;color:#bd926b;font-size:40px;margin-left:18px}.lead,.intro .aside{font-size:13px;line-height:1.85;color:#6d8790;margin:0}.intro .aside{border-left:1px solid #bacccd;padding-left:20px;font-size:12px}.mobile-break{display:none}.layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,1fr);gap:24px;align-items:start}.puzzle{background:#fcfbf6;border:1px solid #c9d5d5;border-radius:16px;overflow:hidden;box-shadow:0 5px 20px #4b6f7d08}.card-title{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 24px 9px}h2{font-size:22px;line-height:1.4;margin:7px 0 0;letter-spacing:.4px}.seed{font-size:10px;line-height:1.8;color:#8b9ea2;margin:0;text-align:right;overflow-wrap:anywhere}.seed b{display:block;font-size:12px;letter-spacing:.5px;font-variant-numeric:tabular-nums}.rule{font-size:12px;line-height:1.8;color:#6e8993;margin:0;padding:0 24px 12px}.board-header{max-width:420px;margin:auto;padding:0 0 9px;display:flex;justify-content:space-between;gap:10px;font-size:11px;line-height:1.5;color:#728b93}.board-header b{color:#365e70;font-weight:700}#board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:4px;aspect-ratio:1;width:calc(100% - 48px);max-width:420px;margin:auto;padding:5px;border:1px solid #c4d6da;background:#d7e5e5;border-radius:11px}.cell{position:relative;background:#eef5f1;border-radius:5px;min-width:0;min-height:0;border:1px solid #e7f1ee;display:flex;align-items:center;justify-content:center;isolation:isolate}.cell.path{border:1px dashed #759daa;background:#e2eeec}.cell.rock-cell{background:#8b9b9c;border-color:#849598}.coord{position:absolute;top:3px;left:4px;font-size:7px;line-height:1;color:#a8babc;font-variant-numeric:tabular-nums;z-index:1}.rock-cell .coord{color:#c2ccca}.rock{font-size:12px;font-weight:700;color:#e7eeea;border:1px solid #b2bfbd;border-radius:4px;padding:4px 5px;transform:rotate(-5deg);background:#758a8b}.player{display:flex;align-items:center;justify-content:center;border-radius:50%;width:30px;height:30px;background:#386c7f;color:#fffdf2;font-size:13px;font-weight:750;border:2px solid #fcfbf3;box-shadow:0 1px 5px #4a718b24;z-index:3}.star{position:absolute;left:5px;bottom:4px;width:21px;height:21px;display:flex;align-items:center;justify-content:center;background:#e6bf71;color:#74562e;border-radius:4px;transform:rotate(-8deg);font-size:11px;font-weight:750;border:1px solid #d6ab5f;z-index:2}.star.collected{color:#6e8c78;background:#e2e9d9;border:1px dashed #a2b398;font-size:9px}.goal{position:absolute;right:5px;top:7px;display:flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:5px 2px 2px;color:#87614f;font-size:10px;font-weight:700;border:1px solid #c4a383;border-radius:8px 8px 2px 2px;background:#f0dfc7;z-index:1}.cell[data-player="true"] .goal{top:3px;right:3px;opacity:.7}.legend{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:9px;color:#849ba1;margin:11px 12px 0;line-height:1.6}.legend>span{display:inline-flex;align-items:center;gap:5px}.legend i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:9px}.sample-player{background:#386c7f;color:#fffdf2;border-radius:50%}.sample-star{background:#e6bf71;border-radius:3px;color:#74562e;transform:rotate(-8deg)}.sample-goal{color:#87614f;background:#f0dfc7;border:1px solid #c4a383;border-radius:5px 5px 1px 1px}.sample-path{border:1px dashed #759daa;border-radius:3px;background:#e2eeec}.controls{display:flex;justify-content:center;gap:22px;align-items:stretch;margin:17px 24px}.dpad{display:grid;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(2,46px);gap:6px}.dpad button{padding:0;font-size:21px;line-height:1;display:flex;align-items:center;justify-content:center;gap:2px;background:#e9f0ea;border-color:#c0d2d0}.dpad button small{font-size:9px;font-weight:500}#dir-0{grid-column:2;grid-row:1}#dir-3{grid-column:1;grid-row:2}#dir-2{grid-column:2;grid-row:2}#dir-1{grid-column:3;grid-row:2}.quick{display:flex;flex-direction:column;justify-content:flex-end;gap:6px;min-width:124px}.quick button{font-size:12px;padding:10px;min-height:46px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:13px 16px;background:#f0f3e9;border-top:1px solid #dae1d8;border-bottom:1px solid #dae1d8}.metrics p{margin:0;text-align:center;border-right:1px solid #d6dfd4;font-size:10px;line-height:1.8;color:#8c9d96}.metrics p:last-child{border:0}.metrics b{font-size:23px;font-weight:550;color:#4a7380;margin:0 5px;font-variant-numeric:tabular-nums}.metrics small{font-size:9px}.result{font-size:12px;line-height:1.9;padding:13px 22px;margin:0;color:#6c8790}.result[data-phase="won"]{background:#e7eede;color:#5a7850}.hint{margin:0 20px 16px;padding:12px 14px;font-size:12px;line-height:1.9;border-left:3px solid #9bb08d;border-radius:0 8px 8px 0;background:#edf1e7;color:#627f5a}.side{display:grid;gap:20px}.guide,.small-card{border:1px solid #d0dcd1;border-radius:14px;background:#ecf0e7;padding:25px}.side h2{font-size:21px}.guide ol{list-style:none;margin:22px 0 19px;padding:0;display:grid;gap:18px}.guide li{display:flex;align-items:flex-start;gap:13px}.guide li>b{font-size:10px;color:#a0b29e;line-height:25px;border-top:1px solid #bbcbb4;min-width:22px;font-weight:500}.guide li p{font-size:12px;line-height:1.8;color:#66827f;margin:0}.guide li small{display:block;font-size:10px;color:#8a9f91}.note{border-top:1px solid #d3dfce;padding-top:13px;font-size:10px;line-height:1.9;color:#8b9f91;margin:0}.small-card{background:transparent}.small-card p{font-size:12px;line-height:1.9;color:#879d98;margin-bottom:0}.another{border-top:1px solid #cfdad2;margin-top:30px;padding-top:23px}.another h2{font-size:23px}.another p{font-size:11px;line-height:1.9;color:#869c93}.other-actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 8px}.other-actions button{font-size:12px}.other-actions .primary{margin-left:auto}#share-status{font-size:11px;line-height:1.8}#share-manual label{display:block;font-size:12px;color:#6b8891;margin:15px 0 8px}textarea{width:100%;min-height:70px;padding:12px;font-size:12px;line-height:1.7;border:1px solid #b8c9c4;border-radius:8px;resize:vertical;overflow-wrap:anywhere;color:#416c7c;background:#fdfdf7}#status{min-height:24px;font-size:12px;line-height:1.8;color:#718b8d;margin:22px 0}footer{border-top:1px solid #d3ded2;padding-top:15px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;line-height:1.8;color:#94a48e}.notice{margin:14px 0;padding:12px 16px;border:1px solid #d8c6a8;border-radius:8px;background:#f7efde;color:#8c724b;font-size:12px;line-height:1.8}.puzzle>.notice{margin:0 20px 16px}dialog{width:min(470px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #bdcdbe;border-radius:15px;padding:25px;background:#f8f9f0;color:#365b65}dialog::backdrop{background:#27445170}dialog h2{font-size:22px}dialog p{font-size:13px;line-height:1.9;color:#7b948b;margin:18px 0 23px}.dialog-actions{display:flex;gap:10px}.dialog-actions button{flex:1;font-size:12px;padding:11px 7px}[hidden]{display:none!important}@media(max-width:960px){.layout{grid-template-columns:minmax(0,1.3fr) minmax(230px,1fr);gap:18px}.board-header{margin-left:24px;margin-right:24px}.guide,.small-card{padding:20px}.controls{gap:14px;margin-left:16px;margin-right:16px}.quick{min-width:112px}}@media(max-width:700px){.topbar{padding:6px 15px}.topbar a{font-size:11px}.topbar>span{font-size:7px;letter-spacing:.6px}main{padding:17px 14px 20px}.intro{margin-bottom:17px}.intro h1{font-size:35px;letter-spacing:2px;margin:7px 0 8px}.intro h1 i{font-size:30px;margin-left:12px}.eyebrow{font-size:8px;letter-spacing:1px}.intro .eyebrow{font-size:7px}.intro .aside{display:none}.lead{font-size:12px;line-height:1.7}.mobile-break{display:inline}.layout{grid-template-columns:1fr;gap:17px}.card-title{padding:15px 15px 8px}.card-title h2{font-size:19px;margin-top:5px}.seed{font-size:9px}.seed b{font-size:10px}.rule{padding:0 15px 10px;font-size:10px;line-height:1.8}.board-header{margin:0 15px;padding-bottom:7px;font-size:10px}#board{width:calc(100% - 30px);gap:3px;padding:4px;border-radius:9px}.cell{border-radius:4px}.coord{font-size:6px;top:3px;left:3px}.rock{font-size:10px;padding:3px 4px}.player{width:27px;height:27px;font-size:11px}.star{left:3px;bottom:3px;width:18px;height:18px;font-size:10px}.star.collected{font-size:8px}.goal{right:3px;top:4px;min-width:21px;min-height:21px;font-size:9px;padding:4px 1px 1px}.legend{gap:9px;font-size:8px;margin-top:9px}.legend i{width:14px;height:14px;font-size:8px}.controls{margin:12px 15px;gap:15px}.dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:5px}.dpad button{min-height:44px;font-size:20px}.quick{min-width:116px}.quick button{font-size:11px;min-height:44px;padding:9px}.metrics{padding:10px 9px;gap:3px}.metrics p{font-size:9px}.metrics b{font-size:20px;margin:0 4px}.metrics small{font-size:8px}.result{font-size:11px;padding:10px 15px}.hint{font-size:11px;margin-left:15px;margin-right:15px}.side{gap:16px}.guide,.small-card{padding:20px}.side h2{font-size:19px}.guide ol{gap:13px;margin:17px 0}.small-card p{font-size:11px}.another{margin-top:24px;padding-top:20px}.another h2{font-size:21px}.other-actions{gap:8px}.other-actions button{flex:1 0 40%;font-size:11px}.other-actions .primary{margin-left:0}footer{font-size:9px}.notice{font-size:11px}}@media(max-width:359px){.topbar>span{display:none}.controls{gap:10px}.quick{min-width:105px}.dpad{grid-template-columns:repeat(3,44px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
