:root {
  --preto: #0a0a0a;
  --carvao: #121212;
  --card: #171717;
  --card-alto: #1f1f1f;
  --borda: rgba(255, 255, 255, 0.09);
  --borda-forte: rgba(212, 175, 55, 0.55);
  --ouro: #d4af37;
  --ouro-suave: rgba(212, 175, 55, 0.14);
  --texto: #f5f5f5;
  --texto-suave: #b9c0cb;
  --texto-fraco: #7c8492;
  --erro: #ff8f7a;
  --raio: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  background-image: radial-gradient(120% 60% at 50% -10%, rgba(212, 175, 55, 0.12), transparent 60%);
  background-repeat: no-repeat;
}

.app {
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------------- topo */

.topo { flex: 0 0 auto; }

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.logo { height: 26px; width: auto; opacity: .95; }

.eyebrow {
  color: var(--ouro);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.barra { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }

.barra-trilho {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.barra-preenche {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8912c, var(--ouro));
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.barra-texto {
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-fraco);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------- palco */

.palco {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  padding-bottom: 12px;
}

.tela { width: 100%; animation: entra .28s cubic-bezier(.2, .7, .3, 1) both; }
.tela.volta { animation-name: entraVolta; }

@keyframes entra {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes entraVolta {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tela, .barra-preenche { animation: none; transition: none; }
}

.carregando { color: var(--texto-fraco); font-size: 14px; }

/* ---------------------------------------------------------- tipografia */

h1 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

h1 .ouro { color: var(--ouro); }

.pergunta-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texto-fraco);
  margin: 0 0 10px;
}

.enunciado {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.dica {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--texto-fraco);
  margin: 0 0 18px;
}

.texto {
  font-size: 15px;
  line-height: 1.55;
  color: var(--texto-suave);
  margin: 0 0 20px;
}

.destaque-email {
  display: block;
  font-size: 14px;
  color: var(--texto-suave);
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 22px;
  word-break: break-word;
}
.destaque-email strong { display: block; color: var(--texto); font-size: 16px; margin-bottom: 2px; }

/* ------------------------------------------------------------- opcoes */

.opcoes { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }

.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px 16px;
  min-height: 60px;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--card);
  color: var(--texto);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .1s;
}

.opcao:active { transform: scale(.99); }
.opcao:hover { border-color: rgba(212, 175, 55, 0.35); background: var(--card-alto); }

.opcao.marcada {
  border-color: var(--borda-forte);
  background: var(--ouro-suave);
}

.opcao .caixa {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--preto);
  font-weight: 800;
}
.opcao.redonda .caixa { border-radius: 999px; }
.opcao.marcada .caixa { background: var(--ouro); border-color: var(--ouro); }

/* ------------------------------------------------------------ campos */

.campo {
  width: 100%;
  padding: 16px;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  background: var(--card);
  color: var(--texto);
  font-family: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color .16s;
}
.campo::placeholder { color: #5f6773; }
.campo:focus { border-color: var(--borda-forte); }

textarea.campo { min-height: 110px; resize: vertical; line-height: 1.5; }

/* ------------------------------------------------------------ botoes */

.acoes { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.btn {
  width: 100%;
  padding: 17px 20px;
  min-height: 56px;
  border-radius: var(--raio);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .16s, background .16s, transform .1s;
}
.btn:active { transform: scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-ouro { background: var(--ouro); color: #1a1405; }
.btn-ouro:hover:not([disabled]) { background: #e0bd45; }

.btn-fantasma {
  background: transparent;
  border-color: var(--borda);
  color: var(--texto-suave);
}
.btn-fantasma:hover:not([disabled]) { border-color: rgba(255, 255, 255, 0.2); color: var(--texto); }

.btn-voltar {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 10px 2px;
  margin: 14px 0 0;
  color: var(--texto-fraco);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.btn-voltar:hover { color: var(--texto); }

/* ------------------------------------------------------------- avisos */

.aviso {
  margin: 14px 0 0;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 143, 122, 0.3);
  background: rgba(255, 143, 122, 0.08);
  color: var(--erro);
  font-size: 14px;
  line-height: 1.45;
}

.selo-perfil {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ouro-suave);
  border: 1px solid var(--borda-forte);
  color: var(--ouro);
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 18px;
}

.check-final {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--ouro-suave);
  border: 1px solid var(--borda-forte);
  color: var(--ouro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------- rodape */

.rodape {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--borda);
  font-size: 11.5px;
  color: var(--texto-fraco);
}
.rodape a { color: var(--texto-fraco); text-decoration: none; }
.rodape a:hover { color: var(--ouro); }

@media (min-width: 560px) {
  .app { padding: 32px 28px; }
  h1 { font-size: 29px; }
  .enunciado { font-size: 22px; }
}
