/* Bitu · estilos (identidade visual do PDF: tema escuro) */
@font-face { font-family: "Sora"; src: url("../fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --violeta: #7C5CFF; --violeta-escuro: #6646F0; --lima: #B8F24A; --lima-sombra: #7FB81F;
  --coral: #FF7A66; --ceu: #4CC9F0; --painel: #2A2656; --painel-2: #221F48; --noite: #14122B;
  --amarelo: #FFC94A; --rosa: #FF6FB5; --violeta-claro: #A99BFF;
  --texto: #FFFFFF; --texto-2: #B9B5E2; --texto-3: #8581B5; --borda: #3A3570;
  --raio: 20px; --tab: 76px;
  --f-titulo: "Sora", system-ui, sans-serif; --f-texto: "Nunito", system-ui, sans-serif; --f-codigo: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--noite); color: var(--texto); font-family: var(--f-texto); font-size: 16px; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--ceu); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-titulo); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code, .mono { font-family: var(--f-codigo); }

.app { max-width: 440px; margin: 0 auto; min-height: 100dvh; position: relative; background: var(--noite); }
.tela { padding: max(20px, env(safe-area-inset-top)) 20px calc(var(--tab) + 28px); animation: entra .22s ease-out; }
.tela.sem-abas { padding-bottom: 130px; }
@keyframes entra { from { opacity: 0; } to { opacity: 1; } }

/* ---------- abas ---------- */
.abas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; height: calc(var(--tab) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--painel-2); border-top: 1px solid var(--borda); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 20; }
.aba { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--texto-2); }
.aba svg { width: 24px; height: 24px; }
.aba.ativa { color: var(--lima); }

/* ---------- topo ---------- */
.topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ola { color: var(--texto-2); font-weight: 700; font-size: 14px; }
.titulo-tela { font-size: 26px; font-weight: 800; line-height: 1.15; }
.sub { color: var(--texto-2); font-size: 15px; margin-top: 4px; }
.chips { display: flex; gap: 8px; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--painel); border-radius: 999px; padding: 8px 12px; font-family: var(--f-titulo); font-weight: 800; font-size: 15px; }
.chip svg { width: 16px; height: 16px; }
.chip.fogo svg { color: var(--coral); } .chip.raio { color: var(--lima); }
.voltar { display: flex; align-items: center; gap: 6px; color: var(--texto-2); font-weight: 700; margin-bottom: 14px; }
.voltar svg { width: 20px; height: 20px; }

/* ---------- cartões ---------- */
.cartao { background: var(--painel); border-radius: var(--raio); padding: 16px; }
.cartao + .cartao, .bloco + .bloco { margin-top: 12px; }
.secao { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; }
.secao h2 { font-size: 19px; font-weight: 700; }
.secao a, .link { color: var(--ceu); font-weight: 700; font-size: 14px; text-decoration: none; }
.rotulo { font-family: var(--f-titulo); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2); }

