/* ============================================================
   DISPLAYFORGE — Cinematic Dark Gaming Theme
   Premium · Immersive · Battle-Arena Aesthetic
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
    --bg-0: #06060b;
    --bg-1: #0a0a12;
    --bg-2: #0e0e18;
    --bg-3: #13131f;
    --bg-4: #1a1a28;
    --bg-5: #222235;
    --surface: #16162280;
    --surface-hover: #1e1e3060;

    --text-100: #f0eef5;
    --text-200: #c4c1d4;
    --text-300: #8f8ca6;
    --text-400: #5c5a72;
    --text-500: #3a384d;

    --accent: #e63946;
    --accent-soft: #e6394620;
    --accent-glow: #e6394640;
    --cyan: #4cc9f0;
    --gold: #f0a500;
    --green: #2ec4b6;
    --silver: #a0a0b8;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 12px;
    --radius-lg: 20px;
    --max-w: 1280px;
}

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

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

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

/* ---- Atmosphere ---- */
.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mouse-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.04) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s, left 0.08s linear, top 0.08s linear;
    opacity: 0;
    will-change: left, top;
    mix-blend-mode: screen;
}

.mouse-glow.visible {
    opacity: 1;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ---- Scroll Progress ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    background: rgba(6, 6, 11, 0.8);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: none;
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-100);
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo-img-footer {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFD700 0%, #FF4E00 60%, #CC0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 78, 0, 0.3);
    text-transform: uppercase;
}

.logo-highlight {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
    text-shadow: none;
    margin-left: 4px;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-item {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-300);
    border-radius: 8px;
    transition: all 0.3s var(--ease);
    position: relative;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-right {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 8px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}

.nav-btn-ghost {
    color: var(--text-300);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-btn-ghost:hover {
    color: var(--text-100);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.nav-btn-fill {
    background: var(--accent);
    color: #fff;
}

.nav-btn-fill:hover {
    background: #d32f3e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-200);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
    z-index: 1;
}

/* Hero Video Background */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg .bg-video,
.hero-video-bg .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(6, 6, 11, 0.70) 0%,
            rgba(6, 6, 11, 0.40) 30%,
            rgba(6, 6, 11, 0.30) 50%,
            rgba(6, 6, 11, 0.50) 70%,
            rgba(6, 6, 11, 0.90) 100%),
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(230, 57, 70, 0.1), transparent 70%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.hero-eyebrow span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
}

.hero-heading {
    font-family: var(--font-display);
    line-height: 0.95;
    margin-bottom: 24px;
}

.heading-row {
    display: block;
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 4px;
}

.heading-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-100);
    position: relative;
}

.heading-outline::after {
    content: 'ARE FORGED';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    opacity: 0;
    animation: headingFlicker 6s ease-in-out infinite;
}

@keyframes headingFlicker {

    0%,
    85%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    87% {
        opacity: 0.8;
        transform: translate(-2px, -1px);
    }

    88% {
        opacity: 0;
    }

    92% {
        opacity: 0.6;
        transform: translate(1px, 1px);
    }

    93% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-300);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

/* CTAs */
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.35);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary:hover .cta-icon {
    transform: translateX(4px);
}

.cta-icon {
    transition: transform 0.3s var(--ease);
    display: flex;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-200);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(8px);
}

.cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-100);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.cta-lg {
    padding: 16px 40px;
    font-size: 0.9rem;
}

/* Hero Metrics */
.hero-metrics {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    padding: 20px 36px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}

.metric {
    text-align: center;
}

.metric-val {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--text-100);
}

.metric-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-400);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.metric-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
}

/* Hero Visual — Rings */
.hero-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    transition: transform 0.1s linear;
}

.ring-outer {
    width: min(80vw, 700px);
    height: min(80vw, 700px);
    border-color: rgba(255, 255, 255, 0.02);
    animation: ringFloat 40s linear infinite;
}

.ring-mid {
    width: min(55vw, 480px);
    height: min(55vw, 480px);
    border-color: rgba(230, 57, 70, 0.05);
    animation: ringFloat 30s linear infinite reverse;
}

.ring-inner {
    width: min(30vw, 260px);
    height: min(30vw, 260px);
    border-color: rgba(76, 201, 240, 0.04);
    animation: ringFloat 20s linear infinite;
}

@keyframes ringFloat {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-center-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08), transparent 70%);
    filter: blur(40px);
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Scroll Cue */
.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.scroll-cue span {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-500);
    font-weight: 500;
}

.scroll-cue-bar {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollBarPulse 2s ease-in-out infinite;
}

