:root {
    --bg: #0d0d12;
    --bg-card: #16161d;
    --bg-hover: #1e1e28;
    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --hot: #f87171;
    --new: #60a5fa;
    --text: #fafafa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Global link styles - remove underlines */
a,
a:any-link,
a:-webkit-any-link {
    text-decoration: none;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* Mobile Nav - Floating Pill */
.mobile-nav {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(22, 22, 29, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.nav-brand,
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-solid {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
}

.menu-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none !important;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Main */
.main {
    padding-top: 90px;
    position: relative;
    z-index: 1;
}

/* Hero */
.hero {
    padding: 1rem 1rem 2rem;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.25rem, 9vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-title .num {
    display: inline-block;
    transform: rotate(-5deg);
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 340px;
    margin: 0 auto 1.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 280px;
    margin: 0 auto;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 100px;
}

/* MEGA JACKPOT with DOPAMINE Effects */
.jackpot-section {
    margin-top: 3rem;
    padding: 0 0.5rem;
}

.jackpot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: jackpotPulse 3s ease-in-out infinite;
}

@keyframes jackpotPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.2), 0 0 40px rgba(251, 191, 36, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.4), 0 0 60px rgba(251, 191, 36, 0.2);
    }
}

/* Shimmer effect overlay */
.jackpot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Gold glow bar at top */
.jackpot-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 0 0 3px 3px;
    animation: glowBar 2s ease-in-out infinite;
}

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

.jackpot-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.jackpot-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s linear infinite, jackpotBounce 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

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

.jackpot-games {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

/* Jackpot confetti container */
.jackpot-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

/* Game Carousel */
.showcase {
    margin-bottom: 2rem;
    overflow: hidden;
}

.showcase-scroll {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 1rem;
    margin: 0 -1rem;
}

.showcase-scroll::-webkit-scrollbar {
    display: none;
}

.showcase-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    text-decoration: none;
    display: block;
}

.showcase-card.featured {
    flex: 0 0 90%;
    aspect-ratio: 1;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
}



.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.4rem 0.875rem;
    background: var(--hot);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-hot { background: var(--hot); color: white; }
.badge-new { background: var(--new); color: white; }
.badge-jackpot { background: var(--gold); color: var(--bg); }

.play-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    color: var(--bg);
}

/* Winners Ticker */
.winners {
    padding: 0 1rem 2rem;
}

.winners-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-badge {
    padding: 0.25rem 0.625rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    color: #22c55e;
    font-weight: 700;
    text-transform: uppercase;
}

.ticker-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    overflow: hidden;
}

.ticker {
    display: flex;
    gap: 0.75rem;
    animation: ticker 25s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.winner-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.winner-info {
    display: flex;
    flex-direction: column;
}

.winner-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.winner-game {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.winner-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--gold);
    margin-left: 0.5rem;
}

/* Games Grid Section */
.games-section {
    padding: 2rem 1rem;
}

.games-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.games-header {
    margin-bottom: 1.25rem;
}

.games-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.games-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

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

.game-card:active {
    transform: scale(0.98);
}

.game-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1e1e28 0%, #16161d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb-img {
    transform: scale(1.05);
}

.game-details {
    padding: 0.875rem;
}

.game-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
}

.game-players {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.mini-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Promo Cards */
.promos {
    padding: 2rem 1rem;
}

.promos-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.promo-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.promo-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.promo-box.purple {
    background: #1a1625;
    border-color: rgba(167, 139, 250, 0.25);
}

.promo-box.peach {
    background: #2a2220;
    border-color: rgba(251, 191, 36, 0.25);
}

.promo-tag {
    display: inline-block;
    padding: 0.35rem 0.875rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.promo-box.purple .promo-tag { color: var(--accent-light); }
.promo-box.peach .promo-tag { color: var(--gold); }

.promo-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.promo-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.promo-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.promo-box.purple .promo-action {
    background: var(--accent);
}

.promo-box.peach .promo-action {
    background: var(--gold);
    color: var(--bg);
}

/* Compact Sleek Footer */
.footer {
    padding: 1.5rem 1rem 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Links - Clean Text Style */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Legal Notice - Compact & Sleek */
.legal-notice {
    text-align: center;
    padding: 1rem;
    margin: 0 -1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.legal-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.legal-text a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* Copyright - Separate Line */
.copyright {
    text-align: center;
    padding-top: 1rem;
}

.copyright-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;
        position: fixed;
        top: 1rem;
        left: 2rem;
        right: 2rem;
        z-index: 1000;
        padding: 0.75rem 1.5rem;
        background: rgba(22, 22, 29, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 100px;
    }

    .desktop-nav-inner {
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-nav .nav-links {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .desktop-nav .nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .desktop-nav .nav-links a:hover {
        color: var(--text);
    }

    .main {
        padding-top: 100px;
    }

    .hero {
        padding: 3rem 2rem;
    }

    .hero-layout {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
        align-items: center;
    }

    .hero-text {
        text-align: left;
        margin-bottom: 0;
    }

    .hero-subtitle {
        margin: 0 0 1.5rem;
    }

    .hero-actions {
        flex-direction: row;
        margin: 0;
        max-width: none;
    }

    .jackpot-section {
        margin-top: 2rem;
        padding: 0;
    }

    .jackpot-card {
        margin: 0;
    }

    .showcase {
        margin-bottom: 0;
    }

    .showcase-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        overflow: visible;
        padding: 0;
        margin: 0;
    }

    .showcase-card,
    .showcase-card.featured {
        flex: none;
        scroll-snap-align: none;
        aspect-ratio: auto;
    }

    .showcase-card {
        height: 180px;
    }

    .showcase-card.featured {
        grid-row: span 2;
        height: auto;
    }



    .stats {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        max-width: none;
    }

    .stat-box {
        min-width: 140px;
    }

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

    .promo-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .footer {
        padding: 2rem 2rem 1.25rem;
    }

    .footer-links {
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .legal-notice {
        margin: 0 -2rem;
        padding: 1rem 2rem;
    }

    .legal-text {
        font-size: 0.7rem;
    }

    .copyright {
        padding-top: 1.25rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.6s ease forwards;
}
