:root {
  --azul: #0068A6;
  --azul-escuro: #004E7D;
  --ciano: #00AEEF;
  --amarelo: #FFCB05;
  --verde: #00A651;
  --cinza: #808285;
  --vermelho: #D93B3B;
  --fundo: #F3F6F9;
  --card: #FFFFFF;
  --texto: #1D2733;
  --texto-2: #5B6570;
  --borda: #DCE3EA;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(16, 40, 64, .06), 0 4px 16px rgba(16, 40, 64, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--fundo);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--azul); }
.top { background: var(--azul); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: 680px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 32px; width: auto; display: block; }
.partner { font-size: 12px; letter-spacing: .02em; opacity: .92; text-align: right; }
.progress { height: 4px; background: rgba(255,255,255,.18); }
.progress-bar { height: 100%; width: 0; background: var(--amarelo); transition: width .4s ease; }

.wrap { max-width: 680px; width: 100%; margin: 0 auto; padding: 20px 16px 32px; flex: 1; }
.card { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); padding: 22px 20px; margin-bottom: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); margin: 0 0 6px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--texto-2); font-size: 14px; }
.small { font-size: 13px; color: var(--texto-2); }

.vagas { display: grid; gap: 10px; margin: 16px 0; }
.vaga { border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; }
.vaga b { display: block; color: var(--azul-escuro); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { background: #E8F4FB; color: var(--azul-escuro); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.steps-list { padding-left: 20px; margin: 8px 0 0; }
.steps-list li { margin-bottom: 4px; }

.btn {
  appearance: none; border: 0; border-radius: 12px; padding: 14px 20px; font-size: 16px; font-weight: 700;
  cursor: pointer; background: var(--amarelo); color: #1D2733; width: 100%; transition: transform .05s, filter .15s;
  min-height: 52px;
}
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sec { background: #fff; color: var(--azul); border: 1.5px solid var(--azul); }
.btn.azul { background: var(--azul); color: #fff; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn-row .btn { flex: 1; }

label.f { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
label.f .opt { font-weight: 400; color: var(--texto-2); }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 10px; background: #fff; color: var(--texto);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(0,174,239,.18); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 14px; color: var(--texto-2); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--azul); }
.err { color: var(--vermelho); font-size: 14px; margin-top: 10px; min-height: 1em; }

/* Likert */
.item { padding: 16px 0; border-bottom: 1px solid var(--borda); }
.item:last-child { border-bottom: 0; }
.item p { font-weight: 600; margin-bottom: 12px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button {
  appearance: none; border: 1.5px solid var(--borda); background: #fff; border-radius: 10px; height: 44px; font: inherit; font-weight: 700;
  color: var(--texto-2); cursor: pointer;
}
.scale button[aria-pressed=true] { background: var(--azul); border-color: var(--azul); color: #fff; }
.scale-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-2); margin-top: 6px; }

/* Escolha forçada */
.fc { padding: 16px 0; border-bottom: 1px solid var(--borda); }
.fc:last-child { border-bottom: 0; }
.fc-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fc-texts div { font-weight: 600; font-size: 15px; padding: 10px; border-radius: 10px; background: #F6F9FC; }
.fc-texts div:last-child { text-align: right; }
.fc-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fc-scale button { appearance: none; border: 1.5px solid var(--borda); background: #fff; border-radius: 10px; padding: 8px 4px; font: inherit; font-size: 12px; line-height: 1.25; color: var(--texto-2); cursor: pointer; min-height: 48px; }
.fc-scale button[aria-pressed=true] { background: var(--azul); border-color: var(--azul); color: #fff; font-weight: 700; }

/* Cenários */
.sit { font-size: 17px; font-weight: 600; background: #F6F9FC; border-left: 4px solid var(--ciano); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 10px 0 16px; }
.ask { font-weight: 700; margin: 0 0 10px; }
.ask .best { color: var(--verde); }
.ask .worst { color: var(--vermelho); }
.opts { display: grid; gap: 10px; }
.opt-btn { appearance: none; text-align: left; border: 1.5px solid var(--borda); border-radius: 12px; padding: 14px 14px 14px 16px; background: #fff; font: inherit; color: var(--texto); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.opt-btn .tag { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 3px 7px; margin-top: 2px; visibility: hidden; }
.opt-btn.is-best { border-color: var(--verde); background: #EEF9F3; }
.opt-btn.is-best .tag { visibility: visible; background: var(--verde); color: #fff; }
.opt-btn.is-worst { border-color: var(--vermelho); background: #FDF0F0; }
.opt-btn.is-worst .tag { visibility: visible; background: var(--vermelho); color: #fff; }

/* Jogo */
.game-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 8px 0 12px; }
.game-hud div { background: #F6F9FC; border-radius: 10px; padding: 8px 4px; }
.game-hud b { display: block; font-size: 18px; color: var(--azul-escuro); font-variant-numeric: tabular-nums; }
.game-hud span { font-size: 12px; color: var(--texto-2); }
.arena { height: 240px; display: grid; place-items: center; position: relative; }
.deal {
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4FC9F5, var(--azul) 70%);
  display: grid; place-items: center; color: #fff; font-weight: 800; transition: width .15s ease, height .15s ease, background .2s;
  box-shadow: 0 8px 24px rgba(0, 104, 166, .25); font-variant-numeric: tabular-nums; text-align: center; line-height: 1.15;
}
.deal small { display: block; font-weight: 600; font-size: 11px; opacity: .9; }
.deal.lost { background: radial-gradient(circle at 35% 30%, #F08A8A, var(--vermelho) 70%); box-shadow: none; }
.deal.won { background: radial-gradient(circle at 35% 30%, #5FD69A, var(--verde) 70%); }
.game-msg { text-align: center; font-weight: 700; min-height: 1.5em; margin-top: 4px; }

/* Áudio */
.rec { display: grid; place-items: center; gap: 12px; padding: 12px 0; }
.rec-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--vermelho); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(217,59,59,.3); }
.rec-btn.on { animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,59,59,.45);} 70% { box-shadow: 0 0 0 18px rgba(217,59,59,0);} 100% { box-shadow: 0 0 0 0 rgba(217,59,59,0);} }
.timer { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--azul-escuro); }
audio { width: 100%; margin-top: 8px; }
.prep { font-size: 14px; color: var(--texto-2); background: #FFF8DB; border-radius: 10px; padding: 10px 12px; }

.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-size: 34px; margin-bottom: 12px; }
.foot { text-align: center; font-size: 12px; color: var(--texto-2); padding: 16px; }
.counter { font-size: 13px; color: var(--texto-2); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 420px) {
  h1 { font-size: 23px; }
  .fc-scale button { font-size: 11px; }
  .card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Uma pergunta por tela */
.q-text { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 8px 0 18px; min-height: 52px; }
.choices { display: grid; gap: 10px; }
.choice { appearance: none; text-align: left; border: 1.5px solid var(--borda); border-radius: 12px; background: #fff; padding: 14px 16px; font: inherit; font-weight: 600; color: var(--texto); cursor: pointer; min-height: 52px; }
.choice:hover { border-color: var(--ciano); }
.choice[aria-pressed=true] { background: var(--azul); border-color: var(--azul); color: #fff; }
.choice.big { padding: 18px 16px; font-size: 16px; }
.back { appearance: none; border: 0; background: none; color: var(--texto-2); font: inherit; font-size: 14px; margin-top: 16px; padding: 6px 0; cursor: pointer; }

/* Roteiro das perguntas em áudio */
.roteiro { background: #F6F9FC; border-left: 4px solid var(--ciano); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: -6px 0 6px; font-size: 15px; }
.roteiro ul { margin: 6px 0 0; padding-left: 20px; }
.roteiro li { margin-bottom: 2px; }
