:root{color-scheme:light;--ink:#233e32;--muted:#546758;--paper:#f7f3e7;--rule:#c4c5ad;--gold:#d49631;--gap:clamp(3px,.45vw,6px);--serif:Georgia,'Palatino Linotype',Palatino,serif;--sans:'Trebuchet MS','Avenir Next',Arial,sans-serif}
*{box-sizing:border-box}html{min-height:100%;background:#f7f3e7}body{margin:0;color:var(--ink);font:15px/1.42 var(--sans);min-height:100svh;background:radial-gradient(ellipse at 12% 5%,#fffcf3 0,transparent 50%),radial-gradient(ellipse at 93% 88%,#e4e8d5 0,transparent 40%),var(--paper)}
button{font:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #916107;outline-offset:4px}button:disabled{cursor:default}.defs{height:0;width:0;overflow:hidden;position:absolute}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:none}
.page{width:min(1010px,calc(100% - 64px));margin:0 auto;padding:clamp(16px,3vh,34px) 0 38px}
.mast{position:relative;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #aab5a0;padding:0 0 17px;min-height:128px;isolation:isolate}
.identity{position:relative;z-index:1}.identity h1{font:normal clamp(64px,7.15vw,91px)/.98 var(--serif);letter-spacing:-.078em;margin:0 0 7px -4px;color:#223e31}.identity p{margin:0 0 0 2px;color:var(--muted);font:italic 18px/1.3 var(--serif)}
.meadow{position:absolute;bottom:-1px;right:0;width:47%;max-width:456px;height:auto;pointer-events:none}.mast-tools{display:flex;align-self:flex-start;gap:5px;z-index:2}
.tool{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:30px;padding:7px 11px;background:#f7f3e7db;color:#344d3d;font-size:13px}.tool:hover{background:#e8ebdc;border-color:#c6cbb9}.tool .icon{width:17px;height:17px}
.layout{display:grid;grid-template-columns:minmax(0,1.49fr) minmax(245px,.85fr);gap:clamp(28px,5.8vw,76px);align-items:start;padding-top:clamp(15px,2.4vh,28px)}
.bedhead{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 10px}.guide h2{font:400 29px/1.2 var(--serif);letter-spacing:-.05em;margin:0}.moves{display:flex;align-items:baseline;gap:8px;color:var(--muted);font-size:13px}.moves strong{font:500 21px/1 var(--serif);color:var(--ink);font-variant-numeric:tabular-nums}
.frame{position:relative;isolation:isolate;padding:clamp(15px,2.3vw,30px);border-radius:17px;background:#627448;border:2px solid #425738;box-shadow:0 2px 0 #f9f7e9 inset,0 4px 0 #344b35,0 13px 24px -17px #2a391dc0}
.frame-rim{position:absolute;z-index:-1;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;border-radius:15px}
.tiles{display:grid;grid-template-columns:repeat(var(--board-size),minmax(0,1fr));grid-template-rows:repeat(var(--board-size),minmax(0,1fr));gap:var(--gap);width:100%;aspect-ratio:1;position:relative;background:#887045;outline:none;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:7px;box-shadow:0 0 0 3px #44573a,0 0 0 5px #94a473}
.plot{appearance:none;position:relative;min-width:0;min-height:0;margin:0;padding:0;overflow:visible;background:var(--soil,#d7b584);border:0;border-radius:5px;box-shadow:inset 0 1px 0 #fcdeb1aa,inset 0 -2px 0 #86664055;cursor:default}
.plot:before{content:'';position:absolute;inset:0;border-radius:inherit;background-image:var(--grain);background-position:var(--grain-x) var(--grain-y);opacity:.63;pointer-events:none}
.plot.legal{cursor:pointer}.plot.legal:hover{background:#edcd93}.plot .hintmark{display:none;pointer-events:none;position:absolute;inset:0;align-items:center;justify-content:center}.legal .hintmark{display:flex}.hintmark span{display:grid;place-items:center;width:32%;aspect-ratio:1;border:1px dashed #7f724baa;border-radius:50%;color:#736343}.hintmark svg{width:64%;height:64%;display:block;stroke-width:1.7}.plot.match-option{background:#ead19b}.plot.match-option:after{content:"";position:absolute;inset:3px;border:2px solid #aa813b;border-radius:4px;pointer-events:none}.plot.selected-match{background:#efd393}.plot.selected-match:after{border:3px solid #8c5e13;box-shadow:inset 0 0 0 2px #fff0bb}.plot.current{box-shadow:inset 0 0 0 2px #606e3b,inset 0 0 0 4px #f4dba377}.crop{display:block;position:absolute;inset:1%;width:98%;height:98%;pointer-events:none;transform-origin:50% 80%}.plot.current .crop{width:67%;height:72%;left:31%;top:3%}.crop:empty{display:none}
.mouse{position:absolute;left:-4%;bottom:0;width:79%;height:79%;z-index:3;pointer-events:none;transform-origin:45% 85%}.mouse svg{width:100%;height:100%;overflow:visible}.mouse.face-left svg{transform:scaleX(-1)}.ghost{position:absolute;pointer-events:none;z-index:5;transform-origin:center}.choice-arrow{position:absolute;z-index:8;display:flex;align-items:center;justify-content:center;gap:3px;min-width:30px;height:30px;padding:4px;background:#fff7dd;color:#493c1c;border:2px solid #81601d;border-radius:7px;box-shadow:0 2px 4px #45331b44;transform:translate(-50%,-50%);font-size:12px;touch-action:none}.choice-arrow:hover,.choice-arrow:focus-visible{background:#ffe39a}.choice-arrow .icon{width:18px;height:18px;stroke-width:2}.choice-arrow.axis-H{border-left-width:4px;border-right-width:4px}.choice-arrow.axis-V{border-top-width:4px;border-bottom-width:4px}.soil-flash{position:absolute;inset:8%;border-radius:45%;border:2px solid #f8df76;pointer-events:none;z-index:2}

.harvest-seed {
  position: absolute;
  z-index: 12;
  width: 7px;
  height: 4px;
  border: 1px solid #4e432d;
  border-radius: 70% 30% 70% 30%;
  background: #80683a;
  box-shadow: 0 1px 1px #fff2bd77;
  pointer-events: none;
  transform-origin: center;
}

.harvest-bloom {
  position: absolute;
  z-index: 2;
  inset: -2%;
  width: 104%;
  height: 104%;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 80%;
}

.statusbar{display:flex;align-items:flex-start;min-height:3.4em;gap:9px;margin:14px 0 5px;color:#455e46;font:italic 16px/1.36 var(--serif)}.statusbar>.icon{width:18px;height:18px;margin-top:1px;color:#657e48}.statusbar.win{color:#6d4a10}
.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #98a588;border-radius:8px;background:#f8f6ed;min-height:39px;padding:7px 14px;font-size:14px;color:var(--ink)}.btn:hover{background:#e7ecdc;border-color:#738268}.btn:disabled{opacity:.48}.btn:disabled:hover{background:#f8f6ed;border-color:#98a588}.btn.solid{color:#fffbec;background:#354e38;border-color:#354e38}.btn.solid:hover{background:#48603f}
.guide{margin-top:2px}.stages{margin:15px 0 0;padding:0;list-style:none;border-top:1px solid var(--rule)}.stage{display:flex;align-items:center;gap:12px;padding:4px 0;min-height:70px;border-bottom:1px solid var(--rule)}.stage-art{flex:none;width:67px;height:61px}.stage-text{min-width:0}.stage h3{font:normal 21px/1.2 var(--serif);letter-spacing:-.035em;margin:0}.controls{margin-top:22px}.controls h3{font-size:14px;font-weight:650;margin:0 0 7px}.controls p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.keys{display:inline-flex;gap:3px;vertical-align:middle;margin-left:4px}.keys kbd{font:14px/1 var(--sans);padding:3px 4px;border:1px solid #b4bdab;border-bottom-width:2px;border-radius:4px;background:#fcfaef;color:#415740}.best{margin-top:16px;color:var(--muted);font:italic 14px var(--serif)}
#gate-flower{display:none}.earned #gate-flower{display:inline}
dialog{color:var(--ink);background:var(--paper);border:1px solid #91a287;border-radius:14px;width:min(390px,calc(100% - 32px));padding:25px;box-shadow:0 20px 65px #192d2555}dialog::backdrop{background:#243d3380}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-top h2{font:normal 29px var(--serif);letter-spacing:-.045em;margin:0}.dialog-top .tool{padding:6px}.dialog-body{font-size:15px;color:#405342}.dialog-body p{margin:0 0 .8em}.dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1050px) and (max-height:830px){.page{width:min(915px,calc(100% - 64px));padding-top:14px}.mast{min-height:104px}.identity h1{font-size:72px}.layout{padding-top:16px;gap:56px}.frame{padding:23px}.statusbar{min-height:2.8em}}
@media(max-width:850px) and (min-width:701px){.page{width:calc(100% - 40px)}.layout{grid-template-columns:minmax(0,1.42fr) minmax(210px,.83fr);gap:24px}.stage{min-height:58px;gap:7px}.stage-art{width:52px;height:51px}.statusbar{font-size:15px}}
@media(max-width:700px){.page{width:min(490px,calc(100% - 30px));padding-top:13px}.mast{min-height:98px;padding-bottom:14px}.identity h1{font-size:clamp(53px,13vw,70px)}.identity p{font-size:15px}.meadow{width:44%;max-height:68px}.mast-tools{gap:1px}.mast-tools .tool{padding:6px}.mast-tools .tool span{display:none}.layout{display:flex;flex-direction:column;gap:22px;padding-top:17px}.play,.guide{width:100%}.guide h2{font-size:24px}.bedhead{margin-bottom:8px}.frame{padding:clamp(14px,4.2vw,21px)}.statusbar{min-height:2.55em;font-size:15px;margin-top:13px}.stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--rule);margin-top:10px}.stage{display:block;text-align:center;min-height:0;padding:5px 1px 9px;border:0}.stage-art{width:58px;height:52px;max-width:100%}.stage h3{font-size:15px;letter-spacing:-.035em}.controls{margin-top:12px}.best{margin-top:10px}}
@media(max-width:350px){.page{width:calc(100% - 20px)}.stage h3{font-size:13px}.btn{padding:6px 10px}}
@media(min-width:900px){.page{--bed-width:clamp(395px,calc(100svh - 279px),552px);width:min(calc(var(--bed-width) + 375px),calc(100% - 52px));padding-bottom:23px}.layout{grid-template-columns:minmax(0,var(--bed-width)) minmax(220px,1fr);gap:clamp(28px,4vw,56px)}.statusbar{min-height:2.25em}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}

.guide-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font: italic 15px/1.48 var(--serif);
}

  .guide-intro strong {
    color: var(--ink);
    font-style: normal;
    font-weight: 650;
  }

  .site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
    color: #71806e;
    font-size: 11px;
  }

  .site-footer a {
    color: inherit;
    text-decoration: none;
  }

  .site-footer a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

.support {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.support .bmc-btn-container {
  display: inline-flex;
}
