/* Sunny Acres — visual v2 (cartoon farm, matched to mock) */
:root {
  --sky-top: #5fb8ec;
  --sky-bot: #bfe6fb;
  --grass: #7cc94a;
  --grass-hi: #9ad85e;
  --grass-dark: #4f9a2c;
  --dirt: #8a5a33;
  --dirt-dark: #5e3a1e;
  --path: #d9b47a;
  --wood: #8b5a2b;
  --cream: #fff6df;
  --cream-edge: #e7d3a5;
  --ink: #3b2a17;
  --muted: #7a6446;
  --gold: #ffc21a;
  --green-btn: #4fbf35;
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --font-body: "Fredoka", "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background: #3d7f22;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
button { font-family: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 22%, var(--grass) 22%);
}

/* ================= HUD ================= */
.hud {
  position: relative;
  z-index: 20;
  padding: calc(8px + var(--safe-t)) 10px 0;
  background: linear-gradient(180deg, #4aaee6 0%, rgba(95, 184, 236, 0) 100%);
}
.hud-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.pill {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 32px 0 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9ea, #f3e2b8);
  box-shadow: 0 3px 0 rgba(90, 60, 20, 0.35), inset 0 -3px 0 rgba(180, 140, 70, 0.25);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.3px;
  color: #4a3416;
  cursor: pointer;
  min-width: 0;
}
.coin-pill { justify-self: start; }
.gem-pill { justify-self: end; }
.pill-ico {
  position: absolute;
  left: -8px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
}
.pill-plus {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
}
.pill:active { transform: translateY(1px); }

.logo {
  position: relative;
  width: 132px;
  height: 62px;
  margin-top: -2px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25));
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo h1 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 0 #7a1510, 1px 0 0 #7a1510, -1px 0 0 #7a1510;
  white-space: nowrap;
}

.level-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  padding-bottom: 6px;
}
.level-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: min(78%, 320px);
  height: 30px;
  padding: 0 10px 0 26px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9ea, #f0dcae);
  box-shadow: 0 3px 0 rgba(90, 60, 20, 0.35);
}
.level-star {
  position: absolute;
  left: -14px;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
}
.xp-track {
  position: relative;
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: #e2cd9c;
  box-shadow: inset 0 2px 3px rgba(90, 60, 20, 0.35);
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe680 0%, #ffc21a 55%, #e89a00 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55);
  transition: width 0.35s ease;
}
.xp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #6b4405;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.xp-pct {
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: #6b4a1f;
  min-width: 32px;
  text-align: right;
}
.sun {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-55%);
  animation: spin 24s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 240, 160, 0.9));
}
@keyframes spin { to { transform: translateY(-55%) rotate(360deg); } }

/* ================= FARM SCENE ================= */
.farm-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}
.farm-stage > * {
  --cell: min(19cqw, 13.2cqh, 84px);
  --gap: calc(var(--cell) * 0.07);
  --split: calc(var(--cell) * 0.22);
  --grid-top: 31cqh;
  --grid-h: calc(4 * var(--cell) + 3 * var(--gap) + var(--split));
}
.scene { position: absolute; inset: 0; pointer-events: none; }
.sky {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 13%;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot));
}
.cloud { position: absolute; opacity: 0.95; }
.c1 { width: 120px; left: -20px; bottom: 10px; animation: drift 60s linear infinite; }
.c2 { width: 90px; left: 48%; bottom: 22px; animation: drift 80s linear infinite -30s; }
.c3 { width: 110px; right: -30px; bottom: 2px; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }

