html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background: linear-gradient(147deg,
            rgba(97, 7, 62, 1) 1%,
            rgba(78, 0, 60, 0.97) 53%,
            rgba(0, 0, 0, 1) 100%) no-repeat;
    background-size: cover;
    overflow-x: hidden;
    height: 100%;
    width: auto;
}

.header h1 {
    color: #f772cd;
    margin: 10px;
    text-align: center;
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 0 8px #ff42c3, 0 0 16px #ff71d2,
        0 0 32px rgba(255, 66, 195, 0.6), 0 0 64px rgba(146, 0, 100, 0.5),
        0 0 128px rgba(146, 0, 100, 0.35), 0 0 200px rgba(146, 0, 100, 0.25);
    filter: drop-shadow(0 0 30px rgba(255, 66, 195, 0.45)) drop-shadow(0 0 60px rgba(146, 0, 100, 0.25));
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.container .game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 0, 234, 0.244);
    border-radius: 15px;
    margin: 0;
    padding: 20px;
    width: 300px;
    border: 2px solid transparent;
    transition: 0.6s;
    position: relative;
    overflow: hidden;
}

.container .game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(126deg, rgba(213, 0, 255, 1) 0%, rgba(242, 7, 207, 1) 54%, rgba(255, 0, 149, 1) 100%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.container .game-card > * {
    position: relative;
    z-index: 1;
}

.container .game-card:hover::before {
    opacity: 1;
    animation: fondoAnimado 5s ease infinite;
}

.container .game-card:hover {
    border: 2px solid rgba(255, 0, 238, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 0, 238, 0.3);
    transition: 0.6s;
}

@keyframes fondoAnimado {
    0%   { background-position: 0% 50%;   background-size: 200% 200%; }
    25%  { background-position: 50% 0%;   background-size: 210% 210%; }
    50%  { background-position: 100% 50%; background-size: 200% 200%; }
    75%  { background-position: 50% 100%; background-size: 210% 210%; }
    100% { background-position: 0% 50%;   background-size: 200% 200%; }
}

.container .game-card img {
    display: block;
    margin: 0 0 15px 0;
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
}

.container .game-card button {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 0, 238, 0.2);
    transition: 0.5s;
    
}

.container .game-card button:hover {
    background-color: rgba(255, 0, 238);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255, 113, 210, 0.5);
    transform: translateY(-2px);
}

footer p {
    text-align: center;
    color: #474747;
    padding: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}