/* ========================================
   VIGTHORIA GAMING NEXUS - STYLES
   Sci-Fi Futuristic Gaming Platform
   ======================================== */

:root {
    /* Core Colors */
    --bg-dark: #030318;
    --bg-panel: rgba(8, 8, 32, 0.9);
    --bg-card: rgba(12, 12, 48, 0.8);
    
    /* Neon Accent Colors */
    --cyan: #00f0ff;
    --magenta: #ff00ff;
    --purple: #8b5cf6;
    --green: #00ff88;
    --yellow: #ffff00;
    --orange: #ff8800;
    --red: #ff0044;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f0ff, #ff00ff);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #00f0ff);
    --gradient-accent: linear-gradient(135deg, #ff00ff, #ff8800);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Borders */
    --border-glow: rgba(0, 240, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --nav-height: 70px;
    --section-padding: clamp(60px, 10vw, 120px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(0,240,255,0.6), transparent),
        radial-gradient(1px 1px at 160px 120px, #fff, transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

.nebula {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 80% at 90% 80%, rgba(0, 240, 255, 0.1), transparent),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255, 0, 255, 0.08), transparent);
    animation: nebulaPulse 15s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.hex-loader {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.hex {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexPulse 1s ease-in-out infinite;
}

.hex:nth-child(2) { animation-delay: 0.2s; }
.hex:nth-child(3) { animation-delay: 0.4s; }

@keyframes hexPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.loader-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.loader-status {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(3, 3, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo .logo-svg {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.1);
}

.nav-link.active {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.nav-icon {
    font-size: 16px;
}

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

.search-box {
    position: relative;
}

.search-box input {
    width: 200px;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.5;
}

.notifications {
    position: relative;
    padding: 8px;
    cursor: pointer;
}

.notif-icon {
    font-size: 20px;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: var(--red);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    position: relative;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.login-btn:hover .btn-glow {
    opacity: 0.5;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--nav-height) + 60px) 60px 60px;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 0, 255, 0.15);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--magenta);
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 25px;
}

.title-line {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.cta-primary,
.cta-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-primary {
    background: var(--gradient-primary);
    color: #000;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
}

.cta-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
}

.cta-icon {
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-game-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 26px;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.card-content {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 22px;
}

.featured-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 15px;
}

.featured-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.featured-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.featured-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.players-online {
    font-size: 13px;
    color: var(--green);
}

.rating {
    font-size: 13px;
    color: #ffd700;
}

.play-now-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-now-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

/* ========================================
   GAMES SECTION
   ======================================== */

.games-section {
    padding: var(--section-padding) 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-tag {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--cyan);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 10px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-tab:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
    color: var(--text-primary);
}

.cat-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #000;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.2);
}

.game-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.game-card-body {
    padding: 18px;
}

.game-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.game-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-card-players {
    font-size: 12px;
    color: var(--green);
}

.game-card-rating {
    font-size: 12px;
    color: #ffd700;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   SPOTLIGHT SECTION
   ======================================== */

.spotlight-section {
    position: relative;
    padding: var(--section-padding) 60px;
    overflow: hidden;
}

.spotlight-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 50%, rgba(0, 240, 255, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(255, 0, 255, 0.08), transparent);
}

.spotlight-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.spotlight-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 15px;
}

.spotlight-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.spotlight-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.spotlight-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.spotlight-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.spotlight-actions {
    display: flex;
    gap: 15px;
}

.spotlight-play {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-play:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.4);
}

.play-icon {
    font-size: 18px;
}

.spotlight-info-btn {
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-info-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
}

.spotlight-media {
    display: flex;
    justify-content: center;
}

.media-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    background: var(--bg-card);
    border: 2px solid var(--cyan);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
}

.game-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    padding: 20px;
}

.dominion-logo {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.dominion-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.preview-tagline {
    margin-top: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.faction-icons {
    display: flex;
    gap: 30px;
    font-size: 48px;
    justify-content: center;
    animation: factionPulse 3s ease-in-out infinite;
}

@keyframes factionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Continue in next part... */
/* ========================================
   ARENA SECTION
   ======================================== */

.arena-section {
    padding: var(--section-padding) 60px;
    background: 
        radial-gradient(ellipse 50% 30% at 50% 0%, rgba(255, 0, 255, 0.1), transparent);
}

.arena-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.arena-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.arena-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
}

.arena-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.arena-card-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.match-count {
    font-size: 12px;
    color: var(--cyan);
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
}

.matches-list,
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.match-item,
.tournament-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-item:hover,
.tournament-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--cyan);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-game {
    font-size: 13px;
    font-weight: 600;
}

