:root {
  --bg: #020202;
  --panel: rgba(8, 6, 5, 0.84);
  --panel-strong: rgba(7, 5, 5, 0.94);
  --text: #fff7ef;
  --muted: #b8b0ac;
  --orange: #ff7300;
  --orange-light: #ffad55;
  --green: #6cff99;
  --red: #ff6262;
  --line: rgba(255, 124, 26, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  --container: 1380px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.brand strong {
  font-family: "Cinzel", serif;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.container {
  width: min(calc(100% - 56px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  width: 100%;
  transition: 0.3s ease;
}
.site-header.scrolled {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 2, 2, 0.78);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 56px), 1500px);
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 137, 48, 0.42);
  border-radius: 50%;
  color: var(--orange-light);
  box-shadow:
    inset 0 0 18px rgba(255, 105, 0, 0.13),
    0 0 22px rgba(255, 92, 0, 0.08);
}
.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.045em;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--orange-light);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.auth-guest-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.account-menu {
  position: relative;
}
.account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  color: #ded8d6;
  background: transparent;
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
}
.account-menu-trigger strong {
  color: var(--orange-light);
  font-weight: 600;
}
.account-menu-chevron {
  color: var(--orange-light);
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.account-menu-trigger[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(180deg);
}
.account-menu-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 5, 0.98);
  box-shadow: var(--shadow);
}
.account-menu-dropdown.is-open {
  display: block !important;
}
.account-menu-dropdown a,
.account-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  color: #ded8d6;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.main-nav .account-menu-dropdown a::after,
.main-nav .account-menu-dropdown a:hover::after,
.main-nav .account-menu-dropdown a:focus-visible::after {
  display: none;
  width: 0;
  box-shadow: none;
}
.account-menu-dropdown a:hover,
.account-menu-dropdown button:hover,
.account-menu-dropdown button:focus-visible,
.account-menu-dropdown a:focus-visible {
  color: var(--orange-light);
  background: rgba(255, 106, 0, 0.08);
}
.account-menu-dropdown a[aria-disabled="true"] {
  opacity: 0.7;
}
.main-nav a {
  position: relative;
  color: #ded8d6;
  font-size: 0.87rem;
}
.main-nav a:not(.register-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -11px;
  width: 0;
  height: 1px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
.register-link {
  padding: 13px 24px;
  border: 1px solid rgba(255, 135, 47, 0.44);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.06);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: white;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #010101;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -5;
  background: url("../images/hero-reference3.png") center center / cover
    no-repeat;
  transform: scale(1.025);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.96) 0%,
      rgba(0, 0, 0, 0.78) 24%,
      rgba(0, 0, 0, 0.18) 48%,
      rgba(0, 0, 0, 0.07) 75%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.02) 55%,
      rgba(0, 0, 0, 0.77) 100%
    );
}
.hero-glow {
  position: absolute;
  z-index: -3;
  top: 47%;
  left: 63%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 115, 0, 0.13),
    rgba(255, 77, 0, 0.04) 45%,
    transparent 70%
  );
  filter: blur(28px);
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-inner {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 56px), 1500px);
  min-height: 100vh;
  margin-inline: auto;
  padding-top: 1px;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 540px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 36px;
  height: 1px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}
.hero h1 {
  margin-bottom: 25px;
  font-size: clamp(1rem, 8vw, 8.5rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 45px rgba(0, 0, 0, 0.85);
}
.hero h1 span,
.hero h1 em {
  display: block;
}
.hero h1 em {
  color: var(--orange-light);
  font-style: normal;
  text-shadow:
    0 0 24px rgba(255, 105, 0, 0.2),
    0 8px 45px rgba(0, 0, 0, 0.85);
}
.hero-copy p {
  max-width: 500px;
  color: rgba(235, 230, 228, 0.78);
  line-height: 1.75;
  font-size: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-actions.centered {
  justify-content: center;
}
.button {
  display: inline-flex;
  min-width: 190px;
  min-height: 55px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  color: #fff;
  border-color: rgba(255, 187, 118, 0.6);
  background: linear-gradient(135deg, #ff9b35, #db4b00);
  box-shadow:
    0 14px 40px rgba(255, 75, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.button-primary:hover {
  box-shadow: 0 18px 50px rgba(255, 75, 0, 0.5);
}
.button-secondary {
  border-color: rgba(255, 143, 54, 0.34);
  background: rgba(5, 4, 4, 0.54);
  backdrop-filter: blur(12px);
}
.button-secondary:hover {
  background: rgba(255, 105, 0, 0.08);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 188, 116, 0.76);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue i {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--orange), transparent);
  animation: cue 2s ease-in-out infinite;
}

.stats-wrap {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 36px;
  width: min(calc(100% - 56px), 1320px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-card {
  min-height: 132px;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(12, 8, 7, 0.9), rgba(4, 3, 4, 0.86));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 146, 60, 0.5);
}
.stat-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-light);
  border: 1px solid rgba(255, 127, 30, 0.25);
  background: rgba(255, 105, 0, 0.07);
  font-size: 1.3rem;
}
.stat-card span {
  display: block;
  margin-bottom: 7px;
  color: #aaa4a7;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat-card strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1.55rem;
}
.stat-card small {
  display: block;
  margin-top: 7px;
  color: var(--orange-light);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.stat-card strong.online {
  color: var(--green);
}
.stat-card strong.offline {
  color: var(--red);
}
.stat-card small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
}
.stat-card small.online i {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.stat-card small.offline i {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.section {
  position: relative;
  padding: 110px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 76, 0, 0.04), transparent 30%),
    linear-gradient(180deg, #040303, #070505);
}
.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}
.section-heading span,
.download-card > span,
.register-card > span {
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-heading h2,
.download-card h2,
.register-card h2 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.06;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card,
.download-card,
.ranking-card,
.register-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13, 9, 8, 0.9), rgba(5, 4, 5, 0.86));
  box-shadow: var(--shadow);
}
.feature-card {
  min-height: 250px;
  padding: 30px 24px;
  text-align: center;
  transition: 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 148, 64, 0.48);
}
.feature-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-light);
  border: 1px solid rgba(255, 128, 30, 0.24);
  background: rgba(255, 103, 0, 0.07);
  font-size: 1.5rem;
}
.feature-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feature-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.84rem;
}

