:root {
  --bg: #0b1020;
  --bg-2: #0f1b2f;
  --text: #f2f6ff;
  --muted: #a6b4c8;
  --accent: #eaff4c;
  --accent-2: #41d0ff;
  --tag-max: #eaff4c;
  --tag-casual: #41d0ff;
  --tag-kids: #ff9d57;
  --tag-mad: #9ff9a7;
  --panel: rgba(12, 19, 34, 0.78);
  --panel-strong: rgba(16, 25, 45, 0.92);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 70px rgba(3, 10, 24, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Exo 2", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(circle at top, rgba(65, 208, 255, 0.25), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(234, 255, 76, 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px),
    linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px);
  background-size: 40px 40px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav__logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.menu {
  position: relative;
}

.menu__toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu[open] .menu__toggle {
  border-color: rgba(234, 255, 76, 0.6);
  color: var(--accent);
}

.menu__panel {
  position: absolute;
  top: 56px;
  left: 0;
  min-width: 220px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.menu__panel a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu__panel a:hover {
  background: rgba(234, 255, 76, 0.12);
  color: var(--accent);
}

.menu__auth {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.menu__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #081320;
  font-weight: 700;
}

.menu__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.menu__nick {
  font-weight: 600;
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 30px;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__copy {
  animation: fadeUp 0.8s ease forwards;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: var(--accent);
  color: #0a1220;
  box-shadow: 0 15px 30px rgba(234, 255, 76, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.hero__alert {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 72, 72, 0.1);
  border: 1px solid rgba(255, 72, 72, 0.3);
  color: #ffd6d6;
  font-size: 0.92rem;
}

.hero__visual {
  display: grid;
  gap: 20px;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.1s;
}

.hero__logo-card {
  position: relative;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(23, 34, 60, 0.85), rgba(11, 18, 32, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  gap: 16px;
  overflow: hidden;
}

.hero__logo-card img {
  width: 140px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

.hero__logo-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  top: -40px;
  right: -40px;
}

.hero__logo-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
}

.hero__panel {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__panel h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.hero__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero__list li::before {
  content: ">";
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

.main {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.max-carousel-section,
.roster,
.leaderboard,
.social-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.roster-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.roster-nav {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.roster-nav svg {
  width: 18px;
  height: 18px;
}

.roster-nav:hover:not(:disabled) {
  border-color: rgba(234, 255, 76, 0.6);
  color: var(--accent);
  transform: translateY(-1px);
}

.roster-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.65rem;
  color: var(--accent-2);
  margin: 0 0 8px;
}

.section-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 1px;
}

.section-link {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(234, 255, 76, 0.5);
  color: var(--accent);
  font-weight: 600;
  background: rgba(234, 255, 76, 0.1);
}

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-alert,
.section-empty {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.max-carousel {
  margin: 0;
  position: relative;
}

.max-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.max-carousel__title {
  margin: 6px 0 0;
  font-size: 1.5rem;
}

.max-carousel__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.max-carousel__viewport {
  position: relative;
  /* Keep the 2x3 card fully visible (even during 3D transitions). */
  --carousel-card-w: min(300px, 78vw);
  --carousel-card-h: calc(var(--carousel-card-w) * 3 / 2);
  height: calc(var(--carousel-card-h) + 64px);
  perspective: 1200px;
  overflow: hidden;
}

.max-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.max-carousel__item {
  position: absolute;
  width: var(--carousel-card-w);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.max-carousel__item.is-active {
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.max-carousel__item.is-left {
  transform: translateX(-55%) scale(0.86) rotateY(20deg);
  opacity: 0.75;
  pointer-events: auto;
  z-index: 2;
}

.max-carousel__item.is-right {
  transform: translateX(55%) scale(0.86) rotateY(-20deg);
  opacity: 0.75;
  pointer-events: auto;
  z-index: 2;
}

.max-carousel__item.is-hidden {
  opacity: 0;
  z-index: 1;
}

.max-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 16, 30, 0.75);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.max-carousel__nav svg {
  width: 18px;
  height: 18px;
}

.max-carousel__nav--prev {
  left: 10px;
}

.max-carousel__nav--next {
  right: 10px;
}

.max-carousel__nav:hover:not(:disabled) {
  border-color: rgba(234, 255, 76, 0.6);
  color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}

.max-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.max-carousel .player-card {
  --card-border: rgba(255, 255, 255, 0.18);
  --card-glow: rgba(255, 255, 255, 0.12);
  --card-accent: rgba(255, 255, 255, 0.2);
  --card-border-start: rgba(255, 255, 255, 0.6);
  --card-border-end: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  background: transparent;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45) inset, 0 18px 40px rgba(0,0,0,0.5), 0 0 22px var(--card-glow);
  isolation: isolate; /* keep overlays from bleeding other cards */
}

.max-carousel .player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--card-border-start), var(--card-border-end));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
}

.max-carousel .player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* radial overlay: clear center, darken edges */
  background: radial-gradient(circle at center, rgba(0,0,0,0) 38%, rgba(0,0,0,0.55) 100%);
  opacity: 1;
  pointer-events: none;
  z-index: 4;
}

.max-carousel .player-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* keep the image above other cards to avoid see-through */
  background: none; /* remove gradient behind the image */
  overflow: hidden;
  aspect-ratio: auto; /* allow full-card height instead of forcing square */
  height: 100%;
  border-radius: inherit;
}

.max-carousel .player-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1; /* keep image below the radial overlay */
}

.max-carousel .player-card > .trophy-badge,
.max-carousel .player-card > .platform-badge {
  position: absolute;
  top: 12px;
  z-index: 6;
  pointer-events: none; /* keep the whole card clickable/swipeable */
}

.max-carousel .player-card > .trophy-badge {
  right: 12px;
  padding: 6px 10px; /* match platform badge */
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px; /* match platform badge shape */
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffe39a;
  font-weight: 700; /* match platform badge weight */
  backdrop-filter: blur(10px);
}

.max-carousel .player-card > .trophy-badge svg {
  width: 14px;
  height: 14px;
}

.max-carousel .player-card > .platform-badge {
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.max-carousel .player-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 16px;
  /* Stronger scrim so text sits on the image and doesn't show other cards. */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
  z-index: 6;
  margin-top: 0;
  min-height: 0;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

/* Ensure other CSS files don't inject a translucent block over carousel images */
.max-carousel .player-card .player-info {
  background: none !important;
}
.max-carousel .player-card .player-info::before,
.max-carousel .player-card .player-info::after {
  content: none !important;
}

.max-carousel .player-card.player-card--max {
  --card-border: rgba(255, 208, 122, 0.7);
  --card-glow: rgba(255, 208, 122, 0.28);
  --card-accent: rgba(255, 208, 122, 0.35);
  --card-border-start: rgba(255, 210, 110, 0.98);
  --card-border-end: rgba(120, 20, 20, 0.95);
}

.max-carousel .player-card.player-card--casual {
  --card-border: rgba(210, 214, 222, 0.75);
  --card-glow: rgba(200, 205, 214, 0.28);
  --card-accent: rgba(200, 205, 214, 0.3);
  --card-border-start: rgba(210, 218, 228, 0.98);
  --card-border-end: rgba(22, 88, 52, 0.95);
}

.max-carousel .player-card.player-card--kids {
  --card-border: rgba(255, 190, 220, 0.75);
  --card-glow: rgba(255, 190, 220, 0.28);
  --card-accent: rgba(255, 190, 220, 0.3);
  --card-border-start: rgba(255, 184, 224, 0.95);
  --card-border-end: rgba(160, 210, 255, 0.95);
}

.max-carousel .player-card.player-card--mad,
.max-carousel .player-card.player-card--default {
  --card-border: rgba(255, 140, 80, 0.6);
  --card-glow: rgba(255, 140, 80, 0.22);
  --card-accent: rgba(255, 140, 80, 0.28);
  --card-border-start: rgba(255, 156, 96, 0.9);
  --card-border-end: rgba(120, 40, 20, 0.9);
}

.roster-block {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.roster-block:nth-of-type(1) {
  animation-delay: 0.05s;
}

.roster-block:nth-of-type(2) {
  animation-delay: 0.12s;
}

.roster-block:nth-of-type(3) {
  animation-delay: 0.18s;
}

.roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.roster-header h3 {
  margin: 6px 0 0;
  font-size: 1.4rem;
}

.roster-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.roster-count {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: var(--accent);
}

.roster-grid {
  display: grid;
  gap: 16px;
}

.roster-grid--scroll {
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 104px);
  grid-auto-columns: 240px;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 8px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.roster-grid--scroll .player-card {
  scroll-snap-align: start;
}

.roster-grid--scroll .player-chip {
  scroll-snap-align: start;
}

.player-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(13, 20, 36, 0.8);
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(65, 208, 255, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-6px);
  border-color: rgba(65, 208, 255, 0.6);
  box-shadow: 0 24px 40px rgba(3, 10, 24, 0.45);
}

.player-card:hover::after {
  opacity: 1;
}

.player-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(12, 18, 33, 0.9), rgba(20, 30, 52, 0.6));
}

