.races-page { padding-top: 140px; }
.race-index, .race-class-list { display: flex; flex-wrap: wrap; gap: 10px; }
.race-index { justify-content: center; }
.races-note { max-width: 80ch; margin: 24px auto 40px; color: var(--text-muted); text-align: center; }
.race-codex { display: grid; gap: 48px; }
.race-entry { overflow: hidden; border: 1px solid rgba(217, 159, 0, .28); border-radius: var(--radius-md); background: var(--bg-deep); box-shadow: 0 18px 48px rgba(0, 0, 0, .25); scroll-margin-top: 100px; }
.race-entry-portrait {
  display: flex;
  align-items: center;
  padding: clamp(12px, 2vw, 22px);
  background: radial-gradient(ellipse at center, rgba(217, 159, 0, .12), transparent 75%), #151210;
  border-bottom: 1px solid rgba(217, 159, 0, .2);
}
.race-entry-art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(217, 159, 0, .4);
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .35);
}
.race-entry-content { padding: clamp(20px, 4vw, 40px); }
.race-entry-content h3, .race-entry-history h3 { margin: 28px 0 14px; color: var(--gold-light); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.race-entry-content { min-width: 0; }
.race-entry-content .race-name { margin-top: 16px; font-size: clamp(2rem, 3vw, 2.8rem); }
.race-entry-content .race-desc { margin-top: 18px; font-size: 1rem; }
.race-entry-history {
  grid-column: 1 / -1;
  padding: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(217, 159, 0, .2);
  background: linear-gradient(135deg, rgba(217, 159, 0, .045), transparent 60%);
}
.race-entry-history h3 { margin-top: 0; }
.race-class-list { list-style: none; padding: 0; }
.race-class-list .equipment-pill { display: block; padding: 7px 11px; font-size: .85rem; }
.race-index a:hover { border-color: var(--gold-dark); background: rgba(248, 183, 0, .08); }
.race-index a:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 4px; }
.race-class-status { color: var(--text-muted); font-size: .8rem; }
.race-entry-lore { max-width: 85ch; line-height: 1.75; color: var(--text-main); }
.race-entry-lore p + p { margin-top: 16px; }
@media (min-width: 1000px) {
  .race-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .race-entry-portrait { border-bottom: 0; border-right: 1px solid rgba(217, 159, 0, .2); }
}
