/* Every active menu mark points to the freshly normalized 2% artwork. */
body[data-route="home"] .wrap #main-content .home-ranking,
body[data-route="rankings"] { --menu-mark: url('../assets/menu-ranking-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="home"] .wrap #main-content .home-discord-widget { --menu-mark: url('../assets/menu-community-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="home"] .wrap #main-content .home-server-stats,
body[data-route="information"] { --menu-mark: url('../assets/grand-mu-helmet-gmr-watermark-v3.svg?v=opacity2b-20260929'); }
body[data-route="register"] { --menu-mark: url('../assets/menu-register-equipment-v3.svg?v=opacity2b-20260929'); }
body[data-route="downloads"] { --menu-mark: url('../assets/menu-downloads-equipment-v3.svg?v=opacity2b-20260929'); }
body[data-route="guides"] { --menu-mark: url('../assets/menu-guides-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="events"] { --menu-mark: url('../assets/menu-events-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="vip"] { --menu-mark: url('../assets/menu-vip-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="market"] { --menu-mark: url('../assets/menu-market-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="shops"] { --menu-mark: url('../assets/menu-shops-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="news"], body[data-route="welcome"] { --menu-mark: url('../assets/menu-news-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="opening"] { --menu-mark: url('../assets/menu-opening-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="faq"] { --menu-mark: url('../assets/menu-faq-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="getting-started"] { --menu-mark: url('../assets/menu-start-equipment-v2.svg?v=opacity2b-20260929'); }
body[data-route="recovery"] { --menu-mark: url('../assets/menu-recovery-equipment-v2.svg?v=opacity2b-20260929'); }

/* Hall of Fame: keep every existing button and result region, with less travel to the table. */
body[data-route="rankings"] .wrap #main-content [data-page-design].ranking-experience .home-card.leaderboard-card {
  padding: clamp(15px, 2vw, 25px);
  background-image: var(--menu-mark), linear-gradient(180deg, rgba(250,253,255,.97), rgba(229,245,253,.96)) !important;
  background-color: #f8fcff !important;
  box-shadow: 0 16px 34px rgba(36,88,122,.13);
}
body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card > .feature-card-head {
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #b9d6e7;
}
body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card > .feature-card-head .feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #a8cee4;
  border-radius: 11px;
  background: #eaf6fd;
  color: #286e9b;
}
body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card > .feature-card-head h3 {
  color: #294e69;
  font: 700 clamp(20px, 2vw, 24px)/1.2 Georgia, 'Times New Roman', serif;
}
body[data-route="rankings"] #main-content .ranking-experience .feature-status {
  padding: 6px 10px;
  border: 1px solid #bad8e8;
  border-radius: 999px;
  background: #f1faff;
  color: #476b82;
  white-space: nowrap;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-toolbar { margin: 0 0 10px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  padding: 5px;
  border: 1px solid #b7d3e5;
  border-radius: 11px;
  background: #eaf4fa;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button {
  display: flex;
  flex: initial;
  flex-direction: row;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #3c617b;
  font: 700 12px/1.2 'Segoe UI', Arial, sans-serif;
  white-space: normal;
  text-transform: none;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button span { text-decoration: none; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button[aria-pressed="true"] {
  border-color: #83b5d5;
  background: #fff;
  box-shadow: 0 2px 7px rgba(33,96,137,.14);
  color: #174e75;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button:focus-visible,
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary > button:focus-visible,
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button:focus-visible {
  outline: 3px solid #247faf;
  outline-offset: 2px;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-update {
  display: block;
  margin: 7px 2px 0;
  color: #5b778a;
  font-size: 11px;
  text-align: right;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 760px);
  gap: 9px;
  margin: 10px auto 15px;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary > button,
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-heroes {
  display: flex;
  flex-direction: row;
  gap: 9px;
  min-height: 83px;
  padding: 10px;
  border-radius: 11px;
  background: #f8fcff;
  box-shadow: 0 3px 10px rgba(49,107,144,.11);
  color: #2b5979;
  font: 700 12px/1.2 'Segoe UI', Arial, sans-serif;
  text-align: left;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary > button[aria-pressed="true"] {
  border-color: #4d9ecb;
  background: #e1f2fc;
  box-shadow: inset 0 0 0 1px #8ec6e7, 0 4px 12px rgba(37,108,151,.16);
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary-emblem,
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin: 0;
  transform: none;
  font-size: 22px;
  box-shadow: inset 0 1px 5px #fff;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem img { width: 26px; height: 26px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem img:nth-child(1) { top: 0; left: 0; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem img:nth-child(2) { top: 0; right: 0; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem img:nth-child(3) { bottom: 0; left: 0; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem img:nth-child(4) { bottom: 0; right: 0; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem i {
  top: 16px;
  left: 16px;
  width: 20px;
  height: 20px;
  border-width: 1px;
  font-size: 10px;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-options {
  margin: 0 0 13px;
  padding: 10px 0 13px;
  border-top: 1px solid #d0e3ed;
  border-bottom: 1px solid #d0e3ed;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-options > .ranking-filter-label {
  display: block;
  margin-bottom: 8px;
  color: #375e79;
  font: 700 12px/1.3 'Segoe UI', Arial, sans-serif;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 7px;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button {
  gap: 3px;
  min-height: 82px;
  padding: 6px 4px;
  border-radius: 9px;
  background: #f8fcff;
  box-shadow: none;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-filter-avatar { width: 43px; height: 43px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button > span { min-height: 0; font-size: 10px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: end;
  margin: 0 0 15px;
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-search > div { flex: 1 1 330px; max-width: 520px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-search-input {
  border-color: #a9cce1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(48,101,136,.08);
}
body[data-route="rankings"] #main-content .ranking-experience .ranking-search > p { max-width: none; margin: 0 0 10px; }
body[data-route="rankings"] #main-content .ranking-experience .feature-table-scroll {
  border-radius: 10px;
  background: #fbfdff;
  box-shadow: 0 5px 16px rgba(45,98,133,.09);
}
body[data-route="rankings"] #main-content .ranking-experience .feature-table th { background: #e5f2fa; color: #315b77; }
body[data-route="rankings"] #main-content .ranking-experience .feature-table tbody tr:nth-child(even) { background: #f2f8fc; }
body[data-route="rankings"] #main-content .ranking-experience .feature-table tbody tr:hover { background: #e4f3fc; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-pve-rules { margin-top: 0; background: #f5fbff; }

@media (max-width: 760px) {
  body[data-route="rankings"] #main-content .ranking-experience .ranking-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-options > .ranking-filter-label::after {
    content: ' · Swipe to see more';
    font-weight: 400;
    color: #66849a;
  }
  body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card > .feature-card-head { flex-wrap: wrap; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-primary > button,
  body[data-route="rankings"] #main-content .ranking-experience .ranking-all-heroes { min-height: 75px; padding: 8px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-primary-emblem,
  body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem { flex-basis: 44px; width: 44px; height: 44px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem img { width: 23px; height: 23px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-all-emblem i { top: 12px; left: 12px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button { flex: 0 0 87px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-route="rankings"] #main-content .ranking-experience * { transition: none !important; }
}
