/* LEGENDARY rarity identity: gold/orange, without changing combat or artwork. */
:root {
  --legendary-gold:#ffc45c;
  --legendary-border:#bd7b29;
  --legendary-soft:#e3a44b;
}

/* Barracks identity, both SIMPLE and DETAILED modes. */
#unit-cards .unit-card.rarity-legendary {
  border-color:var(--legendary-border);
  background:linear-gradient(180deg,rgba(147,86,19,.13),transparent 38%),var(--panel);
}
#unit-cards .unit-card.rarity-legendary .unit-top h2 {
  color:var(--legendary-gold);
}

/* Battlefield deployment deck, including the folded HIDE CARDS label. */
#unit-picker .battle-unit-card.rarity-legendary {
  border-color:var(--legendary-border);
  background:linear-gradient(180deg,rgba(147,86,19,.16),transparent 60%),#0b1a14;
}
#unit-picker .battle-unit-card.rarity-legendary > button[data-pick] > strong,
#unit-picker .battle-unit-card.rarity-legendary .battle-card-folded-name {
  color:var(--legendary-gold);
}
#unit-picker .battle-unit-card.rarity-legendary.active {
  border-color:#ffd37a;
  box-shadow:inset 0 0 0 1px #d48d34;
}

/* UNIT INFO modal (selected fighter): identity and rarity tag. */
.unit-inspector.rarity-legendary { border-color:var(--legendary-border); }
.unit-inspector.rarity-legendary #inspector-name,
.unit-inspector.rarity-legendary #inspector-rarity {
  color:var(--legendary-gold);
}
.unit-inspector.rarity-legendary #inspector-rarity { border-color:var(--legendary-border); }

/* Other places displaying the same rarity, not gameplay state. */
.paint-brush.rarity-legendary small,
.roster-units .rarity-legendary,
.reward-items .rarity-legendary strong {
  color:var(--legendary-gold);
}
/* Legendary blueprint PNG has the original gold ribbon; no synthetic color filter. */
