/* Caminho: public/assets/publico/css/desafios.css
 * Desafios (2026-11-13): lista (/desafios) e o jogo (/desafios/{slug}).
 * Paleta das Histórias Educativas. */
:root {
  --df-marinho: #102C4C;
  --df-ouro: #F4C542;
  --df-creme: #F7E5B9;
  --df-papel: #FBF6EA;
}

/* Lista */
.df-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.df-cartao { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem; border-radius: 16px; background: var(--df-papel); border: 1px solid rgba(16,44,76,.1); color: var(--df-marinho); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.df-cartao:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(16,44,76,.12); color: var(--df-marinho); }
.df-cartao-area { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #956536; }
.df-cartao h2 { font-size: 1.3rem; line-height: 1.25; margin: 0; }
.df-cartao p { font-size: .92rem; color: #4b5563; margin: 0; }
.df-cartao-perfis { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.df-cartao-perfis span { font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; color: #fff; background: var(--df-cor); }
.df-cartao-rodape { display: flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .6rem; font-size: .82rem; color: #6b7280; }
.df-vazio { text-align: center; padding: 3rem 1rem; color: #6b7280; }
.df-vazio i { font-size: 2.4rem; display: block; margin-bottom: .5rem; }

/* O jogo */
.df-jogo { background: var(--df-papel); border: 1px solid rgba(16,44,76,.1); border-radius: 20px; padding: 1.6rem; box-shadow: 0 10px 30px rgba(16,44,76,.08); scroll-margin-top: 90px; }
.df-tela { color: #1f2937; }
.df-tela p { line-height: 1.7; }
.df-selo { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #956536; margin-bottom: .8rem; }
.df-botao { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid var(--df-marinho); background: #fff; color: var(--df-marinho); font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.df-botao--forte { background: var(--df-marinho); color: #fff; }
.df-botao:hover { opacity: .9; }
.df-aviso { margin: 1rem 0 0; font-size: .9rem; color: #92400e; }

.df-progresso { display: flex; align-items: center; gap: .8rem; font-size: .82rem; font-weight: 600; color: #6b7280; margin-bottom: 1rem; }
.df-progresso-barra { flex: 1; height: 6px; border-radius: 999px; background: rgba(16,44,76,.1); overflow: hidden; }
.df-progresso-barra span { display: block; height: 100%; background: var(--df-ouro); transition: width .3s ease; }
.df-pergunta { font-size: 1.3rem; line-height: 1.4; color: var(--df-marinho); margin: 0 0 1.1rem; }
.df-opcoes { display: grid; gap: .6rem; }
.df-opcao { display: flex; align-items: flex-start; gap: .75rem; width: 100%; text-align: left; padding: .85rem 1rem; border-radius: 14px; border: 2px solid rgba(16,44,76,.15); background: #fff; color: #1f2937; font-size: 1rem; line-height: 1.45; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.df-opcao:hover, .df-opcao:focus-visible { border-color: var(--df-marinho); outline: none; }
.df-opcao--marcada { border-color: var(--df-marinho); background: var(--df-creme); }
.df-opcao-letra { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--df-marinho); color: #fff; font-weight: 700; font-size: .85rem; }
.df-voltar { margin-top: 1rem; border: 0; background: none; color: #6b7280; font-size: .9rem; cursor: pointer; padding: .3rem 0; }

/* Resultado */
.df-resultado { text-align: left; }
.df-resultado-nome { font-size: 2.2rem; line-height: 1.1; color: var(--df-cor, var(--df-marinho)); margin: 0 0 .4rem; }
.df-lema { font-style: italic; color: #4b5563; margin: 0 0 .8rem; }
.df-resultado-texto { font-size: 1.02rem; }
.df-quem { font-size: .9rem; color: #6b7280; }
.df-resultado-sub { font-size: 1rem; font-weight: 700; color: var(--df-marinho); margin: 1.6rem 0 .6rem; }
.df-barras { display: grid; gap: .45rem; }
.df-barra { border-radius: 10px; background: #fff; border: 1px solid rgba(16,44,76,.08); }
.df-barra summary { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 3rem; align-items: center; gap: .6rem; padding: .55rem .75rem; cursor: pointer; list-style: none; font-size: .92rem; }
.df-barra summary::-webkit-details-marker { display: none; }
.df-barra-nome { font-weight: 700; color: var(--df-cor); }
.df-barra-trilho { height: 10px; border-radius: 999px; background: rgba(16,44,76,.08); overflow: hidden; }
.df-barra-trilho span { display: block; height: 100%; background: var(--df-cor); border-radius: 999px; }
.df-barra-pct { text-align: right; font-weight: 700; color: #374151; }
.df-barra-corpo { padding: 0 .9rem .4rem; font-size: .92rem; }
.df-dica { font-size: .8rem; color: #6b7280; margin: .4rem 0 0; }
.df-botoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.df-copiado { font-size: .85rem; color: #166534; margin-top: .5rem; min-height: 1.2em; }

/* Kit (História e plano do mesmo tema) */
.df-kit { display: grid; gap: .6rem; margin: 1.6rem 0 0; }
.df-kit-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 12px; background: #fff; border: 1px solid rgba(16,44,76,.12); color: var(--df-marinho); text-decoration: none; }
.df-kit-item:hover { border-color: var(--df-marinho); color: var(--df-marinho); }
.df-kit-item img { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; }
.df-kit-icone { font-size: 1.5rem; width: 44px; text-align: center; }
.df-kit-item span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.df-kit-item small { font-size: .75rem; opacity: .75; }

/* Para o professor */
.df-professor { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(16,44,76,.12); }
.df-professor h2 { font-size: 1.35rem; color: var(--df-marinho); margin-bottom: .8rem; }
.df-professor p { line-height: 1.75; color: #374151; }
.df-gabarito { margin-top: 1rem; border-radius: 12px; background: var(--df-papel); border: 1px solid rgba(16,44,76,.1); padding: .2rem 1rem; }
.df-gabarito summary { cursor: pointer; font-weight: 700; color: var(--df-marinho); padding: .6rem 0; }
.df-gabarito-perfil { border-left: 4px solid var(--df-cor); padding: .2rem 0 .2rem .9rem; margin: .8rem 0 1.2rem; }
.df-gabarito-perfil h3 { font-size: 1.1rem; color: var(--df-cor); margin: 0 0 .3rem; }
.df-outros { margin-top: 2.2rem; }
.df-outros h2 { font-size: 1.2rem; color: var(--df-marinho); }
.df-outros a { display: block; padding: .45rem 0; color: var(--df-marinho); text-decoration: none; border-bottom: 1px solid rgba(16,44,76,.08); }

@media (max-width: 480px) {
  .df-jogo { padding: 1.1rem; border-radius: 16px; }
  .df-pergunta { font-size: 1.15rem; }
  .df-resultado-nome { font-size: 1.8rem; }
  .df-barra summary { grid-template-columns: 34% 1fr 2.6rem; }
}
