/* desafio.css — desafiomedesporte.com.br. Tokens do site novo (front/styles.css). */
:root {
  --ink: #101010;
  --navy: #001f51;
  --blue: #00aaff;
  --blue-soft: rgba(0, 170, 255, .16);
  --paper: #f5f5f5;
  --white: #fff;
  --muted: #5c5c5c;
  --line: #dedede;
  --ok: #0a7a4b;
  --erro: #b3261e;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--blue); }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topo { background: var(--navy); color: var(--white); }
.topo__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(calc(100% - 32px), 1120px); margin-inline: auto; padding: 18px 0; }
.topo img { width: 210px; height: auto; }
.topo__selo { font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); text-align: right; }

main { width: min(calc(100% - 32px), 1120px); margin: 28px auto 48px; }
.cartao { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 44px); }
.cartao--estreito { max-width: 760px; margin-inline: auto; }
.cartao--estreito .form { max-width: none; }
.eyebrow { margin: 0 0 12px; color: var(--navy); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--azul { color: #0077b3; }
h1, h2 { margin: 0 0 14px; color: var(--navy); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3.2vw, 34px); }
.intro { margin: 0 0 22px; color: var(--muted); font-size: 18px; max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: 14px; font-weight: 700; }

.botao { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 14px 28px; border: 1px solid transparent; border-radius: 999px; background: #111; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; transition: background 180ms ease, transform 180ms var(--ease); }
.botao:hover { background: #404040; }
.botao:active { transform: scale(.98); }
.botao[disabled] { opacity: .5; cursor: default; }
.botao--claro { background: #ececec; color: #111; }
.botao--claro:hover { background: #d8d8d8; }
.botao--link { min-height: 44px; padding: 10px 0; background: none; color: var(--navy); text-decoration: underline; }
.botao--link:hover { background: none; }
.botao--discreto { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; font-weight: 400; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }

.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
.form input[type=text], .form input[type=email], .form input[type=tel] { display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 12px 16px; border: 1px solid #b9b9b9; border-radius: 12px; background: #fff; font-size: 17px; font-weight: 400; color: var(--ink); }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; font-size: 15px !important; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.check a { color: var(--navy); }
.nota { margin: 0; color: var(--muted); font-size: 14px; }
.erro { margin: 0; color: var(--erro); font-weight: 700; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.q-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.relogio { min-width: 92px; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 22px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.relogio--fim { background: var(--erro); }
.progresso { height: 6px; margin: 0 0 22px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progresso > span { display: block; height: 100%; background: var(--blue); transition: width 300ms var(--ease); }
.q-texto { font-size: clamp(22px, 2.8vw, 30px); }
.exame { margin: 0 0 20px; }
.exame button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #e9edf2; overflow: hidden; cursor: zoom-in; }
.exame img { width: auto; height: auto; max-width: 100%; max-height: 46vh; margin-inline: auto; }
.exame figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.exame__dica { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.opcao { display: flex; width: 100%; min-height: 72px; gap: 14px; align-items: center; padding: 14px 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font-size: 18px; font-weight: 700; text-align: left; transition: border-color 150ms ease, background 150ms ease; }
.opcao__letra { display: inline-grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 16px; }
.opcao[aria-pressed=true] { border-color: var(--navy); background: var(--blue-soft); }
.opcao[aria-pressed=true] .opcao__letra { background: var(--navy); color: #fff; }
.opcao[disabled] { cursor: default; }

.resultado { text-align: center; }
.placar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.placar div { padding: 18px 10px; border-radius: 18px; background: var(--paper); }
.placar strong { display: block; color: var(--navy); font-size: clamp(30px, 5vw, 46px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.placar span { color: var(--muted); font-size: 14px; font-weight: 700; }

.aviso-cookies { position: fixed; z-index: 40; right: 16px; bottom: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; max-width: 960px; margin-inline: auto; padding: 16px 20px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); }
.aviso-cookies p { flex: 1 1 320px; margin: 0; font-size: 15px; }
.aviso-cookies a { color: #fff; }
.aviso-cookies .botao { min-height: 44px; background: #fff; color: #111; }
.termos { max-width: 820px; }
.termos h2 { margin-top: 32px; font-size: 22px; }
.termos p, .termos li { color: #2b2b2b; }
.termos li { margin-bottom: 6px; }
.termos .versao { color: var(--muted); font-size: 14px; }
.zoom { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 12px; border: 0; background: rgba(0, 0, 0, .92); cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; }
.zoom__relogio { position: fixed; top: 14px; right: 14px; }

.ranking table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranking th { padding: 10px 12px; border-bottom: 2px solid var(--navy); color: var(--muted); font-size: 13px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.ranking td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 20px; }
.ranking td:first-child { width: 64px; color: var(--navy); font-weight: 750; }
.ranking tr:nth-child(-n+3) td { font-weight: 750; }
.ranking .num { text-align: right; }
.vazio { color: var(--muted); }
.telao main { width: min(calc(100% - 48px), 1400px); }
.telao .ranking td { font-size: clamp(20px, 2.4vw, 32px); padding: 16px 14px; }

@media (min-width: 1000px) {
  .q-corpo--exame { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .q-corpo--exame .exame { margin: 0; }
  .q-corpo--exame .exame img { max-height: 62vh; }
  .q-corpo--exame .opcoes { grid-template-columns: 1fr; }
  .q-corpo--exame .opcao { min-height: 64px; }
  .q-corpo--exame .acoes { margin-top: 16px; }
}
.telao .topo__inner { width: min(calc(100% - 48px), 1400px); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topo img { width: 160px; }
  .topo__selo { font-size: 10px; max-width: 120px; }
  main { margin-top: 16px; }
  .opcoes { grid-template-columns: 1fr; }
  .placar { grid-template-columns: 1fr; }
  .ranking td { font-size: 16px; padding: 10px 8px; }
}
