:root {
  --verde: #1f8a3b; --verde-esc: #14602a; --verde-claro: #e6f4ea; --tinta: #17242b; --cinza: #5d6b73; --linha: #d9e1e5;
  --fundo: #f3f7f5; --branco: #fff; --erro: #c62828; --amarelo: #f4c51e;
  --o0: #e0364a; --o1: #2473d9; --o2: #e3a008; --o3: #23995a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinta); background: var(--fundo); -webkit-text-size-adjust: 100%; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.btn { border: 0; border-radius: 10px; padding: .65em 1.1em; font-weight: 600; background: var(--verde); color: #fff; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sec { background: #fff; color: var(--verde-esc); box-shadow: inset 0 0 0 1.5px var(--verde); }
.btn.claro { background: #eef2f4; color: var(--tinta); }
.btn.perigo { background: #fff; color: var(--erro); box-shadow: inset 0 0 0 1.5px #e7b1b1; }
.btn.peq { padding: .4em .75em; font-size: .9rem; border-radius: 8px; }
.btn.grande { font-size: 1.2rem; padding: .8em 1.4em; border-radius: 14px; }

.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: .85rem; font-weight: 600; color: var(--cinza); margin-bottom: 5px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: .65em .8em; border: 1.5px solid var(--linha); border-radius: 10px; background: #fff; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(31,138,59,.15); }
.cartao { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(20,40,30,.08), 0 8px 24px rgba(20,40,30,.06); padding: 22px; }
.erro { color: var(--erro); font-weight: 600; min-height: 1.3em; margin: 6px 0; font-size: .95rem; }
.suave { color: var(--cinza); }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--verde-esc); }
.ic { display: inline-block; vertical-align: -0.18em; flex: none; }
.medalha { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .9rem; color: #3b2f00; flex: none; }
.medalha.m1 { background: #f4c51e; } .medalha.m2 { background: #cfd8de; color: #2c363c; } .medalha.m3 { background: #db8f52; color: #3d1f08; }
.marca i { width: 34px; height: 34px; display: grid; place-items: center; font-style: normal; }
.marca i svg { width: 34px; height: 34px; }
.marca small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .02em; color: var(--cinza); margin-top: 1px; }

/* opcoes de resposta (aluno e ecra) */
.op { border: 0; border-radius: 14px; color: #fff; font-weight: 700; text-align: left; display: flex; align-items: center; gap: .6em; padding: .8em 1em; }
.op::before { font-size: 1.1em; opacity: .9; flex: none; }
.op.o0 { background: var(--o0); } .op.o0::before { content: "▲"; }
.op.o1 { background: var(--o1); } .op.o1::before { content: "◆"; }
.op.o2 { background: var(--o2); } .op.o2::before { content: "●"; }
.op.o3 { background: var(--o3); } .op.o3::before { content: "■"; }

@media (max-width: 1000px) { #topo .marca small { display: none; } }
