:root {
    --bg-color: #080808;
    --text-color: #ffffff;
    --card-bg: rgba(20, 20, 20, 0.6);
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-color);
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Particles setup to match the screenshot's floating dark pixels */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: #ffffff; /* very low opacity via JS */
    transform: rotate(45deg);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100px) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) rotate(225deg);
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    z-index: 1;
    position: relative;
}

header {
    text-align: center;
    margin-top: 15vh;
}

.floating-text {
    font-size: 5.5rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    text-transform: uppercase;
    /* Clean, blocky 3D shadow matching the screenshot */
    text-shadow: 
        0px 6px 0px #222222,
        0px 12px 0px #111111,
        0px 15px 25px rgba(0,0,0,0.9);
    animation: floating 4s ease-in-out infinite;
}

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

.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    margin-top: 2rem;
}

.game-card {
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 4px solid #333;
    width: 280px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 8px 0px #111;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow: 0 13px 0px #111, 0 15px 20px rgba(0,0,0,0.5);
}

.game-card:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0px #111;
}

.card-content {
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.card-content h2 {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 2px 2px 0px #000;
}

.play-btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    background-color: #222;
    color: #fff;
    font-size: 0.8rem;
    border: 2px solid #444;
    transition: all 0.2s;
}

.game-card:hover .play-btn {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

@media (max-width: 900px) {
    .floating-text {
        font-size: 4rem;
        text-shadow: 
            0px 4px 0px #222222,
            0px 8px 0px #111111,
            0px 10px 15px rgba(0,0,0,0.9);
    }
}

@media (max-width: 600px) {
    .floating-text {
        font-size: 2.5rem;
        text-shadow: 
            0px 3px 0px #222222,
            0px 6px 0px #111111,
            0px 8px 10px rgba(0,0,0,0.9);
    }
}
