:root {
  --sky: #cdeefd;
  --grass: #8fd16a;
  --grass-d: #6ab04c;
  --paper: #fff8e7;
  --paper-2: #f6e8c8;
  --wood: #a8703c;
  --wood-d: #6e4421;
  --ink: #4a2f17;
  --soft: #7d5b3a;
  --muted: #a88a66;
  --green: #5cb83f;
  --green-d: #3c8a25;
  --yellow: #ffcb3d;
  --yellow-d: #d99a12;
  --red: #e2564a;
  --hd-bg: #fff8e7; --hd-text: #4a2f17; --hd-muted: #a88a66; --hd-field: #f6e8c8; --hd-accent: #5cb83f; --hd-accent-ink: #fff; --hd-shadow: rgba(60, 138, 37, 0.35);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--sky); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font: 15px/1.45 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(#cdeefd 0, #e6f7ff 180px, #b8e48f 180px, #9fd877 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* pixel sprites */
.gi { --s: 32px; display: inline-block; flex: none; width: var(--s); height: var(--s); background: url("img/goods.png?v=7c240d14") no-repeat; background-size: calc(var(--s) * 38) var(--s); background-position: calc(var(--i) * var(--s) * -1) 0; image-rendering: pixelated; vertical-align: middle; }
.gi.sm { --s: 24px; }
.gi.big { --s: 64px; }
.pt { display: block; flex: none; width: 64px; height: 64px; background: url("img/portraits.png?v=7c240d14") no-repeat; background-size: 704px 64px; background-position: calc(var(--i) * -64px) 0; image-rendering: pixelated; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: max(10px, env(safe-area-inset-top)) 16px 10px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: drop-shadow(0 3px 0 rgba(110, 68, 33, 0.35)); }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--wood-d); text-shadow: 0 2px 0 #fff; }
.brand small { font-size: 12.5px; font-weight: 600; color: var(--soft); }
.stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill, .lvl { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--paper); border: 2.5px solid var(--wood); box-shadow: 0 3px 0 var(--wood-d); font-weight: 800; font-variant-numeric: tabular-nums; }
.pill .gi { --s: 28px; }
.lvl { padding-right: 10px; gap: 6px; }
.star { position: relative; display: grid; place-items: center; }
.star .gi { --s: 34px; margin: -4px 0; }
.star b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--wood-d); padding-top: 3px; }
.xpbar { position: relative; width: 82px; height: 16px; border-radius: 999px; background: var(--paper-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }
.xpbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(#8ee36a, var(--green)); border-radius: 999px; transition: width 0.5s; }
.xpbar small { position: relative; display: block; text-align: center; font-size: 10.5px; line-height: 16px; font-weight: 800; color: var(--ink); }
.acct { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 2.5px solid var(--wood); background: var(--paper); box-shadow: 0 3px 0 var(--wood-d); }
.avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-weight: 800; color: var(--wood-d); }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; max-width: 1240px; margin: 0 auto; padding: 4px 16px 20px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.field-frame { position: relative; border-radius: 22px; padding: 8px; background: linear-gradient(var(--wood), #8d5a2c); box-shadow: 0 6px 0 var(--wood-d), 0 18px 34px rgba(60, 40, 10, 0.25); }
.field-frame::before { content: ""; position: absolute; inset: 3px; border-radius: 19px; border: 2px dashed rgba(255, 235, 200, 0.35); pointer-events: none; }
#field { display: block; width: 100%; height: auto; border-radius: 15px; image-rendering: pixelated; touch-action: manipulation; cursor: pointer; background: var(--grass); }
.tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 10px)); padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 2px solid var(--wood); box-shadow: 0 3px 0 var(--wood-d); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.tip small { display: block; color: var(--muted); font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hint { margin: 10px 4px 0; font-size: 13px; color: var(--soft); font-weight: 600; text-align: center; }

/* chunky game buttons */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 6px 12px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 4px 0 var(--wood-d); border: 2.5px solid var(--wood); transition: transform 0.08s, box-shadow 0.08s; text-align: left; }
.gbtn span { display: grid; line-height: 1.15; }
.gbtn small { font-size: 11.5px; font-weight: 700; opacity: 0.8; }
.gbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 1px 0 var(--wood-d); }
.gbtn.green { background: linear-gradient(#7ad35a, var(--green)); color: #fff; border-color: var(--green-d); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 4px 0 #2b6619; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.gbtn.yellow { background: linear-gradient(#ffdb6b, var(--yellow)); border-color: var(--yellow-d); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.1), 0 4px 0 #a8700a; }
.gbtn:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; }
.gbtn.big { min-height: 58px; padding: 0 26px; font-size: 16px; }
@media (max-width: 520px) { .gbtn { flex-direction: column; text-align: center; gap: 2px; min-height: 70px; } .gbtn span { justify-items: center; } }
.sbtn { border: 2px solid var(--wood); background: var(--paper); border-radius: 10px; padding: 5px 10px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 var(--wood-d); }
.sbtn.green { background: var(--green); color: #fff; border-color: var(--green-d); box-shadow: 0 2px 0 #2b6619; }
.sbtn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.sbtn:disabled { opacity: 0.5; cursor: default; }

/* side board */
.board { background: var(--paper); border-radius: 22px; border: 3px solid var(--wood); box-shadow: 0 6px 0 var(--wood-d), 0 18px 34px rgba(60, 40, 10, 0.2); overflow: hidden; }
@media (min-width: 901px) { .board { position: sticky; top: 78px; max-height: calc(100dvh - 96px); display: flex; flex-direction: column; } .pane { overflow-y: auto; } }
.ptabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: linear-gradient(var(--wood), #93602f); overflow-x: auto; scrollbar-width: none; }
.ptabs button { flex: 1 0 auto; border: 0; border-radius: 12px; padding: 9px 7px; background: transparent; color: #fde9c8; font-weight: 800; font-size: 13px; white-space: nowrap; }
.ptabs button.on { background: var(--paper); color: var(--wood-d); box-shadow: 0 2px 0 var(--wood-d); }
.pane { padding: 14px; }
.empty { color: var(--muted); text-align: center; padding: 18px 8px; font-weight: 600; }

/* orders */
.orders { display: grid; gap: 10px; }
.order { position: relative; padding: 12px; border-radius: 16px; background: #fff; border: 2px solid var(--paper-2); box-shadow: 0 3px 0 var(--paper-2); }
.order.can { border-color: #a5dc8c; box-shadow: 0 3px 0 #a5dc8c; }
.order header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.order header b { font-size: 14.5px; }
.reward { display: flex; align-items: center; gap: 3px; font-weight: 800; font-variant-numeric: tabular-nums; }
.reward .gi { --s: 22px; }
.reward small { margin-left: 6px; color: var(--green-d); font-weight: 800; }
.needs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.need { display: flex; align-items: center; gap: 2px; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--paper); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.need.ok { background: #e3f6d8; color: var(--green-d); }
.need.no { color: var(--red); }
.order footer { display: flex; gap: 8px; justify-content: flex-end; }
.order.wait { text-align: center; color: var(--muted); font-weight: 700; background: var(--paper); border-style: dashed; box-shadow: none; }

/* inventory */
.feedbuy { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 16px; background: var(--paper-2); }
.feedbuy > span { display: flex; align-items: center; gap: 6px; }
.feedbuy small { color: var(--soft); font-weight: 600; font-size: 12px; }
.feedbuy div { display: flex; gap: 6px; }
.inv { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--paper-2); }
.item b { display: block; font-size: 14px; }
.item small { color: var(--muted); font-weight: 600; font-size: 12px; }
.item .q { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 4px; }
.item .btns { display: flex; align-items: center; gap: 6px; }

/* machines */
.machines { display: grid; gap: 12px; }
.machine { padding: 12px; border-radius: 16px; background: #fff; border: 2px solid var(--paper-2); }
.machine h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.machine.locked { opacity: 0.7; background: var(--paper); }
.recipe { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--paper-2); }
.recipe .ing { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.recipe .ing span { display: inline-flex; align-items: center; }
.recipe .ing span.no { color: var(--red); }
.recipe .ing .gi { --s: 20px; }
.job { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bar { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd860, var(--yellow-d)); border-radius: 999px; }
.lock { font-size: 12px; font-weight: 800; color: var(--muted); }

/* shop */
.land { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 16px; background: #e3f6d8; border: 2px solid #a5dc8c; }
.land b { display: block; }
.land small { color: var(--green-d); font-weight: 700; }
.shop { display: grid; gap: 10px; }
.animal { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid var(--paper-2); }
.animal.locked { opacity: 0.6; }
.animal .pt { background-color: #eaf7df; border-radius: 12px; }
.animal b { display: block; font-size: 15px; }
.animal small { display: flex; align-items: center; gap: 3px; color: var(--soft); font-weight: 600; font-size: 12px; }
.animal small .gi { --s: 18px; }
.animal .side { display: grid; gap: 6px; justify-items: end; }
.price { display: flex; align-items: center; gap: 2px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price .gi { --s: 20px; }

/* ranking */
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; background: #fff; font-weight: 700; }
.top-list li.me { background: #e3f6d8; }
.top-list .rk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 800; font-size: 13px; }
.top-list li:nth-child(1) .rk { background: #ffd54a; } .top-list li:nth-child(2) .rk { background: #dfe6ee; } .top-list li:nth-child(3) .rk { background: #f0b27a; }
.top-list small { color: var(--muted); font-weight: 600; font-size: 12px; display: block; }

/* welcome, modal, toast */
.welcome { max-width: 520px; margin: 30px auto; padding: 30px 24px; text-align: center; background: var(--paper); border-radius: 26px; border: 3px solid var(--wood); box-shadow: 0 6px 0 var(--wood-d); display: grid; justify-items: center; gap: 10px; }
.welcome h1 { margin: 4px 0 0; color: var(--wood-d); }
.welcome p { margin: 0 0 6px; color: var(--soft); }
.welcome small { color: var(--muted); }
.modal:not([hidden]) { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(60, 40, 10, 0.45); }
.paper { width: min(360px, 100%); padding: 22px; border-radius: 24px; background: var(--paper); border: 3px solid var(--wood); box-shadow: 0 6px 0 var(--wood-d); text-align: center; animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
.paper h2 { margin: 6px 0 10px; color: var(--wood-d); font-size: 26px; }
.paper ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-weight: 700; color: var(--soft); }
.paper .gbtn { width: 100%; }
.burst { width: 100px; height: 100px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(#fff7c2, #ffe17a 60%, transparent 62%); animation: spin 6s linear infinite; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: 0.25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--red); }
.fine { max-width: 1240px; margin: 0 auto; padding: 4px 16px 28px; text-align: center; font-size: 12px; color: #3f6b2a; }
body.out .stats .pill, body.out .stats .lvl { display: none; }

/* ---------- crop field ---------- */
.field-panel { margin-top: 18px; padding: 14px; border-radius: 22px; background: var(--paper); border: 3px solid var(--wood); box-shadow: 0 6px 0 var(--wood-d); }
.field-panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.field-panel h2 { margin: 0; font-size: 18px; color: var(--wood-d); }
.field-panel .sbtn .gi { --s: 18px; }
.seeds { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 12px; }
.seed { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 14px; border: 2px solid var(--paper-2); background: #fff; font-weight: 800; font-size: 13px; text-align: left; }
.seed span { display: grid; line-height: 1.2; }
.seed small { color: var(--muted); font-weight: 700; font-size: 11px; }
.seed.on { border-color: var(--green); background: #e9f8df; box-shadow: 0 2px 0 var(--green-d); }
.seed.locked { opacity: 0.5; }
.plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.plot { position: relative; aspect-ratio: 1; padding: 0; border: 3px solid #6e4421; border-radius: 12px; background: url("img/soil.png?v=7c240d14") 0 0 / 32px 32px; image-rendering: pixelated; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 #4d2f15; overflow: hidden; }
.plot.empty .plus { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 26px; font-weight: 800; color: rgba(255, 240, 210, 0.55); }
.plot.empty:hover .plus { color: #fff; }
.plot .crop { position: absolute; left: 50%; top: 44%; width: 48px; height: 48px; transform: translate(-50%, -50%); background: url("img/crops.png?v=7c240d14") no-repeat; background-size: 144px 192px; background-position: calc(var(--c) * -48px) calc(var(--r) * -48px); image-rendering: pixelated; }
.plot.ripe { border-color: #d99a12; box-shadow: 0 0 0 3px #ffe37a, 0 3px 0 #a8700a; }
.plot.ripe .crop { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -58%); } }
.plot small { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-size: 10.5px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.plot .pbar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.plot .pbar i { display: block; height: 100%; background: #8ee36a; }
.plot.pop { animation: pop 0.3s; }
.field-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 520px) { .field-actions .gbtn { flex-direction: row; min-height: 54px; } .field-actions .gbtn span { justify-items: start; } }

/* ---------- visiting ---------- */
.visit-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 8px 8px 14px; border-radius: 15px; background: var(--paper); }
.visit-bar > span { flex: 1; display: grid; min-width: 0; }
.visit-bar b { font-size: 15px; color: var(--wood-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-bar small { color: var(--soft); font-weight: 600; font-size: 12px; }
.visit-bar .gbtn { flex-direction: row; min-height: 44px; padding: 4px 12px; }
.visit-bar .gbtn .gi { --s: 26px; }
@media (max-width: 520px) { .visit-bar { flex-wrap: wrap; padding: 8px; } .visit-bar > span { flex-basis: 100%; padding: 0 4px; } .visit-bar #help { flex: 1; } }
body.visiting .actions, body.visiting .field-col > .hint, body.visiting .field-panel { display: none; }
.visit-form { display: flex; gap: 8px; margin-bottom: 4px; }
.visit-form input { flex: 1; min-width: 0; font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; color: var(--ink); outline: none; }
.visit-form input:focus { border-color: var(--green); }
#p-top .hint { text-align: left; margin: 4px 2px 10px; }

/* ---------- round 3: sound toggle, animal card, achievements, weather ---------- */
.field-frame > .mute { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid var(--wood); background: rgba(255, 248, 231, 0.9); box-shadow: 0 2px 0 var(--wood-d); font-size: 17px; display: grid; place-items: center; }
.pet-card { position: relative; display: grid; justify-items: center; gap: 8px; }
.pet-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 22px; line-height: 1; color: var(--wood-d); }
.pt.big { width: 128px; height: 128px; background-size: 1408px 128px; background-position: calc(var(--i) * -128px) 0; background-color: #eaf7df; border-radius: 22px; }
.pet-kind { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; }
.pet-form { display: flex; gap: 8px; width: 100%; }
.pet-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; font-weight: 800; text-align: center; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; color: var(--ink); outline: none; }
.pet-form input:focus { border-color: var(--green); }
.pet-love { display: flex; align-items: center; gap: 2px; }
.pet-love .gi.off { filter: grayscale(1); opacity: 0.35; }
.pet-love small { margin-left: 6px; color: var(--muted); font-weight: 800; }
.pet-bonus, .pet-status { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--soft); }
.pet-status { color: var(--green-d); }
.achs { display: grid; gap: 8px; }
.ach { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 2px solid var(--paper-2); }
.ach > .gi { filter: grayscale(1); opacity: 0.4; }
.ach.ready { border-color: #ffd54a; box-shadow: 0 3px 0 #e8b923; }
.ach.ready > .gi, .ach.done > .gi { filter: none; opacity: 1; }
.ach.done { background: var(--paper); }
.ach b { display: block; font-size: 14px; }
.ach small { color: var(--muted); font-weight: 600; font-size: 12px; }
.weather { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #e3f0ff; color: #2c5d8f; font-weight: 700; font-size: 13px; }

/* ---------- orchard ---------- */
.plots.trees { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.plot.grass { border-color: #4d7d2c; background: radial-gradient(circle at 30% 25%, #a5d86f 0 6%, transparent 7%), radial-gradient(circle at 70% 70%, #8fc95c 0 5%, transparent 6%), #7cbf4f; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.12), 0 3px 0 #3d6322; }
.plot .tree { position: absolute; left: 50%; top: 42%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: url("img/trees.png?v=7c240d14") no-repeat; background-size: 192px 192px; background-position: calc(var(--c) * -64px) calc(var(--r) * -64px); image-rendering: pixelated; }
.plot.ripe .tree { animation: bob 1.2s ease-in-out infinite; }
.plot .cut { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 13px; line-height: 22px; font-weight: 800; }
.plot.lockspot { border-style: dashed; border-color: #b08b5c; background: var(--paper-2); box-shadow: none; color: var(--muted); font-size: 12px; font-weight: 800; }
body.visiting .orchard { display: none; }
/* ---------- truck ---------- */
.truck-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 2px solid var(--paper-2); margin-bottom: 10px; }
.truck-head .gi { --s: 56px; }
.truck-head span { display: grid; gap: 2px; flex: 1; }
.truck-head small { color: var(--muted); font-weight: 700; font-size: 12px; }
.truck-head .reward { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; }
.truck-head .reward .gi { --s: 22px; }
.crates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.crate { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 14px; border: 2px solid #c79a62; background: #fbf1df; font-weight: 800; font-size: 12px; text-align: center; }
.crate .gi { --s: 36px; }
.crate small { color: var(--muted); font-size: 11px; }
.crate.can { border-color: var(--green); background: #e9f8df; }
.crate.ok { border-color: #a8700a; background: #ffefb8; }
.crate.ok::after { content: "✓"; position: absolute; top: 4px; right: 8px; color: #6a8f1f; font-size: 16px; }
.crate .sbtn { margin-top: 4px; padding: 5px 10px; font-size: 12px; }
.truck-go { display: flex; gap: 8px; margin-top: 12px; }
.truck-go .gbtn { flex: 1; }
.truck-away { padding: 26px 12px; text-align: center; color: var(--muted); font-weight: 700; }
.truck-away .gi { --s: 64px; display: block; margin: 0 auto 8px; animation: drive 1.6s ease-in-out infinite; }
@keyframes drive { 50% { transform: translateX(8px); } }
/* ---------- hot goods ---------- */
.hotline { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: #fff1e0; border: 2px dashed #f0a050; font-size: 13px; font-weight: 700; color: #8a4a12; }
.item.hot { border-color: #f0a050; background: #fff7ec; }
.hot-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 8px; background: #e8642c; color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.orchard .field-actions { grid-template-columns: 1fr; }
