:root{color-scheme:light;--ink:#253e31;--muted:#798174;--green:#42654b;--paper:#f6f5ed;--line:#e2e5d9;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #db963c;outline-offset:4px}
[hidden]{display:none!important}
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.page{max-width:1120px;margin:auto;padding:0 40px}
.masthead{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;font-weight:750;font-size:17px;letter-spacing:1px}
.brand svg{width:25px;height:25px;color:var(--green)}
.brand span{font-weight:400;color:var(--muted);font-size:14px;letter-spacing:0}
.version{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:9px;letter-spacing:1px}
.version-dot{width:4px;height:4px;background:#a5af98;border-radius:50%}
.intro{padding:42px 0 32px}
.eyebrow{font-size:10px;letter-spacing:2.3px;font-weight:650;color:var(--muted);margin:0 0 12px}
h1{font-size:clamp(24px,3vw,34px);letter-spacing:1px;margin:0 0 12px;font-weight:700}
.subtitle{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.game-layout{display:grid;grid-template-columns:minmax(0,570px) minmax(0,1fr);gap:64px;align-items:start}
.stats{display:grid;grid-template-columns:1.15fr 1fr 1fr;margin:0 0 22px;gap:16px}
.stat{padding:2px 0 2px 22px;border-left:1px solid var(--line)}
.stat:first-child{border:0;padding-left:0}
.stat>span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px;letter-spacing:1px}
.stat strong{font-size:32px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.stat small{font-size:11px;margin-left:6px;color:var(--muted)}
.score-stat strong{color:var(--green)}
.board-frame{background:#e8e9d9;border:1px solid #d9ddc9;border-radius:20px;padding:16px 18px 0;box-shadow:0 8px 25px #34472e06,inset 0 1px 0 #ffffffa0}
.board-caption{display:flex;justify-content:space-between;align-items:center;margin:0 3px 14px;font-size:11px;color:#707b60;letter-spacing:1.5px}
.board-caption>span:first-child{display:flex;align-items:center;gap:7px}
.live-dot{height:6px;width:6px;border-radius:50%;background:#738561}
.board-wrap{position:relative}
.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;padding:11px;background:#c5b59c;border:1px solid #b8a68c;border-radius:12px;box-shadow:inset 0 2px 5px #6d543c17;isolation:isolate}
.cell{position:relative;aspect-ratio:1;display:grid;place-items:center;background:#efe3cd;border:1px solid #d6c2a4;border-bottom:3px solid #d4bd9a;border-radius:10px;padding:4px;cursor:pointer;min-width:0;box-shadow:inset 0 1px 0 #fff7e8;transition:background .15s,border-color .15s,box-shadow .15s}
.cell::before{content:"";position:absolute;inset:22%;border-top:1px solid #ccad8233;border-bottom:1px solid #ccad8233;transform:rotate(-13deg);pointer-events:none;z-index:-1}
@media(hover:hover) and (pointer:fine){.cell.occupied:hover{background:#f7edd9;border-color:#baad83}}
.cell.selected{background:#f6efd6;border:2px solid #42654b;box-shadow:0 0 0 3px #42654b26,inset 0 0 0 2px #fff8e6;z-index:2}
.cell.selected::after{content:"";position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:var(--green)}
.vegetable{width:100%;height:100%;max-width:76px;max-height:76px;filter:drop-shadow(0 3px 1px #68402c0a);pointer-events:none}
.cell.selected .vegetable{transform:translateY(-3px) rotate(-6deg)}
.board.busy .cell,.board.finished .cell{cursor:default}
.garden-edge{display:flex;align-items:center;justify-content:space-between;height:37px;padding:0 4px;color:#899075;font-size:10px;letter-spacing:1px}
.garden-edge svg{width:17px;height:17px;transform:rotate(15deg);opacity:.6}
.status-row{display:flex;gap:10px;align-items:center;min-height:58px;padding:9px 3px}
.status-mark{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;color:var(--green);background:#e7ecdf;font-size:15px}
.status-row p{font-size:12px;line-height:1.7;margin:0;color:#64715f}
.status-row.harvest .status-mark{background:#42654b;color:#fff}
.status-row.harvest p{color:#34583a;font-weight:600}
.actions{display:flex;gap:10px;align-items:center;justify-content:space-between;padding-top:3px}
.button{border:0;border-radius:9px;padding:12px 18px;cursor:pointer;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:background .15s,transform .15s;min-height:42px}
.button:hover{transform:translateY(-1px)}
.button:active{transform:translateY(1px)}
.button:disabled{opacity:.55;cursor:wait;transform:none}
.secondary{background:transparent;border:1px solid #d8ddcf;color:#57664e}
.secondary:hover{background:#e9eddf}
.primary{background:var(--green);color:#fff}
.primary:hover{background:#34563d}
#action-note{font-size:11px;color:#929988}
.guide{padding-top:5px}
.guide summary{display:none}
.guide-heading{padding:0 0 23px;border-bottom:1px solid var(--line)}
.guide-heading .eyebrow{font-size:9px;letter-spacing:2px}
.guide h2{font-size:20px;letter-spacing:2px;font-weight:600;margin:8px 0 0}
.instructions{padding:24px 0 0;margin:0;list-style:none;display:grid;gap:24px}
.instructions li{display:flex;align-items:start;gap:15px}
.step-number{font-size:11px;font-variant-numeric:tabular-nums;color:#98a38a;margin-top:3px}
.instructions h3{font-size:14px;font-weight:600;margin:0 0 7px}
.instructions p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}
.patch-example{display:flex;gap:15px;align-items:center;margin-top:24px;padding:16px;background:#eeeee3;border-radius:10px}
.mini-patch{display:grid;grid-template-columns:repeat(3,16px);gap:3px;flex-shrink:0}
.mini-patch span{display:grid;place-items:center;height:16px;border-radius:3px;background:#e0e0ce;font-size:12px;color:#df735b;line-height:1}
.mini-patch span:not(:empty){background:#f7e4d5}
.patch-example strong{font-size:11px;font-weight:600}
.patch-example p{margin:6px 0 0;font-size:10px;color:var(--muted);line-height:1.6}
.crop-list{display:flex;justify-content:space-between;gap:8px;padding:24px 0;border-bottom:1px solid var(--line)}
.crop-list span{display:flex;flex-direction:column;align-items:center;font-size:10px;color:var(--muted);gap:5px}
.crop-list svg{width:36px;height:36px}
.tip{display:flex;align-items:start;gap:10px;margin-top:21px}
.tip>svg{width:17px;height:17px;flex-shrink:0;color:#7b906c;margin-top:4px}
.tip p{font-size:11px;color:var(--muted);line-height:1.9;margin:0}
.tip strong{font-weight:500;color:#617655}
.guide-footnote{font-size:10px;color:#929988;line-height:1.9;margin:18px 0 0 27px}
footer{margin-top:38px;padding:22px 0 24px;border-top:1px solid var(--line);font-size:10px;color:#9aa08f;letter-spacing:1px;text-align:center}
footer span{margin:0 12px}
.game-over{position:absolute;inset:0;display:grid;place-items:center;z-index:5;background:#ece6d4cc;backdrop-filter:blur(5px);border-radius:12px;padding:16px}
.end-card{text-align:center;padding:26px;width:min(100%,290px);background:#faf8ee;border:1px solid #fff;border-radius:16px;box-shadow:0 12px 40px #4a3c271a}
.end-icon{display:block;font-size:30px;margin-bottom:12px}
.end-card .eyebrow{font-size:9px}
.end-card h2{font-size:25px;margin:10px 0}
.end-card>p:not(.eyebrow){font-size:13px;color:var(--muted);margin:0 0 22px}
.end-card strong{color:var(--green);font-size:20px;margin:0 4px}
.end-card .button{width:100%}
@media(min-width:1100px){.page{padding:0 55px}.game-layout{gap:70px}}
@media(max-width:800px){.page{max-width:620px;padding:0 24px}.masthead{height:74px}.intro{padding:30px 0 25px}.game-layout{grid-template-columns:1fr;gap:36px}.guide{padding-top:0}.instructions{grid-template-columns:1fr;gap:18px}.guide-heading{padding-bottom:16px}.patch-example{max-width:100%}.crop-list{justify-content:flex-start;gap:30px}.guide-footnote{margin-bottom:0}footer{margin-top:28px}}
@media(max-width:420px){.page{padding:0 16px}.brand{font-size:15px;gap:6px}.brand span{font-size:12px}.version{font-size:9px;gap:6px;letter-spacing:0}.intro{padding:26px 0 24px}.eyebrow{font-size:8px;letter-spacing:1.5px}h1{font-size:23px;letter-spacing:0}.subtitle{font-size:12px}.stats{gap:8px;margin-bottom:17px}.stat{padding-left:15px}.stat strong{font-size:28px}.board-frame{padding:12px 10px 0;border-radius:15px}.board{gap:6px;padding:8px}.cell{border-radius:8px;padding:2px}.garden-edge{font-size:9px;letter-spacing:0}.status-row p{font-size:11px}.actions{gap:7px}#action-note{font-size:10px}.button{padding:11px 13px}footer{letter-spacing:0}footer span{margin:0 6px}}
@media(max-width:600px){
  .page{padding:env(safe-area-inset-top,0px) max(14px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(14px,env(safe-area-inset-left,0px))}
  .masthead{height:50px}
  .intro{padding:17px 0 18px}
  .intro .eyebrow,.subtitle{display:none}
  h1{font-size:clamp(19px,5.4vw,25px);letter-spacing:0;margin:0;line-height:1.5}
  .game-layout{gap:20px;max-width:480px;margin:auto}
  .stats{gap:8px;margin-bottom:12px}
  .stat{padding-left:14px}
  .stat>span{font-size:11px;letter-spacing:0;margin-bottom:2px}
  .stat strong{font-size:28px}
  .board-frame{width:100%;width:min(100%,calc(100svh - 260px));min-width:min(100%,286px);margin:auto;padding:10px 7px 0;border-radius:15px}
  .board-caption{margin-bottom:9px}
  .board{gap:4px;padding:6px}
  .cell{padding:2px;border-radius:8px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
  .garden-edge{height:27px;font-size:9px;letter-spacing:0}
  .status-row{min-height:54px;padding:8px 0;align-items:flex-start}
  .status-mark{margin-top:1px}
  .status-row p{font-size:12px;line-height:1.7}
  .actions{gap:10px;flex-wrap:wrap}
  .button{min-height:44px;font-size:13px;padding:11px 16px}
  #action-note{font-size:10px}
  .guide summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 0;border-top:1px solid var(--line);cursor:pointer;font-size:14px;font-weight:600;touch-action:manipulation}
  .guide summary span{font-size:10px;color:var(--muted);font-weight:400}
  .guide-heading{display:none}
  .instructions{padding-top:12px}
  .instructions h3{font-size:14px}
  .instructions p,.tip p{font-size:13px}
  .patch-example strong{font-size:12px}
  .patch-example p,.crop-list span,.guide-footnote{font-size:11px}
  .crop-list{justify-content:space-between;gap:12px}
  .end-card{padding:18px;max-width:260px}
  .end-icon{font-size:24px;margin-bottom:8px}
  .end-card h2{font-size:23px;margin:8px 0}
  .end-card>p:not(.eyebrow){margin-bottom:16px}
  footer{margin-top:18px;padding:16px 0;font-size:9px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
