  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  :root {
    --azul: #003DA5;
    --azul-escuro: #002B7A;
    --azul-light: #E6EEFF;
    --amarelo: #FFD100;
    --amarelo-dark: #B8960A;
    --amarelo-light: #FFF8CC;
    --branco: #ffffff;
    --cinza-bg: #F0F2F7;
    --cinza-borda: rgba(0, 0, 0, 0.10);
    --verde: #1D9E75;
    --verde-light: #E1F5EE;
    --verde-dark: #085041;
    --vermelho: #D93025;
    --vermelho-light: #FDECEA;
    --text: #0D1B3E;
    --text-muted: #5A6A8A;
    --radius: 14px;
    --radius-sm: 9px;
  }
  body {
    font-family: 'Nunito', sans-serif;
    background: #0e4194;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 1rem 3rem;
  }
  /* ── CARD PRINCIPAL ── */
  .quiz-card {
    background: var(--branco);
    border-radius: 20px;
    max-width: 660px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 32px rgba(0, 30, 100, 0.10);
  }
  /* ── HERO HEADER ── */
  .hero {
    background: var(--azul);
    padding: 1rem;
    gap: 1rem;
  }
  .hero::before {
    content: '';
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 14px);
  }
  /* ── CORPO DO QUIZ ── */
  .quiz-body {
    padding: 20px;
  }
  /* Progress */
  .progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  .progress-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .progress-score {
    font-size: 12px;
    font-weight: 600;
    color: var(--azul);
  }
  .progress-track {
    height: 5px;
    background: var(--cinza-bg);
    border-radius: 99px;
    margin-bottom: 1.2rem;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--azul), var(--amarelo));
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Pergunta */
  .question-text {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 1rem;
  }
  /* Opções */
  .options {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .opt-btn {
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
    line-height: 1.2;
  }
  .opt-btn:hover:not(:disabled) {
    border-color: var(--azul);
    background: var(--azul-light);
  }
  .opt-btn:disabled {
    cursor: default;
  }
  .opt-btn.correct {
    background: var(--verde-light);
    border-color: var(--verde);
    color: var(--verde-dark);
  }
  .opt-btn.wrong {
    background: var(--vermelho-light);
    border-color: var(--vermelho);
    color: var(--vermelho);
  }
  .opt-btn.dimmed {
    opacity: 0.38;
  }
  .opt-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cinza-bg);
    border: 1px solid var(--cinza-borda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all 0.15s;
    font-family: 'Nunito', sans-serif;
  }
  .opt-btn.correct .opt-letter {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
  }
  .opt-btn.wrong .opt-letter {
    background: var(--vermelho);
    color: white;
    border-color: var(--vermelho);
  }
  /* Feedback */
  .feedback {
    margin-top: 0.8rem;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.2;
    display: none;
    animation: fadeUp 0.22s ease;
  }
  .feedback.correct {
    background: var(--verde-light);
    color: var(--verde-dark);
    border-left: 3px solid var(--verde);
  }
  .feedback.wrong {
    background: var(--vermelho-light);
    color: var(--vermelho);
    border-left: 3px solid var(--vermelho);
  }
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* Botão próximo */
  .next-btn {
    margin-top: 1.5rem;
    padding: 14px 24px;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: none;
    width: 100%;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s;
  }
  .next-btn:hover {
    background: var(--azul-escuro);
  }
  .next-btn:active {
    transform: scale(0.98);
  }
  /* ── RESULTADO ── */
  .result-wrap {
    text-align: center;
    padding: 1rem 0 0.5rem;
  }
  .result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 36px;
  }
  .result-score {
    font-family: 'Nunito', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--azul);
    line-height: 1;
    margin-bottom: 4px;
  }
  .result-pct {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }
  .result-badge {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: 'Nunito', sans-serif;
  }
  .restart-btn {
    padding: 13px 32px;
    background: var(--branco);
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
    transition: all 0.15s;
  }
  .restart-btn:hover {
    border-color: var(--azul);
    background: var(--azul-light);
  }
  /* ── RODAPÉ ── */
  .quiz-footer {
    background: var(--azul-escuro);
    padding: 0.85rem 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .opacity-60 {
    opacity: .6
  }
  @media (max-width: 500px) {
    .quiz-body {
      padding: 1.5rem;
    }
    .hero {
      padding: 1.5rem 1.5rem 1.25rem;
    }
    .hero-title {
      font-size: 17px;
    }
    .question-text {
      font-size: 16px;
    }
    .opt-btn {
      font-size: 14px;
    }
  }