:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --void-black: #050505;
    --grid-color: rgba(0, 243, 255, 0.1);
    --text-main: #ffffff;
    --card-bg: #111111;
}

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

body {
    background-color: var(--void-black);
    color: var(--text-main);
    font-family: 'Courier New', monospace; /* Retro font, system default for speed */
    line-height: 1.6;
    /* Retro Grid Background - Pure CSS, no image request */
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* Speed Optimization: Use system fonts or minimal web fonts */
/* Layout: Streamlined Grid */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - Minimalist */
header {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 2px solid var(--neon-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px); /* Modern touch, check performance */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto; /* Prevent layout shift */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.btn-action {
    background: var(--neon-pink);
    color: white;
    border: none;
    padding: 8px 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); /* Cyber shape */
    transition: transform 0.1s;
}

.btn-action:hover {
    transform: scale(1.05);
    background: #d100d1;
}

/* Hero Section - Optimized LCP */
.hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000; /* Fallback */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    padding: 30px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--neon-blue);
    text-shadow: 2px 2px 0px var(--neon-pink);
}

/* Game Grid - Performance Focused */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Smaller cards for speed feel */
    gap: 15px;
    padding: 40px 0;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid #333;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-pink);
}

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    /* Image decoding async for non-blocking main thread */
    content-visibility: auto; 
}

.game-info {
    padding: 10px;
}

.game-title {
    font-size: 0.9rem;
    color: var(--neon-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
footer {
    background: #000;
    border-top: 2px solid var(--neon-pink);
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero { height: 300px; }
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; } /* Simplified mobile header */
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
