:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --success-color: #00b894;
    --error-color: #d63031;
    --bg-color: #dfe6e9;
    --card-bg: #ffffff;
    --text-color: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
    padding: 2rem;
    text-align: center;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Inputs e Selects */
.category-select {
    margin: 20px 0;
}

select {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    outline: none;
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
}

/* Botões */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* Header do Quiz */
.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    color: #636e72;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

/* Área da Pergunta */
.question-box {
    background: #f1f2f6;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid de Respostas */
.btn-grid {
    display: grid;
    gap: 15px;
}

.answer-btn {
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: left;
}

.answer-btn:hover:not([disabled]) {
    background: var(--secondary-color);
    color: white;
}

/* Estados de Resposta */
.answer-btn.correct {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.answer-btn.wrong {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

.answer-btn[disabled] {
    cursor: no-drop;
    opacity: 0.7;
}

/* Resultado */
.result-circle {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.result-circle small {
    font-size: 1rem;
    font-weight: normal;
}

#result-message {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 20px;
}

.next-btn {
    display: none; /* Escondido até responder */
    width: 100%;
}

/* Responsivo */
@media (max-width: 480px) {
    .quiz-container {
        padding: 1.5rem;
    }
    h1 { font-size: 2rem; }
    .question-box { font-size: 1rem; }
}