@keyframes scrollBarPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 12vh, 140px) 32px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    padding: 5px 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(230, 57, 70, 0.12);
    border-radius: 100px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.text-accent {
    color: var(--accent);
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-300);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   PLAYER CARDS
   ============================================================ */

.roster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .roster-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .roster-grid {
        grid-template-columns: 1fr;
    }
}

.roster-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.roster-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.roster-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.roster-card:hover::before {
    opacity: 1;
}

.rc-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent 60%);
    pointer-events: none;
}

.rc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 1;
}

.rc-rank {
    font-size: 0.9rem;
}

.rc-tier {
    color: var(--text-400);
}

.rc-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    z-index: 1;
}

.rc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-200);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.rc-name {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-100);
    letter-spacing: 0.5px;
}

.rc-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    margin-top: auto;
    z-index: 1;
}

.rc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rc-stat span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.rc-stat strong {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-200);
}

/* ============================================================
   METRICS GRID (Stats)
   ============================================================ */
.stats-section {
    overflow: hidden;
}

.stats-bg-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.01), transparent 70%);
    pointer-events: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 32px;
    overflow: hidden;
    transition: background 0.4s;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mc-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    opacity: 0.7;
    pointer-events: none;
}

.mc-sparkline svg {
    width: 100%;
    height: 100%;
}

.mc-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.mc-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-400);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.mc-val {
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 1;
}


/* ============================================================
   LEADERBOARD
   ============================================================ */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 60px;
    height: 250px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-100);
}

.podium-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-200);
    white-space: nowrap;
}

.podium-score {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.podium-base {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 12px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
}

.podium-base::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.base-1 {
    height: 120px;
    background: rgba(240, 165, 0, 0.15);
    border: 1px solid rgba(240, 165, 0, 0.3);
    border-bottom: none;
}

.base-2 {
    height: 80px;
    background: rgba(160, 160, 184, 0.1);
    border: 1px solid rgba(160, 160, 184, 0.2);
    border-bottom: none;
}

.base-3 {
    height: 60px;
    background: rgba(205, 127, 50, 0.1);
    border: 1px solid rgba(205, 127, 50, 0.2);
    border-bottom: none;
}

.p-gold .podium-avatar {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(240, 165, 0, 0.4);
}

.p-silver .podium-avatar {
    border-color: var(--silver);
}

.p-bronze .podium-avatar {
    border-color: #cd7f32;
}

.podium-rank {
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

.crown {
    color: var(--gold);
    margin-bottom: 4px;
    filter: drop-shadow(0 0 8px rgba(240, 165, 0, 0.5));
}

.lb-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.lb-header-row {
    display: grid;
    grid-template-columns: 70px 1fr 150px 100px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lb-h {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-500);
    text-transform: uppercase;
}

.lb-body {
    padding: 4px 0;
}

.lb-row {
    display: grid;
    grid-template-columns: 70px 1fr 150px 100px;
    padding: 14px 24px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.015);
    transition: all 0.4s var(--ease);
    position: relative;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row:hover {
    background: rgba(230, 57, 70, 0.02);
}

.lb-row-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 165, 0, 0.03), transparent 60%);
    pointer-events: none;
    border-radius: 4px;
}

.lb-cell {
    font-size: 0.82rem;
    color: var(--text-300);
    font-weight: 500;
}

.lb-c-player {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-100);
    font-weight: 600;
}

.lb-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
    color: var(--text-300);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-4);
    color: var(--text-400);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-num.gold {
    background: rgba(240, 165, 0, 0.1);
    border-color: rgba(240, 165, 0, 0.2);
    color: var(--gold);
    box-shadow: 0 0 12px rgba(240, 165, 0, 0.1);
}

.rank-num.silver {
    background: rgba(160, 160, 184, 0.08);
    border-color: rgba(160, 160, 184, 0.12);
    color: var(--silver);
}

.rank-num.bronze {
    background: rgba(205, 127, 50, 0.08);
    border-color: rgba(205, 127, 50, 0.12);
    color: #cd7f32;
}

.lb-c-pts {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent) !important;
    font-size: 0.8rem;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.tier-gm {
    background: rgba(230, 57, 70, 0.1);
    color: var(--accent);
    border: 1px solid rgba(230, 57, 70, 0.15);
}

