/* === ULTRA PREMIUM TYPOGRAPHY SYSTEM === */
:root {
    /* Fontes Premium Hierarchy */
    --font-primary: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif;
    --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', 'Satoshi', system-ui, sans-serif;
    
    /* Premium Colors */
    --primary: #00bfff;
    --primary-600: #0099cc;
    --primary-700: #007acc;
    --primary-300: #66d9ff;
    --gold: #F4D03F;
    --gold-light: #F7DC6F;
    --platinum: #E8E8E8;
}

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    background: 
        /* Cosmic stars background */
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(20, 184, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(123, 51, 255, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 0, 128, 0.4), transparent),
        /* Deep space nebulas */
        radial-gradient(ellipse at 20% 80%, rgba(123, 51, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 184, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(255, 0, 128, 0.06) 0%, transparent 50%),
        /* Deep space gradient */
        linear-gradient(135deg, 
            #0a0a0f 0%, 
            #0f0f1a 25%, 
            #1a1a2e 50%, 
            #16213e 75%, 
            #0a0a0f 100%);
    background-size: 
        200px 100px,
        80px 60px,
        300px 200px,
        150px 80px,
        250px 120px,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-attachment: fixed;
    color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
}


/* Floating cosmic particles overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 85%, rgba(20, 184, 255, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(123, 51, 255, 0.015) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 128, 0.01) 0%, transparent 15%);
    animation: floatingCosmicParticles 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatingCosmicParticles {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(20px, -30px) rotate(90deg) scale(1.1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-10px, -20px) rotate(180deg) scale(0.9);
        opacity: 0.7;
    }
    75% { 
        transform: translate(-30px, 10px) rotate(270deg) scale(1.2);
        opacity: 0.4;
    }
}

/* === PREMIUM HEADINGS === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

/* === RESPONSIVE PERFORMANCE === */
@media (max-width: 640px) {
    .header {
        backdrop-filter: blur(15px) saturate(150%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header::before,
    .header::after,
    .logo-icon {
        animation: none;
    }
    
    .nav-menu a,
    .btn-register,
    .btn-login {
        transition: none;
    }
    
    /* Disable cosmic animations for accessibility */
    body,
    body::before {
        animation: none;
    }
    
    .hero-section::before,
    .hero-section::after,
    .steps-section::before,
    .games-section::before {
        animation: none;
    }
}

/* === COSMIC ANIMATIONS === */
@keyframes logoGlow {
    0% { 
        box-shadow: 
            0 4px 20px rgba(0, 255, 136, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    100% { 
        box-shadow: 
            0 6px 30px rgba(0, 212, 255, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes cosmicGrid {
    0%, 100% { 
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.01) rotate(0.2deg);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.03) rotate(-0.1deg);
    }
    75% { 
        opacity: 0.9;
        transform: scale(1.01) rotate(0.1deg);
    }
}

@keyframes floatingParticles {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    20% { 
        transform: translate(8px, -12px) rotate(72deg) scale(1.05);
        opacity: 0.8;
    }
    40% { 
        transform: translate(-3px, -8px) rotate(144deg) scale(0.95);
        opacity: 0.9;
    }
    60% { 
        transform: translate(-12px, 4px) rotate(216deg) scale(1.1);
        opacity: 0.7;
    }
    80% { 
        transform: translate(5px, 10px) rotate(288deg) scale(0.9);
        opacity: 0.85;
    }
}

/* === HEADER STYLES === */
.header {
    background: 
        /* Nebulosa sutil no canto superior */
        radial-gradient(ellipse at 20% 10%, rgba(29, 78, 216, 0.15) 0%, transparent 50%),
        /* Nebulosa sutil no canto inferior */
        radial-gradient(ellipse at 80% 90%, rgba(147, 51, 234, 0.25) 0%, transparent 50%),
        /* Gradiente principal do espaço profundo */
        linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(26, 26, 46, 0.96) 25%, rgba(22, 33, 62, 0.98) 50%, rgba(15, 15, 35, 0.96) 75%, rgba(10, 10, 15, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 16px rgba(0, 255, 136, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 80px;
    overflow: visible;
}

/* Cosmic grid background for header - REMOVIDO POR SOLICITAÇÃO DO USUÁRIO */
/* .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: cosmicGrid 8s ease-in-out infinite;
    pointer-events: none;
} */

/* Floating particles for header - REMOVIDO POR SOLICITAÇÃO DO USUÁRIO */
/* .header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 15% 85%, rgba(0, 255, 136, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.025) 0%, transparent 20%);
    animation: floatingParticles 10s ease-in-out infinite;
    pointer-events: none;
} */

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, var(--primary-600) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 
        0 4px 20px rgba(0, 255, 136, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    text-shadow: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.nav-menu a:hover::after {
    width: 60%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.btn-login {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.15);
}

.btn-register {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.005em;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, var(--primary) 100%);
    color: #000000;
    text-decoration: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 255, 136, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-register:hover {
    background: linear-gradient(135deg, #0099cc 0%, #007acc 50%, #005a99 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 191, 255, 0.35), 0 4px 15px rgba(0, 153, 204, 0.25) !important;
}

/* === COSMIC HERO SECTION === */
.hero-section {
    margin-top: 80px;
    padding: 4rem 0;
    background: 
        /* Cosmic nebula overlay */
        radial-gradient(ellipse at 30% 0%, rgba(123, 51, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(20, 184, 255, 0.1) 0%, transparent 50%),
        /* Deep space base */
        linear-gradient(135deg, rgba(10, 10, 25, 0.95) 0%, rgba(15, 15, 35, 0.98) 100%);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Cosmic grid overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(20, 184, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(20, 184, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: cosmicGridMove 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cosmicGridMove {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(0, 0);
    }
    50% { 
        opacity: 0.6;
        transform: translate(30px, 30px);
    }
}

/* Floating particles for hero */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 0, 128, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(123, 51, 255, 0.03) 0%, transparent 20%);
    animation: heroParticles 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heroParticles {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-banner {
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #FFFFFF !important;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--primary) !important;
    margin-bottom: 2rem;
}

.hero-description {
    font-family: 'Inter', 'Satoshi', system-ui, sans-serif !important;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #E5E7EB;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.3);
}

/* === COSMIC STEPS SECTION === */
.steps-section {
    padding: 4rem 2rem;
    background: 
        /* Cosmic nebulas */
        radial-gradient(ellipse at 20% 30%, rgba(123, 51, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(20, 184, 255, 0.06) 0%, transparent 50%),
        /* Subtle cosmic grid */
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 
        100% 100%,
        100% 100%,
        80px 80px,
        80px 80px;
    position: relative;
    z-index: 2;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 0, 128, 0.03) 0%, transparent 30%);
    animation: sectionParticles 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes sectionParticles {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #FFFFFF !important;
    text-align: center;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-8px);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid rgba(0, 127, 255, 0.3) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.step-icon:hover {
    border-color: rgba(0, 127, 255, 0.6) !important;
    color: var(--gold);
    transform: scale(1.05);
}

.step-title {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #FFFFFF !important;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.step-item:hover .step-title {
    color: var(--gold) !important;
}

.step-description {
    font-family: 'Inter', 'Satoshi', system-ui, sans-serif !important;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.step-item:hover .step-description {
    color: #FFFFFF;
}

/* === COSMIC GAMES SECTION === */
.games-section {
    padding: 4rem 2rem;
    background: 
        /* Cosmic nebulas */
        radial-gradient(ellipse at 15% 85%, rgba(20, 184, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 15%, rgba(123, 51, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 128, 0.04) 0%, transparent 40%);
    position: relative;
    z-index: 2;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(20, 184, 255, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(123, 51, 255, 0.015) 25%, transparent 25%);
    background-size: 120px 120px;
    animation: cosmicPattern 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cosmicPattern {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 120px 120px, -120px -120px; }
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.game-category {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(0, 127, 255, 0.22) !important;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
}

.game-category:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 127, 255, 0.5) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 127, 255, 0.1);
}

.game-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.15) 0%, rgba(0, 127, 255, 0.1) 100%);
    border: 3px solid rgba(244, 208, 63, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.game-category:hover .game-icon {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.2) 0%, rgba(0, 127, 255, 0.15) 100%);
    box-shadow: 
        0 0 40px rgba(244, 208, 63, 0.3),
        0 0 80px rgba(244, 208, 63, 0.1);
    transform: scale(1.05);
}

.game-title {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.game-category:hover .game-title {
    color: var(--gold) !important;
}

.game-description {
    font-family: 'Inter', 'Satoshi', system-ui, sans-serif !important;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #D1D5DB;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.game-category:hover .game-description {
    color: #FFFFFF;
}

.game-btn {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--primary), var(--primary-600)) !important;
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 127, 255, 0.3) !important;
    text-transform: uppercase;
}

.game-btn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 127, 255, 0.4) !important;
    color: #FFFFFF;
}

.game-btn i {
    font-size: 1.1rem;
    color: var(--gold);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.game-btn:hover i {
    transform: translateX(4px);
}

/* === RASPADINHAS SECTION === */
#raspadinhas .rs-container {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0 16px;
}

#raspadinhas .rs-heading {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #FFFFFF !important;
    margin: 0 0 12px;
}

#raspadinhas .rs-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

#raspadinhas .rs-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f1115, #0c0d10) !important;
    border: 1px solid #1f2937 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease !important;
    position: relative;
    overflow: hidden;
}

#raspadinhas .rs-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 12px 36px rgba(0,127,255,0.20) !important;
    transform: translateY(-2px) !important;
}

#raspadinhas .rs-banner {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 21 / 9 !important;
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden !important;
    background: #0b0b0c !important;
}

#raspadinhas .rs-banner img { 
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

#raspadinhas .rs-price-badge {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px;
    letter-spacing: 0.02em;
    position: absolute !important; 
    top: 12px !important; 
    right: 16px !important;
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 6px !important;
    padding: 8px 12px !important; 
    border-radius: 999px !important;
    background: var(--primary) !important;
    border: 1px solid var(--primary-600) !important;
    color: #ffffff !important; 
    box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
    z-index: 10 !important;
}

#raspadinhas .rs-price-badge .currency { 
    color: #ffffff !important; 
    font-weight: 800 !important; 
}