.destaque { background: var(--violeta); border-radius: 24px; padding: 20px; position: relative; overflow: hidden; }
.destaque .rotulo { color: #E3DCFF; }
.destaque h2 { font-size: 22px; font-weight: 800; margin-top: 6px; max-width: 70%; line-height: 1.15; }
.destaque .sub { color: #EAE5FF; max-width: 68%; }
.destaque .bitu { position: absolute; right: 10px; top: 12px; }
.destaque.coral { background: #3A2440; border: 2px solid var(--coral); }
.destaque.coral .rotulo { color: var(--coral); }

.barra { height: 8px; background: rgba(20, 18, 43, 0.55); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.barra > i { display: block; height: 100%; background: var(--lima); border-radius: 99px; transition: width .4s ease; }
.barra.ceu > i { background: var(--ceu); }
.barra.fina { height: 6px; }

/* ---------- botões ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border-radius: 18px; font-family: var(--f-titulo); font-weight: 700; font-size: 17px; transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(3px); }
.btn svg { width: 20px; height: 20px; }
.btn-primario { background: var(--lima); color: var(--noite); box-shadow: 0 5px 0 var(--lima-sombra); }
.btn-primario:disabled { background: #4A4675; color: #8C88B8; box-shadow: 0 5px 0 #34305E; }
.btn-secundario { background: var(--painel); color: var(--texto); box-shadow: 0 5px 0 #1C1940; }
.btn-perigo { background: transparent; color: var(--coral); border: 2px solid var(--coral); min-height: 48px; font-size: 15px; }
.btn-pequeno { min-height: 44px; font-size: 15px; border-radius: 14px; }
.btns-rodape { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 440px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--noite) 75%, transparent); display: flex; gap: 12px; z-index: 15; }
.btns-rodape .btn-secundario { width: auto; padding: 0 22px; }

/* ---------- listas da trilha ---------- */
.linha { display: flex; align-items: center; gap: 14px; background: var(--painel); border-radius: 18px; padding: 14px 16px; width: 100%; text-align: left; }
.linha + .linha { margin-top: 10px; }
.linha .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 800; flex-shrink: 0; color: var(--noite); }
.linha .info { flex: 1; min-width: 0; }
.linha h3 { font-size: 16.5px; font-weight: 700; }
.linha .desc { color: var(--texto-2); font-size: 13.5px; margin-top: 2px; }
.linha .cadeado, .linha .seta { color: var(--texto-3); width: 20px; height: 20px; flex-shrink: 0; }
.linha.atual { border: 2px solid var(--lima); background: #24204F; }
.linha.bloq { opacity: .75; }
.linha .pct { font-family: var(--f-titulo); font-weight: 700; font-size: 14px; color: var(--texto-2); }
.cor-lima { background: var(--lima); } .cor-ceu { background: var(--ceu); } .cor-violeta-claro { background: var(--violeta-claro); }
.cor-amarelo { background: var(--amarelo); } .cor-coral { background: var(--coral); } .cor-rosa { background: var(--rosa); }
.num.cinza { background: #3A3570; color: var(--texto-2); }

.aula-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--painel); width: 100%; text-align: left; }
.aula-item + .aula-item { margin-top: 8px; }
.aula-item .bola { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #3A3570; color: var(--texto-2); font-weight: 800; font-size: 13px; font-family: var(--f-titulo); }
.aula-item .bola svg { width: 18px; height: 18px; }
.aula-item.feita .bola { background: var(--lima); color: var(--noite); }
.aula-item.atual { border: 2px solid var(--lima); }
.aula-item.atual .bola { background: var(--violeta); color: #fff; }
.aula-item .t { flex: 1; font-weight: 700; font-size: 15px; }
.aula-item .t small { display: block; color: var(--texto-2); font-weight: 600; font-size: 12.5px; margin-top: 1px; }
.etiqueta { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: #3A3570; color: var(--texto-2); white-space: nowrap; }
.etiqueta.lima { background: rgba(184, 242, 74, .15); color: var(--lima); }
.etiqueta.ceu { background: rgba(76, 201, 240, .15); color: var(--ceu); }
.etiqueta.coral { background: rgba(255, 122, 102, .15); color: var(--coral); }
.unidade-titulo { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 10px; }
.unidade-titulo h2 { font-size: 17px; }

/* ---------- onboarding ---------- */
.marca { font-family: var(--f-titulo); font-weight: 800; font-size: 22px; }
.marca i { color: var(--lima); font-style: normal; }
.balao { background: #fff; color: var(--noite); border-radius: 18px; padding: 14px 16px; font-weight: 700; text-align: center; position: relative; line-height: 1.35; }
.balao::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.balao.lado::after { left: -6px; top: 22px; bottom: auto; transform: rotate(45deg); }
.mascote-centro { display: grid; place-items: center; margin: 18px 0 8px; }
.opcao { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--painel); border: 2px solid transparent; border-radius: 18px; padding: 14px 16px; }
.opcao + .opcao { margin-top: 10px; }
.opcao.sel { border-color: var(--lima); background: #24204F; }
.opcao .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--noite); flex-shrink: 0; }
.opcao .ic svg { width: 20px; height: 20px; }
.opcao h3 { font-size: 16px; } .opcao p { color: var(--texto-2); font-size: 13.5px; margin-top: 2px; }

/* ---------- exercício ---------- */
.ex-topo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ex-fechar { width: 40px; height: 40px; border-radius: 12px; background: var(--painel); display: grid; place-items: center; flex-shrink: 0; }
.ex-fechar svg { width: 20px; height: 20px; }
.ex-topo .barra { flex: 1; margin: 0; height: 12px; background: var(--painel); }
.ex-xp { font-family: var(--f-titulo); font-weight: 800; color: var(--lima); display: flex; align-items: center; gap: 4px; min-width: 48px; justify-content: flex-end; }
.ex-xp svg { width: 16px; height: 16px; }
.ex-rotulo { color: var(--ceu); }
.ex-titulo { font-size: 24px; font-weight: 800; margin: 6px 0 8px; line-height: 1.2; }
.ex-enunciado { color: var(--texto-2); font-size: 16px; line-height: 1.5; }

.codigo { background: #0E0C22; border: 1px solid var(--borda); border-radius: 18px; margin-top: 16px; overflow: hidden; font-family: var(--f-codigo); font-size: 14.5px; }
.codigo .barra-arq { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--borda); color: var(--texto-2); font-size: 12.5px; }
.codigo .barra-arq i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.codigo .barra-arq span { margin-left: 8px; }
.codigo pre { margin: 0; padding: 12px 0; white-space: pre-wrap; word-break: break-word; line-height: 1.7; }
.codigo .ln { display: flex; padding: 0 14px; }
.codigo .ln b { color: var(--texto-3); font-weight: 400; width: 22px; flex-shrink: 0; user-select: none; }
.codigo .saida { border-top: 1px dashed var(--borda); padding: 10px 14px; color: var(--lima); }
.codigo .saida::before { content: "> "; color: var(--ceu); }
.lacuna { display: inline-block; min-width: 54px; padding: 0 6px; border-bottom: 3px solid var(--coral); background: rgba(124, 92, 255, .25); border-radius: 4px; text-align: center; color: var(--lima); }
.lacuna.vazia { color: transparent; }
button.ln { width: 100%; text-align: left; font-family: inherit; font-size: inherit; padding: 2px 14px; }
button.ln:hover { background: rgba(124, 92, 255, .12); }
button.ln.sel { background: rgba(255, 122, 102, .22); box-shadow: inset 3px 0 0 var(--coral); }
.tk-kw { color: #C9A8FF; } .tk-str { color: #FFC98A; } .tk-num { color: var(--ceu); } .tk-fn { color: var(--lima); } .tk-com { color: var(--texto-3); } .tk-tag { color: var(--coral); }

.pergunta-rotulo { margin: 22px 0 10px; }
.fichas { display: flex; flex-wrap: wrap; gap: 10px; }
.ficha { font-family: var(--f-codigo); font-weight: 600; font-size: 16px; background: var(--painel); border: 2px solid var(--borda); border-radius: 14px; padding: 12px 18px; box-shadow: 0 4px 0 #1C1940; }
.ficha.sel { background: var(--violeta); border-color: #B3A1FF; }
.alternativas { display: grid; gap: 10px; }
.alt { text-align: left; background: var(--painel); border: 2px solid var(--borda); border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: 16px; box-shadow: 0 4px 0 #1C1940; }
.alt.mono { font-family: var(--f-codigo); font-weight: 600; font-size: 15px; }
.alt.sel { border-color: var(--violeta); background: #332C6E; }
.alt.certa { border-color: var(--lima); } .alt.errada { border-color: var(--coral); }

.dica { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; }
.dica .balao { text-align: left; font-weight: 600; font-size: 14.5px; flex: 1; }
.dica .bitu { flex-shrink: 0; }
.btn-dica { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ceu); font-weight: 800; font-size: 15px; background: rgba(76, 201, 240, .1); padding: 10px 14px; border-radius: 12px; }
.btn-dica svg { width: 18px; height: 18px; }

/* V/F */
.vf-cartao { background: var(--painel); border-radius: 22px; padding: 18px; margin-top: 16px; touch-action: pan-y; transition: transform .2s; user-select: none; }
.vf-cartao.arrastando { transition: none; }
.vf-cartao .frase { font-size: 18px; font-weight: 800; line-height: 1.4; font-family: var(--f-titulo); }
.vf-cartao .codigo { margin-top: 12px; }
.vf-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.vf-btn { min-height: 64px; border-radius: 18px; font-family: var(--f-titulo); font-weight: 800; font-size: 17px; }
.vf-btn.v { background: rgba(184, 242, 74, .14); color: var(--lima); border: 2px solid var(--lima); }
.vf-btn.f { background: rgba(255, 122, 102, .14); color: var(--coral); border: 2px solid var(--coral); }
.nota { color: var(--texto-3); font-size: 13px; text-align: center; margin-top: 12px; }

/* pares */
.pares { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pares .col { display: grid; gap: 10px; align-content: start; }
.par { background: var(--painel); border: 2px solid var(--borda); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 14.5px; text-align: left; min-height: 56px; box-shadow: 0 4px 0 #1C1940; position: relative; }
.par.sel { border-color: var(--violeta); background: #332C6E; }
.par[data-cor] { padding-right: 26px; }
.par[data-cor]::after { content: attr(data-cor); position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; display: grid; place-items: center; color: var(--noite); font-weight: 900; }
.par[data-cor="1"] { border-color: var(--ceu); } .par[data-cor="1"]::after { background: var(--ceu); }
.par[data-cor="2"] { border-color: var(--amarelo); } .par[data-cor="2"]::after { background: var(--amarelo); }
.par[data-cor="3"] { border-color: var(--rosa); } .par[data-cor="3"]::after { background: var(--rosa); }
.par[data-cor="4"] { border-color: var(--lima); } .par[data-cor="4"]::after { background: var(--lima); }

/* montar */
.montagem { min-height: 120px; background: #0E0C22; border: 2px dashed var(--borda); border-radius: 18px; padding: 10px; margin-top: 16px; display: grid; gap: 8px; align-content: start; }
.montagem .vazio { color: var(--texto-3); text-align: center; padding: 28px 0; font-size: 14px; }
.peca-linha { text-align: left; background: var(--painel); border: 2px solid var(--borda); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 15px; box-shadow: 0 3px 0 #1C1940; white-space: pre; }
.peca-linha.mono { font-family: var(--f-codigo); font-weight: 600; font-size: 14px; }
.peca-linha .n { color: var(--texto-3); margin-right: 10px; font-family: var(--f-codigo); }
.banco { display: grid; gap: 8px; margin-top: 10px; }

/* arrastar e soltar */
.zonas { display: grid; gap: 10px; margin-top: 16px; }
.zona { background: var(--painel); border-radius: 18px; padding: 12px; border: 2px solid transparent; min-height: 74px; }
.zona.alvo-ativo { border-color: var(--violeta); }
.zona.por-cima { border-color: var(--lima); background: #2F2A63; }
.zona h3 { font-size: 14px; color: var(--ceu); display: flex; align-items: center; gap: 8px; }
.zona .soltas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; min-height: 30px; }
.zona .soltas:empty::before { content: "Solte aqui"; color: var(--texto-3); font-size: 13px; border: 1.5px dashed var(--borda); border-radius: 10px; padding: 6px 10px; }
.pecas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; min-height: 48px; }
.peca { background: var(--violeta); color: #fff; border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 var(--violeta-escuro); touch-action: none; user-select: none; }
.peca.sel { outline: 3px solid var(--lima); }
.peca.solta { background: #3B3480; box-shadow: none; font-size: 13px; padding: 7px 10px; }
.fantasma { position: fixed; pointer-events: none; z-index: 100; opacity: .92; transform: rotate(-3deg) scale(1.04); }

/* painel de resposta */
.retorno { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 440px; z-index: 30; padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; animation: sobe .22s ease-out; }
@keyframes sobe { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.retorno.ok { background: #25361F; border-top: 3px solid var(--lima); }
.retorno.erro { background: #3A2232; border-top: 3px solid var(--coral); }
.retorno .cab .bitu { flex-shrink: 0; }
.retorno .cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.retorno h3 { font-size: 20px; }
.retorno.ok h3 { color: var(--lima); } .retorno.erro h3 { color: var(--coral); }
.retorno p { color: #EDEAFF; line-height: 1.45; font-size: 15px; margin-top: 2px; }
.retorno .btn-primario.coral { background: var(--coral); box-shadow: 0 5px 0 #C9503F; }

/* resultado */
.resultado { text-align: center; padding-top: 30px; }
.resultado h1 { font-size: 28px; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stat { background: var(--painel); border-radius: 18px; padding: 14px 6px; }
.stat b { display: block; font-family: var(--f-titulo); font-size: 24px; }
.stat span { color: var(--texto-2); font-size: 13px; font-weight: 700; }
.stat.lima b { color: var(--lima); } .stat.coral b { color: var(--coral); } .stat.ceu b { color: var(--ceu); }
.premio { display: flex; align-items: center; gap: 12px; background: var(--painel); border-radius: 16px; padding: 12px 14px; text-align: left; margin-top: 10px; }
.premio .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--noite); }
.premio .ic svg { width: 22px; height: 22px; }
.premio b { display: block; } .premio span { color: var(--texto-2); font-size: 13.5px; }

/* perfil */
.perfil-topo { display: flex; gap: 14px; align-items: center; }
.perfil-topo h2 { max-width: none; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; text-align: center; }
.dia { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--texto-2); }
.dia i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #3A3570; font-style: normal; color: var(--noite); font-family: var(--f-titulo); font-weight: 800; }
.dia i svg { width: 18px; height: 18px; }
.dia.meta i { background: var(--lima); }
.dia.soneca i { background: var(--ceu); }
.dia.hoje i { background: transparent; border: 2px dashed var(--violeta-claro); color: var(--violeta-claro); }
.dia.futuro i { background: transparent; border: 2px solid #3A3570; }
.mini-stats { display: flex; gap: 14px; margin-top: 14px; color: var(--texto-2); font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.mini-stats b { color: var(--texto); }
.conquistas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.conq { background: var(--painel); border-radius: 18px; padding: 14px 8px; display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.2; }
.conq .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--noite); }
.conq .ic svg { width: 22px; height: 22px; }
.conq.bloq { color: var(--texto-3); font-weight: 700; }
.conq.bloq .ic { background: #3A3570; color: var(--texto-3); }
.segmento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.segmento button { background: var(--painel-2); border: 2px solid var(--borda); border-radius: 14px; padding: 10px 4px; font-weight: 800; font-size: 14px; }
.segmento button small { display: block; color: var(--texto-2); font-weight: 600; font-size: 12px; }
.segmento button.sel { border-color: var(--lima); color: var(--lima); }
.config-linha { display: flex; gap: 10px; margin-top: 10px; }
.config-linha .btn { flex: 1; }
.rodape-info { color: var(--texto-3); font-size: 12.5px; text-align: center; margin-top: 24px; line-height: 1.5; }

/* praticar */
.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tipo { background: var(--painel); border-radius: 18px; padding: 14px; text-align: left; display: grid; gap: 8px; align-content: start; }
.tipo .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #3A3570; color: var(--lima); font-family: var(--f-codigo); font-weight: 700; font-size: 13px; }
.tipo h3 { font-size: 15px; } .tipo p { color: var(--texto-2); font-size: 12.5px; line-height: 1.35; }
.tipo.bloq { opacity: .55; }
.tipo .ic svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { background: rgba(20, 18, 43, .4); color: #EAE5FF; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 99px; }

/* modal e aviso */
.fundo-modal { position: fixed; inset: 0; background: rgba(8, 7, 20, .7); z-index: 50; display: grid; place-items: end center; animation: aparece .15s; }
@keyframes aparece { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; background: var(--painel); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: sobeModal .2s ease-out; text-align: center; }
@keyframes sobeModal { from { transform: translateY(40px); } }
.modal h2 { font-size: 21px; margin-top: 10px; }
.modal p { color: var(--texto-2); margin-top: 8px; line-height: 1.45; }
.modal .btn { margin-top: 12px; }
.modal .ic-grande { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto; color: var(--noite); }
.modal .ic-grande svg { width: 32px; height: 32px; }
.aviso { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60; background: #fff; color: var(--noite); font-weight: 800; padding: 12px 18px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: calc(100% - 32px); width: max-content; font-size: 15px; animation: desce .25s ease-out; display: flex; gap: 8px; align-items: center; }
.aviso svg { width: 18px; height: 18px; color: var(--violeta); flex-shrink: 0; }
@keyframes desce { from { transform: translate(-50%, -20px); opacity: 0; } }

.conceito { display: flex; gap: 12px; align-items: flex-start; background: var(--painel); border-radius: 18px; padding: 16px; line-height: 1.5; font-size: 16px; }
.conceito + .conceito { margin-top: 10px; }
.conceito .n { width: 28px; height: 28px; border-radius: 9px; background: var(--violeta); display: grid; place-items: center; font-family: var(--f-titulo); font-weight: 800; flex-shrink: 0; font-size: 14px; }
.conceito b { color: var(--lima); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 520px) { body { background: #0D0B1F; } .app { box-shadow: 0 0 0 1px #221F48; } }
