* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.55; color: #1c1c1e; background: #f5f6f7;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
.topo { background: var(--cor); color: #fff; padding: 14px 18px; padding-top: calc(14px + env(safe-area-inset-top)); }
.topo h1 { margin: 0; font-size: 20px; }
.aviso { margin: 0; padding: 8px 18px; background: #fff4d6; color: #5c4400; font-size: 14px; }
main { max-width: 720px; margin: 0 auto; padding: 18px; outline: none; }
h2 { font-size: 22px; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 18px 0 6px; }
.cartao { background: #fff; border: 1px solid #e3e5e8; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.cartao p { margin: 0 0 8px; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eceef0; cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--cor); }
.item span { flex: 1; }
.item input:checked + span { color: #6b7075; text-decoration: line-through; }
.opcao { display: block; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid #e3e5e8;
         border-radius: 10px; padding: 12px 14px; margin: 8px 0; cursor: pointer; color: inherit; }
.opcao.certa { border-color: #1a7f37; background: #e9f7ee; }
.opcao.errada { border-color: #c62828; background: #fdecec; }
.comentario { margin-top: 10px; padding: 10px 12px; border-left: 4px solid var(--cor); background: #f1f7f6; border-radius: 4px; }
.barra-prog { height: 12px; background: #e3e5e8; border-radius: 6px; overflow: hidden; margin: 6px 0 4px; }
.barra-prog > div { height: 100%; background: var(--cor); }
.grande { font-size: 36px; font-weight: 800; margin: 0; }
.suave { color: #5f6368; font-size: 15px; }
.abas { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid #e3e5e8;
        padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; }
.abas button { flex: 1 0 auto; min-width: 76px; min-height: 56px; padding: 8px 12px; border: 0; background: none; font: inherit;
               font-size: 14px; color: #5f6368; cursor: pointer; border-top: 3px solid transparent; }
.abas button[aria-selected="true"] { color: var(--cor); font-weight: 700; border-top-color: var(--cor); }
button:focus-visible, .item:focus-within { outline: 3px solid var(--cor); outline-offset: 2px; }
.botao { display: inline-block; font: inherit; font-weight: 700; background: var(--cor); color: #fff; border: 0;
         border-radius: 10px; padding: 12px 18px; cursor: pointer; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