.horizon {
  position: absolute;
  left: -10%; right: -10%;
  top: 9%;
  height: 12%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #8fd45a, #6fbf42);
}
.field {
  position: absolute;
  left: 0; right: 0; top: 13%; bottom: 0;
  background:
    radial-gradient(ellipse 30% 8% at 20% 30%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 25% 7% at 80% 60%, rgba(255, 255, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 10% at 30% 90%, rgba(40, 100, 20, 0.18), transparent 70%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.04) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #84cf4d 0%, #74c442 50%, #64b538 100%);
}

.path { position: absolute; z-index: 1; border-radius: 40px; --pw: calc(var(--split) * 2.6); }
.path-v {
  left: calc(50% - var(--pw) / 2 + var(--split) * 0.1);
  width: var(--pw);
  top: 9cqh;
  bottom: -20px;
  background: linear-gradient(90deg, rgba(217,180,122,0) 0, var(--path) 14%, #e4c48d 50%, var(--path) 86%, rgba(217,180,122,0) 100%);
}
.path-h {
  left: -20px;
  right: -20px;
  top: calc(var(--grid-top) + 2 * var(--cell) + 1.5 * var(--gap) - var(--pw) / 2 + var(--split) * 0.6);
  height: var(--pw);
  background: linear-gradient(180deg, rgba(217,180,122,0) 0, var(--path) 16%, #e4c48d 50%, var(--path) 84%, rgba(217,180,122,0) 100%);
}
.deco { position: absolute; z-index: 2; filter: drop-shadow(0 3px 2px rgba(30, 70, 10, 0.25)); }
.tree.t1 { width: 26cqw; max-width: 130px; left: -7cqw; top: -2%; }
.tree.t2 { width: 18cqw; max-width: 90px; left: 16cqw; top: 0%; }
.tree.t3 { width: 20cqw; max-width: 100px; left: 55cqw; top: -5%; z-index: 1; }
.bush.b1 { width: 18cqw; max-width: 90px; left: 6cqw; top: 13%; }
.bush.b2 { width: 20cqw; max-width: 100px; left: 30cqw; top: 12%; }
.barn { width: 44cqw; max-width: 210px; right: -2cqw; top: 0%; z-index: 2; }
.barrel { width: 9cqw; max-width: 44px; right: 1cqw; top: 22%; z-index: 3; }
.crate { width: 11cqw; max-width: 54px; left: 59cqw; top: 19%; z-index: 3; }
.well { width: 22cqw; max-width: 110px; right: 3cqw; bottom: 1.5%; z-index: 5; }

.fence { position: absolute; z-index: 4; }
.fence-top-l, .fence-top-r, .fence-bot-l, .fence-bot-r {
  height: 28px;
  background: url("../assets/fence.svg") repeat-x;
  background-size: 34px 28px;
}
.fence-top-l { left: 0; width: 34%; top: 24%; }
.fence-top-r { right: 0; width: 22%; top: 30%; }
.fence-bot-l { left: 0; width: 40%; bottom: 3%; }
.fence-bot-r { right: 0; width: 44%; bottom: 3%; }
.fence-left, .fence-right {
  width: 22px;
  background: url("../assets/fence-v.svg") repeat-y;
  background-size: 22px 34px;
}
.fence-left { left: -2px; top: 26%; bottom: 3%; }
.fence-right { right: -2px; top: 32%; bottom: 3%; }

.daisies {
  position: absolute;
  inset: 13% 0 0 0;
  background-image:
    url("../assets/daisy.svg"), url("../assets/daisy.svg"), url("../assets/daisy.svg"),
    url("../assets/daisy.svg"), url("../assets/daisy.svg"), url("../assets/daisy.svg"),
    url("../assets/daisy.svg"), url("../assets/daisy.svg"), url("../assets/daisy.svg"),
    url("../assets/ui/flower.svg"), url("../assets/ui/flower.svg"), url("../assets/daisy.svg");
  background-repeat: no-repeat;
  background-size: 12px, 10px, 13px, 11px, 12px, 10px, 12px, 11px, 13px, 14px, 12px, 10px;
  background-position:
    8% 6%, 46% 4%, 92% 30%, 4% 48%, 96% 50%, 6% 80%, 92% 82%, 30% 97%, 70% 96%,
    96% 40%, 3% 64%, 52% 98%;
}

/* ================= GRID ================= */
.farm-grid {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: var(--grid-top);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, var(--cell));
  grid-auto-rows: var(--cell);
  gap: var(--gap);
  padding: 0 var(--split) var(--split) 0;
  isolation: isolate;
}
.plot:nth-child(4n + 3), .plot:nth-child(4n + 4) { translate: var(--split) 0; }
.plot:nth-child(n + 9) { translate: 0 var(--split); }
.plot:nth-child(11), .plot:nth-child(12), .plot:nth-child(15), .plot:nth-child(16) { translate: var(--split) var(--split); }

.plot {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
  overflow: visible;
  -webkit-appearance: none;
  appearance: none;
  /* tilled soil */
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 9%, rgba(50, 25, 8, 0.32) 9% 13%, rgba(255, 210, 160, 0.08) 13% 16%, rgba(0, 0, 0, 0) 16% 25%),
    radial-gradient(ellipse at 35% 25%, #a06a3d 0%, #7d4e28 60%, #643c1d 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 220, 170, 0.25),
    inset 0 -4px 0 rgba(40, 20, 5, 0.35),
    0 3px 0 #4a7f22,
    0 4px 6px rgba(30, 60, 10, 0.3);
  transition: transform 0.12s ease;
}
.plot:active { transform: scale(0.95); }

.plot .sprite {
  position: absolute;
  inset: -12% -6% 4% -6%;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: drop-shadow(0 2px 1px rgba(40, 20, 5, 0.35));
  transform-origin: 50% 90%;
}
.sprite.sprout { background-image: url("../assets/crops/sprout.svg"); inset: 0 4% 6% 4%; }
.sprite.wheat { background-image: url("../assets/crops/wheat.svg"); }
.sprite.tomato { background-image: url("../assets/crops/tomato.svg"); }
.sprite.carrot { background-image: url("../assets/crops/carrot.svg"); inset: -4% -4% 0 -4%; }
.sprite.corn { background-image: url("../assets/crops/corn.svg"); inset: -26% -4% 4% -4%; }
.sprite.young { transform: scale(0.78); filter: saturate(0.75) brightness(1.02) drop-shadow(0 2px 1px rgba(40, 20, 5, 0.3)); }

.plot.growing .plot-timer {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 1px 7px 0;
  border-radius: 999px;
  background: rgba(255, 249, 234, 0.95);
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(60, 30, 10, 0.35);
  font-family: var(--font-display);
  font-size: 11px;
  color: #6b4a1f;
  white-space: nowrap;
  z-index: 2;
}
.plot.growing .grow-ring {
  position: absolute;
  inset: 3px;
  border-radius: 10px;
  pointer-events: none;
  background: conic-gradient(rgba(255, 230, 120, 0.35) var(--p, 0%), transparent 0);
  mask: radial-gradient(closest-side, transparent 0 94%, #000 95%);
  opacity: 0.0;
}

.plot.ready {
  box-shadow:
    0 0 0 3px #ffe566,
    0 0 14px 4px rgba(255, 225, 90, 0.75),
    inset 0 -4px 0 rgba(40, 20, 5, 0.35),
    0 4px 6px rgba(30, 60, 10, 0.3);
}
.plot.ready .sprite { animation: sway 1.6s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.04); }
}
.plot.ready .plot-ready-tag {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: radial-gradient(circle at 35% 30%, #8ae86a, #3ea72a);
  box-shadow: 0 2px 0 rgba(30, 60, 10, 0.45);
  display: grid;
  place-items: center;
  z-index: 3;
  animation: pop 1.2s ease-in-out infinite;
}
.plot-ready-tag img { width: 18px; height: 18px; }
@keyframes pop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.plot.empty::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: rgba(255, 230, 190, 0.35);
}

/* untilled grass (locked) */
.plot.locked {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.15) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(40, 100, 20, 0.25) 0 2px, transparent 3px),
    linear-gradient(160deg, #9ad85e 0%, #7cc94a 55%, #66b63a 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(40, 100, 20, 0.35),
    0 3px 0 #4a8f25;
}
.plot.locked .lock-ico {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 38%;
  height: 38%;
  opacity: 0.85;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.25));
}

