* { 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; } }

/* visual v2 */

:root { --petro: #123C45; --amar: #FFD23F; --coral: #FF5A5F; --menta: #E3F6EF; --teal: #0E9AA7; --tinta: #16262B;
        --display: Bahnschrift, "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; }

:root { --cor: #123C45; }
body { background: var(--menta); color: var(--tinta); }
.topo { background: var(--cor); position: relative; padding-bottom: 24px; }
.topo h1 { font-family: var(--display); font-size: 25px; color: var(--amar); letter-spacing: .01em; }
.topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
               background: repeating-linear-gradient(to right, var(--amar) 0 2px, transparent 2px 10px) bottom / 100% 7px no-repeat,
                           repeating-linear-gradient(to right, var(--amar) 0 2px, transparent 2px 50px) bottom / 100% 12px no-repeat; }
h2 { font-family: var(--display); font-size: 30px; color: var(--cor); line-height: 1.05; }
h3 { font-family: var(--display); color: var(--cor); font-size: 20px; }
.cartao { border: 0; border-left: 6px solid var(--teal); border-radius: 14px; box-shadow: 0 2px 12px rgba(18,60,69,.09); }
.item { border-bottom-color: #E3F6EF; }
.item input { accent-color: var(--coral); }
.item input:checked + span { color: #6b7d82; }
.comentario { border-left-color: var(--coral); background: var(--menta); }
.barra-prog { background: #CFE3DC; height: 14px; border-radius: 8px; }
.barra-prog > div { background: var(--coral); }
.grande { font-family: var(--display); color: var(--coral); font-size: 52px; line-height: 1; }
.abas { background: var(--cor); border-top: 0; }
.abas button { color: #cfe3dc; font-family: var(--display); font-size: 15px; }
.abas button[aria-selected="true"] { color: var(--amar); font-weight: 700; border-top-color: var(--amar); }
button:focus-visible, .item:focus-within { outline-color: var(--coral); }
.botao { background: var(--cor); color: var(--amar); font-family: var(--display); }

