/* All tile placement is supplied by field-layout.js, with one shared projection. */
#plots {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 72%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 2 / 1;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: translateX(-50%);
  overflow: visible;
  isolation: isolate;
}

#plots .plot-cell {
  position: absolute;
  left: var(--tile-left);
  top: var(--tile-top);
  width: var(--tile-width);
  height: var(--tile-height);
  z-index: var(--tile-layer);
  overflow: visible;
  pointer-events: none;
}

#plots .plot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  aspect-ratio: auto;
  box-shadow: none;
  background: transparent url("assets/tile-grama-unit.png") center / 100% 100% no-repeat;
  /* Also confines mouse/touch targets to the tile, not its transparent corners. */
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: none;
  translate: none;
  animation: none;
  filter: none;
  transition: filter 120ms ease;
  cursor: pointer;
  pointer-events: auto;
}

#plots .plot[data-unlocked="true"] {
  background-image: url("assets/tile-terra-unit.png");
}

/* A arte mantém a transparência fora do losango; o recorte de toque continua igual. */
#plots .plot[data-unlocked="true"][data-watered="true"] {
  background-image: url("assets/tile-terra-molhada-unit.png");
}

.land-expansion { margin-top: 14px; padding-top: 10px; border-top: 1px solid #d8c797; }
.land-expansion h3 { font-size: 13px; margin: 0 0 6px; color: #4c6536; }
.right-panel .land-expansion p { display: block; margin: 6px 0; font-size: 12px; line-height: 1.45; }
.land-amount { display: block; overflow-wrap: anywhere; }
#land-price { color: #725022; font-variant-numeric: tabular-nums; }
@media (min-width: 980px) {
  .right-panel { max-height: calc(100vh - 190px); }
}

#plots .plot::before,
#plots .plot::after {
  content: none;
  display: none;
}

#plots .plot:hover,
#plots .plot:focus-visible {
  filter: brightness(1.12);
  transform: none;
}

#plots .plot-cell .crop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: clamp(22px, 2.4vw, 34px);
  transform: none;
  filter: drop-shadow(0 2px 1px #284421);
  pointer-events: none;
}

#plots .crop-sprite {
  position: absolute;
  left: 50%;
  top: var(--sprite-ground);
  width: auto;
  height: var(--sprite-height);
  max-width: none;
  max-height: none;
  z-index: 2;
  transform: translate(-50%, -100%);
  pointer-events: none;
  user-select: none;
}

#plots .plot-cell .water {
  position: absolute;
  right: 28%;
  bottom: 22%;
  z-index: 3;
  font-size: 14px;
  pointer-events: none;
}