.dark-section {
  padding-top: 40px;
}
.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}
.download-card {
  min-height: 360px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.download-card p,
.register-card p {
  color: var(--muted);
  line-height: 1.75;
}
.download-card .button.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}
.download-card .download-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: #aaa4a7;
  font-size: 0.76rem;
}
.download-card .download-status:empty {
  display: none;
}
.ranking-card {
  padding: 36px;
}
.ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.ranking-head > span {
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ranking-head a {
  color: var(--orange-light);
  font-size: 0.72rem;
}
.ranking-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d3cdcb;
  font-size: 0.82rem;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ranking-table th,
.ranking-table td {
  padding: 15px 5px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ranking-table th {
  color: #777173;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ranking-table td {
  color: #d3cdcb;
  font-size: 0.82rem;
}

.ranking-table .ranking-message td {
  color: var(--muted);
  text-align: center;
}

.ranking-table td:nth-child(2) {
  color: var(--orange-light);
  font-weight: 700;
}

.ranking-table th:nth-child(1),
.ranking-table td:nth-child(1) {
  width: 40px;
}

.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3) {
  width: 80px;
}

.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4) {
  width: 130px;
}

.ranking-table th:nth-child(5),
.ranking-table td:nth-child(5) {
  width: 110px;
}

.ranking-status {
  min-height: 1.25rem;
}

.register-section {
  padding-top: 30px;
}
.register-card {
  max-width: 900px;
  margin-inline: auto;
  padding: 58px;
  text-align: center;
}
.register-card p {
  max-width: 650px;
  margin-inline: auto;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #020202;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.5fr;
  align-items: center;
  gap: 28px;
}
.footer-inner p {
  margin: 0;
  text-align: center;
  color: #817a7b;
  font-size: 0.72rem;
}
.footer-inner > a {
  text-align: right;
  color: #a69ea0;
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
@keyframes cue {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.65);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (min-width: 1101px) {
  .hero-copy {
    margin-top: -100px;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }
  .hero-inner {
    min-height: auto;
    align-items: flex-start;
    padding-top: 170px;
  }
  .stats-wrap {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0px auto 70px;
    grid-template-columns: repeat(2, 1fr);
  }
  .scroll-cue {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 80px;
    right: 20px;
    width: min(320px, calc(100vw - 40px));
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border: 1px solid var(--line);
    background: rgba(4, 3, 3, 0.97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .auth-guest-links {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .account-menu-dropdown {
    position: static;
    margin-top: 12px;
    box-shadow: none;
  }
  .hero-background {
    background-position: 62% center;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-inner p,
  .footer-inner > a {
    text-align: center;
  }
}
/*
.hero h1 {
    display: none;
}

 */
@media (max-width: 620px) {
  .container,
  .header-inner,
  .hero-inner {
    width: min(calc(100% - 28px), var(--container));
  }
  .brand strong {
    font-size: 0.82rem;
  }
  .brand small {
    display: none;
  }
  .hero-inner {
    min-height: 850px;
    padding-top: 135px;
  }
  .hero h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }
  .hero-background {
    background-size: auto 100%;
    background-position: 64% center;
  }
  .stats-wrap,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-wrap {
    width: calc(100% - 28px);
    margin-top: -120px;
  }
  .section {
    padding: 80px 0;
  }
  .download-card,
  .ranking-card,
  .register-card {
    padding: 30px 24px;
  }
  .ranking-card {
    overflow-x: auto;
  }
  .ranking-table {
    min-width: 590px;
  }
}
/*
.hero-copy {
    display: none !important;
}

 */

/* Registration page */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 76, 0, 0.1), transparent 34%),
    linear-gradient(180deg, #040303, #070505);
}

.auth-page .site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 2, 2, 0.78);
  backdrop-filter: blur(18px);
}

