/* Reset y Base específica para el juego */
body {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    background-color: var(--color-surface);
    width: 100%;
    max-width: 600px;
    min-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Cabecera */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--color-primary);
    color: white;
}

.btn-back {
    color: white;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-back:hover {
    opacity: 0.8;
}

.game-stats {
    display: flex;
    gap: 1rem;
}

.round-badge, .score-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
}

/* Área de Juego */
.game-area {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Círculo Misterioso (Mistery Box) */
.mystery-box {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    border: 8px solid white;
}

.mystery-box.revealed {
    background: white;
    border-color: #f1f5f9;
}

.question-mark {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.mystery-box.revealed .question-mark {
    font-size: 6rem;
    text-shadow: none;
}

/* Controles de Audio */
.audio-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 60px; /* Mantiene el espacio fijo */
}

.btn-play {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

.audio-toast {
    background-color: #334155;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

.hidden {
    display: none !important;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Grilla de Opciones */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: auto;
}

.option-btn {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.option-btn:hover:not(:disabled) {
    border-color: var(--color-secondary);
    background-color: #f0f9ff;
    transform: translateY(-2px);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Estados de Respuestas */
.option-btn.correct {
    background-color: #22c55e;
    border-color: #16a34a;
    color: white;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    animation: pop 0.3s ease;
}

.option-btn.wrong {
    background-color: #ef4444;
    border-color: #dc2626;
    color: white;
    animation: shake 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Modal de Fin de Juego */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: pop 0.5s ease;
}

.modal-content h2 {
    color: var(--color-primary);
    font-size: 2rem;
}

.final-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.final-message {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        border-radius: 0;
        min-height: 100vh;
    }
}
