:root {
  --navy: #08447c;
  --blue: #1774c8;
  --cyan: #18bce8;
  --green: #18bc9c;
  --gold: #ffcf2f;
  --magenta: #d850ff;
  --coral: #fe5e72;
  --ink: #2c3e50;
  --light: #f5f8fb;
  --line: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #e9f0f5 url("./assets/img/TransparentBG-DarkBlue.png");
}

a {
  color: var(--navy);
  text-decoration: none;
}

.container {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
}

.row::after,
.container::after {
  content: "";
  display: table;
  clear: both;
}

#skipnav {
  position: absolute;
  left: -9999px;
}

.navbar {
  min-height: 82px;
  margin-bottom: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dce7ef;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.navbar-brand {
  float: left;
  display: flex;
  align-items: center;
  min-height: 82px;
  color: var(--ink);
}

.navbar-brand img {
  width: 48px;
  height: 48px;
  margin-right: 10px;
}

.navbar-brand p {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0;
}

.navbar-collapse {
  float: right;
}

.nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav > li {
  position: relative;
  display: inline-block;
}

.nav > li > a {
  display: block;
  padding: 31px 14px;
  color: var(--ink);
}

.nav > li:hover > a {
  color: var(--green);
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  display: none;
  min-width: 170px;
  padding: 5px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  text-transform: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.home-page {
  min-height: 390px;
  padding: 145px 0;
  background: linear-gradient(145deg, #0f6bb2, #23a8d5);
  text-align: center;
}

.home-message {
  padding: 18px;
  background: rgba(255, 255, 255, 0.49);
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 40px;
  background:
    linear-gradient(125deg, rgba(8, 68, 124, 0.94), rgba(24, 188, 156, 0.82)),
    url("https://cdn.brawlify.com/maps/regular/15000000.png") center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-title h2 {
  margin: 0;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.96;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

.hero-copy p {
  max-width: 620px;
  margin: 18px 0 22px;
  font-size: 19px;
  line-height: 1.55;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #503700;
}

.hero-panel,
.demo-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.12);
}

.featured-brawler {
  min-height: 430px;
  overflow: hidden;
}

.featured-art {
  display: grid;
  place-items: end center;
  min-height: 250px;
  background: linear-gradient(145deg, #30d6ff, #0a4a8c);
}

.featured-art img {
  width: min(88%, 330px);
  max-height: 250px;
  object-fit: contain;
  object-position: bottom center;
}

.featured-body {
  padding: 18px;
}

.featured-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.featured-body h2,
.modern-card h3 {
  margin: 0;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.featured-body p {
  margin: 10px 0 14px;
  line-height: 1.45;
}

.loadout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.loadout span {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.loadout strong {
  display: block;
  margin-top: 2px;
}

.demo-section {
  padding: 46px 0;
  background: rgba(245, 248, 251, 0.94);
}

.demo-section.split-band {
  background: rgba(233, 240, 245, 0.92);
}

.section-title {
  margin-bottom: 18px;
}

.section-title h2 {
  color: var(--ink);
  font-size: 31px;
}

.section-title.compact h2 {
  font-size: 23px;
}

.modern-brawler-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.modern-card {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(8, 68, 124, 0.12);
}

.modern-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: linear-gradient(145deg, #dff8ff, #ffffff);
}

.modern-card-body {
  padding: 10px;
}

.modern-card h3 {
  color: var(--ink);
  font-size: 16px;
}

.modern-card p {
  margin: 5px 0 0;
  color: #52616c;
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

.demo-panel {
  padding: 18px;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #d6e2eb;
  border-radius: 5px;
  background: #fff;
}

.event-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.event-card strong,
.club-snapshot strong {
  display: block;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.event-card span,
.club-snapshot span {
  display: block;
  color: #5d6d79;
  font-size: 13px;
}

.event-card .timer {
  color: var(--navy);
  font-weight: 700;
}

.club-snapshot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 5px;
  background: #fff;
}

.club-snapshot img {
  width: 70px;
  height: 78px;
  object-fit: contain;
}

.compact-table td {
  padding: 7px;
}

.source-band {
  padding: 22px 0;
  background: #233140;
  color: #fff;
}

.source-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.source-line p {
  margin: 0;
  line-height: 1.45;
}

header {
  padding: 64px 0;
  background: var(--green);
}

.search-column {
  width: min(560px, 100%);
  margin: 0 auto;
}

#search-form {
  position: relative;
}

.tag-search-input {
  width: 100%;
  height: 56px;
  padding: 0 62px 0 18px;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
  outline: 0;
}

.tag-search-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: var(--navy);
  color: #fff;
  font-size: 32px;
  line-height: 56px;
  cursor: pointer;
}

section.player-profile,
section.band-page,
section.leaderboard {
  padding: 42px 0 70px;
}

.profile,
.band-page .container,
.leaderboard .container {
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.profile-hero-panel,
.club-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(8, 68, 124, 0.9), rgba(24, 188, 156, 0.78)),
    url("https://cdn.brawlify.com/maps/regular/15000000.png") center / cover;
  box-shadow: 0 8px 0 rgba(8, 68, 124, 0.14);
}

.profile-hero-panel .user,
.club-hero-panel .band-main {
  color: #fff;
}

.profile-hero-panel .user .tag,
.club-hero-panel .band-info .tag {
  color: #e7f7ff;
}

.profile-main {
  float: left;
  width: 55%;
}

.profile-band {
  float: right;
  width: 45%;
  text-align: right;
}

.user,
.band,
.band-main {
  display: inline-flex;
  align-items: center;
}

.avatar {
  width: 92px;
  height: 92px;
  margin-right: 14px;
}

.profile-hero-panel .avatar {
  width: 104px;
  height: 104px;
}

.user .name,
.band-info .name {
  color: #fff;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
}

.user .tag,
.band-info .tag,
.band .tag {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.band {
  padding: 8px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.42);
}

.band .info {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  text-align: right;
}

.band .name {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.band .icon {
  width: 62px;
  height: 62px;
}

.profile-club-card,
.club-season-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.profile-club-card img {
  width: 74px;
  height: 82px;
  object-fit: contain;
}

.profile-club-card strong,
.club-season-card strong {
  display: block;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
}

.profile-club-card p,
.club-season-card p {
  margin: 3px 0 0;
  color: #52616c;
  font-weight: 700;
}

.player-snapshot-grid,
.club-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.player-snapshot-grid div,
.club-stat-grid div,
.profile-panel {
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.player-snapshot-grid div,
.club-stat-grid div {
  min-height: 98px;
  padding: 13px;
}

.player-snapshot-grid span,
.club-stat-grid span {
  display: block;
  color: #52616c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.player-snapshot-grid strong,
.club-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 25px;
}

.player-snapshot-grid p,
.club-stat-grid p {
  margin: 4px 0 0;
  color: #52616c;
  font-weight: 700;
}

.profile-dashboard,
.club-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-panel {
  padding: 14px;
}

.battle-list {
  display: grid;
  gap: 8px;
}

.battle-list div {
  padding: 9px 10px;
  border-radius: 4px;
  background: #eef6fc;
}

.battle-list strong {
  display: block;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.battle-list span {
  color: #52616c;
  font-size: 13px;
  font-weight: 700;
}

.mode-bars {
  display: grid;
  gap: 11px;
}

.mode-bars div {
  position: relative;
  min-height: 28px;
  overflow: hidden;
  border-radius: 4px;
  background: #d7e5ef;
}

.mode-bars span {
  position: relative;
  z-index: 2;
  display: block;
  padding-left: 9px;
  color: var(--ink);
  font-weight: 700;
  line-height: 28px;
}

.mode-bars strong {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.profile-section-title {
  margin-top: 8px;
}

.xp-bar {
  margin: 26px 0;
}

.xp .bar {
  position: relative;
  height: 48px;
  overflow: hidden;
  border-radius: 2px;
  background: #c9d6df;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.xp .star {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 48px;
  background: #ffcf2f;
  color: #593d00;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.xp p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-left: 72px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 48px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.xp .progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(#33d678, #12a955);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.stat {
  min-height: 122px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 4px solid rgba(8, 68, 124, 0.18);
  text-align: center;
}

.stat img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.stat p {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.brawlers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.player-brawler-card {
  overflow: hidden;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(8, 68, 124, 0.13);
}

.player-brawler-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 176px;
  background: linear-gradient(145deg, #dff8ff, #ffffff);
}

.player-brawler-art img {
  width: min(92%, 170px);
  height: 166px;
  object-fit: contain;
}

.level-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffcf2f;
  color: #593d00;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.player-brawler-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.player-brawler-body h3 {
  margin: 0;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
}

.player-brawler-body span,
.player-brawler-foot span {
  color: #52616c;
  font-size: 13px;
  font-weight: 700;
}

.player-brawler-score {
  text-align: right;
}

.player-brawler-score strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.player-brawler-score img {
  width: 20px;
  margin-right: 3px;
  vertical-align: middle;
}

.player-brawler-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: #eef6fc;
}

.player-brawler-foot strong {
  color: var(--green);
}

.frame {
  width: 142px;
  height: 174px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 3px;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.17);
}

.portrait {
  position: relative;
  width: 100%;
  height: 100%;
  background-position: center 24px;
  background-repeat: no-repeat;
  background-size: 128px auto;
}

.portrait .name {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.level {
  position: absolute;
  top: 31px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffcf2f;
  color: #593d00;
  font-weight: 700;
}

.rank {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 34px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.9);
}

.rank-badge {
  float: left;
  position: relative;
  width: 30px;
  height: 30px;
}

.rank-badge img {
  width: 30px;
  height: 30px;
}

.rank-badge span {
  position: absolute;
  inset: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 #000;
}

.rank .trophies {
  float: right;
  color: var(--navy);
  font-weight: 700;
  line-height: 30px;
}

.rank .trophies img {
  width: 21px;
  margin-right: 2px;
  vertical-align: middle;
}

.band-main {
  margin-bottom: 18px;
}

.band-icon {
  width: 105px;
  height: 105px;
  margin-right: 18px;
}

.band-desc {
  margin-bottom: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--navy);
  font-weight: 700;
}

.board-header {
  min-height: 54px;
  padding: 10px 14px;
  margin-top: 18px;
  background: var(--navy);
  color: #fff;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 34px;
}

.leaderboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: end;
  padding: 8px 0 20px;
}

.leaderboard-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 46px;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.72);
}

.leaderboard-hero p {
  max-width: 680px;
  margin: 12px 0 0;
  color: #18334a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.leaderboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.leaderboard-metrics div,
.side-panel {
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.leaderboard-metrics div {
  min-height: 92px;
  padding: 13px 10px;
  text-align: center;
}

.leaderboard-metrics strong {
  display: block;
  color: var(--navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
}

.leaderboard-metrics span {
  display: block;
  margin-top: 7px;
  color: #52616c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.leaderboard-tabs button,
.brawler-chip-list button {
  border: 0;
  border-radius: 3px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.leaderboard-tabs button {
  min-height: 42px;
  padding: 0 16px;
  background: #fff;
  color: var(--navy);
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(8, 68, 124, 0.14);
}

.leaderboard-tabs button.active {
  background: var(--gold);
  color: #503700;
}

.leaderboard-controls,
.compare-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 170px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.control-label {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.region-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.region-switch button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #c8d9e6;
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.region-switch button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.leaderboard-controls select,
.compare-panel select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c8d9e6;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.board-status {
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 3px;
  background: #eef6fc;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.leaderboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.leaderboard-stat-grid div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.leaderboard-stat-grid span,
.detail-grid span {
  display: block;
  color: #52616c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.leaderboard-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
}

.leaderboard-stat-grid p,
.compare-result p {
  margin: 4px 0 0;
  color: #52616c;
  font-size: 13px;
}

.compare-panel {
  grid-template-columns: minmax(180px, 1fr) 160px 160px minmax(240px, 1.2fr);
}

.compare-panel > div:first-child strong,
.compare-result strong {
  display: block;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.compare-result {
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 3px;
  background: #eef6fc;
}

.compare-result span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.leaderboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.leaderboard-panel {
  display: none;
}

.leaderboard-panel.active {
  display: block;
}

.leaderboard-panel .board-header {
  margin-top: 0;
}

.leaderboard-side {
  display: grid;
  gap: 14px;
}

.side-panel {
  padding: 14px;
}

.featured-chart {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 126px;
}

.featured-chart img {
  width: 95px;
  height: 110px;
  object-fit: contain;
  object-position: bottom center;
}

.featured-chart strong {
  display: block;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
}

.featured-chart span,
.ranking-notes li {
  display: block;
  color: #52616c;
  font-size: 13px;
  line-height: 1.4;
}

.brawler-chip-list {
  display: grid;
  gap: 8px;
}

.brawler-chip-list button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  background: #eef6fc;
  color: var(--navy);
  text-align: left;
}

.brawler-chip-list button.active {
  background: var(--gold);
  color: #503700;
}

.brawler-chip-list button:hover {
  background: #dff1ff;
}

.brawler-chip-list img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.chip-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip-group strong {
  grid-column: 1 / -1;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

.ranking-notes {
  padding-left: 18px;
  margin: 8px 0 0;
}

.ranking-notes li + li {
  margin-top: 7px;
}

.troph_icon,
.card_icon,
.club_icon {
  float: left;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  background: url("./assets/img/icons/genicon_trophy.png") center / contain no-repeat;
}

.card_icon.legendary {
  width: 60px;
  height: 60px;
  margin-top: -13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: url("./assets/img/heroes/high/hero_icon_crow.png") center / cover no-repeat;
}

.club_icon {
  background-image: url("./assets/img/bands/high/clan_badge_04_04.png");
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.88);
}

.table tr {
  cursor: pointer;
}

.table tr:hover {
  background: #e9f5ff;
}

.table td {
  padding: 8px;
  border-top: 1px solid #d5e2ec;
  vertical-align: middle;
}

.enhanced-table td {
  padding: 10px 8px;
}

.rank-cell,
.avatar-cell,
.level-cell {
  width: 42px;
}

.score-cell {
  width: 165px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.score-cell span {
  vertical-align: middle;
}

.score-cell img {
  margin-left: 5px;
  vertical-align: middle;
}

.topbox {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.topbox.gold {
  background: #ffcf2f;
  color: #593d00;
}

.topbox.silver {
  background: #c9d6df;
  color: #2c3e50;
}

.topbox.bronze {
  background: #c98044;
}

.pl_icon,
.member-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.brawler-leader-icon {
  width: 42px;
  height: 42px;
}

.club-leader-icon {
  width: 42px;
  height: 46px;
}

.exp-star {
  display: grid;
  place-items: center;
  width: 30px;
  height: 35px;
  background: #ffcf2f;
  color: #593d00;
  font-weight: 700;
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}

.member-role,
.member-band {
  color: var(--navy);
  font-weight: 700;
}

.leaderboard-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.leaderboard-row-meta {
  color: #52616c;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.leaderboard-row-meta span,
.leaderboard-row-meta strong {
  display: block;
}

.leaderboard-row-meta strong {
  color: var(--green);
}

.trend {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  margin-left: 5px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
}

.trend.up {
  background: #12a955;
}

.trend.down {
  background: #d44950;
}

.trend.flat {
  background: #7d8b95;
}

.empty-row td {
  padding: 24px;
  color: #52616c;
  font-weight: 700;
  text-align: center;
}

.detail-drawer {
  display: none;
  position: relative;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 0 rgba(8, 68, 124, 0.12);
}

.detail-drawer.active {
  display: grid;
}

.detail-drawer > img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.detail-drawer h2 {
  margin: 0;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.detail-drawer p {
  margin: 6px 0 12px;
  color: #52616c;
  font-weight: 700;
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid div {
  padding: 10px;
  border-radius: 5px;
  background: #eef6fc;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.member-score {
  float: right;
  font-size: 18px;
  font-weight: 700;
  line-height: 35px;
}

footer {
  color: #fff;
}

.footer {
  padding: 26px 0;
  background: #2c3e50;
}

.footer h3 {
  margin: 0 0 10px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
  line-height: 1.55;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  min-height: 56px;
  padding: 14px 0;
  background: #233140;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-line p {
  margin: 0;
}

.payments {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.payments li {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.jump:hover,
.jumpbig:hover,
.jumpc:hover {
  transform: translateY(-2px);
}

@media (max-width: 780px) {
  .hero-grid,
  .dashboard-grid,
  .leaderboard-hero,
  .leaderboard-layout,
  .profile-hero-panel,
  .club-hero-panel,
  .profile-dashboard,
  .club-dashboard {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .modern-brawler-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .source-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-side {
    grid-template-columns: 1fr 1fr;
  }

  .leaderboard-controls,
  .compare-panel {
    grid-template-columns: 1fr 1fr;
  }

  .board-status,
  .compare-result {
    grid-column: 1 / -1;
  }

  .leaderboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-brand,
  .navbar-collapse {
    float: none;
  }

  .navbar-collapse {
    clear: both;
  }

  .nav > li > a {
    padding: 12px 10px;
  }

  .dropdown-menu {
    right: auto;
    left: 0;
  }

  .profile-main,
  .profile-band {
    float: none;
    width: 100%;
    text-align: left;
  }

  .profile-band {
    margin-top: 12px;
  }

  .band .info {
    text-align: left;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-snapshot-grid,
  .club-stat-grid,
  .brawlers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-hero {
    padding-top: 34px;
  }

  .navbar-brand p {
    font-size: 14px;
  }

  .nav > li {
    display: block;
  }

  .home-page {
    min-height: 230px;
    padding: 80px 0;
  }

  .featured-brawler {
    min-height: 0;
  }

  .featured-art {
    min-height: 210px;
  }

  .loadout,
  .modern-brawler-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 46px 1fr;
  }

  .event-card img {
    width: 46px;
    height: 46px;
  }

  .event-card .timer {
    grid-column: 2;
  }

  .leaderboard-hero h1 {
    font-size: 38px;
  }

  .leaderboard-metrics,
  .leaderboard-side,
  .brawler-chip-list,
  .leaderboard-controls,
  .compare-panel,
  .detail-drawer,
  .player-snapshot-grid,
  .club-stat-grid,
  .brawlers {
    grid-template-columns: 1fr;
  }

  .leaderboard-stat-grid,
  .detail-grid,
  .chip-group {
    grid-template-columns: 1fr;
  }

  .detail-drawer > img {
    width: 110px;
    height: 110px;
  }

  .leaderboard-tabs button {
    flex: 1 1 30%;
  }

  .enhanced-table,
  .enhanced-table tbody,
  .enhanced-table tr,
  .enhanced-table td {
    display: block;
    width: 100%;
  }

  .enhanced-table tr {
    position: relative;
    min-height: 116px;
    padding: 10px 10px 10px 92px;
    border-top: 1px solid #d5e2ec;
  }

  .enhanced-table td {
    padding: 0;
    border-top: 0;
  }

  .enhanced-table .rank-cell {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
  }

  .enhanced-table .avatar-cell {
    position: absolute;
    top: 54px;
    left: 10px;
    width: 42px;
  }

  .enhanced-table .level-cell {
    position: absolute;
    top: 54px;
    left: 54px;
    width: 30px;
  }

  .leaderboard-row-main {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .leaderboard-row-meta {
    text-align: left;
  }

  .score-cell {
    margin-top: 8px;
    text-align: left;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .player-brawler-art {
    min-height: 190px;
  }

  .player-brawler-art img {
    height: 180px;
  }

  .member-score {
    float: none;
    display: block;
    line-height: 1.4;
  }
}
