/* Relatório do fim do teste e do treino (js/relatorio.js, 14/10/2026). As regras .rt-* são as dos gráficos "Onde você trava"
   do teste (iguais às do teste.html), para o treino usar os mesmos; as .rl-* são do relatório novo. */
.rt-trava { display: grid; gap: 14px; }
.rt-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .rt-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rt-c { background: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; border: 1.5px solid #ece6d6; }
.rt-c h3 { margin: 0; font-size: .95rem; justify-self: start; text-align: left; }
.rt-largo { grid-column: span 2; justify-items: stretch; text-align: left; }
@media (max-width: 520px) { .rt-largo { grid-column: 1 / -1; } }
.rt-rosca, .rl-rosca { position: relative; width: 116px; height: 116px; }
.rt-rosca svg, .rl-rosca svg { width: 100%; height: 100%; display: block; }
.rt-centro, .rl-centro { position: absolute; inset: 0; display: grid; place-content: center; line-height: 1.05; text-align: center; }
.rt-centro b, .rl-centro b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rt-centro small, .rl-centro small { font-size: .72rem; color: var(--suave, #5f6166); }
.rt-leg { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: .75rem; color: var(--suave, #5f6166); }
.rt-leg span { display: inline-flex; align-items: center; gap: 5px; }
.rt-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.rt-cert { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rt-cert li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .85rem; font-weight: 600; }
.rt-barra { display: flex; height: 22px; border-radius: 8px; background: #f4f1e8; overflow: hidden; }
.rt-barra i { display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; min-width: 20px; }
.rt-barra .rt-certa { background: #0e9f55; } .rt-barra .rt-errada { background: #e02a36; }
.rt-alerta, .rt-ok { margin: 0; font-size: .85rem; padding: 8px 12px; border-radius: 10px; }
.rt-alerta { background: #fdecea; color: #5c130c; } .rt-ok { background: #e3f3e8; color: #173f27; }
.rt-colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.rt-col { display: grid; gap: 4px; justify-items: center; font-size: .78rem; }
.rt-col-v { font-weight: 800; font-size: .95rem; }
.rt-col-b { width: 30px; height: 80px; background: #f4f1e8; border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.rt-col-b i { width: 100%; background: #1f6fff; border-radius: 8px 8px 0 0; }
.rt-col-n { font-weight: 700; } .rt-col small { color: var(--suave, #5f6166); }
.rt-ritmo { display: grid; justify-items: center; gap: 2px; }
.rt-ritmo svg { width: 86px; height: 86px; }
.rt-ritmo b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rt-ritmo small { font-size: .75rem; color: var(--suave, #5f6166); white-space: nowrap; }

/* ---------- o relatório ---------- */
.rl-h2 { margin: 0; font-family: var(--titulo); font-style: italic; font-weight: 700; font-size: 1.45rem; }
/* o cartão em destaque: preto, números grandes, a cor da área numa faixa */
.rl-heroi { position: relative; overflow: hidden; background: var(--preto); color: var(--branco); border-radius: 24px; padding: 24px 22px 20px; display: grid; gap: 6px; }
.rl-heroi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--cor); }
.rl-heroi::after { content: ""; position: absolute; right: -110px; top: -110px; width: 220px; height: 220px; border-radius: 50%; border: 24px solid var(--cor); opacity: .16; pointer-events: none; }
.rl-rot { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); position: relative; }
.rl-tit { margin: 2px 0 0; font-family: var(--titulo); font-style: italic; font-weight: 700; font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.05; position: relative; text-wrap: balance; }
.rl-grande { margin: 4px 0 0; font-family: var(--titulo); font-style: italic; font-weight: 700; font-size: clamp(3.2rem, 15vw, 4.8rem); line-height: .95; color: var(--amarelo); position: relative; }
.rl-grande span { font-size: .42em; color: var(--cinza); font-weight: 400; vertical-align: middle; }
.rl-sub { margin: 0; color: var(--cinza); position: relative; }
.rl-nums { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #2c2c2c; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; }
.rl-nums li { display: grid; gap: 2px; align-content: start; }
.rl-nums small { font-size: .74rem; color: #a5a7ab; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rl-nums b { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rl-nums b small { font-size: .55em; color: #a5a7ab; text-transform: none; letter-spacing: 0; }
.rl-delta { justify-self: start; font-size: .74rem; font-weight: 800; color: #0a0a0a; background: #6ee7a0; border-radius: 999px; padding: 2px 8px; }
.rl-delta.neg { background: #ffb3b8; }
@media (max-width: 560px) { .rl-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }

/* o nível: a barra até o próximo, com o pedaço ganho hoje piscando em verde */
.rl-nivel { background: #fff; border: 2px solid var(--preto); border-radius: 22px; padding: 18px; display: grid; gap: 12px; }
.rl-subiu { background: var(--amarelo-suave, #fff3c4); }
.rl-festa { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--titulo); font-style: italic; font-weight: 700; font-size: 1.5rem; animation: rl-pulo .7s ease-out 2; }
.rl-festa .rl-ic { width: 30px; height: 30px; color: var(--amarelo); stroke: var(--preto); stroke-width: 1.2; }
.rl-nv-topo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rl-nv-eu { display: flex; align-items: center; gap: 10px; }
.rl-nv-eu small { display: block; font-size: .74rem; color: var(--suave, #5f6166); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rl-nv-eu b { font-family: var(--titulo); font-style: italic; font-size: 1.35rem; }
.rl-nv-prox { opacity: .7; }
.rl-nv-seta { font-size: 1.6rem; font-weight: 800; }
.rl-nv-barra { display: flex; height: 18px; border-radius: 999px; background: #efece3; overflow: hidden; border: 2px solid var(--preto); }
.rl-nv-barra i { background: var(--amarelo); }
.rl-nv-barra .rl-nv-novo { background: #22c55e; animation: rl-cresce 1.2s ease-out both; }
.rl-nv-txt { margin: 0; font-size: .95rem; }
.rl-mais { color: #0e7a42; font-weight: 800; }
.rl-etapas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-etapas li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9rem; }
.rl-ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--preto); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.rl-etapas li.ok .rl-ck { background: #22c55e; border-color: #22c55e; color: #fff; }
.rl-etapas li.ok > span:last-child { color: var(--suave, #5f6166); text-decoration: line-through; }
.rl-mini { display: block; height: 6px; border-radius: 3px; background: #efece3; margin: 6px 0 2px; overflow: hidden; max-width: 260px; }
.rl-mini i { display: block; height: 100%; background: var(--amarelo); }
.rl-etapas small { font-size: .78rem; color: var(--suave, #5f6166); }

/* as conquistas: selos redondos, amarelos, com o traço preto do site */
.rl-conq { display: grid; gap: 12px; }
.rl-conq ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.rl-conq li { background: #fff; border: 1.5px solid #ece6d6; border-radius: 18px; padding: 14px 10px; display: grid; justify-items: center; text-align: center; gap: 4px;
  animation: rl-entra .5s ease-out both; animation-delay: calc(var(--i) * 120ms); }
.rl-selo { width: 64px; height: 64px; border-radius: 50%; background: var(--amarelo); border: 3px solid var(--preto); display: grid; place-items: center; box-shadow: 0 4px 0 var(--preto); margin-bottom: 6px; }
.rl-selo .rl-ic { width: 32px; height: 32px; color: var(--preto); stroke: var(--preto); }
.rl-conq b { font-size: .95rem; line-height: 1.2; }
.rl-conq small { font-size: .78rem; color: var(--suave, #5f6166); line-height: 1.3; }
.rl-acoes-share { display: flex; }
.rl-share { display: inline-flex; align-items: center; gap: 8px; }
.rl-share .rl-ic { width: 20px; height: 20px; stroke: currentColor; }

/* o acumulado */
.rl-acum { display: grid; gap: 14px; margin-top: 18px; }
.rl-grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .rl-grade2 { grid-template-columns: 1fr; } }
.rl-cartao { background: #fff; border: 1.5px solid #ece6d6; border-radius: 20px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.rl-cartao h3 { margin: 0; font-size: 1rem; }
.rl-evo { width: 100%; height: auto; display: block; }
.rl-eixo { font: 600 10px var(--texto, sans-serif); fill: #8a8c90; }
.rl-meta-t { fill: #0a0a0a; font-weight: 800; }
.rl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rl-chips li { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--cor); border-bottom-width: 4px; border-radius: 12px; padding: 4px 10px; font-size: .85rem; }
.rl-chips li i { width: 10px; height: 10px; border-radius: 50%; background: var(--cor); }
.rl-chips b { font-variant-numeric: tabular-nums; }
.rl-dica { margin: 0; font-size: .85rem; color: var(--suave, #5f6166); }
.rl-cal-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rl-cal-num b { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rl-cal-num small { font-size: .76rem; color: var(--suave, #5f6166); line-height: 1.2; display: block; }
.rl-cal { display: grid; grid-template-columns: 14px repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 4px; align-items: center; }
.rl-cal-l { font: 700 10px var(--texto, sans-serif); color: #8a8c90; font-style: normal; }
.rl-d { display: block; aspect-ratio: 1; border-radius: 4px; min-width: 10px; }
.rl-d0 { background: #efece3; } .rl-d1 { background: #fde89a; } .rl-d2 { background: #fdd84a; } .rl-d3 { background: #fdca01; } .rl-d4 { background: #b88a00; }
.rl-dx { background: transparent; border: 1px dashed #e2ddcf; }
.rl-hoje { outline: 2px solid var(--preto); outline-offset: 1px; }
.rl-cal-leg { margin: 0; display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: .74rem; color: var(--suave, #5f6166); }
.rl-cal-leg .rl-d { width: 12px; min-width: 12px; }
.rl-tot { margin: 0; font-size: .92rem; }
.rl-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .rl-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-areas li { display: grid; justify-items: center; text-align: center; gap: 2px; }
.rl-areas li b { font-size: .8rem; line-height: 1.2; }
.rl-areas li small { font-size: .72rem; color: var(--suave, #5f6166); }
.rl-areas .rl-centro b { font-size: 1.05rem; }
.rl-pilha { display: flex; height: 22px; border-radius: 999px; overflow: hidden; border: 2px solid var(--preto); }
.rl-pilha i { display: block; height: 100%; }
.rl-leg2 { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; }
.rl-leg2 li { display: inline-flex; align-items: center; gap: 6px; }
.rl-leg2 i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

@keyframes rl-entra { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rl-cresce { from { max-width: 0; } to { max-width: 100%; } }
@keyframes rl-pulo { 0%, 100% { transform: none; } 40% { transform: translateY(-4px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .rl-conq li, .rl-nv-barra .rl-nv-novo, .rl-festa { animation: none; } }

/* os acertos em pizza (14/10/2026) */
.rl-pizza svg { width: 100%; height: 100%; display: block; }
.rl-pz-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; justify-items: start; }
.rl-pz-leg li { display: flex; align-items: center; gap: 6px; }
.rl-pz-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.rl-pz-leg span { color: var(--suave, #5f6166); font-weight: 700; }

.rl-pz-t { font: 800 4.6px var(--texto, sans-serif); fill: #fff; }
