:root {
    --red-color: #DF1995;
    --blue-clor: #0074b3;
}


html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent linear-gradient(240deg, #FFA300 0%, #DF1995 100%) no-repeat padding-box;
}

#root {
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* height: 100vh; */
}

#head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}

#head #logo {
    width: 160px;
    margin-top: 30px;
}

@media (min-width: 480px) {
    #head #logo {
        width: 200px;
        margin-top: 60px;
    }
}

#head h1 {
    font-size: 1.8rem;
    margin: 16px 0 8px 0;
    color: #333;
    font-weight: 700;
}

@media (min-width: 480px) {
    #head h1 {
        font-size: 2.2rem;
        margin: 20px 0 12px 0;
    }
}

#head #logo-5g {
    width: 200px;
    margin-top: 30px;
    margin-bottom: 10px;
    margin-left: -68px;
}

@media (min-width: 480px) {
    #head #logo-5g {
        width: 150px;
        margin-bottom: 24px;
    }
}

#games {
    display: grid;
    background-color: white;
    margin: 28px 16px;
    /* margin-bottom: 60px; */
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    #games {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin: 40px 20px;
        margin-bottom: 40px;
        padding: 24px;
    }
}

.game {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 16px;
    border-radius: 16px;
    background: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 0.9;
    justify-content: flex-start;
}

@media (min-width: 480px) {
    .game {
        justify-content: center;
    }
}

@media (min-width: 480px) and (max-height: 500px) {
    .game {
        aspect-ratio: auto;
        min-height: 180px;
        justify-content: center;
        padding: 12px;
        position: relative;
    }
}

.game:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(223, 25, 149, 0.3);
}

.game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.game img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    margin-top: 8px;
}

@media (min-width: 480px) {
    .game img {
        width: 120px;
        height: 120px;
        margin-top: 12px;
    }
}

@media (min-width: 480px) and (max-height: 500px) {
    .game img {
        width: 100px;
        height: 100px;
        margin-top: 0;
        margin-bottom: -20px;
    }
}

.game .button {
    width: 90px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--red-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: -10px 0 8px 0;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.game .button:hover {
    background-color: rgba(223, 25, 149, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (min-width: 480px) {
    .game .button {
        width: 110px;
        height: 44px;
        font-size: 1.3rem;
        margin: -15px 0 12px 0;
    }
}

@media (min-width: 480px) and (max-height: 500px) {
    .game .button {
        width: 90px;
        height: 40px;
        font-size: 1.1rem;
        margin: -10px 0 8px 0;
        position: relative;
        z-index: 10;
    }
}

.game h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    z-index: 1;
}

@media (min-width: 480px) {
    .game h2 {
        font-size: 1.3rem;
    }
}

@media (min-width: 480px) and (max-height: 500px) {
    .game h2 {
        font-size: 1rem;
        margin: 0;
    }
}