.garden-discovery {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  container-type: inline-size;
}
.garden-discovery[hidden],
.world:has(#place-porch[open], #place-kitchen[open]) .garden-discovery { display: none; }
#garden-leaves {
  position: absolute;
  left: 34%;
  bottom: 8%;
  transform: translateX(-50%);
  width: clamp(94px, 28%, 143px);
  height: 70px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: #432e1b;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
#garden-leaves:focus-visible { outline: 3px solid #fff3c9; outline-offset: 3px; border-radius: 10px; }
.garden-hideaway {
  pointer-events: none;
  position: absolute;
  width: 112%;
  height: 138px;
  left: -6%;
  bottom: 24px;
  overflow: hidden;
}
.garden-resident {
  position: absolute;
  width: 79%;
  left: 9%;
  bottom: -24%;
  aspect-ratio: 234 / 288;
  background: url("assets/garden-marugo.webp") center bottom / contain no-repeat;
  transform: translateY(91%);
  transition: transform .43s cubic-bezier(.22,.72,.25,1);
  filter: sepia(.12) brightness(.94);
}
.garden-pile { position: absolute; inset: auto 0 0; height: 51%; }
.garden-pile i {
  position: absolute;
  width: 46%;
  height: 102%;
  bottom: -10%;
  left: var(--x);
  background: url("assets/garden-leaf.webp") center / contain no-repeat;
  transform: rotate(var(--r)) scaleY(var(--s, .72));
  filter: brightness(var(--light, .79)) drop-shadow(1px 3px 1px #46260594);
  transition: transform .38s ease;
}
.garden-pile i:nth-child(1) { --x: 0%; --r: -67deg; --s: .65; --light: .74; }
.garden-pile i:nth-child(2) { --x: 29%; --r: -17deg; --light: .89; }
.garden-pile i:nth-child(3) { --x: 52%; --r: 58deg; --light: .70; }
.garden-pile i:nth-child(4) { --x: 18%; --r: 109deg; --light: .88; }
.garden-pile i:nth-child(5) { --x: 40%; --r: -97deg; --s: .63; --light: .97; }
#garden-leaves[aria-expanded="true"] .garden-resident { transform: translateY(0); }
#garden-leaves[aria-expanded="true"] .garden-pile i:first-child { transform: translate(-9%,8%) rotate(-87deg) scaleY(.65); }
#garden-leaves[aria-expanded="true"] .garden-pile i:nth-child(3) { transform: translate(7%,7%) rotate(76deg) scaleY(.72); }
.garden-leaf-label {
  position: absolute;
  inset: auto 50% 0 auto;
  transform: translateX(50%);
  white-space: nowrap;
  padding: .23em .8em;
  font: 650 .8rem/1.45 var(--sans, sans-serif);
  background: #fff5d9;
  border: 1px solid #836a45;
  border-radius: 12px 8px 10px 6px;
  box-shadow: 0 2px 5px #3e2a1650;
}
.garden-greeting:not(:empty) {
  position: absolute;
  left: 44%;
  bottom: calc(8% + 87px);
  margin: 0 .65rem 0 0;
  padding: .6em .8em;
  border-radius: 13px 15px 14px 4px;
  background: #fff8e7;
  color: #493522;
  box-shadow: 0 2px 8px #39230b54;
  font-size: clamp(.75rem, 3.1cqw, .94rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.garden-greeting:not(:empty)::after {
  content: "";
  position: absolute;
  bottom: .25em;
  left: -.48em;
  border: .32em solid transparent;
  border-right-color: #fff8e7;
  border-bottom-color: #fff8e7;
}
.garden-greeting strong { display: block; color: #744b25; font-size: .79em; }
.quiet-motion .garden-resident, .quiet-motion .garden-pile i { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .garden-resident, .garden-pile i { transition: none; }
}