/* ================= Skip chip (mock IAP) ================= */
.skip-chip {
  position: absolute;
  z-index: 8;
  right: 6px;
  top: calc(var(--grid-top) - 88px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 8px 8px;
  border: 3px solid #fff;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff9ea, #f3e2b8);
  box-shadow: 0 4px 0 rgba(90, 60, 20, 0.35), 0 6px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.skip-flower { position: absolute; width: 22px; height: 22px; top: -11px; right: -9px; }
.skip-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 17px;
  color: #4a3416;
  padding: 0 4px;
}
.skip-top img { width: 22px; height: 22px; }
.skip-price {
  display: block;
  padding: 4px 12px 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7fe05a, #3ea72a);
  border: 2px solid #2f7d1e;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 0 #236314;
  text-align: center;
}

.hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--grid-top) + var(--grid-h) + 10px);
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(60, 40, 15, 0.55);
  color: #fff8e6;
  font-size: 12px;
  white-space: nowrap;
}

/* ================= NAV ================= */
.bottom-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 10px calc(10px + var(--safe-b));
  padding: 6px 4px 4px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaea 0%, #f6e8c6 100%);
  box-shadow: 0 4px 0 #c9b07a, 0 8px 18px rgba(30, 50, 10, 0.35);
}
.nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  color: #3b2a17;
  letter-spacing: 0.2px;
}
.nav-btn + .nav-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: #e4d0a4;
  border-radius: 2px;
}
.nav-ico {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 3px 1px rgba(80, 50, 10, 0.25));
  transition: transform 0.12s ease;
}
.nav-btn:active .nav-ico { transform: scale(0.9) translateY(2px); }
.nav-badge {
  position: absolute;
  top: 0;
  right: 18%;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5463b;
  border: 2px solid #fff;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-family: var(--font-display);
  font-weight: 400;
}

