@charset "UTF-8";

/* ── Rankings / Logs Hero — tabs & extras only (shell = wiki-hero) ── */

body.body--rankings {
  overflow-x: hidden;
}

body.body--rankings .rankings-hero + .section_rankings-page {
  position: relative;
  z-index: 46;
  margin-top: 0 !important;
  padding-top: 1rem !important;
}

body.body--rankings .rankings-hero + .section_rankings-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: clamp(24px, 4vw, 46px);
  pointer-events: none;
  background: linear-gradient(180deg, #0c0b0a 0%, rgba(12, 11, 10, 0.86) 44%, rgba(12, 11, 10, 0) 100%);
}

/* Extra bottom padding when tabs sit in afterTitle */
body.body--rankings .wiki-hero.rankings-hero .wiki-hero__container {
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

/* ── Subtitle row (replaces plain wiki subtitle + divider) ── */

.rankings-hero__subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  width: min(42rem, 92%);
  margin: 0 0 clamp(1.25rem, 2.2vw, 1.75rem);
}

.rankings-hero__subtitle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.35) 18%, rgba(240, 209, 138, 0.55) 50%, rgba(200, 169, 107, 0.35) 82%, transparent);
  box-shadow: 0 0 0.6rem rgba(200, 169, 107, 0.12);
}

.rankings-hero__subtitle {
  margin: 0;
  color: #d7c8a1;
  font-family: var(--font-0, "Open Sans", Arial, sans-serif);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  opacity: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Category tabs ── */

.rankings-hero__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  width: 100%;
  max-width: 68rem;
  margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
}

body.body--rankings .rankings-hero__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(200, 169, 107, 0.28);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.52);
  appearance: none;
  cursor: pointer;
  color: #d7c8a1;
  font-family: var(--font-1, "ChelseaCYR", serif);
  font-size: var(--site-hero-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

body.body--rankings .rankings-hero__tab:hover {
  border-color: rgba(199, 156, 77, 0.35);
  box-shadow: 0 0 20px rgba(199, 156, 77, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

body.body--rankings .rankings-hero__tab:focus {
  width: auto;
  height: auto;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(200, 169, 107, 0.28);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.52);
  color: #d7c8a1;
  font-family: var(--font-1, "ChelseaCYR", serif);
  font-size: var(--site-hero-label);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  outline: none;
  box-shadow: none;
}

body.body--rankings .rankings-hero__tab.is-active {
  border-color: rgba(240, 209, 138, 0.65);
  background: linear-gradient(180deg, #f0d18a 0%, #c8a96b 55%, #a88445 100%);
  box-shadow:
    0 0.25rem 1rem rgba(200, 169, 107, 0.35),
    inset 0 1px 0 rgba(255, 248, 220, 0.35);
  color: #0c0b0a;
}

body.body--rankings .rankings-hero__tab.is-active:focus {
  border-color: rgba(240, 209, 138, 0.65);
  background: linear-gradient(180deg, #f0d18a 0%, #c8a96b 55%, #a88445 100%);
  color: #0c0b0a;
  box-shadow:
    0 0.25rem 1rem rgba(200, 169, 107, 0.35),
    inset 0 1px 0 rgba(255, 248, 220, 0.35);
}

/* ── Stat cards (optional) ── */

.rankings-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  width: 100%;
  max-width: 56rem;
}

.rankings-hero__stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  min-height: 5.5rem;
  padding: clamp(0.85rem, 1.4vw, 1.15rem) clamp(1rem, 1.6vw, 1.35rem);
  overflow: hidden;
  border: 1px solid rgba(200, 169, 107, 0.14);
  border-radius: 0.5rem;
  background: rgba(12, 11, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.22),
    inset 0 0 2rem rgba(199, 156, 77, 0.04);
}

.rankings-hero__stat::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -15%;
  width: 55%;
  height: 110%;
  pointer-events: none;
  opacity: 0.08;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rankings-hero__stat--players::after {
  background-image: radial-gradient(ellipse at center, rgba(200, 169, 107, 0.5), transparent 70%);
}

.rankings-hero__stat--level::after {
  background-image: radial-gradient(ellipse at center, rgba(199, 156, 77, 0.45), transparent 70%);
}

.rankings-hero__stat--top1::after {
  background-image: radial-gradient(ellipse at center, rgba(240, 209, 138, 0.4), transparent 70%);
}

.rankings-hero__stat-icon {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(200, 169, 107, 0.1);
  border: 1px solid rgba(200, 169, 107, 0.22);
  color: #f0d18a;
}

.rankings-hero__stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.rankings-hero__stat-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.rankings-hero__stat-value {
  color: #ffffff;
  font-family: var(--font-1, "ChelseaCYR", serif);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.rankings-hero__stat-label {
  color: #a39888;
  font-family: var(--font-0, "Open Sans", Arial, sans-serif);
  font-size: var(--site-hero-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Responsive ── */

@media (max-width: 767.98px) {
  .rankings-hero__subtitle {
    letter-spacing: 0.14em;
    white-space: normal;
    text-align: center;
  }

  .rankings-hero__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rankings-hero__tabs::-webkit-scrollbar {
    display: none;
  }

  .rankings-hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rankings-hero__subtitle-row,
  .rankings-hero__tabs,
  .rankings-hero__stats {
    animation: rk-enter 0.85s cubic-bezier(0.2, 1, 0.3, 1) both;
  }

  .rankings-hero__subtitle-row {
    animation-delay: 0.12s;
  }

  .rankings-hero__tabs {
    animation-delay: 0.22s;
  }

  .rankings-hero__stats {
    animation-delay: 0.34s;
  }
}

@keyframes rk-enter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
