/* ==========================================================================
   Agent10M — Design System & Styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --primary: #6C3CE9;
  --primary-dark: #5628C8;
  --secondary: #00C9A7;
  --accent: #FFB800;
  --bg-light: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: #fff;
  background: #0f0c29;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: #0b0914;
  background-image:
    radial-gradient(at 0% 0%, rgba(108, 60, 233, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 201, 167, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 184, 0, 0.4) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(108, 60, 233, 0.3) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: aurora 20s ease infinite;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 80px 160px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 150px 40px, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 120px 90px, #ffffff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 180px 140px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 250px 250px;
  animation: drifting-stars 100s linear infinite;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.navbar__menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.navbar__link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--secondary);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 7px;
  z-index: 1001;
  position: relative;
}

.navbar__toggle span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu Active State */
.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #1A1A2E;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navbar__menu.active {
    right: 0;
  }

  .navbar__link {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Animation Keyframes */
@keyframes background-pan {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes aurora {
  0% {
    background-position: 0% 0%;
  }

  25% {
    background-position: 100% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

@keyframes drifting-stars {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -2000px 1000px;
  }
}

@keyframes text-glow-pulse {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 0 0 20px rgba(108, 60, 233, 0.6);
  }

  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(108, 60, 233, 1);
  }
}

@keyframes float-up-down {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero {
  color: #fff;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* Hero background pseudo-elements removed */

.hero__container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}

.text-glow {
  color: #fff;
  animation: text-glow-pulse 3s infinite alternate;
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(90deg, #FFB800, #FF5E3A, #00C9A7, #6C3CE9, #FFB800);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: background-pan 4s linear infinite;
  display: inline-block;
}

.hero__prize {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero__prize:hover {
  transform: scale(1.05) translateY(-5px);
  text-shadow: 0 10px 40px rgba(255, 184, 0, 0.8);
}

.hero__prize::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  z-index: -1;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s;
}

.hero__prize:hover::before {
  opacity: 1;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 40px;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
}

.hero__stat:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 50px rgba(108, 60, 233, 0.5);
  border-color: rgba(108, 60, 233, 0.6);
}

.hero__stat-label {
  display: block;
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.hero__stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

.hero__cta {
  display: inline-block;
  margin-top: 64px;
  padding: 18px 56px;
  background: linear-gradient(90deg, #6C3CE9, #00C9A7, #6C3CE9);
  background-size: 200% auto;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(108, 60, 233, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: background-pan 4s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero__cta:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 201, 167, 0.6);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.section__subtitle {
  font-family: var(--font);
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: -36px;
  margin-bottom: 48px;
}

/* Fade-in animation */
.section--fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Rules (How It Works)
   ========================================================================== */
.rules {
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* Rules background pseudo-elements removed */

.rules .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.rules .container {
  position: relative;
  z-index: 1;
}

.rules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.rules__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
}

.rules__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(108, 60, 233, 0.5);
  border-color: rgba(255, 184, 0, 0.5);
}

.rules__card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: float-up-down 4s ease-in-out infinite alternate;
}

.rules__card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rules__card-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ==========================================================================
   Leaderboard
   ========================================================================== */
.leaderboard__coming-soon {
  text-align: center;
  padding: 80px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(108, 60, 233, 0.3);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.leaderboard__coming-soon h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(255, 184, 0, 0.4);
}

.leaderboard__coming-soon p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.leaderboard__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.7);
}

.leaderboard__state--error {
  color: #DC2626;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(108, 60, 233, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.leaderboard__search {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.leaderboard__search-input {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  width: 100%;
  max-width: 400px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.leaderboard__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.leaderboard__search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(108, 60, 233, 0.4);
}

.leaderboard__wrapper {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(108, 60, 233, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 60, 233, 0.3);
}

/* Custom Scrollbar for wrapper */
.leaderboard__wrapper::-webkit-scrollbar {
  width: 8px;
}

.leaderboard__wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.leaderboard__wrapper::-webkit-scrollbar-thumb {
  background: rgba(108, 60, 233, 0.5);
  border-radius: 8px;
}

.leaderboard__wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 60, 233, 0.8);
}

.leaderboard__table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.leaderboard__table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.leaderboard__table th {
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(10px);
  color: var(--accent);
  padding: 20px 24px;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  border-bottom: 2px solid rgba(108, 60, 233, 0.5);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.leaderboard__table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  font-weight: 500;
}

.leaderboard__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Top 3 highlights */
.rank--gold {
  background: rgba(255, 184, 0, 0.15) !important;
}

.rank--gold td:first-child {
  font-weight: 700;
  color: #FFD700;
}

.rank--silver {
  background: rgba(192, 192, 192, 0.15) !important;
}

.rank--silver td:first-child {
  font-weight: 700;
  color: #E0E0E0;
}

.rank--bronze {
  background: rgba(205, 127, 50, 0.15) !important;
}

.rank--bronze td:first-child {
  font-weight: 700;
  color: #FF9966;
}

