/* Reinos de Ferro — muralha Cidadela, módulo visual v4 */
.castle-real-wall {
  width:122px!important;
  height:96px!important;
  transform-origin:50% 82%!important;
}
.castle-real-tower {
  width:165px!important;
  height:210px!important;
  transform-origin:50% 92%!important;
}
.castle-real-gate {
  width:232px!important;
  height:204px!important;
  transform-origin:50% 92%!important;
}
.castle-real-wall svg,
.castle-real-tower svg,
.castle-real-gate svg {
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}
.castle-real-wall.wall-y-back,
.castle-real-wall.wall-x-front { transform:scaleX(-1); }
.castle-real-wall.wall-x-back,
.castle-real-wall.wall-y-front { transform:none; }
.castle-real-wall.fort-level-1,
.castle-real-tower.fort-level-1,
.castle-real-gate.fort-level-1 { filter:saturate(.72) brightness(.84); }
.castle-real-wall.fort-level-2,
.castle-real-tower.fort-level-2,
.castle-real-gate.fort-level-2 { filter:saturate(.82) brightness(.92); }
.castle-real-wall.fort-level-3,
.castle-real-tower.fort-level-3,
.castle-real-gate.fort-level-3 { filter:saturate(.9) brightness(.97); }
.castle-real-wall.fort-level-4,
.castle-real-tower.fort-level-4,
.castle-real-gate.fort-level-4 { filter:contrast(1.04) saturate(.96); }
.castle-real-wall.fort-level-5,
.castle-real-tower.fort-level-5,
.castle-real-gate.fort-level-5 { filter:drop-shadow(0 0 3px #c49a4075) contrast(1.07) saturate(1.03); }
.castle-real-gate:hover {
  filter:brightness(1.14) contrast(1.04) saturate(1.04);
  transform:translateY(-3px) scale(1.018);
}
.rf-citadel-banner {
  transform-box:fill-box;
  transform-origin:0 12%;
  animation:rfCitadelBanner 3.2s ease-in-out infinite alternate;
}
.rf-citadel-flame {
  transform-box:fill-box;
  transform-origin:50% 100%;
  animation:rfCitadelFlame .62s ease-in-out infinite alternate;
}
.rf-citadel-glow { animation:rfCitadelGlow 1.05s ease-in-out infinite alternate; }
@keyframes rfCitadelBanner {
  from { transform:skewY(-1.5deg) scaleX(.98); }
  to { transform:skewY(2deg) scaleX(1.03); }
}
@keyframes rfCitadelFlame {
  from { transform:rotate(-3deg) scale(.92,.95); }
  to { transform:rotate(3deg) scale(1.08,1.12); }
}
@keyframes rfCitadelGlow {
  from { opacity:.24; }
  to { opacity:.52; }
}
@media (prefers-reduced-motion:reduce) {
  .rf-citadel-banner,
  .rf-citadel-flame,
  .rf-citadel-glow { animation:none!important; }
}