.match-players {
    font-size: 11px;
    color: var(--text-muted);
}

.match-status {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--green);
    border-radius: 4px;
}

.lobby-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.option-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-row label {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.option-row select {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.option-row select:focus {
    outline: none;
    border-color: var(--cyan);
}

.arena-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arena-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.arena-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
}

.arena-btn.primary {
    background: var(--gradient-accent);
}

/* ========================================
   LEADERBOARD SECTION
   ======================================== */

.leaderboard-section {
    padding: var(--section-padding) 60px;
}

.leaderboard-tabs {
    display: flex;
    gap: 8px;
}

.lb-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lb-tab.active {
    background: var(--gradient-secondary);
    border-color: transparent;
    color: #000;
}

.leaderboard-container {
    margin-top: 40px;
}

.top-players {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 50px;
}

.top-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.top-player.first {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.top-player.second {
    border-color: #c0c0c0;
}

.top-player.third {
    border-color: #cd7f32;
}

.crown {
    font-size: 32px;
    margin-bottom: 10px;
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.player-avatar {
    font-size: 48px;
    margin-bottom: 15px;
}

.player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.player-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--cyan);
}

.rankings-table {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.ranking-row {
    display: grid;
    grid-template-columns: 60px 1fr 150px 100px;
    align-items: center;
    padding: 16px 25px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

.ranking-row:hover {
    background: rgba(0, 240, 255, 0.05);
}

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

.rank-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--purple);
}

.rank-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.rank-name {
    font-weight: 600;
}

.rank-wins {
    color: var(--text-secondary);
    font-size: 14px;
}

.rank-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
    text-align: right;
}

/* ========================================
   CREATOR SECTION
   ======================================== */

.creator-section {
    position: relative;
    padding: var(--section-padding) 60px;
    overflow: hidden;
}

.creator-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 0% 50%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 100% 50%, rgba(0, 255, 136, 0.1), transparent);
}

.creator-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.creator-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.creator-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.creator-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.creator-features li span {
    font-size: 20px;
}

.creator-actions {
    display: flex;
    gap: 15px;
}

.creator-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.creator-btn.primary {
    background: var(--gradient-secondary);
    color: #000;
    border: none;
}

.creator-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.creator-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
}

.creator-btn.secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

.code-window {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    font-size: 12px;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    height: 300px;
    overflow: hidden;
}

.code-display {
    color: var(--text-secondary);
}

/* ========================================
   COMMUNITY SECTION
   ======================================== */

.community-section {
    padding: var(--section-padding) 60px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.community-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.community-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.community-link {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan);
    border-radius: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.community-link:hover {
    background: var(--cyan);
    color: #000;
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-subtle);
    padding: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--cyan);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

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

.footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--cyan);
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
}

.modal-content.fullscreen {
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
    height: 95vh;
    padding: 0;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--red);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
}

.auth-btn.coder {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #000;
}

.auth-icon {
    font-size: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 13px;
}

.game-container {
    width: 100%;
    height: 100%;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .spotlight-content,
    .creator-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .arena-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: calc(var(--nav-height) + 30px) 20px 40px;
    }
    
    .games-section,
    .spotlight-section,
    .arena-section,
    .leaderboard-section,
    .creator-section,
    .community-section {
        padding: 60px 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .top-players {
        flex-direction: column;
    }
    
    .top-player.first {
        transform: scale(1);
        order: -1;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.modal-content.fullscreen {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 0, 68, 0.2);
    border: 1px solid var(--red);
    color: var(--red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 68, 0.5);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-secondary);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Game Modal */
.game-modal .modal-content {
    background: #000;
}

.game-container {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Auth Buttons */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-glow);
    background: var(--bg-card);
    color: var(--text-primary);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

.auth-btn.coder {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-color: var(--cyan);
}

.auth-btn.google {
    background: rgba(234, 67, 53, 0.1);
    border-color: rgba(234, 67, 53, 0.5);
}

.auth-btn.github {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-icon {
    font-size: 1.4rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}