/* ==========================================================================
   Search Your Ranking
   ========================================================================== */
.search-ranking__note {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: -36px;
  margin-bottom: 32px;
  font-style: italic;
}

.search-ranking__form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 600px;
  flex-wrap: wrap;
}

.search-ranking__no-results {
  text-align: center;
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.btn--refresh {
  background: var(--primary);
  color: #fff;
}

.btn--refresh:hover {
  background: var(--primary-dark);
}

#ranking-results .leaderboard__wrapper {
  max-height: none;
  overflow-y: visible;
}

/* ==========================================================================
   The Alliance (dramatic redesign)
   ========================================================================== */
.alliance {
  color: #fff;
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

/* Alliance background pseudo-elements removed */

.alliance__container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.alliance__headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2;
  margin-bottom: 64px;
}

.alliance__headline span {
  display: block;
  text-shadow: 0 0 40px rgba(255, 184, 0, 0.15);
}

.alliance__headline--accent {
  color: var(--accent);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  text-shadow: 0 0 60px rgba(255, 184, 0, 0.4), 0 0 120px rgba(255, 184, 0, 0.15) !important;
  margin-top: 8px;
}

.alliance__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.alliance__pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.alliance__pillar-logo {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.alliance__pillar-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.alliance__pillar:hover {
  transform: translateY(-6px);
}

/* Larger logo variant — scale visually without affecting layout */
.alliance__pillar-logo--large {
  transform: scale(1.5);
  position: relative;
  z-index: 0;
}
.alliance__pillar-logo--large + .alliance__pillar-name {
  position: relative;
  z-index: 1;
}

/* Unique glow per management */
.alliance__pillar--jd {
  border-color: rgba(108, 60, 233, 0.5);
  box-shadow: 0 0 30px rgba(108, 60, 233, 0.2), inset 0 0 30px rgba(108, 60, 233, 0.05);
}

.alliance__pillar--jd:hover {
  box-shadow: 0 0 50px rgba(108, 60, 233, 0.4);
}

.alliance__pillar--rk {
  border-color: rgba(0, 201, 167, 0.5);
  box-shadow: 0 0 30px rgba(0, 201, 167, 0.2), inset 0 0 30px rgba(0, 201, 167, 0.05);
}

.alliance__pillar--rk:hover {
  box-shadow: 0 0 50px rgba(0, 201, 167, 0.4);
}

.alliance__pillar--gd {
  border-color: rgba(255, 184, 0, 0.5);
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.2), inset 0 0 30px rgba(255, 184, 0, 0.05);
}

.alliance__pillar--gd:hover {
  box-shadow: 0 0 50px rgba(255, 184, 0, 0.4);
}

.alliance__pillar--pp {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.2), inset 0 0 30px rgba(220, 38, 38, 0.05);
}

.alliance__pillar--pp:hover {
  box-shadow: 0 0 50px rgba(220, 38, 38, 0.4);
}

.alliance__pillar--pv {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), inset 0 0 30px rgba(59, 130, 246, 0.05);
}

.alliance__pillar--pv:hover {
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
}

.alliance__pillar--bb {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2), inset 0 0 30px rgba(245, 158, 11, 0.05);
}

.alliance__pillar--bb:hover {
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.4);
}

.alliance__pillar--vph {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2), inset 0 0 30px rgba(236, 72, 153, 0.05);
}

.alliance__pillar--vph:hover {
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.4);
}

.alliance__pillar--delta {
  border-color: rgba(132, 204, 22, 0.5);
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.2), inset 0 0 30px rgba(132, 204, 22, 0.05);
}

.alliance__pillar--delta:hover {
  box-shadow: 0 0 50px rgba(132, 204, 22, 0.4);
}

.alliance__pillar--crystal {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2), inset 0 0 30px rgba(6, 182, 212, 0.05);
}

.alliance__pillar--crystal:hover {
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.4);
}

.alliance__pillar--vm {
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 0 30px rgba(217, 119, 6, 0.2), inset 0 0 30px rgba(217, 119, 6, 0.05);
}

.alliance__pillar--vm:hover {
  box-shadow: 0 0 50px rgba(217, 119, 6, 0.4);
}

.alliance__pillar--kingdom {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.alliance__pillar--kingdom:hover {
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.4);
}

.alliance__pillar--liliroyale {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.2), inset 0 0 30px rgba(244, 63, 94, 0.05);
}

.alliance__pillar--liliroyale:hover {
  box-shadow: 0 0 50px rgba(244, 63, 94, 0.4);
}