.tier-heroic {
    background: rgba(76, 201, 240, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.tier-diamond {
    background: rgba(180, 74, 255, 0.08);
    color: #b44aff;
    border: 1px solid rgba(180, 74, 255, 0.1);
}

/* ============================================================
   JOIN / CTA
   ============================================================ */
.join-section {
    text-align: center;
    max-width: 100%;
    padding: clamp(100px, 15vh, 180px) 32px;
    overflow: hidden;
}

.join-3d-grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(230, 57, 70, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 57, 70, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(75deg);
    z-index: 0;
    mask-image: radial-gradient(ellipse at top, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 10%, transparent 60%);
    animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(600px) rotateX(75deg) translateY(0);
    }

    100% {
        transform: perspective(600px) rotateX(75deg) translateY(60px);
    }
}

.pro-reveal {
    display: inline-block;
    position: relative;
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.join-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.join-heading {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: 2px;
    margin-bottom: 18px;
    line-height: 1;
}

.join-desc {
    font-size: 1rem;
    color: var(--text-300);
    line-height: 1.75;
    margin-bottom: 36px;
}

.join-actions {
    margin-bottom: 40px;
}

.join-social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sp-avatars {
    display: flex;
}

.sp-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-4);
    border: 2px solid var(--bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--text-300);
    margin-left: -8px;
}

.sp-av:first-child {
    margin-left: 0;
}

.sp-av-more {
    background: var(--accent);
    color: #fff;
    font-size: 0.45rem;
}

.sp-text {
    font-size: 0.72rem;
    color: var(--text-400);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: var(--bg-1);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(230, 57, 70, 0.04), transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding: 56px 0 40px;
}

.footer-brand {
    max-width: 260px;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-400);
    margin-top: 12px;
    line-height: 1.65;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-300);
    transition: all 0.3s var(--ease);
}

.footer-socials a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col h5 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-400);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.8rem;
    color: var(--text-300);
    padding: 3px 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    font-size: 0.65rem;
    color: var(--text-400);
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-disclaimer p {
    margin-bottom: 8px;
}

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

.footer-disclaimer strong {
    color: var(--text-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
    color: var(--text-500);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-500);
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--text-300);
}

/* ============================================================
   SCROLL REVEAL SYSTEM
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
[data-delay="1"] {
    transition-delay: 0.08s;
}

[data-delay="2"] {
    transition-delay: 0.16s;
}

[data-delay="3"] {
    transition-delay: 0.24s;
}

[data-delay="4"] {
    transition-delay: 0.32s;
}

[data-delay="5"] {
    transition-delay: 0.4s;
}

[data-delay="6"] {
    transition-delay: 0.48s;
}

[data-delay="7"] {
    transition-delay: 0.56s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-hero-tile {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .logo-name {
        font-size: 1.15rem;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.98);
        padding: 20px;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 220px);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.98);
        padding: 0 20px 20px;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-right.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 20px 100px;
    }

    .scroll-cue {
        bottom: 16px;
    }

    .section {
        padding: clamp(60px, 10vh, 100px) 20px;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .metric-sep {
        width: 32px;
        height: 1px;
    }

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

    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    .stat-hero-tile {
        grid-column: span 1;
    }

    .lb-header-row,
    .lb-row {
        grid-template-columns: 50px 1fr 80px;
    }

    .lb-h-game,
    .lb-c-game {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .join-section {
        padding: clamp(60px, 10vh, 100px) 20px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .heading-row {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }
}

/* ============================================================
   TERMS PAGE
   ============================================================ */
.terms-section {
    padding-top: 180px;
    min-height: 80vh;
}

@media (max-width: 768px) {
    .terms-section {
        padding-top: 120px;
    }
}

.terms-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-1);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.terms-content h2 {
    font-size: 1.3rem;
    color: var(--text-100);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    font-size: 0.95rem;
    color: var(--text-300);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.terms-content strong {
    color: var(--text-200);
}

@media (max-width: 768px) {
    .terms-content {
        padding: 24px;
    }
}

/* ============================================================
   HELP CENTER PAGE
   ============================================================ */
.help-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.faq-item {
    background: var(--bg-1);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s var(--ease);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-100);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-300);
    line-height: 1.6;
}

.contact-card {
    background: linear-gradient(145deg, rgba(230, 57, 70, 0.05), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--text-100);
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-300);
    margin-bottom: 24px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(230, 57, 70, 0.3);
    transition: all 0.3s var(--ease);
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.contact-email:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .contact-email {
        font-size: 0.8rem;
        padding: 12px 16px;
        flex-direction: column;
        text-align: center;
        border-radius: var(--radius-lg);
        width: 100%;
        word-break: break-all;
        white-space: normal;
    }
}