:root {
    --primary: #03081C;
    --primary-hover: #0A1930;
    --bg-dark: #FFFFFF;
    /* Fundo alterado para branco */
    --bg-card: #F8F9FA;
    /* Fundo de card mais leve se precisar no desktop */
    --bg-card-hover: #F0F2F5;
    /* Hover do botão com contraste */
    --text-light: #03081C;
    --text-muted: #666666;
    --border-color: rgba(3, 8, 28, 0.1);
    /* Borda escurecida para aparecer no branco */
    --border-active: rgba(3, 8, 28, 0.5);

    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Glow Backgrounds para seguir o padrão */
.glow-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.glow-right {
    left: auto;
    right: -10%;
    top: 50%;
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Helena Avatar */
.quiz-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.helena-avatar {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    /* Removendo a bolinha e adicionando integração com o fundo */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #1db8e3 100%);
    width: 20%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Section */
.question-container {
    animation: fadeIn 0.4s ease forwards;
}

.question-text {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    width: 100%;
    background: #2EBAAC;
    /* Fundo Acqua */
    border: none;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    color: #FFFFFF;
    /* Texto branco para contraste perfeito com Acqua */
    font-family: var(--font-body);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(46, 186, 172, 0.2);
}

.option-btn .emoji {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.option-btn:hover {
    background: #25998D;
    /* Acqua escuro no hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 186, 172, 0.4);
}

.option-btn:active {
    transform: translateY(1px);
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn 0.5s ease forwards;
}

.loading-container.hidden {
    display: none;
}

.loading-container h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.loading-container p {
    color: var(--text-muted);
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid rgba(3, 8, 28, 0.2);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {

    html,
    body {
        height: 100%;
        overflow: hidden;
        /* Trava qualquer scroll */
        position: fixed;
        /* Impede o bounce do iOS */
        width: 100%;
    }

    body {
        padding: 0;
        align-items: flex-start;
        background-color: var(--bg-dark);
    }

    .quiz-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height (iOS safe) */
        padding: 1rem 1.5rem 2rem;
        background: transparent;
        backdrop-filter: none;
        justify-content: flex-start;
        overflow: hidden;
    }

    .helena-avatar {
        max-width: 200px;
        margin-bottom: 0.5rem;
    }

    .quiz-header {
        margin-bottom: 0.5rem;
    }

    .question-text {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .option-btn {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
        border-radius: 16px;
        background: #2EBAAC;
        border: none;
        color: #FFFFFF;
        box-shadow: 0 4px 10px rgba(46, 186, 172, 0.3);
    }

    .options-grid {
        gap: 0.7rem;
    }
}

.quiz-footer-logo {
    text-align: center;
    margin-top: 2rem;
}

.quiz-footer-logo img {
    height: 100px;
    /* Aumentado em 100% conforme solicitado */
    width: auto;
    display: inline-block;
}