/* farm_care_v1: the Farm screen, the hire screen, the Craft cluster, and the three Town buttons (Farm on the left under Mine; Craft + Pantry on the right) */
.cc-town-farm, .cc-town-craft, .cc-town-pantry { position: fixed; z-index: 40; display: flex; flex-direction: column; align-items: center; width: 62px; padding: 6px 0 4px; border-radius: 14px; border: 2px solid #b8893a; background: linear-gradient(180deg, #5a3e28, #3a2818); color: #f0e0c0; text-decoration: none; font: 700 1.35rem/1.1 "Crimson Text", Georgia, serif; box-shadow: 0 3px 0 #2a180c, 0 6px 14px rgba(0,0,0,.4); cursor: pointer; }
.cc-town-farm span, .cc-town-craft span, .cc-town-pantry span { font-size: .72rem; }
.cc-town-farm { left: 10px; bottom: 366px; }
.cc-town-craft { right: 10px; bottom: 150px; }
.cc-town-pantry { right: 10px; bottom: 222px; }
.cc-town-farm.alert { border-color: #e0a23a; animation: fm-pulse 1.6s ease-in-out infinite; }
@keyframes fm-pulse { 0%,100% { box-shadow: 0 3px 0 #2a180c, 0 6px 14px rgba(0,0,0,.4), 0 0 0 0 rgba(255,190,70,.0); } 50% { box-shadow: 0 3px 0 #2a180c, 0 6px 14px rgba(0,0,0,.4), 0 0 0 5px rgba(255,190,70,.45); } }
.fm-dot { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: #c8372d; color: #fff; font: 800 .72rem/20px system-ui, sans-serif; text-align: center; border: 2px solid #fff3d6; font-style: normal; }
.fm-dot[hidden] { display: none; }
body.fm-open .cc-town-farm, body.fm-open .cc-town-craft, body.fm-open .cc-town-pantry { visibility: hidden; }
/* sheets */
.fm-sheet { z-index: 9000; }
.fm-sheet[hidden] { display: none; }
.fm-hr { min-width: 40px; text-align: right; color: #f6e7c4; font: 700 .8rem system-ui, sans-serif; padding-right: 4px; white-space: nowrap; }
.fm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-tile { display: flex; flex-direction: column; gap: 4px; padding: 8px 9px 8px; border-radius: 14px; background: rgba(255,255,255,.72); border: 2px solid rgba(107,66,38,.35); border-left-width: 6px; min-height: 124px; position: relative; }
.fm-tile.st-ok { border-color: rgba(42,107,66,.55); background: #f3faf0; }
.fm-tile.st-hungry { border-color: #c9962a; background: #fff6df; }
.fm-tile.st-dirty { border-color: #9a6a3a; background: #f7ece0; }
.fm-tile.st-sick { border-color: #b3382f; background: #fdeceb; }
.fm-tile.lock { opacity: .7; background: rgba(214,204,184,.6); min-height: 96px; }
.fm-tm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fm-ico { font-style: normal; font-size: 1.9rem; line-height: 1; position: absolute; right: 8px; top: 6px; }
.fm-tm b { font: 700 1.08rem Georgia, serif; display: block; width: 100%; }
.fm-pill { display: inline-block; font: 800 .72rem system-ui, sans-serif; padding: 2px 8px; border-radius: 10px; color: #fff; background: #2a6b42; white-space: nowrap; }
.fm-pill.hungry { background: #b8860b; } .fm-pill.dirty { background: #8a5a2b; } .fm-pill.sick { background: #b3382f; } .fm-pill.lock { background: #8b8170; }
.fm-why { margin: 0; font: 600 .78rem/1.25 system-ui, sans-serif; color: #3e2a1a; }
.fm-out { margin: auto 0 0; font: 500 .74rem/1.2 system-ui, sans-serif; color: #5a4030; } .fm-out em { color: #b3382f; font-style: normal; font-weight: 700; } .fm-out b { color: #2a1c12; }
.fm-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fm-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 76px; padding: 6px 4px; border-radius: 14px; border: 2px solid #5e3a1a; background: linear-gradient(180deg, #7bbd68, #4a8a3e); color: #fff; font-family: system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 #2c5a26; }
.fm-act.muck { background: linear-gradient(180deg, #b9854f, #8a5a2b); box-shadow: 0 3px 0 #5a3a1a; }
.fm-act.collect { background: linear-gradient(180deg, #e9c05a, #c0902a); box-shadow: 0 3px 0 #8a5f12; color: #2a1c12; }
.fm-act i { font-style: normal; font-size: 1.35rem; line-height: 1; } .fm-act b { font-size: .95rem; font-weight: 800; } .fm-act small { font-size: .68rem; font-weight: 600; opacity: .92; text-align: center; line-height: 1.1; }
.fm-act.off { background: rgba(255,255,255,.5); color: #6b5340; border-color: rgba(107,66,38,.4); box-shadow: none; }
.fm-act.need { animation: fm-glow 1.5s ease-in-out infinite; }
@keyframes fm-glow { 0%,100% { box-shadow: 0 3px 0 #2c5a26, 0 0 0 0 rgba(255,215,90,0); } 50% { box-shadow: 0 3px 0 #2c5a26, 0 0 0 4px rgba(255,215,90,.8); } }
.fm-msg { font: 700 .82rem/1.25 system-ui, sans-serif; color: #2a4a6b; background: #e7f0fb; border: 1.5px solid #8fb1d8; border-radius: 10px; padding: 6px 9px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-msg .btn { margin-left: auto; }
.fm-next, .fm-run { font: 600 .8rem/1.3 system-ui, sans-serif; color: #3e2a1a; background: rgba(255,255,255,.5); border-radius: 10px; padding: 6px 9px; }
.fm-run small { font-weight: 500; color: #7a6450; }
.fm-nl { font: 800 .64rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a5a2b; margin-right: 3px; }
.fm-hand, .fm-tonic { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,.62); border: 1.5px solid rgba(107,66,38,.35); }
.fm-hand.on { background: #eef8ee; border-color: rgba(42,107,66,.5); } .fm-tonic.on { background: #eef8ee; border-color: rgba(42,107,66,.5); }
.fm-hand > i, .fm-tonic > i { font-style: normal; font-size: 1.6rem; } .fm-hand > div, .fm-tonic > div { flex: 1; min-width: 0; }
.fm-hand b, .fm-tonic b { display: block; font: 700 .9rem system-ui, sans-serif; color: #2a1c12; } .fm-hand small, .fm-tonic small { display: block; font: 500 .72rem/1.2 system-ui, sans-serif; color: #6b5340; }
.fm-hand .btn, .fm-tonic .btn { min-height: 34px; white-space: nowrap; }
/* hire */
.fm-hint { margin: 0; font: 500 .8rem/1.3 system-ui, sans-serif; color: #4a3626; }
.fm-hires { display: flex; flex-direction: column; gap: 8px; }
.fm-hrow { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 14px; background: rgba(255,255,255,.7); border: 2px solid rgba(107,66,38,.35); }
.fm-hrow.cur { background: #eef8ee; border-color: #2a6b42; } .fm-hrow.low { opacity: .55; }
.fm-hl { font-style: normal; font: 800 .8rem system-ui, sans-serif; color: #fff; background: #6b4226; border-radius: 9px; padding: 6px 7px; }
.fm-hm { flex: 1; min-width: 0; } .fm-hm b { display: block; font: 700 1rem Georgia, serif; } .fm-hm small { display: block; font: 500 .75rem/1.25 system-ui, sans-serif; color: #5a4030; } .fm-hm em { color: #2a6b42; font-style: normal; font-weight: 700; }
.fm-hbtn { min-width: 112px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: .85rem !important; } .fm-hbtn small { font-size: .66rem; font-weight: 600; opacity: .9; }
/* craft cluster */
.fm-mks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-mk { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 2px; text-align: left; padding: 9px 10px; min-height: 76px; border-radius: 14px; background: rgba(255,255,255,.72); border: 2px solid rgba(107,66,38,.35); color: #2a1c12; cursor: pointer; font-family: system-ui, sans-serif; }
.fm-mk i { grid-row: 1 / 3; font-style: normal; font-size: 1.9rem; } .fm-mk b { font: 700 .98rem Georgia, serif; } .fm-mk em { font: 700 .72rem system-ui, sans-serif; color: #8a5a2b; font-style: normal; } .fm-mk small { grid-column: 2 / 4; font: 600 .74rem/1.2 system-ui, sans-serif; color: #5a4030; }
.fm-mk.ready { background: #f1faef; border-color: #2a6b42; } .fm-mk.ready small { color: #2a6b42; font-weight: 800; }
.fm-mk.work { background: #fff8e4; border-color: #c9962a; } .fm-mk.can { border-color: #c9962a; } .fm-mk.lock { opacity: .6; background: rgba(214,204,184,.6); }
.fm-all { min-height: 52px; font-size: 1rem !important; } .fm-all.idle { text-align: center; padding: 14px; font: 600 .85rem system-ui, sans-serif; color: #6b5340; background: rgba(255,255,255,.4); border-radius: 12px; }
.fm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fm-two .btn { min-height: 48px; font-size: .95rem; }
/* farm_fields_v1: tabs, Farming XP, the plot grid, the crop picker */
.fm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fm-tab { position: relative; min-height: 44px; border-radius: 12px; border: 2px solid rgba(107,66,38,.45); background: rgba(255,255,255,.55); color: #4a3626; font: 800 .95rem system-ui, sans-serif; cursor: pointer; }
.fm-tab.on { background: linear-gradient(180deg, #7bbd68, #4a8a3e); color: #fff; border-color: #2c5a26; box-shadow: 0 2px 0 #2c5a26; }
.fm-tab i { font-style: normal; position: absolute; top: -7px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; font: 800 .72rem/20px system-ui, sans-serif; color: #fff; border: 2px solid #fff3d6; }
.fm-tab i.ok { background: #2a8a3a; } .fm-tab i.bad { background: #c8372d; }
.fm-xp { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 9px; border-radius: 12px; background: rgba(255,255,255,.62); border: 1.5px solid rgba(107,66,38,.35); }
.fm-xp b { font: 800 .9rem system-ui, sans-serif; color: #2a1c12; grid-row: 1; } .fm-xpb { grid-row: 1; height: 10px; border-radius: 6px; background: rgba(107,66,38,.22); overflow: hidden; } .fm-xpb em { display: block; height: 100%; background: linear-gradient(90deg, #7bbd68, #3f8a38); }
.fm-xp small { grid-row: 2; grid-column: 2; font: 600 .68rem system-ui, sans-serif; color: #6b5340; } .fm-coin { grid-row: 1; font: 800 .82rem system-ui, sans-serif; color: #7a5a12; white-space: nowrap; }
.fm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fm-plot { position: relative; height: 76px; padding: 4px 2px; border-radius: 12px; border: 2px solid #8a5a2b; background: linear-gradient(180deg, #a87442, #7a4f2a); color: #fff3d6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-family: system-ui, sans-serif; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.fm-plot i { font-style: normal; font-size: 1.55rem; line-height: 1; } .fm-plot b { font: 800 .74rem system-ui, sans-serif; } .fm-plot small { font: 700 .62rem system-ui, sans-serif; opacity: .95; }
.fm-plot.empty { background: repeating-linear-gradient(180deg, #8a5a30 0 9px, #7a4c26 9px 11px); border-style: dashed; border-color: #d9b46a; } .fm-plot.empty i { font-size: 1.7rem; color: #f7e3b0; opacity: .9; }
.fm-plot.grow { background: linear-gradient(180deg, #7a5230, #5e3d22); } .fm-bar { width: 80%; height: 6px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; } .fm-bar em { display: block; height: 100%; background: #9be26a; }
.fm-plot.ready { background: linear-gradient(180deg, #8bd06e, #4f9a3f); border-color: #fff0a8; color: #fff; animation: fm-ready 1.3s ease-in-out infinite; } .fm-plot.ready b { font-size: .8rem; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
@keyframes fm-ready { 0%,100% { box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 0 rgba(255,236,120,0); } 50% { box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 4px rgba(255,236,120,.9); } }
.fm-plot.lock { background: rgba(214,204,184,.7); border-color: rgba(107,66,38,.35); border-style: solid; color: #5a4030; box-shadow: none; } .fm-plot.lock i { font-size: 1.1rem; opacity: .7; } .fm-plot.lock b { color: #7a5a12; font-size: .8rem; }
.fm-plot.lock.nextp { border-color: #c9962a; background: #f6ead0; } .fm-plot.lock.can { animation: fm-glow 1.5s ease-in-out infinite; border-color: #2a8a3a; }
.fm-acts.two { grid-template-columns: 1fr 1fr; }
.fm-act.plantall { background: linear-gradient(180deg, #7bbd68, #4a8a3e); } .fm-act.harvestall { background: linear-gradient(180deg, #e9c05a, #c0902a); box-shadow: 0 3px 0 #8a5f12; color: #2a1c12; }
.fm-act.off.plantall, .fm-act.off.harvestall { background: rgba(255,255,255,.5); color: #6b5340; box-shadow: none; }
.fm-unl { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: #fff8e4; border: 2px solid #c9962a; } .fm-unl > div { flex: 1; min-width: 0; } .fm-unl b { display: block; font: 800 .9rem system-ui, sans-serif; color: #2a1c12; } .fm-unl small { font: 600 .72rem system-ui, sans-serif; color: #6b5340; } .fm-unl .btn { min-height: 38px; }
.fm-pickhd { padding: 0 2px; } .fm-crops { display: flex; flex-direction: column; gap: 5px; }
.fm-crop { display: flex; align-items: center; gap: 9px; text-align: left; padding: 6px 9px; min-height: 54px; border-radius: 12px; border: 2px solid rgba(42,107,66,.55); background: #f3faf0; color: #2a1c12; cursor: pointer; font-family: system-ui, sans-serif; }
.fm-crop > i { font-style: normal; font-size: 1.7rem; } .fm-cm { flex: 1; min-width: 0; } .fm-cm b { display: block; font: 700 .98rem Georgia, serif; } .fm-cm small { display: block; font: 600 .7rem/1.2 system-ui, sans-serif; color: #5a4030; } .fm-cm small.fm-use { color: #2a6b42; font-weight: 700; }
.fm-cp { font: 800 .78rem system-ui, sans-serif; color: #fff; background: #3f8a38; border-radius: 9px; padding: 7px 10px; white-space: nowrap; }
.fm-crop.lock { opacity: .6; background: rgba(214,204,184,.6); border-color: rgba(107,66,38,.35); } .fm-crop.lock .fm-cp { background: #8b8170; } .fm-crop.poor .fm-cp { background: #b8860b; }
.fm-toggle { min-height: 42px; }
/* phone-size fit: nothing scrolls at 360x780 or 390x844 */
@media (max-height: 800px) { .fm-plot { height: 70px; } .fm-crop { min-height: 50px; padding: 4px 8px; } .fm-tab { min-height: 40px; } .fm-tile { min-height: 112px; padding: 6px 8px; } .fm-ico { font-size: 1.6rem; } .fm-act { min-height: 66px; } .fm-sheet { gap: 6px; } .fm-why { font-size: .74rem; } }

/* qa7: the open top menu sits inside the HUD layer, so the fixed Craft/Pantry/Farm buttons (z 40) were drawn over its right edge and clipped "Alliance Tower"; hide them while the menu is open */
body:has(#pageMenu:not([hidden])) .cc-town-farm, body:has(#pageMenu:not([hidden])) .cc-town-craft, body:has(#pageMenu:not([hidden])) .cc-town-pantry { visibility: hidden; }

/* qa8: Pantry tiles keep a fixed height and let the name wrap to 2 lines at a smaller size (the grid stays 5 across) */
.cr-pgrid .cr-pt { height: 76px; min-height: 76px; justify-content: flex-start; }
.cr-pgrid .cr-pt small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; text-overflow: clip; text-align: center; font-size: .62rem; line-height: 1.05; word-break: break-word; min-height: 2.1em; width: 100%; }
.fm-kb { color: #2f6b2f; font-weight: 700; white-space: nowrap; }

/* farm_art1: painted crops and plots (assets/farm/fields_v1). Emoji show only if an image fails to load. */
.fm-plot { background-color: #7a4f2a; background-size: cover; background-position: center; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.fm-plot.empty, .fm-plot.grow, .fm-plot.ready { background-image: url(assets/farm/fields_v1/fld_plot_empty_v1.png); background-image: image-set(url(assets/farm/fields_v1/fld_plot_empty_v1.webp) type("image/webp"), url(assets/farm/fields_v1/fld_plot_empty_v1.png) type("image/png")); }
.fm-plot.lock { background-color: #6f6a3a; background-image: url(assets/farm/fields_v1/fld_plot_locked_v1.png); background-image: image-set(url(assets/farm/fields_v1/fld_plot_locked_v1.webp) type("image/webp"), url(assets/farm/fields_v1/fld_plot_locked_v1.png) type("image/png")); border-style: solid; border-color: rgba(60,40,20,.55); color: #fff3d6; background-size: cover; background-position: center; }
.fm-plot.lock b, .fm-plot.lock small { position: relative; z-index: 1; background: rgba(30,18,8,.72); border-radius: 8px; padding: 1px 6px; text-shadow: none; }
.fm-plot.lock b { color: #ffe08a; margin-top: auto; font-size: .78rem; } .fm-plot.lock small { color: #f6e7c4; margin-bottom: 1px; font-size: .6rem; }
.fm-plot.lock.nextp { border-color: #e0a23a; background-image: url(assets/farm/fields_v1/fld_plot_locked_v1.png); background-image: image-set(url(assets/farm/fields_v1/fld_plot_locked_v1.webp) type("image/webp"), url(assets/farm/fields_v1/fld_plot_locked_v1.png) type("image/png")); background-size: cover; background-position: center; } .fm-plot.lock.can { border-color: #5ccf5f; }
.fm-plot.empty { border-style: solid; border-color: #e8c97c; }
.fm-plot.empty .fm-plus { background: rgba(30,18,8,.55); border-radius: 50%; width: 30px; height: 30px; line-height: 28px; text-align: center; font-size: 1.4rem; color: #fff3d6; opacity: 1; margin-top: 6px; }
.fm-plot.empty small { background: rgba(30,18,8,.6); border-radius: 8px; padding: 0 6px; margin-top: auto; margin-bottom: 2px; }
.fm-plot.grow, .fm-plot.ready { justify-content: flex-end; }
.fm-plot.grow { box-shadow: inset 0 0 0 1px rgba(255,235,180,.25); }
.fm-plot.ready { border-color: #fff0a8; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 0 rgba(255,236,120,0); }
.fm-plot.ready::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, rgba(255,240,150,.55), rgba(255,240,150,0) 68%); pointer-events: none; }
.fm-plot .fm-pic.spr, .fm-plot .fm-emo.spr { position: absolute; left: 50%; top: -1px; width: 58px; height: 58px; transform: translateX(-50%); display: block; pointer-events: none; }
.fm-plot .fm-emo.spr { font-size: 1.7rem; line-height: 52px; text-align: center; font-style: normal; }
.fm-plot .fm-pic.spr img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.fm-plot.ready .fm-pic.spr { animation: fm-bob 1.3s ease-in-out infinite; }
@keyframes fm-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-2px); } }
.fm-plot.grow b, .fm-plot.ready b { position: relative; z-index: 1; background: rgba(30,18,8,.68); border-radius: 8px; padding: 0 6px; text-shadow: none; }
.fm-plot.ready small { position: relative; z-index: 1; background: rgba(30,18,8,.68); border-radius: 8px; padding: 0 6px; margin-bottom: 1px; text-shadow: none; }
.fm-plot.grow .fm-bar { position: relative; z-index: 1; margin-bottom: 2px; width: 74%; }
.fm-crop > .fm-pic.pk, .fm-crop > .fm-emo.pk { width: 42px; height: 42px; flex: none; display: block; font-size: 1.7rem; line-height: 42px; text-align: center; font-style: normal; }
.fm-crop > .fm-pic.pk img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(60,35,10,.45)); }
.fm-crop.lock > .fm-pic.pk img { filter: grayscale(.85) brightness(.9); }
.fm-pic.mini, .fm-emo.mini { display: inline-block; width: 22px; height: 22px; vertical-align: -6px; font-style: normal; line-height: 22px; }
.fm-pic.mini img { width: 22px; height: 22px; object-fit: contain; }
@media (max-height: 800px) { .fm-plot .fm-pic.spr, .fm-plot .fm-emo.spr { width: 52px; height: 52px; } }

/* art2: farmhand portrait */
.fm-hand > i .fm-face, .fm-face { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid #b08a4a; box-shadow: 0 1px 4px rgba(60,35,15,.35); background: #e9dcc0; vertical-align: middle; }
.fm-face.sm { width: 26px; height: 26px; border-width: 1.5px; vertical-align: -.5em; margin-right: 2px; }
.fm-face.big { width: 64px; height: 64px; flex: none; }
.fm-hintrow { display: flex; align-items: center; gap: 10px; }

/* small1 (2026-11-14, small-phone QA 360/375/390): crafting recipe chips and the "Have .. ea." line wrap instead of running under the Make button
   (lives here because town.html loads farm.css; crafting.css is written in later, so these selectors are one class more specific) */
@media (max-width: 400px) {
  .cr-mk .cr-mkgo { min-width: 64px; }
  .cr-mk .cr-mkm small { white-space: normal; }
  .cr-mk .cr-mkm .uc-chip { white-space: normal; max-width: 100%; padding: 1px 6px; font-size: .74rem; line-height: 1.12; }
}
/* small1: Hire a hand / tonic buttons are 40px tall */
.fm-hand .btn, .fm-tonic .btn { min-height: 40px; }
.fm-cn { width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: 2px; }

/* ===== farm_juice1 (2026-11-16): harvest juice, calmer field, guided first visit, grouped picker ===== */
.fm-grid { touch-action: none; -webkit-user-select: none; user-select: none; }
.fm-grid.c3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fm-grid.c3 .fm-plot { height: 104px; border-radius: 14px; }
.fm-grid.c3 .fm-plot .fm-pic.spr, .fm-grid.c3 .fm-plot .fm-emo.spr { width: 78px; height: 78px; top: 0; }
.fm-grid.c3 .fm-plot b { font-size: .86rem; } .fm-grid.c3 .fm-plot small { font-size: .7rem; }
.fm-grid.c4.r3 .fm-plot { height: 88px; } .fm-grid.c4.r3 .fm-plot .fm-pic.spr { width: 64px; height: 64px; }
@media (max-height: 800px) { .fm-grid.c3 .fm-plot { height: 92px; } .fm-grid.c3 .fm-plot .fm-pic.spr, .fm-grid.c3 .fm-plot .fm-emo.spr { width: 68px; height: 68px; } .fm-grid.c4.r3 .fm-plot { height: 80px; } }
@media (max-height: 700px) { .fm-grid.c3 .fm-plot { height: 84px; } .fm-grid.c3 .fm-plot .fm-pic.spr, .fm-grid.c3 .fm-plot .fm-emo.spr { width: 60px; height: 60px; } .fm-grid.c4.r3 .fm-plot { height: 74px; } }
/* the Expand sign (the next plot) and the dim one after it */
.fm-plot.lock.nextp { justify-content: center; gap: 2px; }
.fm-plot.lock.nextp .fm-exp { font-style: normal; position: relative; z-index: 1; width: 30px; height: 30px; line-height: 28px; border-radius: 50%; background: rgba(30,18,8,.72); color: #ffe08a; font-size: 1.35rem; text-align: center; border: 2px solid #e0a23a; margin-top: auto; }
.fm-plot.lock.nextp b { margin-top: 2px; color: #fff3d6; font-size: .8rem; }
.fm-plot.lock.far { opacity: .55; filter: saturate(.6); }
.fm-plot.lock.far b { margin-top: auto; font-size: .7rem; color: #f6e7c4; } .fm-plot.lock.far b .ar-img, .fm-plot.lock.far b img { width: 12px; height: 12px; vertical-align: -1px; }
/* basket counter (where harvests fly) */
.fm-barn { grid-row: 2; grid-column: 3; justify-self: end; font: 800 .78rem system-ui, sans-serif; color: #2a6b42; background: rgba(255,255,255,.75); border: 1.5px solid rgba(42,107,66,.45); border-radius: 10px; padding: 0 7px; white-space: nowrap; }
.fm-barn.bump { animation: fm-barnbump .45s ease-out; }
@keyframes fm-barnbump { 0% { transform: scale(1); } 35% { transform: scale(1.35); background: #fff6c4; } 100% { transform: scale(1); } }
/* fx layer (above the sheet, never takes taps) */
#fmFx { position: fixed; inset: 0; z-index: 9600; pointer-events: none; overflow: hidden; }
#fmFx .fm-fly { position: fixed; width: 44px; height: 44px; transition: transform .58s cubic-bezier(.55,-0.25,.7,.4), opacity .58s ease-in; will-change: transform; }
#fmFx .fm-fly .fm-pic, #fmFx .fm-fly .fm-emo { display: block; width: 44px; height: 44px; font-size: 1.8rem; font-style: normal; line-height: 44px; text-align: center; }
#fmFx .fm-fly img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
#fmFx .fm-spark { position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: radial-gradient(circle, #fff9c8, #ffd04a 60%, rgba(255,200,60,0) 70%); animation: fm-spark .55s ease-out both; }
@keyframes fm-spark { 0% { transform: translate(0,0) scale(.4); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; } }
#fmFx .fm-dirt { position: fixed; width: 7px; height: 6px; margin: -3px 0 0 -3px; border-radius: 45%; background: #6b4423; box-shadow: 0 0 0 1px rgba(40,24,10,.35); animation: fm-dirt .55s cubic-bezier(.2,.7,.4,1) both; }
@keyframes fm-dirt { 0% { transform: translate(0,0) scale(.6); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
#fmFx .fm-puffring { position: fixed; width: 56px; height: 22px; margin: -11px 0 0 -28px; border-radius: 50%; background: radial-gradient(ellipse, rgba(170,130,90,.65), rgba(170,130,90,0) 70%); animation: fm-puff .6s ease-out both; }
@keyframes fm-puff { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
#fmFx .fm-gain { position: fixed; max-width: calc(100vw - 12px); overflow: hidden; text-overflow: ellipsis; transform: translateX(0); font: 800 .85rem system-ui, sans-serif; color: #fff; background: rgba(42,107,66,.92); border-radius: 10px; padding: 2px 8px; white-space: nowrap; animation: fm-gain 1.4s ease-out both; }
@keyframes fm-gain { 0% { opacity: 0; transform: translate(0, 6px); } 15% { opacity: 1; transform: translate(0, 0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(0, -14px); } }
/* a cut plot shrinks its crop away before the redraw; a fresh planting pops up */
.fm-plot.ready.cut { animation: none; } .fm-plot.ready.cut .fm-pic.spr { animation: fm-cut .28s ease-in forwards; }
@keyframes fm-cut { to { transform: translateX(-50%) translateY(-14px) scale(.3); opacity: 0; } }
.fm-plot.planted .fm-pic.spr { animation: fm-sprout .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes fm-sprout { 0% { transform: translateX(-50%) translateY(10px) scale(.2); } 100% { transform: translateX(-50%) translateY(0) scale(1); } }
/* the guided first visit */
.fm-tut { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; background: #fff6d6; border: 2px solid #e0a23a; box-shadow: 0 2px 0 rgba(107,66,38,.25); }
.fm-tut p { margin: 0; flex: 1; font: 600 .86rem/1.25 system-ui, sans-serif; color: #2a1c12; } .fm-tut p b { color: #2a6b42; }
.fm-tuti { font-style: normal; font-size: 1.5rem; }
.fm-tutx { border: 0; background: none; color: #7a5a3a; font: 700 .72rem system-ui, sans-serif; text-decoration: underline; padding: 6px 2px; cursor: pointer; }
.fm-plot.tut, .fm-crop.tut { box-shadow: 0 0 0 3px #ffe27a, 0 0 16px 4px rgba(255,214,90,.85); z-index: 2; }
.fm-plot.tutw { box-shadow: 0 0 0 2px rgba(255,226,122,.8); }
.fm-crop { position: relative; }
.fm-tuthand { position: absolute; z-index: 3; font-style: normal; font-size: 2rem; line-height: 1; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,230,120,.95)) drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.fm-tuthand.tp { right: 6px; bottom: -6px; animation: fm-tuthandtap 1.1s ease-in-out infinite; }
.fm-tuthand.sw { left: 8%; bottom: 2px; animation: fm-tuthandswipe 1.6s ease-in-out infinite; }
@keyframes fm-tuthandtap { 0%,100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-8px) scale(1.06); } 60% { transform: translateY(0) scale(.94); } }
@keyframes fm-tuthandswipe { 0% { transform: translateX(0) rotate(-10deg); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(140%) rotate(8deg); opacity: 1; } 100% { transform: translateX(160%) rotate(8deg); opacity: 0; } }
/* picker groups */
.fm-grp { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 0; } .fm-grp b { font: 800 .8rem system-ui, sans-serif; color: #2a1c12; } .fm-grp small { font: 600 .68rem system-ui, sans-serif; color: #7a5a3a; }
.fm-fast { color: #2a8a3a; } .fm-cm small s { opacity: .6; }
@media (max-height: 800px) { .fm-crops { gap: 4px; } .fm-crop { min-height: 46px; padding: 3px 8px; } .fm-crop > .fm-pic.pk { width: 36px; height: 36px; } .fm-grp { padding-top: 0; } }
@media (max-height: 700px) { .fm-crop { min-height: 42px; } .fm-cm small.fm-use { display: none; } .fm-cm b { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .fm-tuthand, #fmFx .fm-spark, #fmFx .fm-dirt, .fm-plot.planted .fm-pic.spr { animation: none !important; } #fmFx .fm-fly { transition: none; } }
/* farm_juice1: the picker fits 8 crops + 3 group lines on one phone screen (no scroll): one line each, ellipsis */
.fm-crop .fm-cm small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-crop .fm-cm b { font-size: .95rem; line-height: 1.15; }
.fm-crop { min-height: 50px; padding: 4px 9px; }
.fm-crop > .fm-pic.pk, .fm-crop > .fm-emo.pk { width: 38px; height: 38px; }
.fm-crop .fm-tuthand.tp { right: 70px; bottom: -8px; }
.fm-plot .fm-tuthand.tp { right: 4px; bottom: -6px; } .fm-plot .fm-tuthand { font-size: 1.75rem; }
.fm-plot .fm-tuthand.sw { left: 2%; bottom: -8px; }
@media (max-height: 800px) { .fm-crop { min-height: 44px; padding: 2px 8px; } .fm-crop .fm-cm small.fm-use { font-size: .64rem; } }
.fm-fast { font-style: normal; font-weight: 800; }
.fm-tuthand { filter: none; text-shadow: 0 2px 3px rgba(0,0,0,.45); width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background: radial-gradient(circle, rgba(255,244,160,.9), rgba(255,226,110,.35) 45%, rgba(255,226,110,0) 70%); }
.fm-plot .fm-tuthand.sw { left: 4px; bottom: 18px; animation: fm-tuthandswipe2 1.5s ease-in-out infinite; }
@keyframes fm-tuthandswipe2 { 0% { transform: translateX(0) rotate(-12deg); opacity: 0; } 15% { opacity: 1; } 75% { transform: translateX(62px) rotate(6deg); opacity: 1; } 100% { transform: translateX(70px) rotate(6deg); opacity: 0; } }
.fm-plot .fm-tuthand.tp { right: 6px; bottom: 16px; }