/* ================= SHEETS ================= */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(30, 40, 10, 0.45); }
.sheet-card {
  position: relative;
  width: min(100%, 460px);
  margin: 0 8px calc(10px + var(--safe-b));
  padding: 34px 16px 14px;
  border: 4px solid #fff;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffaea, #f4e4bd);
  box-shadow: 0 6px 0 #c9b07a, 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.22s ease-out;
}
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.sheet-ribbon {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  padding: 8px 28px 9px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: linear-gradient(180deg, #ec4d40, #b3201a);
  box-shadow: 0 4px 0 #6e1410;
  white-space: nowrap;
}
.sheet-ribbon h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 0 #7a1510;
}
.sheet-sub { text-align: center; margin: 2px 0 12px; color: var(--muted); font-size: 14px; }

.crop-list, .shop-list { display: grid; gap: 8px; margin-bottom: 10px; }
.crop-item, .shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 3px 0 var(--cream-edge);
  cursor: pointer;
  text-align: left;
}
.crop-item:active, .shop-item:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cream-edge); }
.crop-item.disabled { opacity: 0.5; filter: grayscale(0.4); }
.crop-art, .shop-art {
  position: relative;
  flex: 0 0 56px;
  height: 56px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 35% 25%, #a06a3d 0%, #7d4e28 60%, #643c1d 100%);
  box-shadow: inset 0 -3px 0 rgba(40, 20, 5, 0.35);
  overflow: visible;
}
.crop-art .sprite { position: absolute; inset: -14% -4% 4% -4%; background-repeat: no-repeat; background-position: center bottom; background-size: contain; }
.shop-art { background: radial-gradient(circle at 40% 30%, #fff6cf, #ffe08a); display: grid; place-items: center; }
.shop-art img { width: 40px; height: 40px; }
.shop-art.stack img { position: absolute; width: 32px; height: 32px; }
.shop-art.stack img:nth-child(1) { left: 4px; top: 16px; }
.shop-art.stack img:nth-child(2) { right: 4px; top: 16px; }
.shop-art.stack img:nth-child(3) { left: 12px; top: 4px; }
.crop-info, .shop-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crop-info strong, .shop-info strong { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: #3b2a17; }
.crop-info small, .shop-info small { color: var(--muted); font-size: 12.5px; }
.crop-cost, .shop-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1b8, #ffd25a);
  border: 2px solid #d99a10;
  font-family: var(--font-display);
  font-size: 15px;
  color: #6b4405;
  white-space: nowrap;
}
.shop-price.green { background: linear-gradient(180deg, #7fe05a, #3ea72a); border-color: #2f7d1e; color: #fff; text-shadow: 0 1px 0 #236314; }
.btn-ico { width: 18px; height: 18px; vertical-align: -3px; }

.timer-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 44px;
  color: #4a3416;
  margin: 4px 0 14px;
}
.timer-big img { width: 40px; height: 40px; }

.btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px 12px;
  border: 3px solid #fff;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 19px;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, #7fe05a, #3ea72a);
  color: #fff;
  text-shadow: 0 2px 0 #236314;
  box-shadow: 0 4px 0 #2a6e18;
}
.btn.primary:disabled { filter: grayscale(0.7); opacity: 0.6; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); font-size: 16px; padding: 8px; }
.btn:active:not(:disabled) { transform: translateY(2px); }

.expand-preview { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 4px 0 10px; }
.expand-preview .tile {
  width: 70px; height: 70px; border-radius: 14px; position: relative;
  box-shadow: inset 0 -3px 0 rgba(40, 20, 5, 0.3), 0 3px 0 #4a8f25;
}
.expand-preview .tile.grass { background: linear-gradient(160deg, #9ad85e, #66b63a); }
.expand-preview .tile.grass img { position: absolute; inset: 0; margin: auto; width: 30px; }
.expand-preview .tile.dirt { background: repeating-linear-gradient(180deg, transparent 0 9%, rgba(50,25,8,.32) 9% 13%, transparent 13% 25%), radial-gradient(ellipse at 35% 25%, #a06a3d, #643c1d); }
.expand-preview .arrow { font-family: var(--font-display); font-size: 30px; color: #3ea72a; }
.expand-preview .trophy { font-size: 52px; }

/* ================= Toast / floaters ================= */
.toast {
  position: fixed;
  left: 50%;
  top: calc(130px + var(--safe-t));
  transform: translateX(-50%);
  z-index: 60;
  padding: 9px 18px 8px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaea, #f4e4bd);
  box-shadow: 0 4px 0 rgba(90, 60, 20, 0.35);
  font-family: var(--font-display);
  font-size: 15px;
  color: #3b2a17;
  white-space: nowrap;
  animation: rise 0.2s ease-out;
}
.toast.good { background: linear-gradient(180deg, #8ae86a, #3ea72a); color: #fff; text-shadow: 0 1px 0 #236314; }
.toast.money { background: linear-gradient(180deg, #e7a6ff, #8a2be2); color: #fff; text-shadow: 0 1px 0 #4a0f8a; }

.float-coin {
  position: fixed;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 0 #8a5a00, 0 0 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: floatUp 0.95s ease-out forwards;
}
.float-coin img { width: 22px; height: 22px; }
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 1; transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(-60px) scale(1); opacity: 0; }
}

@media (max-height: 640px) {
  .nav-ico { width: 44px; height: 44px; }
  .nav-btn { font-size: 15px; }
  .logo { width: 116px; height: 54px; }
  .logo h1 { font-size: 16px; }
}

/* ready sparkles */
.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  background: radial-gradient(circle, #fff 0 20%, transparent 22%),
    conic-gradient(from 45deg, transparent 0 10%, #fff7b0 10% 15%, transparent 15% 35%, #fff7b0 35% 40%, transparent 40% 60%, #fff7b0 60% 65%, transparent 65% 85%, #fff7b0 85% 90%, transparent 90%);
  border-radius: 50%;
  animation: twinkle 1.4s ease-in-out infinite;
}
.sparkle.s1 { top: -4px; right: 4px; }
.sparkle.s2 { bottom: 8px; left: 2px; animation-delay: -0.7s; width: 10px; height: 10px; }
@keyframes twinkle { 0%, 100% { transform: scale(0.4) rotate(0); opacity: 0.2; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

/* clouds behind HUD */
.hud::before {
  content: "";
  position: absolute;
  inset: 0 0 -10px 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("../assets/cloud.svg") no-repeat 4% 72% / 110px auto,
    url("../assets/cloud.svg") no-repeat 62% 100% / 90px auto,
    url("../assets/cloud.svg") no-repeat 108% 40% / 120px auto;
  opacity: 0.9;
}