.player-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roster-grid .player-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
}

.roster-grid .player-media::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.roster-grid .player-media img {
  position: absolute;
  inset: 0;
}

.player-info {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.player-header .player-name,
.player-header .player-nick {
  flex: 1;
  min-width: 0;
}

.player-header .trophy-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  background: rgba(8, 10, 18, 0.7);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffe39a;
}

.player-header .trophy-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.player-name {
  margin: 0;
  font-size: 1.05rem;
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-role {
  font-size: 0.85rem;
  color: var(--muted);
}


.player-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0a1220;
  font-size: 0.72rem;
  font-weight: 700;
}

.player-badge--max {
  background: var(--tag-max);
}

.player-badge--casual {
  background: var(--tag-casual);
}

.player-badge--kids {
  background: var(--tag-kids);
}

.player-badge--mad {
  background: var(--tag-mad);
}

.player-badge--default {
  background: var(--accent);
}

  .roster-block--all .player-chip {
  --chip-border: rgba(255, 255, 255, 0.18);
  --chip-glow: rgba(255, 255, 255, 0.12);
  --chip-accent: rgba(255, 255, 255, 0.18);
  --chip-border-start: rgba(255, 255, 255, 0.6);
  --chip-border-end: rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--chip-border);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
    min-height: 104px;
    height: 104px;
  width: 240px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset, 0 10px 18px rgba(0,0,0,0.35), 0 0 18px var(--chip-glow);
}

