/* Two gardens share the same tools. Field coordinates follow the perspective of each painting. */
#westTiles,.west-tag,.west-prop,.construction-pile { display:none; }
.estate-gate,#westMoreSign {
  position:absolute; z-index:3; padding:0; border:0; background:transparent; box-shadow:none;
  display:grid; place-items:center; pointer-events:auto; cursor:pointer; touch-action:manipulation;
}
.estate-gate { left:39%; top:13%; width:8.6%; height:18%; min-width:43px; min-height:44px; }
.estate-gate > img { position:absolute; width:100%; height:100%; object-fit:contain; }
.estate-sign {
  position:absolute; top:3%; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; color:#373f28; background:linear-gradient(165deg,#f6e6b8,#dfc390);
  border:1px solid #a38956; border-radius:3px; box-shadow:0 1px 2px #594f3b40;
  padding:2px 7px; white-space:nowrap; font:700 clamp(12px,1.25vw,18px)/1.25 var(--book);
}
.estate-sign small { font:550 clamp(10px,.83vw,13px)/1.16 var(--font); color:#4f5037; }
#estateGate:focus-visible .estate-sign,#westMoreSign:focus-visible .estate-sign { outline:3px solid #526e46; }
#viewport[data-gate-work="true"] .estate-gate::after {
  content:""; position:absolute; left:-23%; bottom:-2%; width:72%; height:48%;
  background:url("art/building-supplies.webp") center / contain no-repeat; pointer-events:none;
}
#viewport[data-coop-work="true"] .coop-pile {
  display:block; position:absolute; z-index:2; left:.5%; top:55.3%; width:8.3%; pointer-events:none;
}
#viewport[data-garden="west"] #scene {
  --west-scenery:url("art/west-landscape.webp");
  --west-wash:saturate(.65) contrast(.89) sepia(.06);
  background:#c4c39b;
}
#viewport[data-garden="west"] #scene::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:var(--west-scenery) center / 100% 100% no-repeat; filter:var(--west-wash);
}
#viewport[data-garden="west"] :is(#tiles,.coop-footprint,#poultryYard,.station,#waterFloat,.construction-pile,.farm-life) { display:none!important; }
#viewport[data-garden="west"] .estate-gate { left:73%; top:8%; width:17%; height:25%; }
#viewport[data-garden="west"] .estate-gate > img { display:none; }
#viewport[data-garden="west"] .estate-gate .estate-sign { top:8%; }
#viewport[data-garden="west"] .west-tag {
  display:block; position:absolute; z-index:4; left:6%; top:10.4%; padding:2px 12px;
  font:700 clamp(13px,1.3vw,20px)/1.2 var(--book); letter-spacing:.12em; color:#344d32;
  background:#faf3dde8; border:1px solid #c1b18e; border-radius:1em; pointer-events:none;
}
#viewport[data-garden="west"] .west-prop {
  display:block; position:absolute; z-index:1; pointer-events:none;
  background:transparent var(--prop-art) center bottom / contain no-repeat;
  padding:0; border:0; box-shadow:none; filter:saturate(.85) contrast(.94);
}
#viewport[data-garden="west"] .west-landing {
  --prop-art:url("art/west-water-landing.webp"); left:.5%; bottom:41%; width:16.5%; aspect-ratio:520/345;
  pointer-events:auto; cursor:pointer; touch-action:manipulation;
}
#viewport .west-landing:focus-visible {outline:2px dashed #586143; outline-offset:3px; border-radius:35%;}
.west-rack { --prop-art:url("art/west-drying-rack.webp"); right:4%; bottom:26%; width:19%; aspect-ratio:520/310; }
.west-scarecrow { --prop-art:url("art/west-scarecrow.webp"); left:23%; bottom:62%; width:7.5%; aspect-ratio:402/520; }
#viewport[data-garden="west"] #westTiles {
  display:block; position:absolute; left:25%; top:38%; width:49%; height:35.5%; z-index:1;
  isolation:isolate; pointer-events:none;
}
#westTiles::after {
  content:""; position:absolute; z-index:-1; top:102%; height:6.3%; left:6%; width:87%; filter:saturate(.62) contrast(.88);
  background:url("art/west-stones.webp") center / 100% 100% no-repeat;
}
#viewport[data-west-phase="1"] #westTiles::after { width:42%; left:3%; background-size:200% 100%; background-position:left; }
#viewport[data-garden="west"][data-west-phase="1"] #westTiles::before {
  content:""; position:absolute; inset:5% 2% 4% 54%; z-index:-1; filter:saturate(.68) contrast(.9);
  background:url("art/west-grass.webp") 15% 12% / 24% auto no-repeat,
    url("art/west-grass.webp") 87% 35% / 30% auto no-repeat,
    url("art/west-grass.webp") 14% 94% / 28% auto no-repeat,
    url("art/west-grass.webp") 82% 88% / 21% auto no-repeat;
}
#westTiles .field-cell {
  position:absolute; left:var(--folio-x); top:var(--folio-y); width:var(--folio-w); height:var(--folio-h);
  margin:0; padding:0; min-width:0; min-height:0; overflow:visible;
  border:0; outline:0; box-shadow:none; background:transparent;
  pointer-events:none; cursor:pointer; touch-action:none; -webkit-tap-highlight-color:transparent;
}
#westTiles .field-cell::before {
  content:""; position:absolute; inset:0; pointer-events:auto; touch-action:none;
  clip-path:var(--folio-cell-poly);
  background:transparent url("art/folio-earth.webp") var(--earth-position) / var(--earth-size) no-repeat;
}
#westTiles .field-plant { position:absolute; margin-left:var(--root-shift); z-index:1; left:5%; bottom:8%; width:90%; height:103%; object-fit:fill; pointer-events:none; }
#westTiles .field-cell[data-stage="sprout"] .field-plant { left:25%; bottom:16%; width:50%; height:38%; }
#westTiles .field-cell[data-stage="growing"] .field-plant { left:11%; bottom:10%; width:78%; height:76%; }
#westTiles .field-intent,#westTiles .field-ripe { display:none; }
#westTiles .field-cell::after {
  content:""; position:absolute; z-index:2; inset:0; pointer-events:none; clip-path:var(--soil-rim);
}
#westTiles .field-cell[data-stage="ripe"]::after {background:#ead188a6;}
#westTiles .field-cell:is(:focus-visible,:active)::after {background:#fff2b1;}
#westMoreSign { left:55%; top:53%; width:13%; height:10%; }
#westMoreSign::before { content:""; position:absolute; top:23%; height:74%; width:5%; min-width:3px; background:#a38250; border-radius:2px; }
#westMoreSign img { position:absolute; width:88%; height:100%; object-fit:contain; left:-60%; bottom:-22%; }
#westMoreSign .estate-sign { top:5%; }
#panel[data-panel="estate"] { --stamp:url('art/gate-open.webp'); }
.estate-board { color:#344936; font:14px/1.4 var(--font); }
.estate-projects { display:flex; gap:4px; border-bottom:1px solid #d2c7ac; padding-bottom:7px; }
.estate-projects button,.estate-coop-link { color:#445840; font:650 14px/1.2 var(--book); background:#f6efdf; border:1px solid #c9bda1; border-radius:6px; padding:6px 10px; }
.estate-projects button { flex:1; min-height:34px; }
.estate-projects button[aria-pressed="true"] { color:#fff9e7; background:#4e6a51; border-color:#405b44; }
.estate-plan { display:grid; grid-template-columns:32% 1fr; align-items:center; gap:10px; margin:9px 0; }
.estate-plan img { width:100%; height:70px; object-fit:contain; }
.estate-plan h3 { margin:0; font:700 21px/1.2 var(--book); }
.estate-plan p { margin:4px 0; }
.estate-plan small,.estate-note { color:#62684f; font-size:13px; }
.estate-costs { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.estate-material { display:grid; grid-template-columns:20px 1fr; column-gap:4px; align-items:center; padding:6px 8px; background:#ebe8d6; border-radius:5px; }
.estate-material img { width:20px; height:24px; object-fit:contain; grid-row:span 2; }
.estate-material b { font-size:13px; font-variant-numeric:tabular-nums; }
.estate-material [data-met="false"] { color:#8b4f36; }
.estate-note { margin:8px 0; }
.estate-primary { border:1px solid #39573d; border-radius:6px; background:#516f50; color:#fff8e6; width:100%; min-height:39px; font:700 15px var(--book); }
.estate-primary:disabled { background:#e4dfcf; color:#77735e; border-color:#c8bd9e; }
.estate-coop-link { display:block; width:100%; margin:8px 0; text-align:left; min-height:36px; }
@media(orientation:portrait) {
  /* Set the gate's feet on the rear path between the farmhouse and barn. */
  #viewport[data-garden="home"] .estate-gate {
    left:59%; top:auto; bottom:75.8%; transform:translateX(-50%);
    width:19%; height:8%; min-width:44px;
  }
  #viewport[data-garden="home"] .estate-gate > img { object-position:center bottom; }
  #viewport[data-garden="home"] .estate-gate .estate-sign {
    width:max-content; box-sizing:border-box; padding:2px 3px; text-align:center;
  }
  #viewport[data-garden="home"][data-gate-work="true"] .estate-gate::after { left:0; width:54%; height:38%; }
  #viewport[data-coop-work="true"] .coop-pile { left:3%; top:33.3%; width:18%; }
  #viewport[data-garden="west"] #scene { --west-scenery:url("art/west-portrait.webp"); --west-wash:saturate(.77) contrast(.91) sepia(.06); }
  #viewport[data-garden="west"] #westTiles { left:8%; top:41%; width:84%; height:26%; }
  #viewport[data-garden="west"] .estate-gate { left:73.5%; top:12.7%; width:23%; height:15%; }
  #viewport[data-garden="west"] .west-tag { left:8%; top:max(8%,calc(env(safe-area-inset-top) + 42px)); }
  #viewport[data-garden="west"] .west-landing { left:0; bottom:60%; width:22%; }
  .west-scarecrow { left:24%; bottom:59%; width:14%; }
  .west-rack { right:4%; bottom:22%; width:30%; }
  #westMoreSign { left:59%; top:51%; width:22%; height:8%; }
  #viewport #panel[data-panel="estate"] { top:19%; bottom:auto; max-height:calc(78% - var(--folio-action-bottom)); }
}
.poultry-picture[data-expanded="true"] .poultry-adult { width:25%; left:9%; bottom:10%; }
.poultry-picture[data-expanded="true"] .poultry-adult:nth-of-type(2) { left:40%; bottom:16%; }
.poultry-picture[data-expanded="true"] .poultry-adult:nth-of-type(3) { left:68%; bottom:13%; }
.poultry-picture[data-expanded="true"] .poultry-adult:nth-of-type(4) { left:26%; bottom:0; }
.poultry-picture[data-expanded="true"] .poultry-adult:nth-of-type(5) { left:56%; bottom:-2%; transform:scaleX(-1); }
