/* Treino Bravos (24/11/2026): visual de jogo com a identidade da marca (static/brand.css).
   Celular primeiro: uma coluna de até 520px; no computador a coluna fica no meio, como um app. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; background:
  radial-gradient(900px 420px at 50% -120px, rgba(212,166,44,.10), transparent 70%), var(--bg); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
b { font-weight: 600; }
svg { display: block; }

.tr-app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 700px) {
  .tr-app { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); background: rgba(11,13,16,.6); }
}
.tr-scr { min-height: 100dvh; display: flex; flex-direction: column; }
.tr-kick { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* chips de XP e dias seguidos */
.tr-chips { display: flex; gap: 8px; }
.tr-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.tr-chip svg { width: 15px; height: 15px; }
.tr-chip small { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.tr-chip-xp svg { fill: var(--gold); }
.tr-chip-xp b { color: #F1D27A; }
.tr-chip-st svg { fill: #E0913C; }
.tr-chip-st.off svg { fill: var(--muted-2); }
.tr-chip.pop { animation: trPop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes trPop { 40% { transform: scale(1.16); } }

/* ---------- trilha: cenário da Escalada (cena.js) ---------- */
.tr-trilha { position: relative; }
.tr-ceu { position: fixed; top: 0; bottom: 0; left: 50%; width: 100%; max-width: 520px; transform: translateX(-50%); z-index: 0; overflow: hidden; pointer-events: none; }
.tr-ceu svg { width: 100%; height: 100%; display: block; }
.tr-ceu .tw { animation: trTw 3.6s ease-in-out infinite; }
@keyframes trTw { 50% { opacity: .08; } }
/* estrelas que piscam: camadas inteiras (placa de vídeo), o céu em si nunca é redesenhado */
.ceu-tw { position: absolute; inset: 0; will-change: opacity; animation: trTwL 3.6s ease-in-out infinite; }
.ceu-tw svg { width: 100%; height: 100%; display: block; }
.ceu-tw.tw1 { animation-delay: -1.2s; } .ceu-tw.tw2 { animation-delay: -2.4s; animation-duration: 4.4s; }
@keyframes trTwL { 50% { opacity: .1; } }
.tr-trilha > *:not(.tr-ceu) { position: relative; z-index: 1; }
.tr-top { position: sticky !important; top: 0; z-index: 6 !important; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 14px; background: linear-gradient(rgba(5,7,10,.94) 55%, rgba(5,7,10,0)); }
.tr-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tr-brand img { border-radius: 9px; flex: none; }
.tr-brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tr-brand b { font-family: var(--display); font-size: 20px; font-weight: 500; }
.tr-volta { width: 32px; height: 32px; margin-right: -2px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: rgba(20,23,27,.8); border: 1px solid var(--line); flex: none; }
.tr-volta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-chips .tr-chip { background: rgba(20,23,27,.82); }
.tr-som { width: 32px; padding: 0; justify-content: center; color: var(--muted); }
.tr-som svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-som .off, .tr-som.mudo .on { display: none; } .tr-som.mudo .off { display: block; }
.tr-secpill { position: sticky !important; top: calc(60px + env(safe-area-inset-top)); z-index: 5 !important; margin: -6px 14px 0; display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 12px; background: rgba(14,16,20,.74); border: 1px solid rgba(212,166,44,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: max-content; max-width: calc(100% - 28px); }
.tr-secpill small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.tr-secpill b { font-family: var(--display); font-weight: 500; font-size: 16px; white-space: nowrap; }
.tr-secpill i { width: 70px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.tr-secpill i u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), #F0CB64); border-radius: 2px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.tr-secpill em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

.tr-mapa { position: relative; margin-top: -84px; }
.tr-cena svg { display: block; }
.tr-cena .far { will-change: transform; }
/* celular: a serra do fundo é uma camada solta atrás da montanha (a rolagem só desloca a camada) e o fogo e a
   bandeira são peças soltas que se mexem sem redesenhar a montanha (24/11/2026) */
.tr-monte > .tr-cena { position: relative; }
.tr-monte > .tr-cena > .far { position: absolute; left: 0; top: 0; }
.tr-monte > .tr-cena > svg { position: relative; }
.tr-cena .mt-peca { position: absolute; will-change: transform, opacity; }
.tr-cena .mt-peca svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tr-cena .mt-peca.pc-fogo { transform-origin: 50% 100%; animation: trFlick .16s ease-in-out infinite alternate; }
.tr-cena .mt-peca.pc-brilho { animation: trGlowF 2.4s ease-in-out infinite; }
.tr-cena .mt-peca.pc-flag { transform-origin: 0 50%; }
.tr-cena .mt-peca.pc-flag.on { animation: trFlag 1.6s ease-in-out infinite; }
.tr-cena .tg { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; fill: rgba(212,166,44,.72); }
.tr-cena .tg.dim { fill: rgba(156,153,143,.5); }
.tr-cena .tg.alt { fill: rgba(156,153,143,.38); letter-spacing: .04em; text-transform: none; }
/* névoa parada: mexer um desfoque obrigava a redesenhar a montanha inteira a cada quadro */
@keyframes trDrift { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
.tr-cena .fire { transform-box: fill-box; transform-origin: 50% 100%; animation: trFlick .16s ease-in-out infinite alternate; }
@keyframes trFlick { from { transform: scale(1, 1); } to { transform: scale(.92, 1.12); } }
.tr-cena .fire-glow { animation: trGlowF 2.4s ease-in-out infinite; }
@keyframes trGlowF { 50% { opacity: .7; } }
.tr-cena .flag.on { transform-box: fill-box; transform-origin: 0 50%; animation: trFlag 1.6s ease-in-out infinite; }
@keyframes trFlag { 50% { transform: scaleX(.86) skewY(4deg); } }
.tr-cena .feito { filter: drop-shadow(0 0 6px rgba(240,203,100,.6)); }
.tr-monte { position: relative; }
.tr-nos { position: absolute; left: 0; top: 0; right: 0; }

.tr-step { position: absolute; width: 66px; height: 66px; margin: -33px 0 0 -33px; }
.tr-node { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: #171B21; border: 1px solid #2A2F36; box-shadow: 0 5px 0 #050607, 0 10px 24px rgba(0,0,0,.45); transition: transform .12s; }
.tr-node:active { transform: translateY(3px); box-shadow: 0 2px 0 #050607; }
.tr-node svg { width: 26px; height: 26px; fill: none; stroke: var(--muted-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: absolute; }
.tr-node .ic-play, .tr-node .ic-ok, .tr-node .ic-tr { display: none; }
.tr-step.tr .ic-lock { display: none; } .tr-step.tr .ic-tr { display: block; }
.tr-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid transparent; }
.tr-step.cur .tr-node { background: radial-gradient(circle at 35% 30%, #F0CB64, var(--gold) 55%, var(--gold-deep)); border-color: #F0CB64; box-shadow: 0 5px 0 #6E5212, 0 0 40px rgba(212,166,44,.45); }
.tr-step.cur .ic-lock, .tr-step.cur .ic-tr { display: none; } .tr-step.cur .ic-play { display: block; fill: #1A1405; stroke: none; }
.tr-step.cur .tr-ring { border-color: rgba(212,166,44,.6); animation: trRing 1.8s ease-out infinite; }
@keyframes trRing { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.32); opacity: 0; } }
.tr-step.done .tr-node { background: linear-gradient(160deg, #2E7D52, #1F5C3B); border-color: #3FA66B; box-shadow: 0 5px 0 #123522, 0 10px 24px rgba(0,0,0,.45); }
.tr-step.done .ic-lock, .tr-step.done .ic-tr { display: none; } .tr-step.done .ic-ok { display: block; stroke: #E8F6EC; stroke-width: 2.6; }
.tr-step.login .tr-node, .tr-step.bravos .tr-node { border-color: rgba(212,166,44,.45); }
.tr-step.login .ic-lock, .tr-step.bravos .ic-lock { stroke: #C9A24A; }
.tr-step-t { position: absolute; top: 50%; transform: translateY(-50%); width: max-content; max-width: 150px; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: #F1EEE5;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0,0,0,.9); cursor: pointer; }
.tr-step-t.dir { left: 80px; text-align: left; } .tr-step-t.esq { right: 80px; text-align: right; }
.tr-step-t em { display: block; margin-top: 3px; font-style: normal; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #8E8B82; }
.tr-step.cur .tr-step-t em { color: #F0CB64; } .tr-step.done .tr-step-t em { color: #7FD3A1; }
.tr-step.login .tr-step-t em, .tr-step.bravos .tr-step-t em { color: #C9A24A; }
.tr-step.lock .tr-step-t, .tr-step.breve .tr-step-t { color: #A9A69C; }

.tr-fine { margin: 8px 24px 16px; text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }
.tr-nav { position: sticky !important; bottom: 0; z-index: 6 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(10,12,15,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); }
.tr-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; text-decoration: none; font-size: 11.5px; color: var(--muted); }
.tr-nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tr-nav a.on { color: var(--gold); background: var(--gold-wash); }
.tr-nav a em { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.tr-nav a em:empty { display: none; }
.tr-convite { width: 100%; text-align: left; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(212,166,44,.14), rgba(212,166,44,.04)); border: 1px solid var(--gold-line); font-size: 14px; line-height: 1.5; color: #DDD9CE; }
.tr-convite b { color: var(--text); }
.tr-convite .tr-cta { display: grid; place-items: center; margin-top: 12px; text-decoration: none; }
a.tr-cta { display: grid; place-items: center; text-decoration: none; }

/* ---------- lição ---------- */
.tr-licao { height: 100dvh; min-height: 0; overflow: hidden; position: relative; }
.tr-lhead { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; }
.tr-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.tr-x:hover { background: var(--panel); color: var(--text); }
.tr-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tr-prog { flex: 1; height: 12px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.tr-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep), #F0CB64);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.25); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.tr-body.in > * { animation: trIn .38s cubic-bezier(.2,.8,.2,1) both; }
.tr-body.in > *:nth-child(2) { animation-delay: .04s; } .tr-body.in > *:nth-child(3) { animation-delay: .08s; } .tr-body.in > *:nth-child(4) { animation-delay: .12s; }
@keyframes trIn { from { opacity: 0; transform: translateY(10px); } }
.tr-qk { display: flex; align-items: center; gap: 8px; }
.tr-qk .tr-rev { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #E0913C; border: 1px solid rgba(224,145,60,.4); border-radius: 999px; padding: 2px 8px; }
.tr-qt { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -.005em; }
.tr-qt b { color: #F1D27A; font-weight: 600; }
.tr-ttl { margin: 0; font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.2; }
.tr-txt { margin: 0; font-size: 15.5px; line-height: 1.6; color: #D6D3C9; }
.tr-txt b { color: var(--text); }
.tr-meta { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: -4px; }
.tr-meta b { color: var(--text); font-weight: 500; }
.tr-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.tr-hint { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.tr-hint svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* gráfico */
.tr-chart { position: relative; height: clamp(210px, 34vh, 330px); flex: none; border-radius: 14px; background: #101317; border: 1px solid var(--line-soft); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tr-chart.big { height: clamp(240px, 40vh, 380px); }
.tr-chart.act { touch-action: none; cursor: crosshair; }
.tr-chart.act::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(212,166,44,.35); pointer-events: none; animation: trGlow 2.2s ease-in-out infinite; will-change: opacity; }
@keyframes trGlow { 50% { opacity: .34; } }
.tr-svg, .tr-svgd { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tr-svgd { pointer-events: none; }
.tr-dt { transition: transform .75s cubic-bezier(.2,.8,.2,1); }
.tr-dt.na { transition: none; }
.tr-dt .up line { stroke: #2FBF71; } .tr-dt .up rect { fill: #2FBF71; }
.tr-dt .dn line { stroke: #E5534B; } .tr-dt .dn rect { fill: #E5534B; }
.tr-dt .nw { animation: trNw .32s ease-out both; }
@keyframes trNw { from { opacity: 0; } }
.tr-dt .band { fill: rgba(212,166,44,.06); animation: trNw .45s ease-out both; }
.tr-ov { position: absolute; inset: 0; pointer-events: none; }
.tr-ov > * { position: absolute; transition: top .75s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.tr-ov .ax { right: 6px; transform: translateY(-50%); font-family: var(--mono); font-size: 10px; color: var(--chart-ticks); }
.tr-ov .gl { left: 0; right: 50px; height: 1px; background: rgba(255,255,255,.035); }
.tr-ov .lvl { height: 0; margin-top: -1px; border-top: 1.5px dashed var(--gold); animation: trNw .45s ease-out both; }
.tr-ov .lvl.piso { border-color: #6FA8DC; }
.tr-ov .lvl.alvo { border-top: 2px dotted #2FBF71; }
.tr-ov .lvl.stop { border-top: 2px solid #E5534B; }
.tr-ov .lvl.tgt { border-top: 2px solid #F0CB64; box-shadow: 0 0 10px rgba(240,203,100,.5); }
.tr-ov .lb { transform: translateY(-50%); padding: 2px 7px; border-radius: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; animation: trNw .45s ease-out both; }
.tr-ov .lb.teto { background: rgba(212,166,44,.16); color: #F1D27A; }
.tr-ov .lb.piso { background: rgba(111,168,220,.16); color: #A9CDEE; }
.tr-ov .lb.meio { background: rgba(255,255,255,.06); color: var(--muted); }
.tr-ov .lb.alvo { background: rgba(47,191,113,.16); color: #7FE0A9; }
.tr-ov .lb.stop { background: rgba(229,83,75,.18); color: #F2908A; }
.tr-ov .lb.opt { background: rgba(243,241,234,.1); color: #E9E5DA; }
.tr-ov .lb.stopz { background: rgba(229,83,75,.16); color: #F2908A; }
.tr-ov .lvl.opt { border-top: 1.5px dashed rgba(243,241,234,.55); }
.tr-dt .band.stopz { fill: rgba(229,83,75,.13); }
.tr-dt .band.risco { fill: rgba(229,83,75,.12); }
.tr-dt .band.ganho { fill: rgba(47,191,113,.11); }
.tr-ov .hl.alvo { border-color: #2FBF71; transition: opacity .3s; }
.tr-ov .hl.alvo span { background: #2FBF71; color: #062313; font-weight: 500; }
.tr-ov .hl.alvo::before { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 5px rgba(47,191,113,.22); }
.tr-ov .hl.info { border-color: transparent; }
.tr-ov .hl.info span { background: rgba(47,191,113,.16); color: #7FE0A9; top: 16px; right: 56px; }
.tr-svgd .seg { stroke-width: 2.2; stroke-linecap: round; }
.tr-svgd .seg.tend { stroke: #F0CB64; stroke-dasharray: 7 5; opacity: .85; }
.tr-svgd .seg.tgt { stroke: #F0CB64; filter: drop-shadow(0 0 5px rgba(240,203,100,.6)); }

/* ficha de números e régua do tamanho da mão */
.tr-ficha { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.tr-ficha > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--panel); font-size: 14.5px; }
.tr-ficha span { color: var(--muted); }
.tr-ficha b { font-family: var(--mono); font-weight: 500; text-align: right; }
.tr-ficha b b { color: #F1D27A; }
.tr-slider { padding: 16px 14px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--gold-line); }
.tr-sl-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tr-sl-top span { font-size: 13px; color: var(--muted); }
.tr-sl-top b { font-family: var(--mono); font-size: 24px; font-weight: 500; color: #F1D27A; }
.tr-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; touch-action: none; }
.tr-slider input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--pct, 50%), rgba(255,255,255,.1) var(--pct, 50%)); }
.tr-slider input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); }
.tr-slider input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--gold); }
.tr-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #F0CB64; border: 4px solid #101317; box-shadow: 0 0 0 4px rgba(240,203,100,.3); }
.tr-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #F0CB64; border: 4px solid #101317; box-shadow: 0 0 0 4px rgba(240,203,100,.3); }
.tr-sl-out { margin: 8px 0 0; font-size: 14px; color: #C9C6BC; }
.tr-sl-out b { color: #F2908A; font-family: var(--mono); font-weight: 500; }
.tr-ov .dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 2px solid #101317; animation: trDot .45s cubic-bezier(.3,1.6,.5,1) both; }
.tr-ov .dot.teto { background: var(--gold); box-shadow: 0 0 0 3px rgba(212,166,44,.25); }
.tr-ov .dot.piso { background: #6FA8DC; box-shadow: 0 0 0 3px rgba(111,168,220,.25); }
@keyframes trDot { from { transform: scale(0); } }
.tr-ov .hl { left: 0; right: 0; height: 0; border-top: 1.5px solid; }
.tr-ov .hl span { position: absolute; right: 4px; top: 0; transform: translateY(-50%); padding: 2px 7px; border-radius: 5px; font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.tr-ov .hl.ent { border-top-style: dashed; border-color: rgba(243,241,234,.55); }
.tr-ov .hl.ent span { background: #2A2E35; color: var(--text); }
.tr-ov .hl.stop { border-color: #E5534B; transition: opacity .3s; }
.tr-ov .hl.stop span { background: #E5534B; color: #fff; font-weight: 500; }
.tr-ov .hl.tap { border-color: #F0CB64; transition: opacity .3s; }
.tr-ov .hl.tap span { background: #F0CB64; color: #1A1405; font-weight: 500; }
.tr-ov .hl.stop::before, .tr-ov .hl.tap::before { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: inherit; }
.tr-ov .hl.stop::before { background: #E5534B; box-shadow: 0 0 0 5px rgba(229,83,75,.22); }
.tr-ov .hl.tap::before { background: #F0CB64; box-shadow: 0 0 0 5px rgba(240,203,100,.22); }
.tr-ov .sep { top: 0 !important; bottom: 0; width: 0; border-left: 1px dashed rgba(243,241,234,.28); animation: trNw .4s both; }
.tr-ov .sep span { position: absolute; top: 8px; left: 6px; white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.tr-ov .hd { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: auto; touch-action: none; cursor: grab;
  display: grid; place-items: center; transition: none; }
.tr-ov .hd::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #F0CB64; border: 3px solid #101317; box-shadow: 0 0 0 4px rgba(240,203,100,.3); }
.tr-ov .hd.drag::after { transform: scale(1.2); }
.tr-svgd .ul { stroke: #F0CB64; stroke-width: 2.2; stroke-linecap: round; }
.tr-svgd .ul.ok { stroke: #2FBF71; } .tr-svgd .ul.no { stroke: #E5534B; stroke-dasharray: 5 4; }

/* alternativas */
.tr-opts { display: flex; flex-direction: column; gap: 9px; }
.tr-op { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 12px; text-align: left;
  background: var(--panel); border: 1.5px solid var(--line); box-shadow: 0 3px 0 #08090B; font-size: 15px; line-height: 1.35;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .1s, opacity .25s; }
.tr-op:active { transform: translateY(2px); box-shadow: 0 1px 0 #08090B; }
.tr-op-k { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); }
.tr-op.sel { border-color: var(--gold); background: linear-gradient(0deg, var(--gold-wash), var(--gold-wash)), var(--panel); }
.tr-op.sel .tr-op-k { border-color: var(--gold); color: var(--gold); }
.tr-op.ok { border-color: #2FBF71; background: rgba(47,191,113,.1); }
.tr-op.ok .tr-op-k { border-color: #2FBF71; color: #2FBF71; }
.tr-op.no { border-color: #E5534B; background: rgba(229,83,75,.09); }
.tr-op.no .tr-op-k { border-color: #E5534B; color: #E5534B; }
.tr-op.meia { border-color: #E0913C; background: rgba(224,145,60,.09); }
.tr-op.dim { opacity: .42; }
.tr-opts.lock .tr-op { pointer-events: none; }
.tr-opts.vf, .tr-opts.dec { flex-direction: row; }
.tr-opts.vf .tr-op, .tr-opts.dec .tr-op { flex: 1; flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 64px; font-weight: 500; }
.tr-opts.vf .tr-op-k { display: none; }
.tr-opts.dec .tr-op { min-height: 84px; }
.tr-opts.dec .tr-op svg { width: 26px; height: 26px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tr-opts.dec .buy svg { stroke: #2FBF71; } .tr-opts.dec .sell svg { stroke: #E5534B; } .tr-opts.dec .wait svg { stroke: var(--muted); }

/* resumo */
.tr-cards { display: grid; gap: 10px; }
.tr-card { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tr-card-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.tr-card-ic svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-card-ic.teto svg { stroke: var(--gold); } .tr-card-ic.piso svg { stroke: #6FA8DC; } .tr-card-ic.meio svg { stroke: var(--muted); } .tr-card-ic.stop svg { stroke: #E5534B; }
.tr-card-ic.compra svg, .tr-card-ic.alta svg { stroke: #2FBF71; } .tr-card-ic.venda svg, .tr-card-ic.baixa svg { stroke: #E5534B; }
.tr-card-ic.regua svg, .tr-card-ic.alvo svg, .tr-card-ic.moeda svg, .tr-card-ic.balanca svg, .tr-card-ic.vela svg { stroke: var(--gold); }
.tr-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.tr-card p { margin: 0; font-size: 14px; line-height: 1.5; color: #C9C6BC; }
.tr-card p b { display: inline; font-size: inherit; color: var(--text); margin: 0; }

/* botão principal */
.tr-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--bg); }
.tr-cta { width: 100%; height: 54px; border-radius: 14px; font-weight: 600; font-size: 16px; letter-spacing: .01em; color: #1A1405;
  background: linear-gradient(180deg, #F0CB64, var(--gold)); box-shadow: 0 4px 0 #8A6716; transition: transform .1s, box-shadow .1s, filter .2s, opacity .2s; }
.tr-cta:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #8A6716; }
.tr-cta:disabled { background: #22262C; color: #5E6168; box-shadow: 0 4px 0 #15181C; cursor: default; }

/* resposta (sobe de baixo) */
.tr-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 18px 18px calc(14px + env(safe-area-inset-bottom));
  border-top-left-radius: 20px; border-top-right-radius: 20px; transform: translateY(105%); transition: transform .42s cubic-bezier(.2,.9,.25,1);
  background: #15211A; border-top: 1px solid #2B5A3E; box-shadow: 0 -18px 40px rgba(0,0,0,.45); }
.tr-sheet.on { transform: none; }
.tr-sheet.meia { background: #241C12; border-color: #6A4A20; }
.tr-sheet.no { background: #261616; border-color: #6B2A27; }
.tr-sh-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tr-sh-h b { font-size: 19px; font-weight: 600; color: #7FE0A9; }
.tr-sheet.meia .tr-sh-h b { color: #F0B36A; } .tr-sheet.no .tr-sh-h b { color: #F2908A; }
.tr-sh-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2FBF71; }
.tr-sheet.meia .tr-sh-ic { background: #E0913C; } .tr-sheet.no .tr-sh-ic { background: #E5534B; }
.tr-sh-ic svg { width: 18px; height: 18px; fill: none; stroke: #0B0D10; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tr-sh-xp { margin-left: auto; font-family: var(--mono); font-size: 13px; color: #F1D27A; background: rgba(212,166,44,.14); border-radius: 999px; padding: 4px 10px; }
.tr-sh-xp:empty { display: none; }
.tr-sh-p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #E3E8E4; max-height: 34vh; overflow-y: auto; }
.tr-sheet.meia .tr-sh-p { color: #EDE3D6; } .tr-sheet.no .tr-sh-p { color: #EDDCDB; }
.tr-sh-p b { color: #fff; }
.tr-sh-p .dep { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.tr-sheet .tr-cta { background: linear-gradient(180deg, #43D186, #2FBF71); box-shadow: 0 4px 0 #1C7445; color: #062313; }
.tr-sheet.meia .tr-cta { background: linear-gradient(180deg, #F0AE5E, #E0913C); box-shadow: 0 4px 0 #8C5418; color: #2A1704; }
.tr-sheet.no .tr-cta { background: linear-gradient(180deg, #F0746D, #E5534B); box-shadow: 0 4px 0 #8C2C27; color: #2B0806; }

/* fim da lição */
.tr-fim { justify-content: center; }
.tr-fim-in { padding: calc(28px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.tr-trofeu { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, rgba(240,203,100,.35), rgba(212,166,44,.08) 65%); border: 1px solid var(--gold-line); animation: trPop .7s cubic-bezier(.3,1.6,.5,1) both; }
.tr-trofeu svg { width: 62px; height: 62px; fill: none; stroke: #F0CB64; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tr-trofeu i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); opacity: 0; animation: trBurst 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes trBurst { 0% { opacity: 1; transform: translate(-50%,-50%) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(220deg); } }
.tr-fim h1 { font-family: var(--display); font-weight: 500; font-size: 32px; margin: 0; }
.tr-tiles { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.tr-tile { padding: 14px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); animation: trIn .45s cubic-bezier(.2,.8,.2,1) both; }
.tr-tile:nth-child(2) { animation-delay: .08s; } .tr-tile:nth-child(3) { animation-delay: .16s; } .tr-tile:nth-child(4) { animation-delay: .24s; }
.tr-tile small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tr-tile b { font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--text); }
.tr-tile:first-child b { color: #F1D27A; }
.tr-mentor { width: 100%; display: flex; gap: 12px; text-align: left; padding: 14px; border-radius: 14px; background: rgba(91,146,201,.08); border: 1px solid rgba(91,146,201,.28); animation: trIn .45s .32s cubic-bezier(.2,.8,.2,1) both; }
.tr-mentor-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(91,146,201,.18); }
.tr-mentor-ic svg { width: 20px; height: 20px; fill: none; stroke: #A9CDEE; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-mentor small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #A9CDEE; }
.tr-mentor p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: #D6DDE5; }
.tr-mentor p b { color: #fff; }
.tr-fim .tr-cta { margin-top: 6px; }

/* janela de início / confirmação */
.tr-pop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(5,6,8,.62); animation: trFade .2s both; }
@keyframes trFade { from { opacity: 0; } }
.tr-pop-in { width: 100%; max-width: 520px; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--panel); border: 1px solid var(--gold-line); border-bottom: 0; animation: trUp .35s cubic-bezier(.2,.9,.25,1) both; }
@keyframes trUp { from { transform: translateY(100%); } }
.tr-pop h2 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 6px 0 6px; }
.tr-pop-d { margin: 0 0 16px; color: #C9C6BC; font-size: 14.5px; line-height: 1.5; }
.tr-pop-d b { color: var(--text); }
.tr-pop-row { display: flex; gap: 10px; }
.tr-pop-row .tr-cta { flex: 1; }
.tr-ghost { flex: 1; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); color: var(--text); font-weight: 500; }

.tr-toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; max-width: 90vw;
  padding: 10px 16px; border-radius: 12px; background: #23272E; border: 1px solid var(--line); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: trIn .3s both; }

/* em breve (quem não é o admin) */
.tr-breve { min-height: 100dvh; max-width: 460px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.tr-breve img { border-radius: 14px; }
.tr-breve h1 { font-family: var(--display); font-weight: 500; font-size: 30px; margin: 0; line-height: 1.2; }
.tr-breve p { margin: 0; color: #C9C6BC; line-height: 1.6; }
.tr-breve-tag { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 14px; }
.tr-breve-link { margin-top: 18px; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Desafio do dia: aviso de "novo" na barra de baixo */
.tr-nav a.pronto { color: #E9D9A6; }
.tr-nav a.pronto em { color: var(--gold); }
.tr-nav a.pronto svg { stroke: var(--gold); }

/* conquistas: quadro de honra e selos */
.tr-hh { font-family: var(--display); font-weight: 500; font-size: 19px; }
.tr-ttl em { color: var(--gold); font-style: italic; }
.tr-rank { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
.tr-rank li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.tr-rank .pos { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--panel-2); color: var(--muted); flex: none; }
.tr-rank .nm { flex: 1; font-size: 14.5px; }
.tr-rank .nm em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-left: 6px; }
.tr-rank b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: #F1D27A; }
.tr-rank li.p1 .pos { background: linear-gradient(160deg, #F0CB64, #A67C1D); color: #1A1405; }
.tr-rank li.p2 .pos { background: linear-gradient(160deg, #E4E2DC, #8E8B82); color: #15161A; }
.tr-rank li.p3 .pos { background: linear-gradient(160deg, #E0A56B, #8C5418); color: #1E1206; }
.tr-rank li.eu { border-color: var(--gold-line); background: linear-gradient(0deg, var(--gold-wash), var(--gold-wash)), var(--panel); }
.tr-rank li.vazio { color: var(--muted); font-size: 14px; }
.tr-eu { margin: 2px 0 0; font-size: 14px; color: #C9C6BC; line-height: 1.5; }
.tr-eu b { color: var(--text); }
.tr-lnk { color: var(--gold); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.tr-selos { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tr-selo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); opacity: .5; }
.tr-selo svg { width: 34px; height: 34px; fill: none; stroke: var(--muted-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.tr-selo b { font-size: 13.5px; } .tr-selo small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.tr-selo.ok { opacity: 1; border-color: var(--gold-line); background: linear-gradient(160deg, rgba(212,166,44,.12), rgba(212,166,44,.03)), var(--panel); }
.tr-selo.ok svg { stroke: #F0CB64; filter: drop-shadow(0 0 8px rgba(240,203,100,.45)); }
.tr-novoselo { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gold-line);
  background: linear-gradient(160deg, rgba(212,166,44,.18), rgba(212,166,44,.04)); animation: trPop .6s cubic-bezier(.3,1.6,.5,1) both; }
.tr-novoselo svg { width: 34px; height: 34px; flex: none; fill: none; stroke: #F0CB64; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-novoselo small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tr-novoselo b { font-size: 15px; }
.tr-nav { grid-template-columns: repeat(4, 1fr) !important; }

.tr-fimrow { width: 100%; display: flex; gap: 10px; margin-top: 6px; }
.tr-fimrow .tr-cta { flex: 1.4; margin: 0; }
.tr-fimrow .tr-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tr-fimrow .tr-ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* seção 2: volume, médias e RSI */
.tr-svgd .vb { opacity: .5; } .tr-svgd .vb.up { fill: #2FBF71; } .tr-svgd .vb.dn { fill: #E5534B; }
.tr-svgd .vb.ult { opacity: 1; stroke: #F0CB64; stroke-width: 1; }
.tr-svgd .ma { fill: none; stroke-width: 1.8; stroke-linejoin: round; } .tr-svgd .ma21 { stroke: #E0913C; } .tr-svgd .ma9 { stroke: #5B92C9; }
.tr-svgd .rsibg { fill: rgba(255,255,255,.02); stroke: rgba(255,255,255,.06); }
.tr-svgd .rsiz { fill: rgba(155,120,220,.08); }
.tr-svgd .rsil { stroke: rgba(255,255,255,.18); stroke-dasharray: 3 3; }
.tr-svgd .rsit { font-family: var(--mono); font-size: 9.5px; fill: var(--chart-ticks); } .tr-svgd .rsit.nm { fill: #C7B6EE; font-size: 10px; }
.tr-svgd .rsiv { fill: none; stroke: #B79CF0; stroke-width: 1.6; stroke-linejoin: round; }

/* popup de compartilhar (prévia do card) */
body.sem-rolar { overflow: hidden; }
.tr-share { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,5,7,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: trFade .2s both; }
.tr-share-in { width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px; background: #111418; border: 1px solid var(--gold-line); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: trUp .32s cubic-bezier(.2,.9,.25,1) both; }
.tr-share-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.tr-share-h b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.tr-share-prev { position: relative; border-radius: 16px; overflow: hidden; background: #0B0D10; aspect-ratio: 1080 / 1350; border: 1px solid var(--line); }
.tr-share-prev img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.tr-share-prev img.carregando { opacity: .35; }
.tr-share-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.tr-share-temas { display: flex; gap: 8px; margin: 12px 0; }
.tr-share-temas button { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13.5px; }
.tr-share-temas button.on { border-color: var(--gold); color: #F1D27A; background: var(--gold-wash); }
.tr-share-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-share-acts .tr-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tr-share-acts .tr-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; }
.tr-share-acts .tr-ghost[hidden] + .tr-ghost { grid-column: 1 / -1; }
.tr-share-acts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-height: 760px) { .tr-share-prev { max-height: 52vh; aspect-ratio: auto; height: 52vh; } .tr-share-prev img { object-fit: contain; } }

/* aula em vídeo dentro da lição (24/11/2026) */
.tr-video { margin: 4px 0 16px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(212,166,44,.32); background: #07080B;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9), 0 0 40px rgba(212,166,44,.08); aspect-ratio: 1 / 1; max-width: 440px; margin-left: auto; margin-right: auto; }
.tr-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #07080B; }

/* ===================== computador (24/11/2026): mapa de expedição =====================
   Tudo abaixo só vale a partir de 1100px; o celular (até 860px) e o meio-termo seguem como antes.
   Fora do computador, os blocos novos ficam escondidos e os embrulhos do fim da lição não mudam nada. */
.dk, .tr-palco, .tr-atalhos { display: none; }
.tr-fim-hero, .tr-fim-info { display: contents; }

/* fim da parte grátis (aberta pelo computador; o layout também cabe numa tela estreita) */
.tr-gratis { position: relative; min-height: 100dvh; align-items: center; justify-content: center; overflow: hidden; }
.gr-ceu { position: fixed; inset: 0; z-index: 0; opacity: .9; pointer-events: none; }
.gr-ceu svg { width: 100%; height: 100%; display: block; }
.gr-ceu .tw { animation: trTw 3.6s ease-in-out infinite; }
.gr-ceu > svg circle:nth-last-child(-n+4) { display: none; }   /* sem a lua do céu do celular: aqui ela ficava cortada atrás do mapa */
.gr-in { position: relative; z-index: 1; width: 100%; max-width: 980px; padding: 56px 32px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.gr-in > * { animation: trIn .55s cubic-bezier(.2,.8,.2,1) both; }
.gr-in > :nth-child(2) { animation-delay: .06s; } .gr-in > :nth-child(3) { animation-delay: .12s; } .gr-in > :nth-child(4) { animation-delay: .2s; }
.gr-in > :nth-child(5) { animation-delay: .3s; } .gr-in > :nth-child(6) { animation-delay: .38s; }
.gr-in h1 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 48px); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
.gr-in h1 em { color: var(--gold); font-style: italic; font-weight: 400; }
.gr-d { max-width: 660px; margin: 0; font-size: 16.5px; line-height: 1.6; color: #D6D3C9; }
.gr-d b { color: var(--text); }
.gr-mapa { width: 100%; margin: 12px 0 4px; padding: 20px 18px 8px; border-radius: 22px; background: rgba(12,14,18,.72); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gr-mapa svg { width: 100%; height: auto; display: block; }
.gr-mapa .pn-t { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; fill: #A9A69C; }
.gr-mapa .pn-aq { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; fill: #F0CB64; }
.gr-mapa .pn-aqui circle { transform-box: fill-box; transform-origin: center; animation: grAqui 1.8s ease-out infinite; }
@keyframes grAqui { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.gr-lista { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.gr-lista li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(20,23,27,.78); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: #C9C6BC; }
.gr-lista li b { color: var(--text); }
.gr-lista svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gr-lista svg[viewBox="0 0 16 16"] { fill: var(--gold); stroke: none; }
.gr-acts { width: 100%; max-width: 580px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.gr-acts .tr-cta { flex: 1.4; min-width: 250px; display: grid; place-items: center; text-decoration: none; }
.gr-acts .tr-ghost { flex: 1; min-width: 200px; display: grid; place-items: center; text-decoration: none; }
.gr-nota { width: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.gr-volta { margin-top: 4px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.gr-volta:hover { color: var(--text); }
@media (max-width: 760px) { .gr-lista { grid-template-columns: 1fr; } .gr-in { padding: 40px 18px 28px; } }

@media (min-width: 1100px) {
  body { background: #05070A; }
  .tr-app { max-width: none; border: 0 !important; background: none !important; }
  .tr-ghost:hover { border-color: var(--gold-line); }
  .tr-cta:hover:not(:disabled) { filter: brightness(1.07); }

  /* ---- trilha: palco fixo, painéis de vidro por cima ---- */
  .tr-trilha { height: 100dvh; min-height: 0; overflow: hidden; }
  .tr-ceu, .tr-mapa, .tr-secpill { display: none !important; }
  .tr-trilha > .dk { display: block; position: fixed; inset: 0; z-index: 1; }
  .tr-top { position: fixed !important; left: 0; right: 0; top: 0; z-index: 12 !important; padding: 14px 28px; background: linear-gradient(rgba(4,6,9,.82), rgba(4,6,9,0)); pointer-events: none; }
  .tr-top > * { pointer-events: auto; }
  .tr-top .tr-chip-st, .tr-top .tr-chip-xp { display: none; }
  .tr-trilha .tr-nav, .lbp-nav .tr-nav { position: fixed !important; top: 14px; right: 76px; bottom: auto; left: auto; z-index: 13 !important; display: flex !important; gap: 2px; padding: 4px;
    max-width: none; border-radius: 14px; border: 1px solid var(--line); background: rgba(12,14,18,.9); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tr-trilha .tr-nav a, .lbp-nav .tr-nav a { flex-direction: row; gap: 8px; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
  .tr-trilha .tr-nav a:hover, .lbp-nav .tr-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
  .tr-trilha .tr-nav a svg, .lbp-nav .tr-nav a svg { width: 18px; height: 18px; }
  .tr-trilha .tr-nav a em { padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.06); }
  .tr-trilha .tr-nav a.pronto em { background: var(--gold); color: #1A1405; }
  .tr-trilha > .tr-fine { position: fixed; left: 28px; bottom: 12px; width: 300px; margin: 0; z-index: 3; text-align: left; font-size: 11px; }

  .dk-palco { position: absolute; inset: 0; overflow: hidden; background: #05070A; }
  /* voo da câmera: só transform e opacidade (a placa de vídeo faz sozinha). O escurecer é um véu por cima,
     nunca filter na cena inteira (filtro numa tela cheia pesa demais em computador fraco) */
  .dk-cam { position: absolute; inset: 0; transform-origin: 50% 55%; will-change: transform; }
  .dk-cam.voo { animation: dkVoo 1.1s cubic-bezier(.65,0,.35,1); }
  @keyframes dkVoo { 50% { transform: scale(.88); } }
  .dk-veu { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
  .dk-veu.voo { animation: dkVeu 1.1s cubic-bezier(.65,0,.35,1); }
  @keyframes dkVeu { 50% { opacity: .3; } }
  .dk-world { position: absolute; left: 0; right: 0; top: 0; transition: transform 1.1s cubic-bezier(.65,0,.35,1); will-change: transform; }
  .dk-world.na { transition: none; }
  /* cada montanha é um "andar" do mundo; só o que está na tela é pintado. Cada camada é um SVG próprio, assim a
     paralaxe, a aurora e a neve só deslocam camadas prontas (placa de vídeo), sem redesenhar a cena */
  .dk-andar { position: absolute; left: 0; right: 0; height: 100vh; overflow: hidden; visibility: hidden; }
  .dk-andar.vis { visibility: visible; }
  .dk-cena { position: absolute; inset: 0; }
  .dk-cena .ly { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; display: block; }
  /* tudo que se mexe é uma camada inteira (transform/opacidade): nada dentro do SVG é animado, então a cena
     nunca é redesenhada. As camadas ficam prontas na placa de vídeo nas montanhas pintadas (.vis), e só a
     montanha da vez (.on) anima; as outras ficam paradas */
  .dk-cena .ly-peca { position: absolute; display: block; }
  .dk-cena .ly > svg, .dk-cena .ly-peca > svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .dk-andar.vis .par1, .dk-andar.vis .par2, .dk-andar.vis .par3, .dk-andar.vis .ly-aur, .dk-andar.vis .ly-tw,
  .dk-andar.vis .ly-flocos, .dk-andar.vis .ly-peca { will-change: transform, opacity; }
  .dk .dk-andar:not(.on) .ly, .dk .dk-andar:not(.on) .ly-peca { animation-play-state: paused !important; }
  .dk-cena .ly-tw { animation: dkTw 3.6s ease-in-out infinite; }
  .dk-cena .ly-tw.tw1 { animation-delay: -1.2s; } .dk-cena .ly-tw.tw2 { animation-delay: -2.4s; animation-duration: 4.4s; }
  @keyframes dkTw { 50% { opacity: .15; } }
  .dk-cena .ly-aur { animation: dkAur 16s ease-in-out infinite alternate; }
  .dk-cena .ly-aur.aur1 { animation-duration: 21s; animation-direction: alternate-reverse; }
  .dk-cena .ly-aur.aur2 { animation-duration: 12s; }
  @keyframes dkAur { from { transform: translate3d(-50px, 0, 0); opacity: .6; } to { transform: translate3d(50px, -8px, 0); opacity: 1; } }
  .dk-cena .ly-flocos { animation: dkNeve 16s linear infinite; }
  .dk-cena .ly-flocos.fl1 { animation-duration: 27s; }
  @keyframes dkNeve { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 50%, 0); } }
  .dk-cena .pc-fogo { transform-origin: 50% 100%; animation: trFlick .16s ease-in-out infinite alternate; }
  .dk-cena .pc-brilho { animation: trGlowF 2.4s ease-in-out infinite; }
  .dk-cena .pc-flag { transform-origin: 0 50%; }
  .dk-cena .pc-flag.on { animation: trFlag 1.6s ease-in-out infinite; }
  .dk-cena .feito { filter: none; }
  .dk-cena .tg { font-size: 11px; }
  .dk-cena .tg.dim { fill: rgba(169,166,156,.55); }

  .dk-nos { position: absolute; inset: 0; }
  .dk .tr-step { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .dk .tr-node { width: 58px; height: 58px; cursor: pointer; transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; }
  .dk .tr-node:hover { transform: translateY(-2px) scale(1.07); }
  .dk .tr-step.cur .tr-node:hover { box-shadow: 0 5px 0 #6E5212, 0 0 60px rgba(212,166,44,.6); }
  .dk .tr-step.lock .tr-node, .dk .tr-step.breve .tr-node { cursor: default; }
  .dk .tr-step-t { font-size: 14.5px; max-width: 200px; }
  .dk .tr-step-t.dir { left: 74px; } .dk .tr-step-t.esq { right: 74px; }
  .dk .tr-step.chega .tr-node { animation: dkChega .7s 1.75s cubic-bezier(.3,1.6,.5,1) both; }
  .dk .tr-step.chega .tr-step-t { animation: trNw .5s 1.9s both; }
  @keyframes dkChega { from { transform: scale(.35); } }

  /* título da seção, no canto de cima da zona livre */
  .dk-sec { position: absolute; top: 88px; z-index: 4; max-width: 400px; }
  .dk-sec.in > * { animation: trIn .7s cubic-bezier(.2,.8,.2,1) both; }
  .dk-sec.in > :nth-child(2) { animation-delay: .06s; } .dk-sec.in > :nth-child(3) { animation-delay: .12s; } .dk-sec.in > :nth-child(4) { animation-delay: .18s; } .dk-sec.in > :nth-child(5) { animation-delay: .24s; }
  .dk-sec h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 2.9vw, 48px); line-height: 1.04; letter-spacing: -.015em; margin: 8px 0 10px; text-shadow: 0 2px 24px rgba(0,0,0,.7); }
  .dk-sec-d { margin: 0 0 14px; max-width: 340px; font-size: 14.5px; line-height: 1.55; color: #C9C6BC; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
  .dk-sec-bar { display: flex; align-items: center; gap: 10px; }
  .dk-sec-bar i { width: 170px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
  .dk-sec-bar u { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), #F0CB64); border-radius: 3px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
  .dk-sec-bar em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
  .dk-sec-vai { position: absolute; bottom: 26px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  .dk-sec-vai button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px 0 10px; border-radius: 999px; font-size: 13px; color: #DDD9CE;
    background: rgba(14,16,20,.85); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
  .dk-sec-vai button:hover { border-color: var(--gold-line); color: #F1D27A; }
  .dk-sec-vai .breve { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
  .dk-sec-vai svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  @media (max-height: 820px) { .dk-sec-d { display: none; } .dk-sec h2 { margin-bottom: 12px; } }
  @media (max-height: 800px) {
    .dk .tr-step, .dk .tr-node { width: 50px; height: 50px; } .dk .tr-step { margin: -25px 0 0 -25px; }
    .dk .tr-node svg { width: 22px; height: 22px; } .dk .tr-step-t.dir { left: 64px; } .dk .tr-step-t.esq { right: 64px; } .dk .tr-step-t { font-size: 13.5px; }
  }
  .dk-esq, .dk-dir { -webkit-mask: linear-gradient(#000 calc(100% - 26px), transparent); mask: linear-gradient(#000 calc(100% - 26px), transparent); }
  /* painéis */
  .dk-esq, .dk-dir { position: absolute; top: 80px; bottom: 40px; z-index: 5; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scrollbar-width: none; padding-bottom: 4px; }
  .dk-esq::-webkit-scrollbar, .dk-dir::-webkit-scrollbar { display: none; }
  .dk-esq { left: 28px; width: 290px; } .dk-dir { right: 28px; width: 330px; }
  @media (max-width: 1365px) { .dk-esq { left: 22px; width: 264px; } .dk-dir { right: 22px; width: 300px; } .tr-trilha > .tr-fine { left: 22px; width: 264px; } }
  .dk-card { flex: none; padding: 18px; border-radius: 20px; background: rgba(12,14,18,.88); border: 1px solid rgba(255,255,255,.075);
    box-shadow: 0 22px 50px -22px rgba(0,0,0,.8); animation: trIn .5s cubic-bezier(.2,.8,.2,1) both; }
  .dk-card:nth-child(2) { animation-delay: .06s; } .dk-card:nth-child(3) { animation-delay: .12s; }
  .dk-card .tr-kick { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
  .dk-card .tr-kick svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dk-card .tr-kick em { margin-left: auto; font-style: normal; font-size: 9.5px; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: #1A1405; }
  .dk-card .tr-kick em.ok { background: rgba(47,191,113,.16); color: #7FE0A9; }
  .dk-card h3 { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.22; margin: 0 0 6px; }
  .dk-card h3 b { color: #F1D27A; font-weight: 500; }
  .dk-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #B9B6AC; }
  .dk-card p b { color: var(--text); }
  .dk-card .tr-cta, .dk-card .tr-ghost { width: 100%; height: 46px; margin-top: 14px; font-size: 15px; display: grid; place-items: center; text-decoration: none; flex: none; }

  .dk-xp { display: flex; align-items: baseline; gap: 8px; }
  .dk-xp svg { width: 22px; height: 22px; fill: var(--gold); align-self: center; }
  .dk-xp b { font-family: var(--mono); font-weight: 500; font-size: 36px; line-height: 1; color: #F1D27A; letter-spacing: -.02em; }
  .dk-xp small { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
  .dk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .dk-stats > div { padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); }
  .dk-stats svg { width: 16px; height: 16px; fill: #E0913C; display: inline-block; vertical-align: -2px; margin-right: 3px; }
  .dk-stats .off svg { fill: var(--muted-2); }
  .dk-stats b { font-family: var(--mono); font-weight: 500; font-size: 20px; }
  .dk-stats b i { font-style: normal; font-size: 13px; color: var(--muted); }
  .dk-stats small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
  .dk-selos { margin-top: 14px; }
  .dk-selos-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .dk-selos-h small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .dk-selos-h button { font-size: 12.5px; color: var(--gold); }
  .dk-selos-h button:hover { text-decoration: underline; text-underline-offset: 3px; }
  .dk-selos-l { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .dk-selos-l span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
  .dk-selos-l svg { width: 22px; height: 22px; fill: none; stroke: #45474D; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dk-selos-l .ok { border-color: var(--gold-line); background: linear-gradient(160deg, rgba(212,166,44,.16), rgba(212,166,44,.03)); }
  .dk-selos-l .ok svg { stroke: #F0CB64; filter: drop-shadow(0 0 6px rgba(240,203,100,.4)); }
  .dk-anon { margin-top: 14px; }
  .dk-anon p { font-size: 13px; }

  .dk-desafio.novo { border-color: var(--gold-line); background: linear-gradient(160deg, rgba(212,166,44,.17), rgba(212,166,44,.03) 62%), rgba(12,14,18,.9);
    box-shadow: 0 22px 50px -22px rgba(0,0,0,.8), 0 0 44px -12px rgba(212,166,44,.3); }
  .dk-desafio .tr-kick { color: var(--gold); }
  .dk-vez { border-color: rgba(212,166,44,.3); }
  .dk-vez-k { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
  .dk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .dk-chips span { font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); color: #C9C6BC; }
  .dk-chips .xp { color: #F1D27A; border-color: var(--gold-line); background: var(--gold-wash); }
  .dk-card .dk-nota { margin-top: 10px; font-size: 13px; }
  .dk-nota a { color: var(--gold); }
  .dk-meta-in { display: flex; gap: 12px; align-items: flex-start; }
  .dk-meta-in > svg { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 12px; fill: none; stroke: #F0CB64; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    background: var(--gold-wash); border: 1px solid var(--gold-line); }
  .dk-meta-in > div > b { display: block; margin-bottom: 2px; font-size: 15px; }
  .dk-meta-in p b { color: #F1D27A; font-weight: 600; }
  .dk-meta-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
  .dk-meta-bar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
  .dk-meta-bar u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), #F0CB64); }
  .dk-meta-bar em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }

  .dk-ex-l { display: flex; flex-direction: column; gap: 6px; }
  .dk-ex { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; border: 1px solid transparent; background: rgba(255,255,255,.025); transition: background .2s, border-color .2s; }
  .dk-ex:hover { background: rgba(255,255,255,.055); }
  .dk-ex.on { border-color: var(--gold-line); background: var(--gold-wash); }
  .dk-ex-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.06); }
  .dk-ex-ic svg { width: 19px; height: 19px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dk-ex.t1 .dk-ex-ic { background: linear-gradient(160deg, #33261A, #121418); } .dk-ex.t1 .dk-ex-ic svg { stroke: #E0A85C; }
  .dk-ex.t2 .dk-ex-ic { background: linear-gradient(160deg, #1C2E46, #0E141C); } .dk-ex.t2 .dk-ex-ic svg { stroke: #9CC3EC; }
  .dk-ex.t3 .dk-ex-ic { background: linear-gradient(160deg, #163B36, #1E1A34); } .dk-ex.t3 .dk-ex-ic svg { stroke: #8FE6CB; }
  .dk-ex.t9 .dk-ex-ic { background: #1A1B1F; } .dk-ex.t9 .dk-ex-ic svg { stroke: var(--muted); }
  .dk-ex-t { flex: 1; min-width: 0; }
  .dk-ex-t small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .dk-ex-t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0 6px; }
  .dk-ex-t i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
  .dk-ex-t u { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
  .dk-ex > em { flex: none; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .dk-ex > em svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .dk-ex > em.ok { color: #F0CB64; } .dk-ex > em.lk { color: #C9A24A; }

  .dk-prev { position: fixed; z-index: 20; width: 264px; padding: 14px 16px; border-radius: 16px; pointer-events: none;
    background: rgba(16,18,23,.95); border: 1px solid var(--line); box-shadow: 0 22px 44px rgba(0,0,0,.6); animation: dkPrev .18s ease-out both; }
  @keyframes dkPrev { from { opacity: 0; transform: translateY(6px); } }
  .dk-prev small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
  .dk-prev b { display: block; margin: 4px 0 2px; font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.25; }
  .dk-prev p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
  .dk-prev-st { display: block; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.45; color: #D6D3C9; }
  .dk-prev-st b { display: inline; margin: 0; font-family: var(--body); font-size: inherit; font-weight: 600; }
  .dk-prev em { display: block; margin-top: 7px; font-style: normal; font-size: 12px; color: #F0CB64; }
  .dk-prev.done { border-color: rgba(63,166,107,.5); } .dk-prev.cur { border-color: var(--gold-line); }

  /* janelas no meio da tela */
  .tr-pop { align-items: center; }
  .tr-pop-in { max-width: 460px; padding: 26px 26px 22px; border-radius: 22px; border-bottom: 1px solid var(--gold-line); animation: dkPop .26s cubic-bezier(.2,.9,.25,1) both; }
  @keyframes dkPop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
  .tr-toast { bottom: 36px; }

  /* ---- lição: gráfico grande à esquerda, pergunta e resultado à direita ---- */
  .tr-licao { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 30vw, 460px); grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 32px; max-width: 1640px; margin: 0 auto; padding: 0 32px; }
  .tr-licao > .tr-lhead { grid-column: 1 / -1; padding: 18px 0 14px; }
  .tr-licao .tr-prog { height: 14px; border-radius: 7px; }
  .tr-palco { display: flex; flex-direction: column; gap: 10px; grid-column: 1; grid-row: 2 / 4; min-height: 0; padding-bottom: 28px; }
  .tr-palco .tr-chart { flex: 1; height: auto !important; min-height: 320px; border-radius: 18px; }
  .tr-palco .tr-chart.act::after { border-radius: 18px; }
  .tr-palco .tr-meta { margin: 0; padding-left: 4px; }
  .tr-palco.in > * { animation: trIn .45s cubic-bezier(.2,.8,.2,1) both; }
  .tr-licao .tr-body { grid-column: 2; grid-row: 2; padding: 6px 4px 18px 2px; gap: 14px; }
  .tr-licao .tr-foot { grid-column: 2; grid-row: 3; padding: 10px 0 26px; border-top: 0; background: none; }
  .tr-licao .tr-qt { font-size: 21px; }
  .tr-licao .tr-ttl { font-size: 28px; }
  .tr-licao .tr-op { min-height: 56px; }
  .tr-licao .tr-op:hover:not(.ok):not(.no):not(.meia) { border-color: rgba(212,166,44,.55); }
  .tr-atalhos { display: block; margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--muted-2); }
  .tr-atalhos kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
  .tr-licao.solo { grid-template-columns: minmax(0, 780px); justify-content: center; }
  .tr-licao.solo .tr-palco { display: none; }
  .tr-licao.solo > .tr-lhead, .tr-licao.solo .tr-body, .tr-licao.solo .tr-foot { grid-column: 1; }
  .tr-licao.solo .tr-video { max-width: 560px; }
  .tr-licao .tr-sheet { left: auto; right: 32px; bottom: 26px; width: clamp(380px, 30vw, 460px); padding: 20px; border-radius: 20px; border: 1px solid #2B5A3E;
    transform: translateX(34px); opacity: 0; visibility: hidden; box-shadow: 0 26px 60px rgba(0,0,0,.6);
    transition: transform .4s cubic-bezier(.2,.9,.25,1), opacity .25s, visibility 0s .4s; }
  .tr-licao .tr-sheet.on { transform: none; opacity: 1; visibility: visible; transition: transform .4s cubic-bezier(.2,.9,.25,1), opacity .25s; }
  .tr-licao .tr-sheet.meia { border-color: #6A4A20; } .tr-licao .tr-sheet.no { border-color: #6B2A27; }
  .tr-licao.solo .tr-sheet { left: 0; right: 0; margin: 0 auto; width: min(780px, calc(100% - 64px)); transform: translateY(24px); }
  .tr-licao.solo .tr-sheet.on { transform: none; }
  .tr-licao .tr-sh-p { max-height: 42vh; }

  /* ---- fim da lição: duas colunas, celebração maior ---- */
  .tr-fim { align-items: center; overflow: hidden; }
  .tr-fim-in { display: grid; grid-template-columns: minmax(300px, 420px) minmax(440px, 580px); column-gap: 64px; align-items: center; justify-content: center;
    width: 100%; max-width: 1160px; margin: 0 auto; padding: 48px 32px; text-align: left; }
  .tr-fim-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; position: relative; isolation: isolate; }
  .tr-fim-hero::before { content: ""; position: absolute; left: 50%; top: 84px; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; z-index: -1; pointer-events: none;
    background: conic-gradient(from 0deg, transparent 0 9%, rgba(240,203,100,.09) 11% 13%, transparent 15% 34%, rgba(240,203,100,.06) 36% 38%, transparent 40% 59%, rgba(240,203,100,.09) 61% 63%, transparent 65% 84%, rgba(240,203,100,.06) 86% 88%, transparent 90%);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%); animation: dkRaios 40s linear infinite; }
  @keyframes dkRaios { to { transform: rotate(360deg); } }
  .tr-fim-hero .tr-trofeu { width: 168px; height: 168px; }
  .tr-fim-hero .tr-trofeu svg { width: 92px; height: 92px; }
  .tr-fim-hero .tr-trofeu i { width: 9px; height: 9px; }
  .tr-fim h1 { font-size: 46px; line-height: 1.08; }
  .tr-fim h1 em { color: var(--gold); }
  .tr-fim-info { display: flex; flex-direction: column; gap: 14px; }
  .tr-fim .tr-tiles { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
  .tr-fim .tr-tile b { font-size: 22px; }
  .tr-fprox { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--gold-line);
    background: linear-gradient(160deg, rgba(212,166,44,.13), rgba(212,166,44,.02)); animation: trIn .5s .45s cubic-bezier(.2,.8,.2,1) both; }
  .tr-fprox-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
  .tr-fprox-in > svg { width: 42px; height: 42px; flex: none; padding: 9px; border-radius: 12px; fill: none; stroke: #F0CB64; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(0,0,0,.25); }
  .tr-fprox small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
  .tr-fprox b { display: block; margin: 3px 0; font-size: 16.5px; }
  .tr-fprox span { font-size: 12.5px; color: var(--muted); }
  .tr-fprox .tr-cta { width: auto; height: 48px; padding: 0 22px; flex: none; font-size: 15px; }
  .tr-fimrow .tr-fim-sec { background: none; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; font-weight: 500; }
  .tr-fimrow .tr-fim-sec:hover { border-color: var(--gold-line); filter: none; }

  /* ---- conquistas ---- */
  .tr-honra { max-width: 960px; margin: 0 auto; }
  .tr-honra > .tr-lhead { padding-top: 26px; }
  .tr-honra .tr-selos { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1100px) and (prefers-reduced-motion: reduce) { .dk-world, .dk-cam.voo, .dk-veu.voo { transition: none; animation: none; } }

/* ---------- idioma (25/11/2026, Bravos Training): PT | EN no topo, ?lang= troca e fica salvo (treino_i18n.py) ---------- */
.tr-lang { display: inline-flex; align-items: center; height: 32px; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(20,23,27,.82); border: 1px solid var(--line); flex: none; }
.tr-lang a { display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.tr-lang a:hover { color: var(--text); }
.tr-lang a.on { background: rgba(212,166,44,.18); color: #F1D27A; }
@media (max-width: 420px) {
  .tr-top { padding-left: 10px; padding-right: 10px; }
  .tr-chips { gap: 5px; }
  .tr-chips .tr-chip { padding: 0 8px; }
  .tr-chips .tr-chip-xp small { display: none; }
  .tr-lang a { min-width: 26px; padding: 0 4px; }
  .tr-brand small { display: none; }
}

/* ---------- fim da parte grátis em inglês: FREE x BRAVOS (treino.js gratisComparar) ---------- */
.gr-cmp .gr-mapa { padding: 6px 0; max-width: 760px; }
.gr-tab { display: flex; flex-direction: column; text-align: left; }
.gr-tr { display: grid; grid-template-columns: 1fr 76px 92px; align-items: center; gap: 0; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 14.5px; line-height: 1.45; color: #D6D3C9; }
.gr-tr:first-child { border-top: 0; }
.gr-tr b { color: var(--text); font-weight: 600; }
.gr-th { padding-top: 14px; padding-bottom: 10px; }
.gr-th b { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-align: center; color: var(--muted); font-weight: 500; }
.gr-th b.gr-br { color: #F1D27A; }
.gr-tr i { display: grid; place-items: center; height: 100%; }
.gr-tr i svg { width: 22px; height: 22px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gr-tr i.ok svg { stroke: var(--green, #2FBF71); }
.gr-tr i.no svg { stroke: var(--red, #E5534B); opacity: .85; width: 18px; height: 18px; }
.gr-tr .gr-br { background: rgba(212,166,44,.08); border-left: 1px solid rgba(212,166,44,.22); border-right: 1px solid rgba(212,166,44,.22); margin: -12px 0; padding: 12px 0; }
.gr-th .gr-br { margin: -14px 0 -10px; padding: 14px 0 10px; border-radius: 12px 12px 0 0; border-top: 1px solid rgba(212,166,44,.22); }
.gr-tr:last-child .gr-br { border-bottom: 1px solid rgba(212,166,44,.22); border-radius: 0 0 12px 12px; }
.gr-tr i.ok.gr-br svg { stroke: #F1D27A; }
.gr-falta > span { color: #B9B6AC; }
.gr-cmp .gr-lista { grid-template-columns: 1fr; max-width: 760px; }
.gr-cmp .gr-d { max-width: 700px; }
.gr-breve { cursor: default; opacity: .78; pointer-events: none; }
@media (max-width: 520px) {
  .gr-tr { grid-template-columns: 1fr 52px 72px; padding: 11px 12px; font-size: 13.5px; }
  .gr-th b { font-size: 10.5px; letter-spacing: .1em; }
}