.roster-block--all .player-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--chip-border-start), var(--chip-border-end));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
}

.roster-block--all .player-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, var(--chip-accent), transparent 65%),
    linear-gradient(120deg, var(--chip-accent), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.roster-block--all .player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 140, 43, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.roster-block--all .player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roster-block--all .player-chip .player-info {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 10px 12px;
  text-align: left;
  justify-items: start;
}

.roster-block--all .player-nick {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-block--all .player-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-block--all .player-chip--max {
  --chip-border: rgba(255, 208, 122, 0.7);
  --chip-glow: rgba(255, 208, 122, 0.25);
  --chip-accent: rgba(255, 208, 122, 0.3);
  --chip-border-start: rgba(255, 210, 110, 0.98);
  --chip-border-end: rgba(120, 20, 20, 0.95);
}

.roster-block--all .player-chip--casual {
  --chip-border: rgba(210, 214, 222, 0.75);
  --chip-glow: rgba(200, 205, 214, 0.28);
  --chip-accent: rgba(200, 205, 214, 0.3);
  --chip-border-start: rgba(210, 218, 228, 0.98);
  --chip-border-end: rgba(22, 88, 52, 0.95);
}

.roster-block--all .player-chip--kids {
  --chip-border: rgba(255, 190, 220, 0.75);
  --chip-glow: rgba(255, 190, 220, 0.28);
  --chip-accent: rgba(255, 190, 220, 0.3);
  --chip-border-start: rgba(255, 184, 224, 0.95);
  --chip-border-end: rgba(160, 210, 255, 0.95);
}

.roster-block--all .player-chip--mad,
.roster-block--all .player-chip--default {
  --chip-border: rgba(255, 140, 80, 0.6);
  --chip-glow: rgba(255, 140, 80, 0.22);
  --chip-accent: rgba(255, 140, 80, 0.28);
  --chip-border-start: rgba(255, 156, 96, 0.9);
  --chip-border-end: rgba(120, 40, 20, 0.9);
}

.stars {
  display: flex;
  gap: 6px;
}

.star {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.2);
}

.star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.star.filled {
  color: var(--accent);
}

.leaderboard-block {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.leaderboard-scroll {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 14px 12px;
  text-align: left;
}

.leaderboard-table thead {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
}

.leaderboard-table tbody tr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-rank {
  width: 50px;
  color: var(--accent);
  font-weight: 700;
}

.leaderboard-total {
  text-align: right;
}

.leaderboard-player-col {
  width: 55%;
}

.trophy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 255, 76, 0.12);
  border: 1px solid rgba(234, 255, 76, 0.3);
  color: var(--accent);
  font-weight: 700;
}

.trophy-badge svg {
  width: 16px;
  height: 16px;
}

.social-footer {
  display: grid;
  gap: 20px;
}

