/* --- START OF FILE quiz.css --- */
html {
    background-color: #1a1a1a; 
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: transparent;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    padding-top: 60px; /* Altura do cabeçalho */
    /* ALTERADO: Remove o padding-bottom para o rodapé */
    padding-bottom: 20px; 
}

/* A IMAGEM DE FUNDO FIXA (PSEUDO-ELEMENTO) */
body::before {
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: url('/images/background.jpg'); /* Caminho corrigido */
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.7);
    filter: blur(5px);
    z-index: -1; 
}

/* CLASSE REUTILIZÁVEL PARA CENTRALIZAR CONTEÚDO */
.centered-content-wrapper {
    max-width: 480px; 
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Cabeçalho Fixo Superior */
.header-quiz { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background-color: rgba(30, 0, 0, 0.95); /* Cor vinho */
    color: #fff;
    z-index: 100;
    box-sizing: border-box;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header-quiz .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 0 15px;
    width: 100%;
    height: 100%;
}

/* Estilo para a seta de voltar */
.back-arrow { 
    color: #fff;
    font-size: 1.5em; 
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.back-arrow:hover {
    color: #C6A66C; /* Dourado suave */
}

/* Estilo para o Título Principal do Cabeçalho */
.header-quiz h1 {
    font-size: 1.2em;
    margin: 0;
    flex-grow: 1; 
    text-align: center;
}

/* Estilo do Botão Home */
.home-button { 
    color: #fff;
    font-size: 1.2em; 
    text-decoration: none;
    flex-shrink: 0;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.home-button:hover {
    color: #C6A66C; /* Dourado suave */
}

/* --- Container Principal do Jogo --- */
.quiz-game-container {
    max-width: 480px; 
    margin: 10px auto; 
    padding: 20px 15px; 
    
    background-color: rgba(30, 0, 0, 0.95); /* Fundo vinho semi-transparente */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); 
    box-sizing: border-box;

    display: flex; 
    flex-direction: column;
    align-items: center;
    min-height: 500px; 
    justify-content: center; 
}

/* Estilos para as Telas do Jogo (start-screen, game-screen, end-screen, rank-screen) */
.game-screen {
    display: none; 
    width: 100%;
    text-align: center;
    flex-direction: column; 
    align-items: center;
    gap: 20px; /* Espaçamento entre elementos da tela */
}

.game-screen.active {
    display: flex; 
}

.game-title {
    font-size: 1.8em;
    color: #C6A66C; 
    margin-bottom: 15px;
    line-height: 1.2;
}

.game-description {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 25px;
}

#player-name-input { 
    width: 80%;
    max-width: 300px;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #C6A66C;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 1em;
    text-align: center;
    box-sizing: border-box;
}
#player-name-input::placeholder {
    color: #aaa;
}


.game-button {
    background-color: #b71c1c; 
    color: #fff;
    border: 1px solid #C6A66C; 
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    width: 80%; 
    max-width: 300px;
}

.game-button:hover:not(:disabled) {
    background-color: #7f0000;
    box-shadow: 0 0 10px rgba(198, 166, 108, 0.5);
}
.game-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.secondary-button { 
    background-color: #420d04; 
    margin-top: 10px; 
}
.secondary-button:hover:not(:disabled) {
    background-color: #550000;
}


/* --- Estilos para a Tela de Jogo (game-screen) --- */
.game-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(66, 13, 4, 0.5);
    margin-bottom: 20px;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border-bottom: none; 
    margin-bottom: 0; 
}
#current-score {
    /* ALTERADO: Remove o R$ e mostra apenas os pontos */
    font-size: 1.4em;
    color: #C6A66C; 
    font-weight: bold;
    text-align: left;
}
#question-counter {
    font-size: 1em;
    color: #ccc;
    text-align: left;
    /* Adiciona margem inferior para separar do timer em mobile */
    margin-bottom: 5px; 
}

.timer-display { 
    font-size: 1.8em;
    color: #C6A66C;
    font-weight: bold;
    background-color: #2c2c2c;
    border: 1px solid #C6A66C;
    border-radius: 5px;
    padding: 5px 10px;
    min-width: 60px; 
    text-align: center;
}
.timer-display.low-time { 
    color: #f44336; 
    border-color: #f44336;
    animation: pulse-red 1s infinite alternate; 
}
@keyframes pulse-red {
    from { transform: scale(1); }
    to { transform: scale(1.05); border-color: red; }
}


.question-card {
    background-color: #420d04; 
    border: 1px solid #C6A66C;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    width: calc(100% - 40px); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}
#question-text {
    font-size: 1.3em;
    color: #fff;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 10px; 
}

.option-button {
    background-color: #2c2c2c; 
    color: #fff;
    border: 1px solid #C6A66C;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1.1em;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.option-button:hover:not(:disabled) {
    background-color: #3a3a3a;
    transform: translateY(-2px);
}

.option-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.option-button.correct {
    background-color: #4CAF50; 
    border-color: #fff;
    color: #fff;
}
.option-button.incorrect {
    background-color: #f44336; 
    border-color: #fff;
    color: #fff;
}
.option-button.eliminated { 
    background-color: #555;
    opacity: 0.4;
    border-color: #555;
}


.help-options {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.help-button {
    background-color: #420d04; 
    color: #C6A66C; 
    border: 1px solid #C6A66C;
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.help-button i { 
    color: #C6A66C; 
}

.help-button:hover:not(:disabled) {
    background-color: #550000;
    transform: scale(1.05);
}

.help-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #666;
    border-color: #666;
    color: #999;
}
.help-button:disabled i {
    color: #999;
}


/* Barra de Navegação Inferior (REMOVIDA DE quiz.html) */
/* Removendo estilos do rodapé aqui também */
/* .bottom-nav { ... } */
/* ... (outros estilos de rodapé) ... */

/* Media Query para Telas Menores (Dispositivos Móveis) */
@media (max-width: 500px) {
    /* ... (ajustes para mobile) ... */

    /* Garante que o body não tenha padding-bottom para o rodapé removido */
    body { 
        padding-top: 60px; 
        padding-bottom: 20px; /* Pouco padding para o conteúdo não grudar no final */
    }

    /* ... (outros ajustes mobile) ... */

    .game-header { flex-direction: column; align-items: center; gap: 10px; }
    .score-display { align-items: center; } 
    /* Adiciona padding horizontal aos elementos de score e timer para mobile */
    #current-score, #question-counter, .timer-display {
        padding: 0 10px; 
        width: 100%; 
        box-sizing: border-box;
    }
    
    .timer-display { margin-top: 10px; } 

    /* ... (outros estilos mobile) ... */
}
/* --- END OF FILE quiz.css --- */