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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: rgba(10, 14, 39, 0.95);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 2px;
}

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

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ffd700;
}

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

.btn-login {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #ffffff;
    color: #0a0e27;
}

.btn-signup {
    background: #ffd700;
    color: #0a0e27;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-signup:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 2rem;
}

.btn-play {
    background: #ffd700;
    color: #0a0e27;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-play:hover {
    background: #ffed4e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slot-machine {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.3));
}

/* Animated small images (coins & chips) */
.anim {
    position: absolute;
    display: block;
    opacity: 0.95;
    will-change: transform, opacity;
}

.coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff7c2 0%, #ffd700 40%, #caa200 70%, #8a6e00 100%);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.25);
    animation: floatY 4.5s ease-in-out infinite, spin 2.2s linear infinite;
}

.chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #0a0e27 0 30%, transparent 31%),
        conic-gradient(#e74c3c 0 25%, #ffffff 0 50%, #27ae60 0 75%, #ffffff 0 100%);
    border: 3px solid #111827;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    animation: floatY 5.2s ease-in-out infinite, wobble 3.5s ease-in-out infinite;
}

/* Individual positions */
.coin-1 { left: 8%; top: 20%; animation-delay: 0s, 0s; }
.coin-2 { left: 78%; top: 30%; animation-delay: 0.8s, 0.4s; }
.chip-1 { left: 60%; top: 8%; animation-delay: 0.3s, 0.2s; }
.chip-2 { left: 18%; top: 70%; animation-delay: 1.2s, 0.7s; }

@keyframes floatY {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wobble {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(6deg) scale(1.03); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Tweak sizes on mobile */
@media (max-width: 968px) {
    .coin { width: 22px; height: 22px; }
    .chip { width: 28px; height: 28px; }
}

/* Image-based accents (when real PNG/SVGs are added) */
.anim-img {
    position: absolute;
    display: block;
    will-change: transform, opacity;
    opacity: 0.95;
}

.coin-img {
    width: 30px;
    height: 30px;
    animation: floatY 4.5s ease-in-out infinite, spin 2.4s linear infinite;
}

.chip-img {
    width: 36px;
    height: 36px;
    animation: floatY 5.2s ease-in-out infinite, wobble 3.6s ease-in-out infinite;
}

/* Positions for image-based accents */
.coin-3 { left: 72%; top: 14%; animation-delay: 0.6s, 0.3s; }
.chip-3 { left: 12%; top: 58%; animation-delay: 1.1s, 0.7s; }

@media (max-width: 968px) {
    .coin-img { width: 22px; height: 22px; }
    .chip-img { width: 28px; height: 28px; }
}

/* Top Games Section */
.top-games {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.top-games h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

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

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.game-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.game-image.wreckfest-slots {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
}

.game-image.book-of-dead {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.game-image.starburst {
    background: linear-gradient(135deg, #4B0082 0%, #9400D3 100%);
}

.game-image.bonanza {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

.game-image.mega-moolah {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
}

.game-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    transition: right 0.3s;
    z-index: 2000;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-menu ul li {
    margin-bottom: 1.5rem;
}

.mobile-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu,
    .auth-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .top-games h2 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .btn-play {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

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

    .top-games {
        padding: 0 1rem;
    }

    header {
        padding: 1rem;
    }
}
