:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --accent-orange: #ff6600;
    --accent-cyan: #00f0ff;
    --text-color: #c5c6c7;
    --text-light: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Efecto Pantalla CRT Scanlines */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 10;
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 2px solid var(--accent-orange);
    background: rgba(15, 15, 20, 0.8);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
}

.brand-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.2rem;
    color: var(--accent-orange);
    text-shadow: 3px 3px 0px #000, 0 0 10px rgba(255, 102, 0, 0.5);
    margin-bottom: 15px;
}

header p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--card-bg);
}

/* Grid de Juegos */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Tarjetas */
.game-card {
    background-color: var(--card-bg);
    border: 2px solid #2c3848;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.game-img-container {
    width: 100%;
    height: 160px;
    background-color: #0b0c10;
    position: relative;
    overflow: hidden;
}

.game-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-img-container img {
    transform: scale(1.05);
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-orange);
    color: var(--text-light);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 4px 8px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.game-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.4;
}

.game-desc {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    flex: 1;
    line-height: 1.5;
}

/* Botones */
.btn-play {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    padding: 10px 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}

.btn-play:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.btn-disabled {
    display: block;
    text-align: center;
    background: #2c3848;
    color: #707a8a;
    border: 2px solid #2c3848;
    padding: 10px 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: not-allowed;
    text-transform: uppercase;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(11, 12, 16, 0.9);
    border-top: 1px solid #1f2833;
    font-size: 0.9rem;
    color: #707a8a;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}