/* SINGLE PIXEL STUDIO - CSS OFICIAL V.FINAL
   Paleta: #2d2d2d (Fondo), #00f2ff (Cian), #6c5ce7 (Morado GBC)
*/

:root {
    --bg-color: #2d2d2d; 
    --accent-color: #00f2ff; 
    --accent-glow: rgba(0, 242, 255, 0.4);
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --gbc-body: #6c5ce7; 
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Silkscreen', cursive;
    margin: 0; padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- SECCIÓN HERO (CENTRADO Y CONSOLA) --- */
#hero {
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle, #3d3d3d 0%, #202020 100%);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.hero-text-area {
    padding-top: 18vh; /* Baja el texto para que no pegue arriba */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 10;
    flex-grow: 1;
}

.text-container {
    width: 90%;
    max-width: 800px;
    text-align: center; /* Centrado horizontal del texto */
    margin: 0 auto;
}

h1 {
    font-family: 'Press Start 2P', cursive;
    color: var(--accent-color);
    text-shadow: 4px 4px 0px #000;
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 20px;
    display: block;
}

.tagline { 
    color: #888; 
    font-size: 0.9rem; 
    letter-spacing: 2px;
    line-height: 1.6;
    text-align: center;
    display: block;
    margin: 0 auto;
    max-width: 600px;
}

/* WRAPPER DE LA CONSOLA ASOMANDO */
.gbc-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
}

.gbc-body {
    width: 360px;
    height: 380px; 
    background: var(--gbc-body);
    border: 6px solid #4834d4;
    border-radius: 30px 30px 0 0;
    padding: 35px 25px;
    box-shadow: 0 -15px 50px rgba(0,0,0,0.8);
    position: relative;
    transform: translateY(30px); /* Hace que asome desde abajo */
}

.gbc-screen-frame {
    background: #333;
    width: 100%;
    height: 220px;
    border-radius: 10px 10px 45px 10px;
    padding: 35px 25px;
    position: relative;
}

.gbc-lcd {
    background: #8b9331; /* Color pantalla LCD original */
    width: 100%;
    height: 150px;
    border: 4px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.4);
}

.logo-on-screen {
    max-width: 85%;
    height: auto;
    image-rendering: pixelated;
    filter: contrast(1.3) grayscale(1);
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.gbc-led {
    position: absolute;
    left: 12px;
    top: 100px;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0000;
}

/* --- SECCIÓN TRILOGÍA --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px;
    text-align: center;
}

.timeline { display: flex; flex-direction: column; align-items: center; }

.game-card {
    background: var(--card-bg);
    border: 3px solid #fff;
    padding: 30px; margin: 30px 0;
    width: 100%; max-width: 800px;
    display: flex; align-items: center; text-align: left;
    transition: 0.3s;
}

/* AJUSTE PARA BOXARTS CENTRADOS */
.game-card {
    background: var(--card-bg);
    border: 3px solid #fff;
    padding: 30px; 
    margin: 40px auto; /* Centra la tarjeta misma */
    width: 100%; 
    max-width: 800px;
    display: flex; 
    align-items: center; 
    text-align: left;
    gap: 30px; /* Espacio uniforme entre imagen y texto */
    transition: 0.3s;
}

.game-media {
    width: 180px; /* Ancho visual ideal para el boxart */
    height: 240px; /* Mantiene la proporción 3:4 */
    background: #000; 
    position: relative; 
    flex-shrink: 0; /* Evita que la imagen se aplaste */
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-media img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Asegura que no se corte el boxart */
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive: En móviles, la imagen arriba y el texto abajo, ambos centrados */
@media (max-width: 600px) {
    .game-card {
        flex-direction: column;
        text-align: center;
    }
    .game-media {
        margin-right: 0;
        width: 200px;
        height: 266px;
    }
}


.status { color: var(--accent-color); font-size: 0.75rem; margin-bottom: 12px; }

.game-line { width: 4px; height: 50px; background: #fff; }
.game-line.glitch { background: repeating-linear-gradient(0deg, #fff, #fff 4px, transparent 4px, transparent 8px); }

/* --- WIZARD CUSTOM --- */
.wizard-container {
    background: #000; border: 4px solid var(--accent-color);
    padding: 40px; margin-top: 20px;
    box-shadow: inset 0 0 20px var(--accent-glow);
}

.options-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px; margin: 25px 0;
}

.option-card {
    background: #111; border: 2px solid #444; padding: 20px;
    cursor: pointer; transition: 0.2s;
}

.option-card:hover, .option-card.selected { border-color: var(--accent-color); background: #222; }

input[type="text"] {
    width: 100%; padding: 18px; background: #000;
    border: 2px solid var(--accent-color); color: var(--accent-color);
    font-family: 'Silkscreen', cursive; text-align: center; font-size: 1rem;
}

.cyan-btn {
    background: var(--accent-color); border: none;
    font-family: 'Press Start 2P', cursive; padding: 18px 30px;
    cursor: pointer; margin: 10px; font-size: 0.75rem;
}

footer { padding: 100px 20px; color: #555; font-size: 0.65rem; border-top: 1px solid #333; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    h1 { font-size: 1.5rem; }
    .tagline { font-size: 0.75rem; letter-spacing: 1px; padding: 0 10px; }
    .hero-text-area { padding-top: 15vh; }
    .gbc-body { width: 300px; }
    .game-card { flex-direction: column; text-align: center; }
    .game-media { margin-right: 0; margin-bottom: 25px; }
}
