/* Nivelamento de Física (janela do diagnóstico) — usado só em gratis.html */
body.nv-aberto { overflow: hidden; }
.nv-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(5, 8, 12, .8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: nvFade .2s ease-out; }
.nv-modal { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 32px 28px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); animation: nvPop .28s cubic-bezier(.2, 1.2, .4, 1); }
.nv-fechar { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.nv-fechar:hover { background: var(--surface-2); color: #fff; }
.nv-modal h2:focus { outline: none; }
.nv-modal h2 { margin: 6px 0 10px; font-size: 1.7rem; }
.nv-eyebrow { color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nv-lead { color: var(--muted); }
.nv-regras { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.nv-regras li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }

.nv-topo { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); font-weight: 600; padding-right: 36px; }
.nv-area { font-size: .74rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); }
.nv-area.nv-mat { color: #f2c94c; border-color: rgba(242, 201, 76, .45); }
.nv-area.nv-fis { color: var(--red); border-color: rgba(108, 195, 173, .45); }
.nv-barra { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 10px 0 0; }
.nv-barra i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .3s; }
.nv-q { font-size: 1.22rem; line-height: 1.45; margin: 22px 0 18px; }
.nv-ops { display: grid; gap: 10px; }
.nv-op { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.nv-op:hover { border-color: var(--line-2); background: var(--surface-2); }
.nv-op b { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .85rem; }
.nv-op.sel { border-color: var(--red); background: var(--red-soft); }
.nv-op.sel b { background: var(--red); color: #0b1a17; border-color: var(--red); }
.nv-op.nv-naosei { color: var(--muted); border-style: dashed; }
.nv-acoes { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.nv-prox:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.nv-nota { display: flex; align-items: center; gap: 22px; margin: 14px 0 18px; }
.nv-nota h2 { margin: 0 0 4px; }
.nv-nota p { margin: 0; color: var(--muted); }
.nv-circ { --p: 0; flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 79%), conic-gradient(var(--red) calc(var(--p) * 1%), var(--bg-2) 0); }
.nv-circ b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.1rem; color: #fff; line-height: 1; }
.nv-circ small { color: var(--muted); font-size: .78rem; }
.nv-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.nv-ar { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.nv-ar > div:first-child { display: flex; justify-content: space-between; font-size: .9rem; }
.nv-sub { font-size: 1.05rem; margin: 22px 0 10px; }
.nv-estudar { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nv-estudar li { display: grid; gap: 2px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid #f2c94c; border-radius: 10px; padding: 10px 14px; }
.nv-estudar span { color: var(--muted); font-size: .9rem; }
.nv-parabens { background: var(--red-soft); border-radius: 12px; padding: 12px 14px; }
.nv-gabs { display: grid; gap: 8px; }
.nv-gab { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.nv-gab summary { cursor: pointer; padding: 10px 0; display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; }
.nv-gab .nv-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; flex: none; }
.nv-gab.ok .nv-ic { background: var(--green-soft); color: var(--green); }
.nv-gab.erro .nv-ic { background: rgba(235, 87, 87, .16); color: #ff8a8a; }
.nv-gab p { margin: 0 0 8px; font-size: .92rem; }
.nv-gab .nv-exp { color: var(--muted); padding-bottom: 6px; }
.nv-cta { display: grid; gap: 10px; margin-top: 24px; }
.nv-cta .btn { justify-content: center; text-align: center; font: inherit; font-weight: 700; cursor: pointer; }
.nv-cta .nv-refazer { border-style: dashed; }

/* Prévia estática da pergunta na seção da página */
.nv-previa { background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.nv-previa .nv-q { font-size: 1.05rem; margin: 16px 0 12px; }
.nv-previa .nv-op { pointer-events: none; padding: 9px 12px; font-size: .93rem; }

@keyframes nvFade { from { opacity: 0; } }
@keyframes nvPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 620px) {
  .nv-overlay { padding: 0; }
  .nv-modal { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 26px 18px 22px; }
  .nv-nota { gap: 16px; }
  .nv-circ { width: 92px; height: 92px; }
  .nv-areas { grid-template-columns: 1fr; }
  .nv-previa { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .nv-overlay, .nv-modal { animation: none; } }
