/* Treino Bravos: ilustrações animadas das perguntas (static/treino/ilustra.js, 24/11/2026) */
.tr-ilu { margin: 2px 0 14px; border-radius: 16px; background: radial-gradient(120% 120% at 50% 0%, #161A20 0%, #0E1014 70%); border: 1px solid #22262D; overflow: hidden; }
.tr-ilu svg.iu { display: block; width: 100%; height: auto; max-height: 190px; }
.tr-palco .tr-ilu { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.tr-palco .tr-ilu svg.iu { max-height: none; width: 92%; }

.iu * { transform-box: fill-box; }
.iu-t { fill: #D6D3C9; font-family: var(--sans, 'IBM Plex Sans', sans-serif); font-size: 13px; }
.iu-s { font-size: 11.5px; fill: #A9A6A0; }
.iu-xs { font-size: 10px; fill: #A9A6A0; letter-spacing: .04em; }
.iu-k { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 13px; fill: #F3F1EA; font-weight: 500; }
.iu-big { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 21px; fill: #F3F1EA; font-weight: 600; }
.iu-b { font-weight: 600; fill: #F3F1EA; font-family: var(--mono, 'IBM Plex Mono', monospace); }
.iu-op { font-size: 26px; fill: #D4A62C; font-weight: 500; }
.iu-r { fill: #F2908A; } .iu-g { fill: #7FE0A9; } .iu-gd { fill: #F2D27A; } .iu-bl { fill: #8FB0FF; }
.iu-lock { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 12px; font-weight: 700; fill: #14120A; letter-spacing: .12em; }

/* entrada: cada peça com o seu atraso (--d) */
.iu .iu-pop, .iu .iu-fade, .iu .iu-grow, .iu .iu-up, .iu text { opacity: 0; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.9,.3,1.2); transition-delay: var(--d, 0s); }
.iu .iu-pop { transform: scale(.4); }
.iu .iu-grow { transform: scaleX(0); }
.iu .iu-up { transform: scaleY(0); }
.iu text { transform: translateY(6px); }
.iu.on .iu-pop, .iu.on .iu-fade, .iu.on .iu-grow, .iu.on .iu-up, .iu.on text { opacity: 1; transform: none; }
.iu .iu-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1); transition-delay: var(--d, 0s); }
.iu.on .iu-draw { stroke-dashoffset: 0; }

/* o que só aparece depois da resposta */
.iu .iu-rev, .iu.on .iu-rev { opacity: 0; transform: scale(.6); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.9,.3,1.4); }
.iu.rev .iu-rev { opacity: 1; transform: none; }
.iu.rev [data-r="v"] { animation: iuPisca .7s ease 1; }
@keyframes iuPisca { 0% { opacity: .2; } 40% { opacity: 1; } 60% { opacity: .5; } 100% { opacity: 1; } }

/* movimentos que continuam */
.iu.on .iu-agulha { animation: iuAgulha 2.6s cubic-bezier(.4,0,.2,1) var(--d, 0s) both; }
@keyframes iuAgulha { 0% { transform: rotate(-80deg); } 55% { transform: rotate(62deg); } 75% { transform: rotate(48deg); } 100% { transform: rotate(56deg); } }
.iu-respira { transform-origin: center; animation: iuRespira 4s ease-in-out 3; }   /* 3 respirações e para: loop infinito redesenha o SVG a cada quadro */
.iu-respira.b { animation-delay: .3s; }
@keyframes iuRespira { 0%, 100% { transform: scale(.82); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.iu.on .iu-sino { animation: iuSino 1.2s ease var(--d, 0s) 2 both; }
@keyframes iuSino { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
.iu .iu-flag { opacity: 0; transform: scaleY(0); transition: opacity .4s, transform .7s cubic-bezier(.2,.9,.3,1.3); transition-delay: var(--d, 0s); }
.iu.on .iu-flag { opacity: 1; transform: none; }
.iu .iu-desce { opacity: 0; transition: transform 1.2s cubic-bezier(.4,0,.2,1), opacity .3s; transition-delay: var(--d, 0s); }
.iu.on .iu-desce { opacity: 1; transform: translateY(56px); }

@media (prefers-reduced-motion: reduce) {
  .iu *, .iu.on * { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
  .iu .iu-rev { opacity: 0 !important; } .iu.rev .iu-rev { opacity: 1 !important; }
}

/* prender no app (24/11/2026): sequência de acertos, XP voando, baú no fim da montanha, meta do dia */
.tr-combo { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 12px; font-weight: 600; color: #14120A; background: linear-gradient(180deg, #FBE7A6, #E2B84A); box-shadow: 0 0 18px rgba(240,203,100,.45); }
.tr-combo svg { width: 13px; height: 13px; fill: #B4560F; }
.tr-combo.pula { animation: trPula .6s cubic-bezier(.2,.9,.3,1.6) .2s both; }
@keyframes trPula { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
.tr-xpvoa { position: fixed; z-index: 60; pointer-events: none; font-family: var(--mono, 'IBM Plex Mono', monospace); font-weight: 700; font-size: 18px; color: #F2D27A;
  text-shadow: 0 0 14px rgba(240,203,100,.8); transition: transform .7s cubic-bezier(.5,0,.3,1), opacity .7s ease; }
.tr-chip.bate { animation: trBate .45s ease; }
@keyframes trBate { 0% { transform: scale(1); } 40% { transform: scale(1.18); box-shadow: 0 0 20px rgba(240,203,100,.5); } 100% { transform: scale(1); } }

.tr-trofeu.bau .bau-svg { overflow: visible; }
.tr-trofeu.bau .bau-corpo { fill: #5A3E16; stroke: #F0CB64; stroke-width: 1.6; }
.tr-trofeu.bau .bau-tampa path { fill: #6B4A1A; stroke: #F0CB64; stroke-width: 1.6; }
.tr-trofeu.bau .bau-faixa { fill: none; stroke: #F0CB64; stroke-width: 2; }
.tr-trofeu.bau .bau-tranca { fill: #F0CB64; }
.tr-trofeu.bau .bau-tampa { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.3,1.6,.5,1); }
.tr-trofeu.bau .bau-luz circle { fill: #FFE7A6; opacity: 0; filter: blur(6px); transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .6s, transform .9s ease; }
.tr-trofeu.bau.abre .bau-tampa { transform: translateY(-9px) rotate(-24deg); }
.tr-trofeu.bau.abre .bau-luz circle { opacity: .75; transform: scale(1.3); }
.tr-trofeu.bau.abre { animation: trBau 1.2s ease .1s 1; }
@keyframes trBau { 0%, 100% { filter: none; } 40% { filter: drop-shadow(0 0 26px rgba(240,203,100,.9)); } }

.tr-chip-meta svg { width: 17px; height: 17px; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.tr-chip-meta .m-bg { stroke: rgba(255,255,255,.1); }
.tr-chip-meta .m-a, .tr-chip-meta .m-b { stroke: transparent; transition: stroke .4s; }
.tr-chip-meta.a .m-a, .tr-chip-meta.b .m-b { stroke: #F0CB64; }
.tr-chip-meta.cheia { box-shadow: 0 0 0 1px rgba(240,203,100,.5), 0 0 16px rgba(240,203,100,.25); }
.tr-chip-meta.cheia b { color: #F2D27A; }
@media (max-width: 430px) { .tr-chip-meta b { display: none; } .tr-chip-meta { padding-left: 8px; padding-right: 8px; } .tr-chip-xp small { display: none; } }

/* montanhas misteriosas (25/11/2026): as próximas seções cobertas de névoa, sem o nome das aulas */
.tr-monte.mist { position: relative; }   /* .dk-andar já é absolute (não mexer) */
.tr-monte.mist > .tr-cena, .dk-andar.mist > .dk-cena { filter: saturate(.35) brightness(.72) contrast(.95); }
.tr-nevoa { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.tr-nevoa::before, .tr-nevoa::after { content: ""; position: absolute; left: -40%; right: -40%; top: 0; bottom: 0;
  background:
    radial-gradient(40% 18% at 30% 30%, rgba(190,185,220,.22), transparent 70%),
    radial-gradient(45% 20% at 70% 55%, rgba(190,185,220,.18), transparent 70%),
    radial-gradient(50% 22% at 40% 80%, rgba(190,185,220,.2), transparent 70%);
  animation: trNevoa 26s ease-in-out infinite alternate; }
.tr-nevoa::after { opacity: .7; animation-duration: 38s; animation-direction: alternate-reverse; transform: scaleX(-1); }
@keyframes trNevoa { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.tr-step.mist .tr-node { border-style: dashed !important; opacity: .85; }
.tr-step.mist .tr-q { font-family: var(--display, Fraunces, serif); font-size: 22px; font-weight: 600; color: #C9C3E8; line-height: 1; }
.tr-step.mist .tr-step-t { color: #8E8AA6; letter-spacing: .3em; filter: blur(.3px); }
.tr-step.mist .tr-step-t em { letter-spacing: .06em; filter: none; }
@media (prefers-reduced-motion: reduce) { .tr-nevoa::before, .tr-nevoa::after { animation: none; } }

/* Revisar meus erros e escudo da sequência (25/11/2026) */
.tr-revisar { display: flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(212,166,44,.45);
  background: rgba(212,166,44,.10); color: #F2D27A; font: 600 13.5px var(--sans, 'IBM Plex Sans', sans-serif); cursor: pointer; position: relative; z-index: 4; }
.tr-revisar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-revisar b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D4A62C; color: #14120A; font: 700 12px var(--mono, monospace); display: inline-grid; place-items: center; }
.tr-revisar[hidden] { display: none; }
.tr-esc { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; color: #9DB8FF; font: 700 11px var(--mono, monospace); }
.tr-esc svg { width: 13px; height: 13px; fill: rgba(91,140,255,.35); stroke: #9DB8FF; stroke-width: 1.4; }
.tr-esc[hidden] { display: none; }
.dk-rev { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dk-rev b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #D4A62C; color: #14120A; font: 700 12px var(--mono, monospace); display: inline-grid; place-items: center; }
#dk-vez .dk-rev { display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
