/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(0deg, #CFC1A6 0%, #CFC1A6 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    color: #8B4513;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -2px;
}

.logo-image {
    max-height: 80px;
    max-width: 300px;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.tagline {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #6B3410;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.5px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.game-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.game-image:hover {
    transform: scale(1.05);
}

.game-image.single-center {
    grid-column: 2;
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    
    .game-title-overlay {
        font-size: 0.6rem;
        padding: 4px 6px;
    }
    
    .logo {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .tagline {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
    }
}

/* Footer Styles */
.footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #8B4513;
    line-height: 1.6;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.footer-text strong {
    font-weight: 600;
    color: #6B3410;
}

.footer-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #8B4513;
    margin: 0;
    opacity: 0.7;
}

.disclaimer-link {
    color: #8B4513;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: #6B3410;
    text-decoration: none;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
    
    .footer-disclaimer {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .games-grid {
        gap: 10px;
    }
    
    .game-card {
        border-radius: 12px;
    }
    
    .game-title-overlay {
        font-size: 0.55rem;
        padding: 3px 5px;
        border-radius: 4px;
    }
    
    .game-image::before {
        font-size: 2rem;
    }
}

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

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }
.game-card:nth-child(9) { animation-delay: 0.9s; }
.game-card:nth-child(10) { animation-delay: 1.0s; }
.game-card:nth-child(11) { animation-delay: 1.1s; }
.game-card:nth-child(12) { animation-delay: 1.2s; }
.game-card:nth-child(13) { animation-delay: 1.3s; }
.game-card:nth-child(14) { animation-delay: 1.4s; }
.game-card:nth-child(15) { animation-delay: 1.5s; }
.game-card:nth-child(16) { animation-delay: 1.6s; }
.game-card:nth-child(17) { animation-delay: 1.7s; }
.game-card:nth-child(18) { animation-delay: 1.8s; }
.game-card:nth-child(19) { animation-delay: 1.9s; }
