/* Veggie Garden: seed picker and Market Stall panels (js/gardenui.js). The overlay itself is .reward-overlay. */

.gd-overlay .gd-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: linear-gradient(180deg, #4f8a3a 0, #3a6b2b 84px, #2b1d14 84px, #23170f 100%);
  box-shadow: 0 8px 0 var(--ink), 0 24px 60px rgba(0, 0, 0, .5);
  color: #fff3dc;
  font-family: var(--font-body);
  overflow: hidden;
  animation: popIn .3s cubic-bezier(.2, 1.3, .4, 1);
}
.gd-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 4px; }
.gd-panel header b { font: 400 1.6rem var(--font-display); color: #fff; text-shadow: 0 3px 0 var(--ink); letter-spacing: .02em; }
.gd-x { width: 38px; height: 38px; border: 3px solid var(--ink); border-radius: 12px; background: #2b1d14; color: #fff; font: 900 1rem var(--font-body); box-shadow: 0 3px 0 var(--ink); cursor: var(--cursor-pointer, pointer); }
.gd-x:hover { filter: brightness(1.2); }
.gd-sub { margin: 0; padding: 0 16px 14px; color: #e4f5d6; font-weight: 800; font-size: .86rem; line-height: 1.4; }
.gd-hint { margin: 0; padding: 4px 18px 16px; color: #e8d3b3; font-weight: 700; font-size: .82rem; line-height: 1.45; text-align: center; }
.gd-hint b { color: #ffd23f; }
.gd-empty { margin: 18px auto; max-width: 380px; text-align: center; color: #e8d3b3; font-weight: 800; line-height: 1.5; }
.gd-coin { display: inline-block; width: 1em; height: 1em; margin-right: 2px; vertical-align: -.14em; background: url("../assets/images/currency/Coin.png") center / contain no-repeat; }

/* seed picker */
.gd-seeds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 12px; }
.gd-seed {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 9px; border: 3px solid var(--ink); border-radius: 16px;
  background: linear-gradient(180deg, #7a5133, #5a3a22); color: #fff; box-shadow: 0 4px 0 var(--ink); cursor: var(--cursor-pointer, pointer);
  transition: transform .12s ease, filter .12s ease;
}
.gd-seed:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.1); }
.gd-seed:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.gd-seed canvas { width: 64px; height: 64px; }
.gd-seed b { font: 400 1.05rem var(--font-display); }
.gd-seed small { font-weight: 900; font-size: .74rem; color: #ffe9a8; }
.gd-seed i { font-style: normal; font-weight: 800; font-size: .68rem; color: #d9c4a3; }
.gd-seed.rarity-epic { background: linear-gradient(180deg, #8a4d7a, #5e2f55); }
.gd-seed.rarity-rare { background: linear-gradient(180deg, #4f6aa0, #344a78); }

/* market */
.gd-rows { display: grid; gap: 8px; padding: 14px 16px; overflow-y: auto; min-height: 0; }
.gd-row { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border: 3px solid var(--ink); border-radius: 14px; background: #3d2a1c; box-shadow: 0 3px 0 var(--ink); }
.gd-row.seed { background: #33251a; }
.gd-row.none { opacity: .5; }
.gd-row canvas { width: 56px; height: 56px; }
.gd-row b { display: block; font: 400 1.1rem var(--font-display); color: #fff; }
.gd-row small { font-weight: 800; font-size: .78rem; color: #e8d3b3; }
.gd-btn { padding: 7px 12px; font-size: .85rem; white-space: nowrap; }
.gd-btn.big { width: 100%; padding: 12px; font-size: 1.05rem; }
.gd-market footer { padding: 4px 16px 16px; }

@media (max-width: 620px) {
  .gd-seeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-row { grid-template-columns: 44px 1fr; }
  .gd-row canvas { width: 44px; height: 44px; }
  .gd-row .gd-btn { grid-column: span 1; }
}