.alliance__pillar-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.alliance__pillar-count {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Footer Brand Ticker
   ========================================================================== */
.brand-ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.brand-ticker__track {
  display: inline-flex;
  gap: 32px;
  animation: ticker-scroll 60s linear infinite;
}

.brand-ticker__item {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn--secondary {
  background: var(--secondary);
  color: #fff;
}

.btn--secondary:hover {
  background: #00b396;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 40px 24px;
}

.footer__text {
  font-size: 1rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.footer__copy {
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Tablet & small laptops --- */
@media (max-width: 768px) {
  .hero {
    padding: 100px 16px 56px;
  }

  .hero__stats {
    gap: 16px;
  }

  .hero__stat {
    padding: 18px 24px;
  }

  .hero__stat-label {
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .hero__stat-value {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    margin-bottom: 32px;
  }

  .leaderboard__wrapper {
    max-height: 400px;
  }

  .leaderboard__table {
    font-size: 0.82rem;
  }

  .leaderboard__table th,
  .leaderboard__table td {
    padding: 10px 10px;
  }

  /* Alliance */
  .alliance {
    padding: 64px 16px;
  }

  .alliance__headline {
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    letter-spacing: 1.5px;
    margin-bottom: 40px;
  }

  .alliance__pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .alliance__pillar {
    padding: 24px 14px;
  }

  .alliance__pillar-name {
    font-size: 0.9rem;
  }

  /* Search form */
  .search-ranking__form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-ranking__form .leaderboard__search-input {
    max-width: 100%;
  }

  .search-ranking__form .btn {
    width: 100%;
    text-align: center;
  }

  /* Ticker */
  .brand-ticker__track {
    gap: 24px;
  }

  .brand-ticker__item {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  /* Sub-pages */
  .antiscam-page,
  .join-page,
  .management-page,
  .alliance-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .tos-section {
    padding: 24px 16px;
  }

  .tos-container {
    padding: 24px 16px;
  }

  .coverage-card {
    padding: 32px 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step {
    padding: 16px;
  }

  .mgmt-header .mgmt-logo {
    width: 100px;
    height: 100px;
  }

  .mgmt-name {
    font-size: 1.8rem;
  }

  .brands-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .hero {
    padding: 90px 12px 40px;
  }

  .hero__headline {
    letter-spacing: 1px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 12px;
  }

  .hero__stat {
    padding: 16px 20px;
  }

  .hero__cta {
    padding: 14px 36px;
    font-size: 1rem;
    margin-top: 40px;
  }

  .section {
    padding: 40px 0;
  }

  .section__title {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .section__subtitle {
    margin-top: -16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
  }

  .rules {
    padding: 60px 0;
  }

  .rules__grid {
    gap: 16px;
  }

  .rules__card {
    padding: 24px 16px;
  }

  .rules__card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .rules__card-title {
    font-size: 1.1rem;
  }

  .leaderboard__wrapper {
    max-height: 350px;
    border-radius: 8px;
  }

  /* Alliance — 2-col grid on mobile */
  .alliance {
    padding: 48px 12px;
  }

  .alliance__headline {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
    letter-spacing: 1px;
    gap: 4px;
    margin-bottom: 32px;
  }

  .alliance__headline--accent {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .alliance__pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .alliance__pillar {
    padding: 18px 10px;
  }

  .alliance__pillar-logo--large {
    transform: scale(1.4);
  }

  .alliance__pillar-logo {
    max-height: 50px;
  }

  .alliance__pillar-name {
    font-size: 0.8rem;
  }

  /* Ticker */
  .brand-ticker {
    padding: 12px 0;
  }

  .brand-ticker__track {
    gap: 20px;
  }

  .brand-ticker__item {
    font-size: 0.7rem;
    letter-spacing: 0.8px;
  }

  /* Footer */
  .footer {
    padding: 28px 12px;
  }

  .footer__text {
    font-size: 0.88rem;
  }

  /* Sub-pages */
  .antiscam-page,
  .join-page,
  .management-page,
  .alliance-page {
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .coverage-amount {
    font-size: 2rem;
  }

  .tos-section {
    padding: 20px 14px;
  }

  .tos-title {
    font-size: 1.2rem;
  }

  .tos-item {
    gap: 12px;
  }

  .tos-content h4 {
    font-size: 0.95rem;
  }

  .tos-content p {
    font-size: 0.85rem;
  }

  .btn--report {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-card {
    padding: 16px;
  }

  .tos-container {
    padding: 20px 14px;
  }

  .process-step {
    padding: 14px;
    gap: 12px;
  }

  .mgmt-header .mgmt-logo {
    width: 80px;
    height: 80px;
  }

  .mgmt-name {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand-card {
    padding: 16px;
  }
}

/* --- Very small screens (320px) --- */
@media (max-width: 360px) {
  .hero {
    padding: 84px 10px 32px;
  }

  .hero__headline {
    font-size: 1.5rem;
  }

  .hero__prize {
    font-size: 1.2rem;
  }

  .hero__stat {
    padding: 14px 16px;
  }

  .alliance__headline {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .alliance__headline--accent {
    font-size: 1.4rem;
  }

  .alliance__pillar {
    padding: 14px 8px;
  }

  .alliance__pillar-logo {
    max-height: 40px;
  }

  .alliance__pillar-name {
    font-size: 0.72rem;
  }

  .navbar__logo {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .leaderboard__table th,
  .leaderboard__table td {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
}