/* Scoped to the new hall of achievements; campaign and battle styles are intact. */
.achievements-page { color: #293c30; }
.achievements-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 28px;
  padding: 30px 34px; border: 1px solid #cbb684; border-radius: 14px;
  background: linear-gradient(115deg, #fffaf0, #f0e4c6);
  box-shadow: inset 0 0 0 5px #fffaf075, 0 8px 25px #463c1810;
}
.achievements-hero h2 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; }
.achievements-hero p { max-width: 540px; margin-bottom: 0; line-height: 1.6; }
.achievements-hero .eyebrow { margin: 0; color: #766127; }
.achievements-total { display: grid; justify-items: center; gap: 4px; flex: 0 0 auto; min-width: 180px; padding: 10px 0; }
.achievements-total > span:first-child { font-size: 36px; color: #8b671b; line-height: 1; }
.achievements-total strong { font: 700 34px Georgia, serif; }
.achievements-total small { font-size: 19px; color: #6d6b56; }
.achievements-total > span:last-child { font-size: 12px; color: #5f634f; }
.achievements-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 20px; }
.achievements-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.achievements-filters button { min-height: 44px; }
.achievements-filters button[aria-pressed="true"] { background: #304d3d; border-color: #304d3d; color: #fffaf0; }
.achievements-page button:focus-visible { outline: 3px solid #825e0f; outline-offset: 4px; }
.achievements-filter-count { margin: 0; font-size: 13px; color: #5e6558; }
.achievements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.achievement-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #d7c9ab; border-radius: 12px; background: #fffaf0; box-shadow: 0 3px 0 #e6dcc4; }
.achievement-card.is-earned { border-color: #b69349; background: linear-gradient(135deg, #fff9e4, #f6edce); box-shadow: 0 3px 0 #d4bf83; }
.achievement-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.achievement-badge { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #d0c3a7; border-radius: 50%; background: #eee9dd; color: #637060; font-size: 26px; }
.is-earned .achievement-badge { border-color: #b49345; color: #73551c; background: radial-gradient(circle at 35% 30%, #fff4b2, #d9b651); box-shadow: inset 0 0 0 3px #fff5c2b0; }
.achievement-state { font-size: 11px; font-weight: 700; padding: 6px 9px; border-radius: 20px; background: #f0eadc; color: #5c6258; }
.is-earned .achievement-state { background: #e2ebce; color: #304e35; }
.achievement-category { margin: 0 0 7px; color: #6b624a; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.achievement-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 21px; line-height: 1.2; }
.achievement-description { margin: 0 0 23px; font-size: 13px; line-height: 1.6; color: #525d50; }
.achievement-progress { margin-top: auto; }
.achievement-progress label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-size: 11px; color: #606855; }
.achievement-progress strong { font-weight: 600; }
.achievement-progress progress { display: block; width: 100%; height: 7px; appearance: none; border: 0; border-radius: 6px; overflow: hidden; background: #e7dfca; color: #708966; accent-color: #708966; }
.achievement-progress progress::-webkit-progress-bar { border-radius: 6px; background: #e7dfca; }
.achievement-progress progress::-webkit-progress-value { border-radius: 6px; background: #708966; }
.achievement-progress progress::-moz-progress-bar { border-radius: 6px; background: #708966; }
.is-earned .achievement-progress progress { color: #a77b26; accent-color: #a77b26; }
.is-earned .achievement-progress progress::-webkit-progress-value { background: #a77b26; }
.is-earned .achievement-progress progress::-moz-progress-bar { background: #a77b26; }
.achievements-note { margin: 25px 0; font-size: 12px; line-height: 1.6; color: #58634f; }
.achievements-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1000px) { .achievements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .achievements-hero { align-items: flex-start; padding: 24px; flex-direction: column; gap: 20px; }
  .achievements-total { grid-template-columns: auto auto; min-width: 0; gap: 2px 12px; justify-items: start; padding: 0; }
  .achievements-total > span:first-child { grid-row: span 2; align-self: center; }
  .achievements-total strong { font-size: 28px; }
  .achievements-grid { grid-template-columns: 1fr; }
  .achievement-card { padding: 22px; }
  .achievements-filters { width: 100%; }
  .achievements-filters button { flex: 1; padding-inline: 10px; }
}
@media (forced-colors: active) {
  .achievement-card, .achievements-hero, .achievement-badge { border-color: CanvasText; }
  .achievements-filters button[aria-pressed="true"] { border: 2px solid Highlight; }
  .achievement-progress progress { appearance: auto; }
}
