/* Edifícios ilustrados — carregado por último para substituir totalmente os modelos antigos */
.castle-iso-building.has-illustrated-building-art .castle-iso-building-art {
  inset:-18px -18px 8px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:visible;
}
.castle-iso-building.has-illustrated-building-art .illustrated-building-image {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 9px 6px #111b1288);
  transform:translateZ(0);
}
.castle-iso-building.has-illustrated-building-art:hover .illustrated-building-image {
  filter:drop-shadow(0 11px 7px #10181099) brightness(1.08) saturate(1.06);
}
.castle-building.has-illustrated-building-art .castle-building-art.illustrated-building-art {
  inset:-18px -20px 12px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.castle-building.has-illustrated-building-art .castle-building-art.illustrated-building-art::before { display:none; }
.castle-building.has-illustrated-building-art .illustrated-building-image {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 7px 5px #111b1288);
}
.castle-building.has-illustrated-building-art .castle-building-icon { display:none !important; }
.castle-building.has-illustrated-building-art .castle-smoke { display:none; }
.castle-building.has-illustrated-building-art:hover .illustrated-building-image {
  filter:drop-shadow(0 9px 6px #10181099) brightness(1.08) saturate(1.06);
}

/* Progressão visual por nível — cada melhoria utiliza uma imagem própria. */
.illustrated-building-image[data-building-visual-level] {
  transition: filter .18s ease, transform .18s ease;
}
.castle-iso-building.has-illustrated-building-art .building-visual-phase-4,
.castle-building.has-illustrated-building-art .building-visual-phase-4 {
  filter: drop-shadow(0 9px 6px #111b1288) saturate(1.04);
}
.castle-iso-building.has-illustrated-building-art .building-visual-phase-5,
.castle-building.has-illustrated-building-art .building-visual-phase-5 {
  filter: drop-shadow(0 10px 7px #111b1299) saturate(1.08) contrast(1.03);
}
