:root {
  --bg-deep: #100a2d;
  --bg-mid: #1c1450;
  --card: rgba(32, 25, 78, 0.86);
  --card-light: rgba(255, 255, 255, 0.085);
  --purple: #8b5cf6;
  --pink: #ff4fd8;
  --cyan: #28dff6;
  --yellow: #ffd84a;
  --white: #ffffff;
  --muted: #b9b2d7;
  --line: rgba(255, 255, 255, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 25px 70px rgba(6, 2, 25, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.44), transparent 42%),
    linear-gradient(155deg, var(--bg-deep), var(--bg-mid) 56%, #101639);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 72px 0 34px;
}

.background-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  animation: float 8s ease-in-out infinite;
}

.shape--one {
  width: 90px;
  height: 90px;
  top: 16%;
  left: 7%;
  transform: rotate(18deg);
  box-shadow: inset 0 0 35px rgba(40, 223, 246, 0.08);
}

.shape--two {
  width: 58px;
  height: 58px;
  top: 52%;
  right: 7%;
  border-radius: 50%;
  border-color: rgba(255, 79, 216, 0.16);
  animation-delay: -3s;
}

.shape--three {
  width: 38px;
  height: 38px;
  bottom: 10%;
  left: 12%;
  border-color: rgba(255, 216, 74, 0.18);
  transform: rotate(45deg);
  animation-delay: -5s;
}

.hero {
  margin-bottom: 34px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(40, 223, 246, 0.25);
  border-radius: 999px;
  background: rgba(40, 223, 246, 0.08);
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.55rem, 9vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-shadow: 0 7px 0 rgba(5, 2, 24, 0.28);
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #b8ff67 46%, var(--yellow));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  max-width: 530px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero__badges span {
  padding: 9px 13px;
  color: #e8e4ff;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.leaderboard {
  position: relative;
  padding: clamp(20px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.leaderboard::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -170px;
  right: -100px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.12;
  filter: blur(20px);
}

.leaderboard__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.leaderboard h2 {
  margin: 5px 0 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: -0.035em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #d7ffd9;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  border: 1px solid rgba(91, 255, 135, 0.22);
  border-radius: 999px;
  background: rgba(91, 255, 135, 0.08);
}

.live-badge i,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bff87;
  box-shadow: 0 0 12px rgba(91, 255, 135, 0.85);
}

.live-badge i {
  animation: pulse 1.8s ease-out infinite;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ranking;
}

.ranking-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 10px 16px 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--card-light);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ranking-row:hover {
  transform: translateX(5px);
  border-color: rgba(40, 223, 246, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.ranking-row--winner {
  min-height: 84px;
  border-color: rgba(255, 216, 74, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 216, 74, 0.18), transparent 75%),
    rgba(255, 255, 255, 0.09);
  box-shadow: inset 4px 0 var(--yellow), 0 10px 30px rgba(255, 216, 74, 0.08);
}

.rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.rank--first {
  color: #382a00;
  background: linear-gradient(145deg, #fff1a0, var(--yellow));
  box-shadow: 0 5px 16px rgba(255, 216, 74, 0.27);
}

.rank--second {
  color: #293044;
  background: linear-gradient(145deg, #f4f7ff, #aebbd2);
}

.rank--third {
  color: #4a2511;
  background: linear-gradient(145deg, #ffc18c, #d4773a);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #1a1240;
  font-weight: 950;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cyan), #9381ff);
  box-shadow: 0 6px 18px rgba(40, 223, 246, 0.14);
}

.avatar--winner {
  width: 52px;
  height: 52px;
  margin-left: -4px;
  color: #321450;
  font-size: 1.15rem;
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, var(--yellow), var(--pink));
  box-shadow: 0 7px 20px rgba(255, 79, 216, 0.22);
}

.player {
  min-width: 0;
}

.player strong,
.player small {
  display: block;
}

.player strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row--winner .player strong {
  color: #fff4ad;
  font-size: 1.15rem;
}

.player small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crown {
  font-size: 1.45rem;
  filter: drop-shadow(0 5px 8px rgba(255, 216, 74, 0.22));
  animation: crown-bounce 2.4s ease-in-out infinite;
}

.status-dot {
  justify-self: center;
  width: 7px;
  height: 7px;
}

.leaderboard__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  color: #ddd8f4;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  background: rgba(15, 10, 45, 0.3);
}

.leaderboard__footer p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.site-footer {
  padding-top: 25px;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 255, 135, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(91, 255, 135, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 255, 135, 0);
  }
}

@keyframes crown-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-4px) rotate(4deg);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 780px);
    padding-top: 44px;
  }

  .hero {
    margin-bottom: 25px;
  }

  .hero__text {
    font-size: 0.94rem;
  }

  .leaderboard {
    border-radius: 22px;
  }

  .ranking-row {
    grid-template-columns: 38px 42px minmax(0, 1fr) 18px;
    gap: 9px;
    min-height: 64px;
    padding-inline: 10px;
    border-radius: 15px;
  }

  .rank {
    width: 32px;
    height: 32px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .avatar--winner {
    width: 44px;
    height: 44px;
    margin-left: -2px;
  }

  .ranking-row--winner .player strong {
    font-size: 1.05rem;
  }

  .crown {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
