@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

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

body {
    font-family: 'Courier Prime', 'Courier New', monospace;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    overflow-x: hidden;
}

/* CRT screen effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
}

.game-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    background: transparent;
    border: 3px solid #00ff00;
    text-decoration: none;
    color: #00ff00;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 10px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 0, 0.2),
        transparent
    );
    animation: scan 3s infinite;
}

.game-card:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.8),
        inset 0 0 15px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

.game-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.game-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    letter-spacing: 1px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