.auth-main {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(calc(100% - 56px), 560px);
  padding: 52px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13, 9, 8, 0.94), rgba(5, 4, 5, 0.9));
  box-shadow: var(--shadow);
}

.auth-card > span {
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.auth-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: #ded8d6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 143, 54, 0.34);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: rgba(5, 4, 4, 0.72);
  font: inherit;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-field input::placeholder {
  color: #817a7b;
}

.form-field input:focus-visible {
  border-color: var(--orange-light);
  box-shadow: 0 0 0 3px rgba(255, 173, 85, 0.18);
}

.auth-form .button {
  width: 100%;
  cursor: pointer;
}

.register-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.register-message.success {
  color: #b9ffca;
  border-color: rgba(108, 255, 153, 0.35);
  background: rgba(108, 255, 153, 0.08);
}

.register-message.error {
  color: #ffc0a8;
  border-color: rgba(255, 115, 0, 0.42);
  background: rgba(255, 115, 0, 0.1);
}

.auth-note {
  margin: 22px 0 0;
  color: #817a7b;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.auth-note a {
  color: var(--orange-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .auth-main {
    padding: 120px 0 50px;
  }
  .auth-card {
    width: min(calc(100% - 28px), 560px);
    padding: 32px 24px;
  }
}

/* Full rankings page */
.rankings-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 76, 0, 0.1), transparent 34%),
    linear-gradient(180deg, #040303, #070505);
}

.rankings-page .site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 2, 2, 0.78);
  backdrop-filter: blur(18px);
}

.rankings-main {
  min-height: 100vh;
  padding: 140px 0 80px;
}

.rankings-page-card {
  width: min(calc(100% - 56px), 1180px);
  margin-inline: auto;
  padding: 52px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(13, 9, 8, 0.94), rgba(5, 4, 5, 0.9));
  box-shadow: var(--shadow);
}

.rankings-page-heading {
  max-width: 720px;
  margin-bottom: 34px;
}
.rankings-page-heading > span {
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rankings-page-heading h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.06;
}
.rankings-page-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.rankings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.rankings-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rankings-category-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 143, 54, 0.34);
  border-radius: 4px;
  color: #cfc4bf;
  background: rgba(5, 4, 4, 0.72);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}
.rankings-category-button:hover,
.rankings-category-button:focus-visible,
.rankings-category-button.is-active {
  border-color: rgba(255, 187, 118, 0.65);
  color: #fff3df;
  background: rgba(255, 105, 0, 0.14);
  outline: none;
}
.rankings-result-count {
  margin: 0;
  color: #aaa4a7;
  font-size: 0.78rem;
}
.rankings-size-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #aaa4a7;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rankings-size-control select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 143, 54, 0.34);
  border-radius: 4px;
  color: var(--text);
  background: rgba(5, 4, 4, 0.72);
  font: inherit;
}
.rankings-size-control select:focus-visible,
.ranking-page-button:focus-visible {
  outline: 3px solid rgba(255, 173, 85, 0.3);
  outline-offset: 2px;
}

.rankings-table-wrap {
  overflow-x: auto;
}
.rankings-page .ranking-table {
  min-width: 860px;
}
.rankings-page .ranking-table th,
.rankings-page .ranking-table td {
  padding: 17px 12px;
}
.rankings-page .ranking-table tbody tr:hover {
  background: rgba(255, 115, 0, 0.05);
}
.rankings-page .ranking-table td:first-child {
  color: var(--orange-light);
  font-family: "Cinzel", serif;
  font-weight: 700;
}
.ranking-class-icon,
.ranking-race-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.ranking-page-status {
  min-height: 1.5rem;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.ranking-page-status.error {
  color: #ffc0a8;
}

.ranking-page-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.ranking-page-button {
  min-width: 40px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 143, 54, 0.34);
  border-radius: 4px;
  color: var(--text);
  background: rgba(5, 4, 4, 0.72);
  font: inherit;
  cursor: pointer;
  transition: 0.25s ease;
}
.ranking-page-button:hover:not(:disabled),
.ranking-page-button[aria-current="page"] {
  border-color: rgba(255, 187, 118, 0.65);
  background: rgba(255, 105, 0, 0.14);
  color: var(--orange-light);
}
.ranking-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

@media (max-width: 620px) {
  .rankings-main {
    padding: 120px 0 50px;
  }
  .rankings-page-card {
    width: min(calc(100% - 28px), 1180px);
    padding: 32px 24px;
  }
  .rankings-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .ranking-page-pagination {
    flex-wrap: wrap;
  }
}
