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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1829 100%);
    color: #fff;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #8b93b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-login {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.btn-login:hover {
    background: rgba(99, 102, 241, 0.3);
}

.btn-register {
    background: #6366f1;
    color: #fff;
}

.btn-register:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

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

h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    font-family: 'Comic Sans MS', cursive;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.rtp-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.live-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.game-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.game-subtitle {
    font-size: 0.875rem;
    color: #a0aec0;
}

.game-dice {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.game-blackjack {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

.game-plinko {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.game-crash {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
}

.game-mines {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.game-beet {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.game-keno {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
}

.game-roulette {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    background: linear-gradient(to bottom, #ff0066 0%, #00ff99 50%, #ffff00 100%);
}

footer {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(10, 14, 39, 0.5);
}

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

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #8b93b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 147, 184, 0.2);
    font-size: 0.875rem;
    color: #8b93b8;
    line-height: 1.6;
}

.copyright {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    nav {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .copyright {
        flex-direction: column;
        gap: 1rem;
    }
}
