:root {
    --bg-gradient-start: #00c6ff;
    --bg-gradient-end: #0072ff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-hover-transform: translateY(-5px);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    --text-color: #555151;
    --font-family: 'Fredoka One', sans-serif;
    --heading-font: 'Fredoka One', cursive, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    min-height: 100vh;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -5vh;
    left: -5vw;
    width: 110vw;
    height: 110vh;
    background-image: url("../assets/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transform: translate(var(--bg-x, 0), var(--bg-y, 0));
    transition: transform 0.1s ease-out;
}

header {
    width: 100%;
    padding: 3rem 0;
    text-align: center;
    background: transparent;
    margin-bottom: 1rem;
}

h1 {
    margin: 0;
    color: white;
    font-family: 'Momo Signature', cursive;
    font-weight: 400;
    font-size: 5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lite-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #FFD700;
    font-style: normal;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
}

.header-subtitle {
    font-family: var(--font-family);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 0 1rem 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.game-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--card-hover-shadow);
    z-index: 10;
}

.game-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 3rem; Removed for PNGs, but kept for Runner fallback if needed inline style */
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    body::before {
        background-attachment: scroll;
    }
}