:root {
  --bg: #0a0518;
  --bg-2: #140a2d;
  --accent: #ff8c2b;
  --accent-2: #ffb84d;
  --ink: #f3f6ff;
  --muted: #9aa6b0;
  --panel: rgba(16, 12, 30, 0.82);
  --panel-2: rgba(28, 18, 44, 0.85);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&display=swap");

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 400px at 70% -10%, rgba(255,140,43,0.15), transparent 60%),
    radial-gradient(700px 320px at 10% 20%, rgba(125,70,255,0.15), transparent 55%),
    linear-gradient(160deg, #0a0518 0%, #130a2a 40%, #0a0518 100%);
  z-index: -2;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(8, 6, 18, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8vw;
  gap: 16px;
}

.top-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.top-nav__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.menu {
  position: relative;
}

.menu__toggle {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ink);
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu__panel {
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 220px;
  width: min(260px, 86vw);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(10, 8, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}

.menu__auth {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu__nick {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu__panel a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.menu__panel a:hover {
  border-color: rgba(255,184,77,0.6);
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 56px 8vw 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -140px;
  background: radial-gradient(circle, rgba(255,184,77,0.25), transparent 65%);
  filter: blur(8px);
  z-index: -1;
}

.hero__content {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(220px, 70vw);
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}

.hero__story {
  width: min(680px, 90vw);
  margin: 16px auto 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 8, 20, 0.68);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.hero__story p {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}

.hero__story p:last-child {
  margin-bottom: 0;
}

.story-lead {
  font-weight: 700;
  color: var(--accent-2);
  font-size: 16px;
}

.story-list {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink);
}

.story-list li {
  margin: 6px 0;
}

.story-quote {
  font-style: italic;
  color: var(--accent-2);
}

.story-sign {
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: clamp(64px, 14vw, 140px);
  margin: 0 0 10px;
  letter-spacing: 4px;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero__actions {
  display: none;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn.primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #200a00;
  box-shadow: 0 12px 24px rgba(255,140,43,0.2);
}

.btn.ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink);
  background: rgba(255,255,255,0.04);
}

.btn:hover {
  transform: translateY(-2px);
}

.main {
  padding: 0 8vw 80px;
}

.home-players {
  margin-top: 10px;
  margin-bottom: 48px;
}

.home-players .section-title {
  margin-bottom: 16px;
}

.carousel-title {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: #ffe7b0;
  margin: 18px 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  font-weight: 900;
}

.players-grid {
  display: flex;
  gap: 18px;
  padding: 10px 4px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.players-grid::-webkit-scrollbar {
  height: 8px;
}

.players-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.leaderboard {
  margin: 16px 0 60px;
}

.leaderboard .section-title {
  margin-bottom: 18px;
}

.leaderboard-empty {
  color: #cfd8e3;
  margin: 12px 6px;
}

.leaderboard-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.leaderboard-block {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px 10px;
  box-shadow: 0 14px 24px rgba(0,0,0,0.35);
}

.leaderboard-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  background: transparent;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  font-size: 13px;
}

.leaderboard-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child {
  text-align: right;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-rank {
  font-weight: 700;
  font-size: 13px;
  color: #ffcf7a;
  white-space: nowrap;
}

.leaderboard-player-col {
  text-align: left;
}

.leaderboard-player-cell {
  min-width: 180px;
}

.leaderboard-player-cell strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.leaderboard-total {
  width: 140px;
}

.trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,184,77,0.18);
  color: #ffcf7a;
  font-weight: 700;
}

.trophy-badge svg {
  width: 18px;
  height: 18px;
}

.trophy-number {
  font-size: 13px;
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 200px;
  aspect-ratio: 4 / 5;
  height: auto;
  flex: 0 0 200px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,200,120,0.16) 0%, rgba(255,184,77,0.2) 25%, #f9ad4b 60%, #ff8c2b 100%);
  box-shadow: 0 16px 32px rgba(8,4,22,0.6), inset 0 8px 18px rgba(255,255,255,0.08);
  scroll-snap-align: center;
}

.player-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
}

.player-badge.kids {
  background: linear-gradient(180deg, #3A0F8E, #120936);
  color: #ffb84d;
  border-color: #ffb84d;
}

.player-card .player-image {
  flex: 1;
  min-height: 0;
}

.player-card .player-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-card .player-info {
  flex: 0 0 auto;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}

.player-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.star svg {
  width: 14px;
  height: 14px;
}

.star svg path {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 1;
  fill: none;
}

.star.filled svg path {
  fill: #ffffff;
  stroke: #ffffff;
}

.player-details {
  width: calc(100% - 16px);
  max-width: 220px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 6px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.detail-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
  box-sizing: border-box;
}

.detail-label {
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-align: left;
}

.detail-value {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.section-title {
  max-width: 520px;
  margin-bottom: 24px;
}

.section-title h2 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 48px;
  margin: 0 0 10px;
  letter-spacing: 2px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.social-footer {
  margin-top: 24px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent-2);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,184,77,0.5);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,184,77,0.18);
  color: var(--accent-2);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .top-nav__inner {
    padding: 10px 6vw;
  }

  .hero {
    padding: 48px 8vw 20px;
  }

  .player-card {
    width: 70vw;
    flex: 0 0 70vw;
  }
}
