:root {
    --bg-color: #0f172a; 
    --game-bg: #1e293b;
    --text-main: #f1f5f9;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --correct: #22c55e;
    --wrong: #ef4444;
    --option-bg: #334155;
    --option-border: #475569;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-main);
}

.game-console {
    width: 85%;  
    height: 90%; 
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Alineación vertical central */
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .game-console {
        width: 95%;
        height: 95%;
        padding: 20px;
    }
}

.screen {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen.active {
    display: flex;
    animation: fadeIn 0.6s ease;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

p {
    font-size: 1.3rem;
    color: #94a3b8;
    max-width: 650px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-action {
    background-color: var(--accent);
    color: #0f172a;
    font-weight: 800;
    padding: 20px 50px;
    font-size: 1.3rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-action:hover {
    transform: translateY(-2px);
    background-color: var(--accent-hover);
    box-shadow: 0 20px 25px -5px rgba(56, 189, 248, 0.4);
}

.game-header {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

.progress-track {
    width: 100%;
    max-width: 1000px;
    height: 8px;
    background: #334155;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s ease;
}

.question-display {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    max-width: 1000px;
    line-height: 1.3;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.option-card {
    background-color: var(--option-bg);
    border: 2px solid var(--option-border);
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover:not(:disabled) {
    border-color: var(--accent);
    background-color: #475569;
    transform: translateY(-3px);
}

.option-card:disabled {
    opacity: 0.6;
    cursor: default;
}

.option-letter {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
    font-weight: 800;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.option-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
}

.option-card.correct {
    border-color: var(--correct);
    background-color: rgba(34, 197, 94, 0.1);
}
.option-card.correct .option-letter {
    background-color: var(--correct);
    color: #fff;
}

.option-card.incorrect {
    border-color: var(--wrong);
    background-color: rgba(239, 68, 68, 0.1);
}
.option-card.incorrect .option-letter {
    background-color: var(--wrong);
    color: #fff;
}

.feedback-area {
    width: 100%;
    max-width: 1000px;
    margin-top: 35px;
    min-height: 80px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.feedback-text {
    background: rgba(56, 189, 248, 0.1);
    border-left: 5px solid var(--accent);
    padding: 15px 25px;
    border-radius: 0 10px 10px 0;
    color: #e2e8f0;
    font-size: 1.35rem; 
    display: none; 
    flex: 1;
}

.feedback-text strong { color: var(--accent); }

.btn-next {
    background-color: #fff;
    color: #0f172a;
    padding: 18px 40px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    display: none; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-next:hover { 
    background-color: #f1f5f9; 
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
