/* Configurações Globais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: 
        radial-gradient(circle at top, rgba(219,112,147,0.12), transparent 30%),
        linear-gradient(180deg, #05070d 0%, #08111d 45%, #04060b 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 60px 20px;
    overflow-x: hidden;
}

/* Grid de fundo para manter a identidade */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
    z-index: -1;
}

/* Container Principal (Card) */
.quiz-card {
    background: linear-gradient(145deg, rgba(15,22,35,0.95), rgba(9,14,24,0.94));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 
        0 0 0 1px rgba(219,112,147,0.08),
        0 20px 60px rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
}

.quiz-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(219,112,147,0.05), transparent 70%);
    pointer-events: none;
    border-radius: 32px;
}

/* Cabeçalho */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 6px 20px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: #DB7093;
    background: rgba(219, 112, 147, 0.1);
}

.badge-questions {
    border: 1px solid rgba(219, 112, 147, 0.3);
    border-radius: 12px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #DB7093;
}

/* Área da Pergunta e Vetores */
.card-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.question-text h2 {
    font-size: 1.35rem;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 800;
}

/* Ícones Mecânicos Laterais */
.graphics-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    position: relative;
}

.mechanic-icon {
    display: inline-flex;
    align-items: center;
    color: #DB7093;
    opacity: 0.6;
}

.mechanic-icon .fa-gear {
    animation: spin 20s linear infinite; /* Toque interativo opcional: engrenagem gira bem devagar */
}

.mechanic-icon.big {
    font-size: 3.5rem;
    gap: 2px;
}

.mechanic-icon.big .fa-wrench {
    font-size: 3.2rem;
    transform: rotate(-15deg);
}

.mechanic-icon.small {
    font-size: 2.5rem;
    gap: 2px;
    margin-right: 25px;
}

.mechanic-icon.small .fa-wrench {
    font-size: 2.2rem;
    transform: rotate(-15deg);
}

/* Opções de Resposta */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.option-button {
    background: transparent;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    padding: 5px;
    width: 100%;
}

.option-button .bullet {
    min-width: 8px;
    height: 8px;
    background-color: #DB7093;
    border-radius: 50%;
    margin-top: 7px;
    box-shadow: 0 0 8px rgba(219, 112, 147, 0.5);
}

.option-button p {
    font-size: 1.05rem;
    color: #b9c0cf;
    line-height: 1.4;
    letter-spacing: 3px; /* Adicionado para corresponder ao estilo "UNDERGROUND • ROLEPLAY" */
    font-weight: 600; /* Adicionado para corresponder ao estilo "UNDERGROUND • ROLEPLAY" */
    transition: color 0.2s ease;
}

.option-button:hover p {
    color: #ffffff;
}

/* Rodapé */
.card-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.brand-footer {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #DB7093;
}

/* Estilo para a resposta correta no modal */
.modal-content .correct-answer-text {
    color: #DB7093; /* Cor de destaque */
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 25px; /* Espaçamento antes do botão */
}

/* Modal de Erro/Feedback */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, rgba(20, 28, 45, 0.98), rgba(10, 16, 28, 0.98));
    border: 1px solid rgba(219, 112, 147, 0.3);
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(219, 112, 147, 0.2);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h3 {
    color: #DB7093;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-content p {
    color: #b9c0cf;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-next {
    background: linear-gradient(145deg, #DB7093, #ff8fb1);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 112, 147, 0.4);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.brand-footer span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-footer .fa-wrench {
    transform: scaleX(-1) rotate(45deg);
    font-size: 0.8rem;
}

/* Animação simples apenas para charme visual */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 400px) {
    .quiz-card {
        padding: 25px 15px;
        border-radius: 40px;
    }
    .card-body {
        grid-template-columns: 1fr;
    }
    .graphics-container {
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
}