:root {
  --ink: #14351f;
  --paper: #f8fff5;
  --mint: #8ef4b5;
  --leaf: #3ddc84;
  --gold: #f7c948;
  --soil: #6b3f24;
  --line: rgba(248, 255, 245, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; touch-action: manipulation; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Outfit', 'M PLUS Rounded 1c', sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 12%, rgba(142, 244, 181, 0.22), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(247, 201, 72, 0.18), transparent 24%),
    linear-gradient(145deg, #10251f, #173a25 52%, #3d2b18);
}

#app { width: 100%; min-height: 100vh; display: flex; justify-content: center; padding: 16px; }
.back-link {
  position: fixed; top: 15px; left: 15px; z-index: 20; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--paper); background: rgba(16,37,31,0.72);
  text-decoration: none; font-weight: 900; font-size: 0.78rem; backdrop-filter: blur(12px);
}

.app-shell { width: min(620px, 100%); min-height: calc(100vh - 32px); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-top: 40px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.eyebrow { color: var(--gold); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
h1 { font-size: 2.35rem; line-height: 1; font-weight: 900; letter-spacing: 0; }
h1 span { color: var(--mint); }
.wallet { min-width: 118px; padding: 10px 12px; border: 1px solid rgba(142,244,181,0.32); border-radius: 8px; background: rgba(255,255,255,0.08); text-align: right; }
.wallet span, .summary span, .plot span { display: block; color: rgba(255,255,255,0.68); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; }

.summary, .plot, .action-panel, .mini-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
  box-shadow: 0 18px 34px rgba(0,0,0,0.24);
}

.summary { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; padding: 12px; align-items: stretch; }
.summary div { padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.08); text-align: center; }
.summary b { display: block; margin-top: 4px; font-size: 1.22rem; }
button {
  border: 0; border-radius: 8px; min-height: 50px; padding: 10px 12px;
  color: var(--ink); background: var(--gold); font-family: inherit; font-size: 0.86rem; font-weight: 900;
  box-shadow: 0 8px 0 rgba(0,0,0,0.24);
}
button:disabled { opacity: 0.48; box-shadow: none; }

.garden-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plot { min-height: 138px; padding: 10px; text-align: center; }
.plot-button {
  width: 100%; height: 72px; margin: 8px 0 6px; display: grid; place-items: center;
  background: linear-gradient(180deg, #8b5a32, var(--soil)); color: #fff;
  box-shadow: inset 0 -12px 0 rgba(0,0,0,0.16), 0 6px 0 rgba(0,0,0,0.2);
}
.plot-button strong { font-size: 2rem; line-height: 1; }
.plot.ready { border-color: rgba(247,201,72,0.68); }
.plot.ready .plot-button { background: linear-gradient(180deg, #8ef4b5, #3ddc84); }
.plot.empty .plot-button { background: linear-gradient(180deg, #785038, #513521); }
.plot small { color: rgba(255,255,255,0.72); font-size: 0.74rem; font-weight: 900; }

.action-panel { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.action-panel h2, .mini-guide h2 { font-size: 1.05rem; margin-bottom: 6px; }
.action-panel p, .mini-guide p { color: rgba(255,255,255,0.76); font-size: 0.88rem; line-height: 1.55; }
.mini-guide { padding: 14px 16px; }

@media (max-width: 560px) {
  #app { padding: 12px; }
  .app-shell { min-height: calc(100vh - 24px); gap: 11px; }
  h1 { font-size: 1.9rem; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary button { grid-column: 1 / -1; }
  .garden-grid { grid-template-columns: repeat(2, 1fr); }
  .action-panel { grid-template-columns: 1fr; }
  .action-panel button { width: 100%; }
}
