/* ---------------- garden ---------------- */
/* Drawn in the garden frame's own 1200×900 pixels and scaled onto the frame box by
   Garden.layout(). Only the things take clicks: Figma's nav arrows underneath have to
   stay pressable, since they are how the player leaves. */
#garden { position: fixed; z-index: 14; pointer-events: none; overflow: hidden; }
/* Fast clicks otherwise select the sprites, and the browser's highlight looks just like a
   target outline. */
#garden, #garden * { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.gd-world {
  position: absolute; left: 0; top: 0; width: 1200px; height: 900px;
  transform-origin: 0 0;
}
#garden img { position: absolute; display: block; image-rendering: pixelated; }
#garden img[hidden] { display: none; }
.gd-pot > img { left: 0; top: 0; }

/* SLIDE in garden.js waits this long. */
.gd-thing {
  position: absolute; pointer-events: auto; cursor: pointer;
  transition: left .22s ease-out, top .22s ease-out;
}
.gd-thing.gd-off { cursor: default; filter: grayscale(.8) brightness(.75); }
/* The blade is art rows 19–29; the bottom six go into the ground. */
.gd-thing.gd-spent { clip-path: inset(0 0 12px 0); pointer-events: none; cursor: default; }
.gd-held { animation: gd-bob 1.4s ease-in-out infinite; }
@keyframes gd-bob { 50% { transform: translateY(-4px); } }

/* Every place the held thing can go. Above everything, so a pot under an outline takes
   what is held rather than being picked up. */
.gd-targets { position: absolute; inset: 0; z-index: 15000; }
.gd-target {
  position: absolute; pointer-events: auto; cursor: pointer;
  outline: 2px solid rgba(110, 170, 255, .9); background: rgba(110, 170, 255, .15);
}
.gd-target:hover { background: rgba(110, 170, 255, .35); }
.gd-target.gd-home { outline-color: rgba(255, 210, 60, .95); background: rgba(255, 210, 60, .15); }
.gd-target.gd-home:hover { background: rgba(255, 210, 60, .35); }

/* Finished: every flower on the board flashes (FLASH in garden.js), then nothing takes
   clicks. */
.gd-done .gd-thing { pointer-events: none; cursor: default; }
.gd-flash { animation: gd-flash .5s steps(1) 3; }
@keyframes gd-flash { 50% { filter: brightness(2.2); } }

/* dev: every place a thing can stand */
.gd-spots { position: absolute; inset: 0; z-index: 20000; }
.gd-spot { position: absolute; outline: 2px dashed rgba(120, 180, 255, .85); }
.gd-spot.hold { outline-color: rgba(255, 110, 110, .9); }
