*{
    box-sizing:border-box;
}

:root{
    --bg:#071426;
    --panel:#0d1d33;
    --panel2:#102641;
    --line:#203753;
    --text:#f7fbff;
    --muted:#91a6be;
    --green:#35e39a;
    --blue:#3c8cff;
    --yellow:#ffd659;
}

html,body{
    margin:0;
    min-height:100%;
    background:
        radial-gradient(circle at top right,#12355d 0,transparent 35%),
        var(--bg);
    color:var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button{
    font:inherit;
}

button:active{
    transform:scale(.985);
}

.topbar{
    height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 24px;
    border-bottom:1px solid rgba(255,255,255,.06);
    background:rgba(7,20,38,.88);
    backdrop-filter:blur(16px);
    position:sticky;
    top:0;
    z-index:20;
}

.brand{
    display:flex;
    align-items:center;
    gap:11px;
}

.logo{
    width:39px;
    height:39px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--green),#29a8ff);
    display:grid;
    place-items:center;
    font-size:23px;
    font-weight:900;
    color:#04111e;
}

.brand strong{
    display:block;
    font-size:14px;
    letter-spacing:1.6px;
}

.brand span{
    color:var(--green);
    font-weight:800;
    font-size:12px;
    letter-spacing:2px;
}

.icon-btn{
    width:42px;
    height:42px;
    border:1px solid var(--line);
    border-radius:13px;
    background:var(--panel);
    color:white;
    font-size:20px;
    cursor:pointer;
}

main{
    max-width:900px;
    margin:auto;
    padding:0 20px 50px;
}

.page{
    display:none;
}

.page.active{
    display:block;
}

.hero{
    padding:54px 0 35px;
}

.hero-tag{
    display:inline-flex;
    padding:7px 11px;
    border:1px solid rgba(53,227,154,.35);
    border-radius:20px;
    color:var(--green);
    font-size:11px;
    font-weight:800;
    letter-spacing:1px;
}

.hero h1{
    margin:17px 0 12px;
    font-size:clamp(37px,7vw,65px);
    line-height:1.02;
    letter-spacing:-2px;
}

.hero h1 span{
    color:var(--green);
}

.hero p{
    max-width:590px;
    color:var(--muted);
    font-size:17px;
    line-height:1.55;
}

.stats{
    display:flex;
    margin-top:30px;
    gap:13px;
}

.stats div{
    min-width:110px;
    padding:14px 17px;
    background:rgba(255,255,255,.035);
    border:1px solid var(--line);
    border-radius:15px;
}

.stats strong{
    display:block;
    font-size:21px;
}

.stats span{
    color:var(--muted);
    font-size:12px;
}

.section-title{
    font-size:17px;
    margin:10px 0 15px;
}

.mode-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.mode-card{
    min-height:145px;
    display:flex;
    align-items:center;
    text-align:left;
    gap:15px;
    padding:20px;
    border:1px solid var(--line);
    border-radius:19px;
    color:white;
    background:linear-gradient(145deg,var(--panel2),var(--panel));
    cursor:pointer;
    transition:.2s;
}

.mode-card:hover{
    border-color:#3d5878;
    transform:translateY(-2px);
}

.mode-card.destaque{
    border-color:rgba(53,227,154,.45);
    background:
        linear-gradient(145deg,rgba(53,227,154,.12),var(--panel));
}

.mode-icon{
    font-size:30px;
}

.mode-content{
    flex:1;
}

.mode-content h3{
    margin:4px 0 7px;
    font-size:18px;
}

.mode-content p{
    margin:0;
    color:var(--muted);
    line-height:1.4;
    font-size:13px;
}

.badge{
    color:var(--green);
    font-size:9px;
    font-weight:900;
    letter-spacing:1px;
}

.arrow{
    font-size:30px;
    color:#6f849b;
}

.fonte{
    margin-top:25px;
    color:var(--muted);
    font-size:12px;
}

.fonte span{
    color:var(--green);
    margin-right:6px;
}

.page-head{
    display:flex;
    align-items:center;
    gap:16px;
    padding:35px 0 25px;
}

.page-head small{
    color:var(--green);
    font-weight:800;
    letter-spacing:1.5px;
}

.page-head h2{
    margin:4px 0 0;
}

.back{
    width:44px;
    height:44px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel);
    color:white;
    font-size:29px;
    cursor:pointer;
}

.config-box{
    padding:22px;
    border:1px solid var(--line);
    border-radius:20px;
    background:var(--panel);
    margin-bottom:15px;
}

.config-box h3{
    margin-top:0;
}