#raspadinhas .rs-content-wrapper {
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#raspadinhas .rs-head {
    display: flex; 
    flex-direction: column; 
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

#raspadinhas .rs-title { 
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #e5e7eb !important;
    margin: 0; 
}

#raspadinhas .rs-sub { 
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(0.95rem, 1.2vw, 1.125rem); 
    text-transform: uppercase; 
    letter-spacing: .08em; 
    color: var(--gold) !important;
    opacity: .95; 
    margin: 0; 
}

#raspadinhas .rs-description {
    font-family: 'Inter', 'Satoshi', system-ui, sans-serif !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: #9ca3af;
    margin: 8px 0 0 0;
}

#raspadinhas .btn-play {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.005em;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    white-space: nowrap;
    transition: all 0.2s;
    height: 50px;
    border-radius: 8px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    margin-top: 8px;
}

#raspadinhas .btn-play:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#raspadinhas .btn-play .btn-label {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0;
}

#raspadinhas .btn-play .price-chip {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

#raspadinhas .btn-play .price-chip .currency {
    color: #bfdbfe;
    font-weight: 700;
}

#raspadinhas .link-prizes {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #d1d5db;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 0;
    margin-top: 8px;
    letter-spacing: -0.01em;
}

#raspadinhas .link-prizes:hover {
    color: var(--gold);
}

