.map-region{background:#0c9eb3 url('assets/naedo-realistic-v2.png') center/contain no-repeat;touch-action:none;cursor:grab}.map-region:active{cursor:grabbing}.map-image{inset:auto;left:0;top:0;width:1173px;height:1341px;transform-origin:0 0;transition:none;will-change:transform}.map-image>img{width:100%;height:100%;display:block;object-fit:fill}.location{transform:translate(-50%,-50%) scale(var(--marker-scale,1));cursor:pointer}.camp{left:39.2157%;top:26.2491%}.farm{left:34.1006%;top:29.0828%}.shore{left:25.5754%;top:29.8285%}.fishing{left:22.1654%;top:24.6085%}.shed{left:42.6257%;top:29.8285%}.lighthouse{left:46.8883%;top:33.557%}.map-heading{pointer-events:none;background:#0b657c9c;padding:15px 20px;border-radius:12px;backdrop-filter:blur(6px)}.map-heading p{margin-bottom:0}.map-heading h1{font-size:25px}.map-bottom{z-index:2;pointer-events:none}.camera-controls{display:flex;gap:5px;pointer-events:auto}.camera-controls button{font-size:12px;white-space:nowrap;padding:10px 12px}.minimap{position:absolute;right:22px;bottom:115px;width:112px;aspect-ratio:1173/1341;border:2px solid #f4efd2;box-shadow:0 3px 15px #003c4f55;border-radius:5px;background:#0c9eb3;overflow:hidden;pointer-events:none;z-index:2}.minimap>img{width:100%;height:100%;display:block}.minimap-view{position:absolute;border:2px solid #ffe69a;background:#fff4b322;min-width:3px;min-height:3px}.minimap>span{position:absolute;bottom:0;left:0;right:0;background:#153f40d9;font-size:9px;text-align:center;color:#fff7d7;padding:4px}.map-bottom>div:first-child strong{font-size:12px}.map-bottom>div:first-child span{font-size:10px}.compass{z-index:2}@media(max-width:1000px){.map-bottom{background:none}.map-bottom>.camera-controls{display:flex}}@media(max-width:700px){.map-heading{left:12px;top:12px;padding:12px}.map-heading h1{font-size:20px}.map-heading p{font-size:10px}.minimap{width:78px;right:14px;bottom:74px}.camera-controls button{font-size:11px;padding:10px}.map-bottom{left:10px;right:10px;justify-content:center}.map-region{height:590px}.compass{top:20px}}

.map-region{background-color:#07576f}.map-image>img.terrain-detail{position:absolute;left:150px;top:150px;width:600px;height:500px;object-fit:fill;opacity:0;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent);mask-composite:intersect}.map-image.show-detail>img.terrain-detail{opacity:1}.map-image .location{z-index:1}

.map-region{user-select:none;-webkit-user-select:none;overscroll-behavior:contain}.map-image img{-webkit-user-drag:none;user-select:none}

.map-bottom{background:none;backdrop-filter:none;padding:0;align-items:flex-end;gap:10px;flex-wrap:wrap;pointer-events:none}.map-bottom .game-shortcuts{display:flex;gap:5px;background:#f8f7eef2;border:1px solid #ffffffb0;border-radius:13px;padding:7px;box-shadow:0 3px 15px #003c4f33;pointer-events:auto}.game-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:43px;padding:6px 7px;border:0;background:transparent;border-radius:8px;gap:4px}.game-shortcuts button>span{font-size:23px;line-height:1.2}.game-shortcuts button>small{font-size:10px;color:#32584c}.map-bottom>.camera-controls{display:flex;background:#f8f7eef2;padding:6px;border-radius:10px;flex-wrap:wrap;justify-content:center}.camera-controls button{padding:8px 9px;font-size:11px}.map-bottom>div:first-child span{display:initial}.minimap{bottom:160px}@media(max-width:1000px){.map-bottom{justify-content:center}.map-bottom .game-shortcuts{display:flex}.minimap{bottom:175px}}@media(max-width:700px){.map-bottom{bottom:12px;gap:7px}.game-shortcuts button{min-width:35px;padding:6px 4px}.game-shortcuts button>span{font-size:21px}.game-shortcuts{max-width:100%;overflow-x:auto}.minimap{bottom:165px}.map-bottom>.camera-controls{display:flex}}

.land-tiles{position:absolute;inset:0;pointer-events:none}.land-tile{position:absolute;width:8px;height:8px;border:.7px solid #f6e4a0;box-sizing:border-box}.land-tile.cultivated{background:repeating-linear-gradient(0deg,#69452bbd 0 1px,#9e754dbd 1px 2px)}.land-tile.developing{background:#f5b43f99;border:1px dashed #fff4c1}.land-dialog{max-width:420px;width:calc(100% - 32px);border:1px solid #dce3d7;border-radius:14px;background:#f8f7ee;color:#234442;padding:28px}.land-dialog::backdrop{background:#062e3480}.land-dialog h2{font-size:22px}.land-dialog p{font-size:14px;line-height:1.9}.land-dialog-buttons{display:flex;gap:10px}.land-dialog-buttons .primary{width:auto;flex:1;padding:12px}

/* 지도는 이동하는 월드에서만 표시한다. 바깥 영역은 바다 단색이다. */
.map-region{background-image:none;background-color:#07576f}

/* 한 개의 고정 월드만 렌더링하고 카메라가 그 일부를 본다. */
.map-region{isolation:isolate;background:#07576f}.map-image{position:absolute;overflow:visible}.map-image>img:first-child{position:absolute;inset:0;width:1173px;height:1341px;max-width:none;max-height:none}.map-heading{z-index:2}.map-bottom{z-index:3}

/* 지도는 게임 화면 전체를 차지하고 수첩은 지도 위에 떠 있다. */
.game-body{position:relative;display:block;height:calc(100dvh - 78px);min-height:600px;overflow:hidden}.map-region{position:absolute;inset:0;width:100%;height:100%;min-height:0}.notebook{position:absolute;right:20px;top:20px;bottom:125px;width:370px;z-index:4;border:1px solid #ffffffa0;border-radius:14px;background:#f8f7eef2;box-shadow:0 6px 28px #003c4f40;overflow:hidden;min-height:0}.map-bottom{right:20px;left:25px;bottom:20px}.minimap{right:410px;bottom:125px}.compass{right:410px}.map-heading{max-width:calc(100% - 460px)}
@media(max-width:1000px){.notebook{width:330px;right:14px}.minimap,.compass{right:360px}.map-heading{max-width:calc(100% - 390px)}.map-heading h1{font-size:22px}.game-body{min-height:600px}}
@media(max-width:700px){.game-body{height:calc(100dvh - 65px);min-height:700px;display:block}.map-region{height:100%;position:absolute;inset:0}.map-heading{max-width:calc(100% - 110px)}.notebook{top:auto;left:12px;right:12px;bottom:125px;width:auto;height:31%;min-height:180px}.panel-scroll{overflow:auto;padding:15px 18px}.panel-heading h2{font-size:22px;margin-bottom:12px}.tabs{position:static}.tabs button{padding:9px 10px}.save-note{padding:8px 14px}.minimap{right:14px;top:15px;bottom:auto;width:72px}.compass{display:none}.map-bottom{left:8px;right:8px;bottom:10px}.map-heading h1{font-size:19px}}

body:has(.game){height:100dvh;overflow:hidden}.game{height:100dvh;display:flex;flex-direction:column}.game>.topbar{flex:none}.game>.game-body{flex:1;height:auto;min-height:0;width:100%}


/* 기본 화면은 섬과 바다뿐이며, 기능 메뉴는 요청할 때만 연다. */
.notebook{display:none}.notebook.is-open{display:flex}.panel-close{align-self:flex-end;border:0;background:transparent;padding:10px 16px;font-size:12px}.notebook .tabs{padding-top:0}.map-heading{display:none}.compass{right:25px}.minimap{right:25px;bottom:125px}.map-region{inset:0;width:100%;border:0}.map-bottom{left:20px;right:20px}.notebook{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(440px,calc(100% - 32px));height:min(650px,calc(100% - 140px));max-height:calc(100% - 140px);z-index:5}.notebook.is-open .panel-scroll{overflow:auto}.game-body{background:#07576f}
@media(max-width:700px){.notebook{top:50%;left:50%;right:auto;bottom:auto;width:calc(100% - 24px);height:60%;min-height:200px;max-height:calc(100% - 150px)}.minimap{top:15px;right:14px;bottom:auto}.map-bottom{left:8px;right:8px}}

/* 원본 지형 좌표는 유지하고 화면의 세계만 왼쪽 90도 회전한다. */
.map-image .location{transform:translate(-50%,-50%) rotate(90deg) scale(var(--marker-scale,1))}.minimap{aspect-ratio:1341/1173}.minimap>img{position:absolute;width:87.472%;height:114.322%;left:6.264%;top:-7.161%;object-fit:fill;transform:rotate(-90deg)}

/* 화면의 모든 빈 영역에도 실제 바다 질감을 표시한다. */
body:has(.game),.game,.game-body,.map-region{background:#086079 url('assets/ocean-v1.png') repeat;background-size:700px 700px}.map-image>img:first-child{mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent);mask-composite:intersect}.topbar{background:#f8f7eed9;backdrop-filter:blur(8px)}


.map-image>img:first-child{mask-image:none}.minimap{background:#086079 url(assets/ocean-v1.png) center/cover}

.terrain-hires{position:absolute;inset:0;pointer-events:none;mask-image:url('assets/naedo-topdown-v4.png');mask-size:100% 100%;mask-repeat:no-repeat;overflow:hidden}.terrain-tile{position:absolute;object-fit:fill;max-width:none;max-height:none;opacity:0;transition:opacity .35s;mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 92%,transparent);mask-composite:intersect}.terrain-tile.loaded{opacity:1}.land-tiles{z-index:1}.map-image .location{z-index:2}@media(prefers-reduced-motion:reduce){.terrain-tile{transition:none}}

/* 전체 월드를 작은 중간 비트맵으로 합성하지 않도록 마스크를 조각별로 적용한다. */
.terrain-hires{mask-image:none;overflow:visible}.terrain-tile{mask-image:url('assets/naedo-topdown-v4.png'),linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 92%,transparent);mask-size:1173px 1341px,100% 100%,100% 100%;mask-position:var(--mask-x) var(--mask-y),0 0,0 0;mask-repeat:no-repeat;mask-composite:intersect,intersect}.map-image{will-change:auto}

/* 카메라와 별개인 브라우저 내부 스크롤이 시야를 밀어내지 못하게 한다. */
.map-region,.game-body{overflow:clip}


.empty-plots{grid-column:1/-1;margin:0;padding:14px 0}.location.camp,.location.shore,.location.fishing{border:0;background:none;box-shadow:none}

.land-tile.cleared{background:radial-gradient(circle at 25% 35%,#a6af59 0 1px,transparent 1.3px),radial-gradient(circle at 70% 70%,#b1a46b 0 1px,transparent 1.4px),#7f914b;border:.4px solid #b8bc7e}

.land-grid{position:absolute;inset:0;z-index:1;pointer-events:none}.land-grid svg{position:absolute;left:0;top:0;max-width:none;max-height:none;overflow:visible}.grid-cell{fill-opacity:.12;stroke:#fff8d6;stroke-opacity:.65;stroke-width:1}.grid-cell.grid-selected{fill:#ffe475;fill-opacity:.45;stroke:#ffe475;stroke-opacity:1;stroke-width:2.5}.land-grid-info{position:absolute;left:50%;bottom:115px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;z-index:4;max-width:calc(100% - 32px);padding:12px 14px;background:#f8f7eef5;color:#234442;border:1px solid #fff8df;border-radius:12px;box-shadow:0 3px 16px #003c4f44}.land-grid-info[hidden]{display:none}.land-grid-info strong{font-size:13px;white-space:nowrap}.land-grid-info small{display:block;font-size:10px;margin-top:5px;color:#637d70}.land-grid-info button{font-size:12px;white-space:nowrap}.land-grid-info button[data-action="land-work"]{background:#39765a;color:white;border-color:#39765a}.land-grid-info button[data-action="hide-grid"]{border:0;background:transparent}@media(max-width:700px){.land-grid-info{bottom:125px;gap:7px;width:calc(100% - 24px);padding:10px}.land-grid-info>div{flex:1}.land-grid-info small{font-size:9px}.land-grid-info button{font-size:11px;padding:9px 8px}}

/* 지형을 가리지 않는 은은한 격자 */
.grid-cell{fill-opacity:.025;stroke:#fff8dc;stroke-opacity:.22;stroke-width:.5}.grid-cell.grid-selected{fill:#ffe9a6;fill-opacity:.10;stroke:#ffe9a6;stroke-opacity:.65;stroke-width:1}


/* 선택한 격자칸에 붙는 말풍선. 화면 하단에 고정하지 않는다. */
.land-grid-info{bottom:auto;left:0;top:0;transform:none;width:max-content;max-width:calc(100% - 20px);padding:11px 13px;gap:10px;border-radius:11px;background:#fffdf2;border-color:#e6e6ce;box-shadow:0 4px 18px #102f3d40}.land-grid-info::after{content:'';position:absolute;left:var(--tail-x,50%);bottom:-6px;width:12px;height:12px;background:#fffdf2;border-right:1px solid #e6e6ce;border-bottom:1px solid #e6e6ce;transform:translateX(-50%) rotate(45deg);pointer-events:none}.land-grid-info.bubble-below::after{bottom:auto;top:-6px;border-right:0;border-bottom:0;border-left:1px solid #e6e6ce;border-top:1px solid #e6e6ce}.land-grid-info small{max-width:165px;white-space:normal}@media(max-width:700px){.land-grid-info{bottom:auto;width:max-content;max-width:calc(100% - 20px);padding:10px;gap:7px}.land-grid-info>div{flex:initial}.land-grid-info strong{font-size:12px}.land-grid-info small{max-width:125px}}

.player-status{position:absolute;top:18px;right:18px;z-index:3;width:166px;padding:12px 14px;border:1px solid #ffffff80;border-radius:11px;background:#f8f7eeed;color:#234442;box-shadow:0 3px 12px #06374522;pointer-events:none}.player-status>strong{display:block;font-size:13px;margin-bottom:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-status>div{display:flex;align-items:center;justify-content:space-between;margin-top:5px;font-size:11px}.player-status>div>span{color:#657e70}.player-status b{font-size:12px;font-weight:700}.minimap{top:164px;right:18px;bottom:auto;width:104px}@media(max-width:700px){.player-status{top:12px;right:12px;width:145px;padding:10px 12px}.minimap{top:156px;right:12px;bottom:auto;width:72px}}

/* 밝은 양피지와 나무 테두리로 꾸민 섬 상태 팻말 */
.player-status{top:22px;right:22px;width:205px;padding:16px 17px 15px;pointer-events:none;color:#49331d;background:linear-gradient(100deg,#fff4cd,#fffbea 50%,#f8e4b4);border:4px solid #996638;border-radius:17px 13px 18px 12px;box-shadow:0 3px 0 #563a23,inset 0 0 0 2px #e5bd78,0 8px 20px #062d4460}.player-status::before,.player-status::after{content:'';position:absolute;top:8px;width:7px;height:7px;border-radius:50%;background:#674524;box-shadow:inset 0 1px 2px #30241380,0 1px 0 #edc88a}.player-status::before{left:9px}.player-status::after{right:9px}.player-status>strong{font-family:'Gowun Batang','Malgun Gothic',serif;font-size:16px;line-height:1.5;color:#3f4d25;text-align:center;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #d4b77c}.player-status>div{font-size:13px;margin-top:9px;gap:12px}.player-status>div>span{color:#665039;font-weight:700}.player-status b{font-size:16px;color:#49331d}.player-status>.status-farmland{background:#f0e9bd;border:1px solid #d2c68d;border-radius:9px;padding:8px 9px;margin-top:0}.player-status>.status-farmland b{font-family:'Gowun Batang',serif;font-size:24px;color:#36542c;line-height:1.2}.minimap{top:244px;right:23px;bottom:auto;width:104px;border-color:#e5ca93;box-shadow:0 3px 0 #80572f,0 5px 15px #062d4444}
@media(max-width:700px){.player-status{top:14px;right:12px;width:180px;padding:13px 12px;border-width:3px}.player-status>strong{font-size:14px;padding-bottom:8px;margin-bottom:10px}.player-status>div{font-size:12px;margin-top:8px}.player-status b{font-size:14px}.player-status>.status-farmland b{font-size:22px}.player-status>.status-farmland{padding:7px}.minimap{top:218px;right:13px;bottom:auto;width:78px}}

.player-status{font-weight:700}.player-status>strong,.player-status>div>span,.player-status b{font-weight:900;text-shadow:.25px 0 currentColor,-.25px 0 currentColor}


.map-work-layer{position:absolute;inset:0;z-index:3;pointer-events:none}.map-work{position:absolute;width:190px;padding:11px 12px;background:#fff5d9f5;color:#49331d;border:2px solid #aa7b47;border-radius:11px;box-shadow:0 3px 12px #173e3a44;pointer-events:auto}.map-work[hidden]{display:none}.map-work .job{margin:0}.map-work .job-line{font-size:11px;gap:8px}.map-work .job-line strong{color:#49331d;font-weight:700}.map-work .job-line>span{font-weight:700;white-space:nowrap;color:#406837}.map-work progress{height:9px;margin:10px 0;accent-color:#6c9947}.map-work .job>button{font-size:11px;padding:7px}.map-work .job>button:disabled{display:none}.map-work .job>button.ready{display:block;background:#5c823e;color:#fff}

.work-site-icon{position:absolute;z-index:3;width:76px;height:66px;padding:0;border:0;background:none;transform:translate(-50%,-55%) rotate(90deg) scale(var(--marker-scale,1));filter:drop-shadow(0 3px 2px #27371e44);cursor:pointer}.work-site-icon:hover:not(:disabled){background:none;filter:drop-shadow(0 3px 4px #e9d99988)}.work-site-icon img{width:100%;height:100%;object-fit:contain;pointer-events:none}.work-site-icon:focus-visible{outline:2px solid #ffe7a0;outline-offset:1px;border-radius:12px}

/* 카메라 변환은 바깥 버튼에, 삽질 동작은 안쪽 삽에만 적용한다. */
.work-site-icon .digging-base{display:block;width:100%;height:100%}.work-site-icon .digging-shovel{position:absolute;left:39px;top:7px;width:25px;height:40px;object-fit:contain;transform-origin:50% 86%;animation:shovel-dig 2.4s ease-in-out infinite;filter:drop-shadow(1px 2px 1px #5b3d2866)}.digging-dirt{position:absolute;left:47px;top:40px;width:4px;height:3px;border-radius:50%;background:#a76e36;opacity:0;pointer-events:none;animation:dirt-toss 2.4s ease-out infinite}.dirt-two{left:50px;top:42px;width:3px;height:3px;background:#c18b49;animation-delay:.08s}.dirt-three{left:45px;top:41px;width:2px;height:2px;background:#76532d;animation-delay:.16s}.work-site-icon.digging-done .digging-shovel{animation:none;transform:rotate(14deg)}.work-site-icon.digging-done .digging-dirt{animation:none;opacity:0}
@keyframes shovel-dig{0%,18%,100%{transform:translate(0,-3px) rotate(16deg)}36%{transform:translate(-2px,5px) rotate(-6deg)}49%{transform:translate(-2px,5px) rotate(-20deg)}68%{transform:translate(4px,-5px) rotate(24deg)}82%{transform:translate(2px,-3px) rotate(29deg)}}
@keyframes dirt-toss{0%,50%{opacity:0;transform:translate(0,0) scale(.6)}56%{opacity:.9}72%{opacity:.8;transform:translate(11px,-11px) scale(1)}89%,100%{opacity:0;transform:translate(18px,4px) scale(.5)}}
@media(prefers-reduced-motion:reduce){.work-site-icon .digging-shovel,.work-site-icon .digging-dirt{animation:none}.digging-dirt{display:none}}

.work-site-icon{transform:translate(-50%,-55%) rotate(90deg) scale(var(--work-icon-scale,var(--marker-scale,1)))}

/* 사진 참고 조각의 바깥색은 입력 지형의 투명도 마스크로 차단한다. */
.terrain-photo .terrain-tile{mask-image:var(--tile-mask,linear-gradient(#000,#000)),url('assets/naedo-topdown-v4.png'),linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 8%,#000 92%,transparent);mask-size:100% 100%,1173px 1341px,100% 100%,100% 100%;mask-position:0 0,var(--mask-x) var(--mask-y),0 0,0 0;mask-repeat:no-repeat;mask-composite:intersect,intersect,intersect}

.terrain-photo .terrain-tile{mask-image:var(--tile-mask,linear-gradient(#000,#000)),url('assets/naedo-topdown-v4.png'),linear-gradient(to right,transparent,#000 3px,#000 calc(100% - 3px),transparent),linear-gradient(to bottom,transparent,#000 3px,#000 calc(100% - 3px),transparent)}

/* One texture spans 8 real metres; camera zoom never changes its world scale. */
.terrain-lawn{position:absolute;inset:0;pointer-events:none;background-image:url('assets/lawn-short-grass-v7.webp');background-repeat:repeat;background-size:var(--lawn-repeat) var(--lawn-repeat);mask-image:url('assets/lawn-clearing-mask-v7.png'),url('assets/naedo-topdown-v4.png');mask-size:100% 100%,100% 100%;mask-position:0 0;mask-repeat:no-repeat;mask-composite:intersect}


/* The tent uses world metres, without the screen-sized marker compensation.
   The projected sprite includes its 1.5m ridge and short guy ropes;
   the actual ground footprint is 1.2m x 2m. */
.map-image .location.camp{width:calc(var(--tent-metre)*2.8);height:calc(var(--tent-metre)*2.5);transform:translate(-50%,-76%) rotate(90deg);transform-origin:50% 76%;filter:none;display:block;border-radius:0}
.map-image .camp .tent-sprite{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.map-image .camp:hover{filter:drop-shadow(0 0 .6px #fff0b5)}
.tent-note .tent-preview{display:block;width:100%;height:160px;object-fit:contain;margin:0 auto 12px}

/* A cultivated cell is exactly 1m x 1m in world coordinates. */
.land-tile.cultivated{background:transparent url('assets/cultivated-soil-v2.png') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none}

.game-shortcuts .farming-icon{width:34px;height:34px;display:block;object-fit:contain;margin:auto}
.farming-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.farming-heading>img{width:64px;height:64px}.farming-heading h3{margin:0 0 6px}.farming-heading p{font-size:12px;margin:0;color:#657653}.plot-top .plot-soil-preview{width:38px;height:38px;object-fit:contain}
.map-image button.land-tile.cultivated{pointer-events:auto;padding:0;min-width:0;cursor:pointer;transition:none}
.map-image button.land-tile.cultivated:hover{background:transparent url('assets/cultivated-soil-v2.png') center/100% 100% no-repeat;filter:brightness(1.1)}

.player-status>.status-pi{background:#fff0b9;border:1px solid #d5b667;border-radius:9px;padding:8px 9px;margin:0 0 9px}.player-status>.status-pi b{font-family:'Gowun Batang',serif;font-size:23px;color:#896019;line-height:1.2}.player-status>.status-pi small{font-family:'Gowun Dodum',sans-serif;font-size:11px;font-weight:400}.minimap{top:295px}
@media(max-width:700px){.player-status>.status-pi{padding:7px}.player-status>.status-pi b{font-size:21px}.minimap{top:266px}}

.seed-dialog{max-width:440px}.seed-dialog-heading{display:flex;gap:12px;align-items:center;margin-bottom:20px}.seed-dialog-heading>img{width:56px;height:56px}.seed-dialog-heading h2{font-size:20px;margin:0 0 7px}.seed-dialog-heading p{font-size:12px;margin:0;color:#6c8079}.seed-choice{display:flex;align-items:center;gap:14px;width:100%;padding:17px 14px;text-align:left;border:1px solid #bacb9c;border-radius:12px;background:#edf2dd}.seed-choice-icon{font-size:36px}.seed-choice>span:nth-child(2){flex:1}.seed-choice strong{display:block;font-size:16px;margin-bottom:7px}.seed-choice small{display:block;font-size:11px;color:#647552;line-height:1.8}.seed-choice>span:last-child{font-size:12px;color:#39765a}.seed-dialog .footnote{margin:15px 0}

.seed-dialog{max-height:calc(100dvh - 40px);overflow:auto}.seed-choice{margin-bottom:10px}.bag{grid-template-columns:repeat(auto-fit,minmax(55px,1fr))}

/* Plant sprites remain inside the 1m soil footprint and inherit world zoom. */
.crop-plants{position:absolute;inset:0;pointer-events:none}.crop-plant{position:absolute;width:54%;height:54%;background-image:url('assets/crop-growth-v1.png');background-size:400% 400%;background-position:var(--crop-x) var(--crop-y);background-repeat:no-repeat;pointer-events:none}.crop-plant.plant-0{left:3%;top:4%}.crop-plant.plant-1{right:2%;top:20%}.crop-plant.plant-2{left:12%;bottom:1%}

.land-grid-info .job{min-width:170px;margin-top:10px}.land-grid-info .job-line{gap:12px}.land-grid-info .job>button{min-height:32px}

/* Four furrows, two plants on each: eight plants within one square metre. */
.crop-plants .crop-plant{width:27%;height:27%;left:calc(19% + var(--plant-col)*34%);top:calc(1% + var(--plant-row)*24%);right:auto;bottom:auto}

.crop-plants .crop-plant{transform:scale(var(--plant-growth,1));transform-origin:center;transition:transform 1s linear}.land-grid-info [data-crop-phase]{margin-top:7px;color:#557743}

/* Each game control is an independently positioned, draggable icon. */
.map-region>.movable-control{position:absolute;z-index:4;pointer-events:auto;touch-action:none;user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:58px;height:62px;padding:6px;border:1px solid #b9bc8e;border-radius:15px;background:linear-gradient(#fffbea,#efe6c9);color:#415a39;box-shadow:0 3px 0 #7e7953,0 4px 10px #173c3833;font-size:24px;cursor:grab;transition:box-shadow .15s}
.map-region>.movable-control span{font-size:25px;line-height:30px}.map-region>.movable-control small{font-size:10px;line-height:14px;white-space:nowrap}.map-region>.movable-control .farming-icon{width:30px;height:30px;object-fit:contain}.map-region>.movable-control.is-moving{cursor:grabbing;z-index:8;box-shadow:0 8px 20px #123d4666;opacity:.9}

.activity-hover-progress{position:absolute;z-index:9;pointer-events:none;width:220px;max-width:calc(100% - 16px);max-height:55%;overflow:hidden;padding:12px 14px;background:#fffdf2f5;border:1px solid #d3d8b7;border-radius:12px;color:#345139;box-shadow:0 5px 18px #123d4644}.activity-hover-progress section+section{border-top:1px solid #dce3ce;padding-top:9px;margin-top:9px}.activity-hover-progress strong{display:block;font-size:12px;margin-bottom:7px}.activity-hover-progress [data-hover-time]{display:block;font-size:11px;color:#657653}.activity-hover-progress progress{margin:8px 0 0}

/* Shell gathering sits at the sandy shoreline rather than inland. */
.map-image .location.shore{left:27.2805%;top:23.1171%;width:24px;height:24px;filter:drop-shadow(0 1px 2px #164e4c55)}
.map-image .location.shore>span{font-size:20px;line-height:24px}

.sell-all-crops{padding:18px;margin-bottom:22px;background:#edf1db;border:1px solid #c4d1a4;border-radius:12px}.sell-all-crops h3{margin-bottom:10px}.sell-all-crops p{font-size:12px;margin-bottom:8px}.sell-all-crops>strong{display:block;color:#87601e;margin-bottom:14px}.sell-all-crops button{width:100%;background:#39765a;color:#fff;border-color:#39765a}

.planting-mode{border:1px solid #c9d2b1;border-radius:9px;margin:0 0 16px;padding:12px}.planting-mode label{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0}.planting-mode input{width:auto;margin:0}

.coastal-waves{position:absolute;inset:0;width:1173px;height:1341px;overflow:visible;pointer-events:none;z-index:1}.coastal-breaker{fill:none;stroke:#f1fff2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:8 1.4 3 .8;opacity:0}
@media(prefers-reduced-motion:reduce){.coastal-waves{display:none}}

.upgrade-current{display:flex;align-items:center;gap:16px;padding:12px 0 20px;border-bottom:1px solid #dce3d7;margin-bottom:22px}.upgrade-current img{width:92px;height:72px;object-fit:contain}.upgrade-current small{font-size:11px;color:#6c8079}.upgrade-current h3{margin:8px 0}.building-upgrade>h3{font-size:23px;text-align:center}.building-upgrade>p{font-size:12px}.upgrade-building-icon{text-align:center;font-size:85px;margin:16px 0}.building-upgrade h4{font-size:14px;margin-top:23px}.upgrade-materials{list-style:none;padding:0;margin:0 0 22px}.upgrade-materials li{display:grid;grid-template-columns:1fr auto;gap:7px;padding:12px 0;border-bottom:1px solid #dce3d7;font-size:12px}.upgrade-materials small{grid-column:2;text-align:right}.upgrade-materials .missing small{color:#ad572c}.upgrade-materials .enough small{color:#39765a}

/* Compact activity cards grow only as much as their content needs. */
.notebook{width:min(320px,calc(100% - 28px));height:auto;min-height:0;max-height:calc(100% - 100px);border:1px solid #e1ddbd;border-radius:19px 15px 20px 14px;box-shadow:0 8px 28px #173d4638;background:#fffdf1f5;overflow:hidden}
.notebook .panel-close{font-size:10px;padding:9px 12px 3px;line-height:1.3;min-height:0}
.notebook .panel-scroll{flex:0 1 auto;min-height:0;padding:8px 18px 18px;overflow:auto}
.notebook .panel-heading .section-label{font-size:10px}.notebook .panel-heading h2{font-size:21px;line-height:1.4;margin:6px 0 14px}
.notebook .activity-row{padding:12px 0 0}.notebook .activity-title{gap:10px}.notebook .activity-title>span{font-size:27px}.notebook .activity-title h3{font-size:13px}.notebook .activity-title p{font-size:10px;line-height:1.6}
.notebook .job{margin-top:13px}.notebook .job-line{font-size:10px;flex-wrap:wrap;gap:5px}.notebook .job>button{padding:8px;font-size:11px;border-radius:9px}.notebook .tip{font-size:10px;line-height:1.7;padding:10px 11px;margin:13px 0 0;border-radius:0 8px 8px 0}.notebook .footnote{font-size:10px;margin-top:14px}
.notebook .plots{grid-template-columns:1fr}.notebook .plot{padding:11px}.notebook .farming-heading{gap:10px;margin-bottom:14px}.notebook .farming-heading>img{width:42px;height:42px}.notebook .farming-heading h3{font-size:13px}.notebook .farming-heading p{font-size:10px}.notebook .upgrade-building-icon{font-size:56px;margin:8px 0}.notebook .building-upgrade>h3{font-size:19px}.notebook .upgrade-current{padding:4px 0 12px;margin-bottom:14px}.notebook .upgrade-current img{width:65px;height:50px}
@media(max-width:700px){.notebook{width:min(300px,calc(100% - 24px));height:auto;min-height:0;max-height:calc(100% - 100px)}.notebook .panel-scroll{padding:7px 16px 16px}.notebook .panel-heading h2{font-size:20px}}

.fishing-game{margin-top:15px}.fishing-water{height:110px;border-radius:13px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#57bcb18a,transparent 60%),linear-gradient(150deg,#137f94,#07586e)}.fishing-float{position:absolute;left:50%;top:42%;width:8px;height:23px;border-radius:5px;background:linear-gradient(#ec7350 0 45%,#fff9d6 45% 75%,#806c42 75%);transform:rotate(8deg);animation:float-idle 2.4s ease-in-out infinite}.float-rings{position:absolute;left:calc(50% - 22px);top:60%;width:50px;height:12px;border:1px solid #d7f6d65c;border-radius:50%;animation:float-rings 2.4s ease-out infinite}.fishing-game p{font-size:12px;text-align:center;margin:13px 0}.fishing-game>button{width:100%;padding:11px;border-radius:10px}.fishing-game.is-biting .fishing-float{animation:float-bite .28s ease-in-out infinite}.fishing-game.is-biting>button{background:#c86a32;color:#fff;border-color:#b05c29}.fishing-game.is-biting .float-rings{animation:float-rings .6s ease-out infinite}.fishing-game.is-missed .fishing-float{opacity:.4}
@keyframes float-idle{50%{transform:translateY(3px) rotate(-5deg)}}@keyframes float-bite{50%{transform:translateY(13px) rotate(20deg)}}@keyframes float-rings{0%{transform:scale(.5);opacity:.9}100%{transform:scale(1.6);opacity:0}}
@media(prefers-reduced-motion:reduce){.fishing-float,.float-rings{animation:none!important}}

.map-image .location.sea-trap{left:24.1%;top:22%;width:calc(var(--trap-metre)*1);height:calc(var(--trap-metre)*.67);transform:translate(-50%,-50%) rotate(90deg);filter:none;display:block}.sea-trap>img{width:100%;height:100%;object-fit:contain;pointer-events:none}.trap-menu-image{width:54px;height:44px;object-fit:contain;display:block}

/* A compact shoreline shortcut, matching the fishing marker's readable size. */
.map-image .location.sea-trap{left:23.55%;top:25.9%;width:29px;height:25px;transform:translate(-50%,-50%) rotate(90deg) scale(var(--marker-scale,1));filter:drop-shadow(0 1px 2px #164e4c55);border:0;background:none;padding:0;cursor:pointer}
.map-image .location.sea-trap:hover{background:none;filter:drop-shadow(0 0 3px #fff1bc)}

/* Lift the bamboo tones consistently in the map, shortcut and activity menu. */
img[src="assets/fish-trap-v1.png"]{filter:brightness(1.65) saturate(.82) contrast(.92)}
.map-image .location.sea-trap{filter:drop-shadow(0 1px 1px #143e4955) drop-shadow(0 0 1px #fff1ca)}
.map-image .location.sea-trap:hover{filter:drop-shadow(0 0 3px #fff1bc)}

.trap-ghost{position:absolute;width:42px;height:30px;object-fit:contain;transform:translate(-50%,-70%);pointer-events:none;z-index:10;opacity:.8;left:50%;top:50%}.map-region.placing-trap{cursor:crosshair}.trap-thrown{animation:trap-splash .6s ease-out}@keyframes trap-splash{0%{opacity:.1;filter:brightness(2);margin-top:-30px}70%{margin-top:3px}100%{opacity:1;margin-top:0}}

/* Clearing occupies the exact selected 1m cell, with no inverse camera scaling. */
.map-image .work-site-icon{transform:none;transform-origin:center;filter:none;border-radius:4%;overflow:visible;isolation:isolate}
.map-image .work-site-icon:hover:not(:disabled){filter:brightness(1.08)}
.work-site-icon::before{content:'';position:absolute;inset:0;border:.10px solid #e8cd88aa;border-radius:4%;background:#a2824322;pointer-events:none}
.work-site-icon .digging-base{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;opacity:1;clip-path:inset(0 var(--clear-edge,100%) 0 0);transition:clip-path 1s linear}
.work-site-icon .digging-shovel{left:32%;top:-7%;width:36%;height:77%;transform-origin:50% 86%;animation:cell-shovel-dig 2.8s ease-in-out infinite;filter:drop-shadow(.06px .1px .06px #493a3355)}
.work-site-icon .digging-dirt{left:53%;top:58%;width:4%;height:3%;animation:cell-dirt-toss 2.8s ease-out infinite}.work-site-icon .dirt-two{left:55%;top:61%;width:3%;height:3%;animation-delay:.12s}.work-site-icon .dirt-three{left:50%;top:60%;width:2%;height:2%;animation-delay:.23s}
.work-site-icon.digging-done .digging-base{clip-path:none}.work-site-icon.digging-done .digging-shovel{display:none}.work-site-icon.digging-done::before{border-color:#d8e7a6}
@keyframes cell-shovel-dig{0%,100%{transform:rotate(-12deg) translateY(-3%)}35%{transform:rotate(9deg) translateY(9%)}50%{transform:rotate(12deg) translateY(12%)}72%{transform:rotate(-22deg) translateY(-8%)}}
@keyframes cell-dirt-toss{0%,48%,100%{opacity:0;transform:translate(0,0)}55%{opacity:.8}82%{opacity:0;transform:translate(-.8px,-.5px)}}
@media(prefers-reduced-motion:reduce){.work-site-icon .digging-shovel,.work-site-icon .digging-dirt{animation:none}.work-site-icon .digging-base{transition:none}}

.map-image .location.logging-yard{left:445px;top:455px;width:calc(var(--yard-metre)*5);height:calc(var(--yard-metre)*4);transform:translate(-50%,-50%) rotate(90deg);filter:none;padding:0;border:0;background:none;display:block}.logging-yard img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.map-image .logging-yard:hover{background:none;filter:brightness(1.08)}

/* The yard shares the terrain camera and light direction, rather than facing the UI. */
.map-image .location.logging-yard{transform:translate(-50%,-50%)}
.logging-yard>img{mask-image:radial-gradient(ellipse at center,#000 56%,#000b 75%,transparent 98%);filter:saturate(.92) brightness(.97)}

/* The logging clearing is painted into a matching terrain patch, not a prop pad. */
.map-image>.logging-forest-patch{position:absolute;left:466.60221465px;top:332.24776119px;width:64.44505963px;height:39.52947761px;object-fit:fill;pointer-events:none;z-index:1;mask-image:radial-gradient(ellipse 48% 58% at 53% 48%,#000 45%,#000 65%,transparent 100%)}
.map-image .logging-yard>img{visibility:hidden}
.map-image .location.logging-yard{width:calc(var(--yard-metre)*6);height:calc(var(--yard-metre)*5);background:none;filter:none}
.map-image .logging-yard:hover{background:none;filter:none}

/* Each resource has its own material, palette and travelling token. */
.themed-progress{--bar-a:#80ac57;--bar-b:#457a3e;--bar-track:#e7edd6;position:relative;margin:14px 9px 16px 0;height:14px;padding:2px;border-radius:12px;background:var(--bar-track);border:1px solid #b5bca18a;box-shadow:inset 0 1px 3px #253c281a}
.themed-progress progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:8px;margin:0;border:0;background:transparent;border-radius:9px;overflow:hidden}
.themed-progress progress::-webkit-progress-bar{background:transparent;border-radius:9px}.themed-progress progress::-webkit-progress-value{background:var(--bar-texture,linear-gradient(90deg,var(--bar-a),var(--bar-b)));border-radius:9px;transition:width .25s linear}.themed-progress progress::-moz-progress-bar{background:var(--bar-texture,linear-gradient(90deg,var(--bar-a),var(--bar-b)));border-radius:9px}
.progress-token{position:absolute;left:clamp(8px,var(--activity-percent,0%),calc(100% - 8px));top:50%;transform:translate(-50%,-50%);font-size:17px;line-height:22px;filter:drop-shadow(0 1px 1px #34513c33);transition:left .25s linear}.progress-finish{position:absolute;right:-9px;top:-5px;font-size:12px;color:#b69a5b;opacity:.75}
.crop-carrot{--bar-a:#f2bd64;--bar-b:#ce8137;--bar-track:#f7ecd2}.crop-radish{--bar-a:#d6e8ad;--bar-b:#78a863;--bar-track:#edf2e1}.crop-lettuce{--bar-a:#b2ce67;--bar-b:#58904b}.crop-tomato{--bar-a:#f2a374;--bar-b:#c75e48;--bar-track:#f6e5d9}
.progress-fell,.progress-logging{--bar-track:#eee1cd;--bar-texture:repeating-linear-gradient(0deg,#b28755 0 2px,#956b40 2px 3px,#c59e68 3px 5px);border-color:#c6af8c;border-radius:5px}.progress-quarry{--bar-track:#e2e7e8;--bar-texture:repeating-linear-gradient(115deg,#82989e 0 9px,#bac8c8 9px 11px,#9aabab 11px 18px);border-radius:4px}.progress-clear{--bar-track:#eee4cd;--bar-texture:repeating-linear-gradient(100deg,#a38655 0 4px,#bea475 4px 6px)}
.progress-trap{--bar-a:#65c2b7;--bar-b:#288fa0;--bar-track:#dcefeb}.progress-gather{--bar-a:#e2b8cd;--bar-b:#ac91bc;--bar-track:#f1e7ed}.progress-fish{display:none}
.activity-complete .progress-finish{color:#658940;opacity:1}.activity-complete .themed-progress{box-shadow:0 0 0 2px #b7cd7c40}.activity-hover-progress .themed-progress{margin:13px 8px 9px 0}.activity-hover-progress .themed-progress progress{margin:0}
@media(prefers-reduced-motion:reduce){.progress-token,.themed-progress progress::-webkit-progress-value{transition:none}}

.planting-slot{position:absolute;width:50%;height:25%;z-index:2;pointer-events:auto;border-radius:15%;cursor:pointer;box-sizing:border-box}.planting-slot.is-empty:hover{background:#fff3a92b;outline:.09px solid #fff1b9aa;outline-offset:-.12px}.planting-slot.is-planted:hover{background:#c7e79315}.land-grid-info:has([data-crop-phase]){max-height:45%;overflow:auto}

.seed-dialog{width:248px;max-width:calc(100% - 24px);padding:12px;border-radius:16px;border-color:#d8d8b7;box-shadow:0 8px 26px #173d4638}.seed-dialog::backdrop{background:#123e4526}.seed-picker-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:8px}.seed-mode-switch{display:flex;gap:3px;padding:3px;background:#e9eddc;border-radius:9px}.seed-mode-switch label{position:relative;cursor:pointer}.seed-mode-switch input{position:absolute;opacity:0;width:1px;height:1px}.seed-mode-switch span{display:block;font-size:11px;padding:6px 10px;border-radius:7px;color:#6b795a}.seed-mode-switch input:checked+span{background:#fffdf2;color:#39765a;box-shadow:0 1px 3px #47593620}.seed-mode-switch input:focus-visible+span{outline:2px solid #c6a65d}.seed-picker-close{border:0;background:none;padding:1px 5px;font-size:22px;font-weight:400;color:#71806b}.seed-icon-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.seed-icon-choice{display:flex;flex-direction:column;align-items:center;gap:4px;background:#f4f3e4;border:1px solid #dce1c6;border-radius:10px;padding:8px 3px}.seed-icon-art{height:34px;line-height:34px;font-size:28px;display:block}.seed-icon-art svg{width:34px;height:34px}.seed-icon-choice small{font-size:10px;font-weight:400}.seed-picker-shop{display:block;margin:10px auto 0;padding:4px 8px;border:0;background:none;font-size:10px;color:#6c805a}

/* A quiet centre furrow divides the metre plot into upper and lower halves. */
.map-image .land-tile.cultivated::after{content:'';position:absolute;left:4%;right:4%;top:49%;height:2%;background:#503b2566;box-shadow:0 .04px 0 #d2b27a66;pointer-events:none}
.crop-slot-progress{position:absolute;width:26%;height:2.5%;min-height:0;border-radius:.15px;background:#f6efdacc;box-shadow:0 0 0 .04px #354a4266;pointer-events:none;opacity:0;transition:opacity .15s;z-index:3;overflow:hidden}.crop-slot-progress>span{display:block;height:100%;width:var(--slot-progress,0%);background:#7ea749;border-radius:inherit}.crop-bar-carrot>span{background:#dda14b}.crop-bar-radish>span{background:#b7cf83}.crop-bar-lettuce>span{background:#73a64c}.crop-bar-tomato>span{background:#da7654}.cultivated:hover .crop-slot-progress,.cultivated:focus-within .crop-slot-progress{opacity:1}

/* Split the actual soil artwork into two beds, separated by a visible grass gap. */
.map-image button.land-tile.cultivated,.map-image button.land-tile.cultivated:hover{background:none;isolation:isolate}
.map-image .land-tile.cultivated::before,.map-image .land-tile.cultivated::after{content:'';position:absolute;left:0;right:auto;width:100%;height:47%;border:0;box-shadow:none;border-radius:0;background:transparent url('assets/cultivated-soil-v2.png') center/100% 100% no-repeat;pointer-events:none;z-index:-1}
.map-image .land-tile.cultivated::before{top:0}.map-image .land-tile.cultivated::after{top:53%}

/* The map rotates -90deg: splitting world X makes an upper/lower split on screen. */
.map-image .land-tile.cultivated::before,.map-image .land-tile.cultivated::after{width:47%;height:100%;top:0}
.map-image .land-tile.cultivated::before{left:0}.map-image .land-tile.cultivated::after{left:53%;top:0}

/* Keep one undistorted soil image and cut an even 4% centre gap.
   World X becomes screen Y after the camera rotation. */
.map-image .land-tile.cultivated::before{left:0;top:0;width:100%;height:100%;background:transparent url('assets/cultivated-soil-v2.png') center/100% 100% no-repeat;mask-image:linear-gradient(to right,#000 0%,#000 48%,transparent 48%,transparent 52%,#000 52%,#000 100%);mask-size:100% 100%;mask-repeat:no-repeat}
.map-image .land-tile.cultivated::after{display:none}

/* The centre divider is a shallow earth furrow, with continuous soil underneath. */
.map-image .land-tile.cultivated::before{mask-image:none;background:transparent url('assets/cultivated-soil-v2.png') center/100% 100% no-repeat}
.map-image .land-tile.cultivated::after{display:block;left:48%;top:5%;width:4%;height:90%;z-index:0;border-radius:45%;background:linear-gradient(to right,#59402b00,#65472c99 22%,#493320bb 50%,#a7804c99 78%,#ad8c5700);box-shadow:none;opacity:.85}

/* Explicit centre furrow above the soil, horizontal after world rotation. */
.map-image .land-tile.cultivated::after{display:none}
.soil-centre-furrow{position:absolute;left:46%;top:3%;width:8%;height:94%;z-index:1;pointer-events:none;border-radius:42% 30% 38% 35%;background:linear-gradient(to right,#a5804f33 0%,#6b482fe6 23%,#3d291ee6 47%,#503320e6 63%,#c4985ac9 83%,#a5814933 100%);box-shadow:-.05px 0 .06px #bc935b66,.06px 0 .07px #42302199;clip-path:polygon(18% 0,80% 0,95% 9%,85% 18%,100% 30%,86% 43%,97% 55%,81% 67%,94% 79%,79% 90%,75% 100%,23% 100%,13% 91%,23% 80%,6% 67%,17% 55%,3% 43%,14% 30%,4% 18%,14% 9%)}

/* Approved eight-position bed artwork. Counter-rotate only the ground image. */
.map-image .land-tile.cultivated::before{left:0;top:0;width:100%;height:100%;background:transparent url('assets/cultivated-soil-v3.png') center/100% 100% no-repeat;mask-image:none;transform:rotate(90deg);transform-origin:center}
.map-image .land-tile.cultivated::after,.soil-centre-furrow{display:none}

/* Highlight only the selected planting section, never the entire bed. */
.map-image button.land-tile.cultivated:hover{filter:none}
.planting-slot.is-selected{background:#ffe49c38;outline:.10px solid #fff0ad;outline-offset:-.12px;box-shadow:inset 0 0 .25px #fff0b155}

/* Map tiles use world pixels: reset browser button/focus chrome before zooming. */
.map-image button.land-tile.cultivated{appearance:none;-webkit-appearance:none;display:block;font-size:0;line-height:0;min-height:0;margin:0;padding:0;border:0;outline:0;box-shadow:none;overflow:hidden;border-radius:3%;background:none}
.map-image button.land-tile.cultivated:focus,.map-image button.land-tile.cultivated:focus-visible{outline:none;outline-offset:0;box-shadow:none}
.map-image .cultivated .planting-slot{display:block;position:absolute;width:44%;height:21%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:3%;outline:0;box-shadow:none;transform:none;background:transparent;font-size:0;line-height:0;z-index:4}
.map-image .cultivated .planting-slot.is-empty:hover,.map-image .cultivated .planting-slot.is-selected{background:#ffe08a35;box-shadow:inset 0 0 0 .055px #f7e6abbb;outline:0}
.map-image .cultivated .planting-slot.is-planted:hover{background:#c7e79320;outline:0}

/* Plot sections follow the eight soil ridges in the approved artwork. */
.map-image .cultivated .planting-slot{border-radius:6%;clip-path:polygon(4% 0,96% 2%,100% 7%,98% 94%,94% 100%,3% 97%,0 92%,2% 6%);box-shadow:inset 0 0 0 .025px #e8ca9140}
.map-image .cultivated:hover>.planting-slot.is-empty{background:#f5df9c09;box-shadow:inset 0 0 0 .035px #e8ca9170}
.map-image .cultivated .planting-slot.is-empty:hover,.map-image .cultivated .planting-slot.is-selected{background:#ffe39a40;box-shadow:inset 0 0 0 .06px #ffe9a8d9}

/* Keep the artwork readable: only the pointed or selected ridge is highlighted. */
.map-image .cultivated .planting-slot,.map-image .cultivated:hover>.planting-slot.is-empty{background:transparent;box-shadow:none;outline:0}
.map-image .cultivated .planting-slot.is-empty:hover,.map-image .cultivated .planting-slot.is-selected{background:#ffe9a32e;box-shadow:inset 0 0 0 .035px #ffe8aacc;outline:0}

.version-controls{display:flex;align-items:center;gap:6px;flex:none}.version-controls button{font-size:10px;line-height:1.4;padding:6px 9px;border:1px solid #cbd4b9;border-radius:8px;background:#fffdf1;color:#52704b;white-space:nowrap;font-weight:400}.version-controls small{font-size:9px;color:#839078}.game .topbar{gap:14px}.welcome-panel>.version-controls{margin-top:-18px}
@media(max-width:900px){.topbar .top-subtitle{display:none}.version-controls small{display:none}}@media(max-width:550px){.game>.topbar{flex-wrap:wrap;height:auto;min-height:65px;padding:7px 10px;gap:6px 10px}.version-controls button{padding:4px 6px;font-size:9px}.game>.topbar .wallet{margin-left:auto}}

.version-controls button{font-weight:700;color:#294c35}.version-controls small{font-weight:700;color:#496248}

/* Each planting section is a real button; the soil is a non-interactive group. */
.map-image .land-tiles>.land-tile.cultivated{pointer-events:none;display:block;isolation:isolate;margin:0;padding:0;border:0;outline:0;min-height:0;min-width:0;font-size:0;line-height:0;overflow:hidden;border-radius:3%;background:none;box-shadow:none;filter:none}
.map-image .cultivated button.planting-slot{appearance:none;-webkit-appearance:none;pointer-events:auto;touch-action:manipulation;cursor:pointer;padding:0;margin:0;min-width:0;min-height:0;border:0;outline:0;outline-offset:0;font:inherit;line-height:0;background:transparent;transition:none;transform:none}
.map-image .cultivated button.planting-slot:hover,.map-image .cultivated button.planting-slot.is-selected,.map-image .cultivated button.planting-slot:focus-visible{background:#ffe9a32e;box-shadow:inset 0 0 0 .035px #ffe8aacc;outline:0}

/* Geometry is defined once in asset-coordinates.js, in original source pixels. */
.map-image .land-tile.cultivated::before,.map-image .land-tile.cultivated::after{display:none}
.farm-coordinate-plane{position:absolute;inset:0;transform-origin:50% 50%;pointer-events:none;isolation:isolate}
.farm-coordinate-plane>.farm-soil-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:0}
.farm-coordinate-plane>.crop-plants{z-index:1;pointer-events:none}.farm-coordinate-plane>.planting-slot{z-index:4;pointer-events:auto}
.farm-coordinate-plane .crop-plant{right:auto;bottom:auto}.farm-coordinate-plane .crop-slot-progress{border-radius:.05px;box-shadow:none}

/* SVG uses the exact image viewBox; no HTML button box or percentage clipping. */
.farm-hit-regions{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:5;pointer-events:none;overflow:hidden}
.farm-hit-region{fill:transparent;stroke:none;pointer-events:all;cursor:pointer;outline:none;touch-action:manipulation}
.farm-hit-region:hover,.farm-hit-region.is-selected,.farm-hit-region:focus-visible{fill:#ffe7a247;stroke:#ffe8ac;stroke-width:5;stroke-linejoin:round;outline:none}

.farm-hit-region.is-hovered{fill:#ffe7a247;stroke:#ffe8ac;stroke-width:5;stroke-linejoin:round}