.options{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.option{
    padding:15px;
    border:1px solid var(--line);
    border-radius:13px;
    background:#09182b;
    color:white;
    cursor:pointer;
}

.option.selected{
    border-color:var(--green);
    background:rgba(53,227,154,.1);
}

.primary,
.secondary{
    min-height:49px;
    border-radius:14px;
    padding:0 20px;
    font-weight:800;
    cursor:pointer;
}

.primary{
    border:0;
    background:var(--green);
    color:#04150e;
}

.secondary{
    border:1px solid var(--line);
    background:var(--panel);
    color:white;
}

.full{
    width:100%;
}

.exam-top{
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:15px;
    align-items:center;
    padding:23px 0 15px;
}

.exam-progress strong,
.exam-progress span{
    display:block;
}

.exam-progress span{
    color:var(--muted);
    font-size:12px;
    margin-top:3px;
}

#cronometro{
    font-variant-numeric:tabular-nums;
    font-weight:700;
    color:var(--green);
}

.progress-line{
    height:4px;
    background:#142a43;
    border-radius:10px;
    overflow:hidden;
}

#progressBar{
    height:100%;
    width:0;
    background:var(--green);
    transition:.25s;
}

.question{
    padding:30px 0;
}

.question-meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:22px;
}

.question-meta span{
    padding:6px 10px;
    border-radius:10px;
    background:var(--panel);
    border:1px solid var(--line);
    color:var(--muted);
    font-size:11px;
}

.question-text{
    font-family:Georgia,serif;
    font-size:18px;
    line-height:1.7;
    white-space:pre-line;
}

.alternatives{
    display:grid;
    gap:11px;
    margin-top:25px;
}

.alternative{
    width:100%;
    display:grid;
    grid-template-columns:38px 1fr;
    gap:12px;
    align-items:center;
    text-align:left;
    border:1px solid var(--line);
    background:var(--panel);
    color:white;
    border-radius:15px;
    padding:13px 15px;
    cursor:pointer;
}

.alternative .letter{
    width:35px;
    height:35px;
    border-radius:50%;
    border:1px solid #405875;
    display:grid;
    place-items:center;
    font-weight:900;
}

.alternative.selected{
    border-color:var(--green);
    background:rgba(53,227,154,.08);
}

.alternative.selected .letter{
    background:var(--green);
    color:#04150e;
    border-color:var(--green);
}

.exam-actions{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:20px 0;
}

.result-card{
    max-width:520px;
    margin:60px auto;
    text-align:center;
    border:1px solid var(--line);
    border-radius:25px;
    background:var(--panel);
    padding:35px;
}

.result-icon{
    margin:auto;
    width:65px;
    height:65px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--green);
    color:#06150f;
    font-size:30px;
    font-weight:900;
}

.result-card small{
    display:block;
    margin-top:18px;
    color:var(--green);
    font-weight:800;
}

.result-score strong{
    display:block;
    font-size:60px;
    margin-top:20px;
}

.result-score span{
    color:var(--muted);
}

.result-numbers{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    margin:30px 0;
}

.result-numbers div{
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px 5px;
}

.result-numbers strong{
    display:block;
}

.result-numbers span{
    color:var(--muted);
    font-size:11px;
}

@media(max-width:650px){

    main{
        padding-left:15px;
        padding-right:15px;
    }

    .topbar{
        padding:0 15px;
    }

    .hero{
        padding-top:35px;
    }

    .mode-grid{
        grid-template-columns:1fr;
    }

    .stats{
        overflow-x:auto;
    }

    .stats div{
        min-width:100px;
    }

    .exam-top{
        grid-template-columns:auto 1fr;
    }

    #cronometro{
        grid-column:2;
        font-size:12px;
    }

    .question-text{
        font-size:17px;
    }
}


/*
============================================================
ENEM_ACERVO_FRONTEND_REAL_V1
============================================================
*/

.enem-visuais-acervo{
    width:100%;
    margin:18px 0 22px;
}

.enem-visual-oficial{
    margin:0 0 18px;
    padding:0;
    width:100%;
    text-align:center;
}

.enem-visual-oficial img{
    display:block;
    width:auto;
    max-width:100%;
    max-height:620px;
    height:auto;
    margin:0 auto;
    object-fit:contain;
    border-radius:10px;
}

.enem-visual-oficial + .enem-visual-oficial{
    margin-top:12px;
}

.enem-visual-erro{
    width:100%;
    padding:16px;
    border:1px dashed rgba(255,255,255,.18);
    border-radius:10px;
    font-size:13px;
    opacity:.65;
    text-align:center;
}

.question-text{
    white-space:pre-line;
}

.question-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

#questaoArea,
#questaoOrigem{
    line-height:1.25;
}


/*
------------------------------------------------------------
MOBILE
------------------------------------------------------------
*/

@media (max-width:700px){

    .question{
        overflow:hidden;
    }

    .enem-visuais-acervo{
        margin:14px 0 18px;
    }

    .enem-visual-oficial{
        margin-bottom:14px;
    }

    .enem-visual-oficial img{
        max-height:none;
        border-radius:8px;
    }

    .question-meta{
        align-items:flex-start;
    }

}


/*
------------------------------------------------------------
IMAGEM MUITO LARGA
Permite leitura sem estourar a página.
------------------------------------------------------------
*/

@media (min-width:701px){

    .enem-visual-oficial img{
        max-width:min(
            100%,
            900px
        );
    }

}