/* === FOOTER STYLES === */
.footer {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(5, 5, 5, 1) 100%);
    border-top: 1px solid rgba(0, 127, 255, 0.1);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--gold) !important;
    margin-bottom: 1rem;
}

.footer-links a {
    font-family: 'Satoshi', 'Inter', system-ui, 'Avenir', 'Helvetica', Arial, sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

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

/* === DESKTOP OPTIMIZATIONS === */
@media (min-width: 1024px) {
    #boxes .rs-card {
        max-width: 400px !important;
        width: calc(33.333% - 20px) !important;
        min-width: 350px !important;
        flex: 0 0 auto !important;
    }
    
    #boxes .rs-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    
    #boxes .rs-content-wrapper {
        padding: 24px !important;
        gap: 16px !important;
    }
    
    #boxes .rs-banner {
        aspect-ratio: 1 / 1 !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    #boxes .rs-title {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    #boxes .rs-sub {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    #boxes .rs-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 8px 0 0 0 !important;
    }
    
    #boxes .btn-play {
        height: 50px !important;
        font-size: 15px !important;
        padding: 0 20px !important;
        margin-top: 12px !important;
    }
    
    #boxes .rs-price-badge {
        font-size: 14px !important;
        padding: 8px 12px !important;
        top: 12px !important;
        right: 12px !important;
    }
    
    #boxes .rs-head {
        gap: 8px !important;
    }
    
    #boxes .link-prizes {
        font-size: 13px !important;
        padding: 8px 0 !important;
        margin-top: 12px !important;
    }
    
    #boxes .rs-card {
        border-radius: 16px !important;
    }
}

