:root {
  --panel: rgba(15, 23, 42, .88);
  --gold: #ffd45a;
  --gold2: #ff9f1c;
  --blue: #38bdf8;
  --red: #fb7185;
  --green: #22c55e;
  --orange: #f97316;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, .10);
  --shadow: 0 24px 80px rgba(0,0,0,.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.14), transparent 35%),
    radial-gradient(circle at top right, rgba(255,212,90,.14), transparent 30%),
    linear-gradient(180deg, #070a12 0%, #0f172a 48%, #070a12 100%);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.xn-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 11, 18, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.status-strip {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  background: rgba(0,0,0,.28);
}

.status-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  font-size: 12px;
  color: var(--muted);
}

.status-pill strong {
  color: #fff;
  font-weight: 800;
}

.status-pill .online {
  color: var(--green);
  text-shadow: 0 0 14px rgba(34,197,94,.5);
}

.main-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
}

.brand img {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  color: #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0b1020;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-ro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 900;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 14px 36px rgba(255,159,28,.23);
  transition: .2s ease;
}

.btn-ro:hover {
  transform: translateY(-2px);
  color: #111827;
  filter: brightness(1.08);
}

.btn-ro.secondary {
  color: #e2e8f0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: none;
}

.btn-ro.secondary:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 172px 0 70px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.video-showcase-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,212,90,.24);
  box-shadow: var(--shadow);
}

.video-showcase {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,11,18,.82), rgba(8,11,18,.28));
}

.video-showcase-content {
  position: absolute;
  left: 40px;
  bottom: 40px;
  max-width: 520px;
  z-index: 2;
}

.video-showcase-content span {
  color: var(--gold);
  font-weight: 900;
}

.video-showcase-content h3 {
  color: #fff;
  font-size: 38px;
  font-weight: 900;
}

.video-showcase-content p {
  color: #cbd5e1;
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,11,18,.86) 0%, rgba(8,11,18,.62) 46%, rgba(8,11,18,.18) 100%),
    radial-gradient(circle at 70% 35%, rgba(255,212,90,.10), transparent 32%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,212,90,.12);
  border: 1px solid rgba(255,212,90,.32);
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 900;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 28px rgba(255,212,90,.32);
}

.hero-lead {
  max-width: 670px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  max-width: 760px;
}

.mini-stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.mini-stat strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.hero-ranking-card {
  background: linear-gradient(180deg, rgba(15,23,42,.94), rgba(15,23,42,.76));
  border: 1px solid rgba(255,212,90,.26);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-ranking-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255,212,90,.14);
  filter: blur(8px);
}

.rank-preview-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.rank-preview-title h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
}

.rank-preview-title span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.top-player {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
  margin-bottom: 9px;
}

.top-player .place {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}

.top-player .name {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-player .label {
  color: var(--muted);
  font-size: 11px;
}

.top-player .score {
  color: var(--gold);
  font-weight: 900;
  font-size: 15px;
}

.top-moment-group {
  display: none;
  animation: fadeRanking .4s ease;
}

.top-moment-group.active {
  display: block;
}

@keyframes fadeRanking {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  position: relative;
  padding: 88px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .20em;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-heading h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.035em;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  max-width: 720px;
  margin: 12px auto 0;
  line-height: 1.7;
}

.rankings-section {
  background:
    radial-gradient(circle at top, rgba(255,212,90,.12), transparent 36%),
    linear-gradient(180deg, rgba(15,23,42,.50), rgba(8,11,18,.20));
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ranking-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,212,90,.10);
  border: 1px solid rgba(255,212,90,.20);
  color: #fef3c7;
  margin-bottom: 24px;
}

.ranking-topbar strong {
  color: #fff;
}

.countdown {
  color: var(--gold);
}

.ranking-reset {
  margin: -4px 0 14px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,212,90,.08);
  border: 1px solid rgba(255,212,90,.14);
  color: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

.ranking-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.ranking-panel.mvp {
  border-color: rgba(255,212,90,.28);
}

.ranking-panel.pvp {
  border-color: rgba(56,189,248,.28);
}

.ranking-panel.raider {
  border-color: rgba(251,113,133,.28);
}

.ranking-panel.cards {
  border-color: rgba(34,197,94,.28);
}

.ranking-panel.events {
  border-color: rgba(249,115,22,.28);
}

.ranking-panel h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.ranking-panel h3 small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  color: #fff;
  font-size: 13px;
}

.ranking-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 10px 6px;
  font-weight: 900;
}

.ranking-table td {
  background: rgba(255,255,255,.055);
  padding: 11px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ranking-table td:first-child {
  border-left: 1px solid rgba(255,255,255,.06);
  border-radius: 14px 0 0 14px;
  font-weight: 900;
  width: 44px;
}

.ranking-table td:last-child {
  border-right: 1px solid rgba(255,255,255,.06);
  border-radius: 0 14px 14px 0;
  text-align: right;
  color: var(--gold);
  font-weight: 900;
}

.ranking-table .rank-1 td {
  background: linear-gradient(90deg, rgba(255,212,90,.26), rgba(255,255,255,.055));
}

.ranking-table .rank-2 td {
  background: linear-gradient(90deg, rgba(203,213,225,.18), rgba(255,255,255,.055));
}

.ranking-table .rank-3 td {
  background: linear-gradient(90deg, rgba(217,119,6,.20), rgba(255,255,255,.055));
}

.ranking-empty {
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.04);
}

.system-card,
.info-card,
.register-card,
.download-card,
.pack-card {
  height: 100%;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 26px;
  padding: 25px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  transition: .2s ease;
}

.system-card:hover,
.info-card:hover,
.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,212,90,.28);
}

.system-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255,212,90,.10);
  border: 1px solid rgba(255,212,90,.18);
  margin-bottom: 16px;
}

.system-card .icon img {
  max-width: 42px;
  max-height: 42px;
}

.system-card h4,
.info-card h3,
.register-card h3,
.download-card h3,
.pack-card h3 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px;
}

.system-card p,
.info-card p,
.register-card p,
.download-card p,
.pack-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.info-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.075);
  color: #dbeafe;
  font-weight: 700;
  font-size: 13px;
}

.info-list i {
  color: var(--gold);
  margin-right: 6px;
}

.form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}

.form-control:focus {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,212,90,.60);
  color: #fff;
  box-shadow: 0 0 0 .25rem rgba(255,212,90,.12);
}

.form-label,
.form-check-label {
  color: #e2e8f0;
  font-weight: 700;
}

small {
  color: var(--muted);
}

.download-card {
  background:
    linear-gradient(135deg, rgba(255,212,90,.16), rgba(56,189,248,.08)),
    var(--panel);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  padding: 32px 0;
  color: var(--muted);
}

.footer strong {
  color: #fff;
}
.ranking-image-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.55));
  border: 1px solid rgba(255,212,90,.24);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: flex-end;
}

.ranking-image-card img {
  position: absolute;
  right: -10px;
  bottom: 0;
  max-height: 390px;
  max-width: 70%;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.65));
  z-index: 2;
}

.ranking-image-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -60px;
  top: 40px;
  border-radius: 50%;
  background: rgba(255,212,90,.18);
  filter: blur(30px);
}

.ranking-image-content {
  position: relative;
  z-index: 3;
  max-width: 260px;
}

.ranking-image-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ranking-image-content h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.ranking-image-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #111827;
  z-index: 999;
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero {
    padding-top: 150px;
  }

  .main-nav {
    min-height: 72px;
  }

  .brand img {
    height: 52px;
  }

  .nav-actions {
    display: none;
  }

  .hero-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-tables {
    grid-template-columns: 1fr;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}