.social-head h2 {
  margin: 0 0 6px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.social-head p {
  margin: 0;
  color: var(--muted);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  border-color: rgba(65, 208, 255, 0.6);
  color: var(--accent-2);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(65, 208, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.news-hero {
  position: relative;
  z-index: 1;
  padding: 70px 0 30px;
}

.news-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.news-hero__copy h1 {
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: 0.04em;
}

.news-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.news-stat {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.news-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
}

.news-hero__panel {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.news-hero__panel h3 {
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.news-hero__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card__head {
  display: grid;
  gap: 10px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-card__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.news-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.news-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__title {
  margin: 0;
  font-family: "Oxanium", "Exo 2", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: 0.03em;
}

.news-card__subtitle {
  margin: 0;
  color: var(--accent-2);
  font-weight: 600;
}

.news-card__body {
  display: grid;
  gap: 14px;
  color: rgba(230, 238, 255, 0.9);
}

.news-card__body p {
  margin: 0;
}

.news-text {
  font-size: 1rem;
  font-family: "Oxanium", "Exo 2", sans-serif;
}

.news-text--title {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
}

.news-text--subtitle {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}

.news-text--body {
  font-size: 1rem;
}

.news-text--bold {
  font-weight: 700;
}

.news-text--center {
  text-align: center;
}

.news-text--right {
  text-align: right;
}

.news-action {
  align-self: flex-start;
}

.news-card__media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.news-card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card__media--empty {
  height: 200px;
  display: block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(8, 10, 18, 0.8));
}

.news-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.news-strip::-webkit-scrollbar {
  height: 6px;
}

.news-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.news-mini-card {
  flex: 0 0 220px;
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.5);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: border 0.2s ease, transform 0.2s ease;
}

.news-mini-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.news-mini-card.is-active {
  border-color: rgba(234, 255, 76, 0.45);
  box-shadow: 0 10px 20px rgba(234, 255, 76, 0.12);
}

.news-mini-card__media {
  margin: 0;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-mini-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-mini-card__media--empty {
  height: 120px;
  display: block;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(8, 10, 18, 0.85));
}

.news-mini-card__body {
  display: grid;
  gap: 6px;
}

.news-mini-card__body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.news-mini-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.news-mini-card__meta {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.news-feature {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.news-feature__nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.news-card__media figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.news-post {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.news-post__header {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.news-post__header img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.news-post__head {
  display: grid;
  gap: 10px;
}

.news-post__title {
  margin: 0;
  font-family: "Oxanium", "Exo 2", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
}

.news-post__subtitle {
  margin: 0;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 1.05rem;
  font-family: "Oxanium", "Exo 2", sans-serif;
}

.news-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.news-post__body {
  display: grid;
  gap: 18px;
  color: rgba(230, 238, 255, 0.95);
  line-height: 1.7;
}

.news-post__content {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.6);
  box-shadow: 0 18px 35px rgba(4, 6, 12, 0.35);
  display: grid;
  gap: 18px;
}

.news-post__body p {
  margin: 0;
}

.news-post__media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.news-post__media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.news-post__media figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.news-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  margin: 10px 0 6px;
}

.news-comments {
  display: grid;
  gap: 14px;
}

.news-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.news-comments__head h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: 0.04em;
}

.news-comments__count {
  color: var(--muted);
  font-size: 0.95rem;
}

.comment-notice {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.comment-notice.success {
  color: #bff0bf;
  background: rgba(120, 240, 120, 0.12);
  border-color: rgba(120, 240, 120, 0.3);
}

.comment-notice.error {
  color: #ffc0c0;
  background: rgba(255, 120, 120, 0.1);
  border-color: rgba(255, 120, 120, 0.3);
}

.comment-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.7);
}

.comment-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.85);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.comment-form__actions {
  display: flex;
  justify-content: flex-end;
}

.comment-empty {
  margin: 0;
  color: var(--muted);
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 18, 0.6);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body {
  display: grid;
  gap: 6px;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-text {
  color: rgba(230, 238, 255, 0.95);
}

@media (max-width: 720px) {
  .top-nav__inner {
    padding: 12px 18px;
  }

  .menu__panel {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
  }

  .hero {
    padding-top: 60px;
  }

  /* height is computed from the card size (2x3), no fixed value needed */

  .roster-grid--scroll {
    grid-template-rows: repeat(4, 104px);
  }

  .leaderboard-table {
    min-width: 360px;
  }

  .news-hero {
    padding: 56px 0 20px;
  }

  .news-hero__inner {
    gap: 20px;
  }

  .news-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-section {
    padding: 10px 18px 70px;
  }

  .news-grid {
    gap: 18px;
  }

  .news-card {
    padding: 16px;
    border-radius: 18px;
  }

  .news-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .news-card__divider {
    display: none;
  }

  .news-card__media img {
    height: 180px;
  }

  .news-mini-card {
    flex-basis: 190px;
  }

  .news-mini-card__media img,
  .news-mini-card__media--empty {
    height: 110px;
  }

  .news-mini-card__media {
    height: 110px;
  }

  .news-post {
    padding: 0;
  }

  .news-post__media img {
    height: 220px;
  }

  .news-post__header img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 420px) {
  .news-hero__stats {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