/* === COSMIC MOBILE OPTIMIZATIONS === */
@media (max-width: 768px) {
    body {
        background-size: 
            100px 50px,
            40px 30px,
            150px 100px,
            75px 40px,
            125px 60px,
            100% 100%,
            100% 100%,
            100% 100%,
            100% 100%;
        animation-duration: 30s;
        background-attachment: scroll; /* Fix iOS issues */
    }
    
    /* Reduce cosmic effects on mobile for performance */
    body::before {
        opacity: 0.2;
        animation-duration: 25s;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        letter-spacing: -0.03em;
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 5vw, 2rem);
        letter-spacing: -0.02em;
    }
    
    .game-title {
        font-size: 1.5rem;
        letter-spacing: -0.015em;
    }
    
    .step-title {
        font-size: 1.125rem;
        letter-spacing: -0.015em;
    }
    
    .nav-menu {
        display: none;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section::before {
        background-size: 40px 40px;
        animation-duration: 20s;
    }
    
    .steps-section {
        padding: 2rem 1rem;
    }
    
    .games-section {
        padding: 2rem 1rem;
    }
    
    .steps-section::before,
    .games-section::before {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.25rem, 6vw, 1.5rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }
}

/* === SCROLLBAR CUSTOMIZATION === */
/* Firefox */
@-moz-document url-prefix() {
    html {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    }

    html ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    html ::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    html ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    html ::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* === WIN HIGHLIGHT & TOAST (Reusable) === */
.win-highlight {
  position: relative;
}
.win-highlight::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, rgba(250,204,21,0.0), rgba(250,204,21,0.5), rgba(8,212,255,0.35), rgba(250,204,21,0.0));
  filter: blur(6px);
  animation: winAura 1.2s ease-out forwards;
  pointer-events: none;
}
@keyframes winAura { 0%{ opacity: 0; transform: scale(0.96);} 30%{ opacity: .9; } 100%{ opacity: 0; transform: scale(1.04);} }

.toast-win {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.85);
  color: #fff;
  border: 1px solid rgba(250,204,21,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 10000;
  opacity: 0;
  animation: toastIn .25s ease forwards;
}
.toast-win .icon { color: #facc15; }
@keyframes toastIn { from{ transform: translate(-50%, 8px); opacity: 0; } to{ transform: translate(-50%, 0); opacity: 1; } }
@media (max-width: 640px){ .toast-win { width: calc(100% - 24px); left: 12px; right: 12px; transform: none; } }

/* === HIDDEN BALANCE (for /capsulas/open.php) === */
.balance-display.hidden-balance {
    display: none !important;
}
