/* Diagnóstico v4 do FAROL · "Cartas sobre a cena". Canon CIn-UFPE (FAROL-0287): #DB1E2F #AF0421 #231F20 #E0E1E0 e branco,
   Hanken Grotesk, superfície chapada, régua rótulo ——— assunto, raio ≤ 6 px. Exceções declaradas (§3.1.6): --cena #EFEAE2
   só atrás das maquetes; o papel das cartas é FOTOGRAFIA (img/cartas: textura, canto e sombra são da foto). Nenhum
   box-shadow, degradê ou brilho. Estado final é o padrão; só transform e opacity animam. Motivos: docs/decisoes AX-0019…35 (o porquê de cada regra fica lá). */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(/diagnostico-v4/fonte/hanken-grotesk.woff2) format("woff2");
}
:root {
  --verm: #DB1E2F; --verm2: #AF0421; --preto: #231F20; --cinza: #E0E1E0; --branco: #FFFFFF;
  --cena: #EFEAE2; 
  --zoomf: 1;
  --f: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --g: 16px; --barra: 48px; --rodape: 56px;
  --enu: 22px;            
  --r: 4px;               
  --rb: 3px;              
  --mola: cubic-bezier(.2, 1.4, .4, 1);
  --sai: cubic-bezier(.16, 1, .3, 1);
  --papel: none;
  --bi-papel: 32 56 56 32 fill / 1.152 2.016 2.016 1.152 / 0.216 1.08 1.08 0.216 stretch;
  --bi-rara: 62 86 60 36 fill / 2.232 3.096 2.16 1.296 / 0.216 1.08 1.08 0.216 stretch;
}
html[data-aa="2"] { --zoomf: 1.14; }
html[data-aa="3"] { --zoomf: 1.3; }
html[data-modo="leve"] { --f: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { font-size: calc(16px * var(--zoomf)); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--cinza); color: var(--preto); font-family: var(--f); font-weight: 500; line-height: 1.35;
  overflow-x: clip; min-height: 100svh; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button, textarea { font: inherit; color: inherit; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--verm); outline-offset: 2px; }
:not(button):not(a):not(summary)[tabindex="-1"]:focus { outline: none; }
.so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--preto); color: #fff; padding: 12px; }
.pular:focus { left: 8px; }
/* árabe (dir=rtl): o que sai pela esquerda vira rolagem lateral; o atalho escondido sai pela direita */
[dir="rtl"] .pular { left: auto; right: -999px; }
[dir="rtl"] .pular:focus { right: 8px; }
#anuncio { top: 0; left: 0; }
[hidden] { display: none !important; }
#palco { display: block; outline: none; overflow-x: clip; }
.tela { min-height: calc(100svh - var(--barra)); overflow: clip; }
/* ---------- régua rótulo ——— assunto (quebra linha, nunca estoura) ---- */
.regua { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; min-width: 0;
  font-size: .8125rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.regua > span { min-width: 0; overflow-wrap: anywhere; }
.regua > span:first-child { color: var(--verm2); }
.regua > i { flex: 1 1 24px; min-width: 24px; height: 2px; background: currentColor; }
.clara .regua > span:first-child, .regua.clara > span:first-child { color: #fff; }
/* ---------- barra do alto: marca · o fio dos seis lugares · Aa -------- */
.barra { position: sticky; top: 0; z-index: 40; height: var(--barra); background: #fff; display: flex; align-items: center; gap: 8px;
  padding: 0 4px 0 var(--g); border-bottom: 2px solid var(--preto); }
.marca { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 900; font-size: 15px; letter-spacing: .04em; flex: 0 0 auto; min-height: 44px; }
.marca i { width: 24px; height: 20px; background: var(--verm); clip-path: polygon(0 50%, 28% 0, 100% 0, 100% 100%, 28% 100%); }
body:not(.na-capa) .marca span { display: none; }
.fio6 { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
body.na-capa .fio6 { visibility: hidden; }
.fio6 ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; position: relative; gap: 6px; }
.fio6 ol::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; margin-top: -1px; background: var(--cinza); }
.fio6 ol::after { content: ""; position: absolute; left: 14px; top: 50%; height: 3px; margin-top: -1.5px; width: var(--feito, 0px); background: var(--verm); transition: width .6s var(--sai); }
.fio6 li { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: var(--rb); background: #fff; border: 2px solid var(--cinza);
  display: grid; place-items: center; transition: transform .3s var(--mola), border-color .3s; }
.fio6 li img { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1); opacity: .45; transition: opacity .3s; }
.fio6 li b { display: grid; place-items: center; color: var(--preto); opacity: .4; }
.fio6 li b .naipe { display: block; }
.fio6 li.feito { border-color: var(--preto); }
.fio6 li.feito img, .fio6 li.agora img { filter: none; opacity: 1; }
.fio6 li.feito b { opacity: 1; }
.fio6 li.agora { transform: scale(1.15); border-color: var(--verm); }
.fio6 li.agora b { opacity: 1; color: var(--verm); }
.fio6 li.chega { animation: chega .42s var(--mola); }
@keyframes chega { from { transform: scale(1.7); } }
.aa { flex: 0 0 auto; width: 48px; height: 46px; border: 0; background: transparent; font-weight: 900; font-size: 17px; cursor: pointer; border-radius: var(--rb); }
.aa:hover { background: var(--cinza); }
/* ---------- botões e chips (quase retangulares) ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 20px;
  border: 0; border-radius: var(--rb); background: var(--verm); color: #fff; font-weight: 900; font-size: 1.0625rem; cursor: pointer; text-decoration: none;
  transition: transform .09s ease-out; }
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--verm2); }
.btn[aria-disabled="true"] { background: #fff; color: var(--preto); outline: 2px dashed var(--preto); outline-offset: -2px; cursor: default; }
.btn.fantasma { background: #fff; color: var(--preto); outline: 2px solid var(--preto); outline-offset: -2px; }
.btn.fantasma:hover { background: var(--cinza); }
.btn.escuro { background: var(--preto); }
.seta::after { content: "→"; font-weight: 900; }
[dir="rtl"] .seta::after { content: "←"; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--rb); border: 2px solid var(--preto);
  background: #fff; font-weight: 800; font-size: .875rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--preto); color: #fff; }
/* ---------- rodapé: Voltar · maço · Avançar ---------- */
.rodape { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--rodape); padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  background: #fff; border-top: 2px solid var(--preto); }
.voltar, .avancar { min-width: 48px; min-height: 48px; border: 0; background: transparent; font-weight: 900; font-size: 1rem; cursor: pointer; padding: 0 12px; border-radius: var(--rb); color: var(--preto); }
.voltar { justify-self: start; white-space: nowrap; }
html[data-aa="3"] .maco .rot { display: none; }
@media (max-width: 359px) { .maco .rot { display: none; } .maco { gap: 6px; } }
html[data-aa="3"] .voltar, html[data-aa="3"] .avancar { padding: 0 6px; }
.avancar { justify-self: end; white-space: nowrap; }
.rodape.sem-maco { grid-template-columns: auto minmax(0, 1fr); }
.rodape.sem-maco > span { display: none; }
.voltar:hover, .avancar:hover { background: var(--cinza); }
.avancar.acao { background: var(--verm); color: #fff; }
.avancar.acao:hover { background: var(--verm2); }
.maco { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.maco .pilha { position: relative; width: 30px; height: 38px; }
.maco .pilha i { position: absolute; left: 0; top: 0; width: 26px; height: 35px; border-radius: 2px; background: #fff; border: 1.5px solid var(--preto);
  transform: translate(calc(var(--k) * 1.6px), calc(var(--k) * -1.6px)); background-size: cover; background-position: center; }
.maco .conta { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.maco .conta b { display: inline-block; font-weight: 900; }
.maco .de { font-weight: 800; }
.maco .rot { font-size: .8125rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
/* A TELA DE PERGUNTA */
.tela-q { display: flex; flex-direction: column; }
.cena { position: relative; flex: 1000 1 0; min-height: 72px; overflow: hidden; background: var(--cena); contain: paint; }
.cena[data-cena="empresa"] { max-height: 340px; }
.cena > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 45%);
  transform: scale(var(--push, 1)); transform-origin: var(--foco, 50% 45%); transition: transform .9s var(--sai); }
.cena > img.v { object-position: 50% 100%; transform-origin: 50% 80%; }
.cena.alta > img.h, .cena:not(.alta) > img.v { visibility: hidden; }
.cena .respira { position: absolute; inset: 0; }
.tela-q.sobre .conteudo { margin-top: -30px; position: relative; z-index: 2; }
.fio-local { position: absolute; left: var(--g); bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 10px;
  background: #fff; border: 2px solid var(--preto); border-radius: var(--rb); }
.tela-q.sobre .fio-local { bottom: 40px; }
.fio-local .qual { font-size: .8125rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fio-local ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.fio-local li { position: relative; width: 24px; height: 16px; display: grid; place-items: center; }
.fio-local li + li::before { content: ""; position: absolute; right: 50%; width: 100%; top: 7px; height: 2px; background: var(--cinza); }
.fio-local li.feito + li::before { background: var(--verm); height: 3px; top: 6.5px; }
.fio-local li b { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--preto); }
.fio-local li.feito b { background: var(--preto); }
.fio-local li.agora b { border-color: var(--verm); width: 15px; height: 15px; border-width: 3px; }
.fio-local li.pulsa b { animation: pulsaNo .24s var(--mola); }
@keyframes pulsaNo { from { transform: scale(1.8); } }
.mapinha { position: absolute; right: 10px; top: 10px; z-index: 3; width: min(33vw, 132px); padding: 0; border: 2px solid var(--preto); border-radius: var(--rb);
  background: #fff; cursor: pointer; overflow: hidden; }
.mapinha .ilha { aspect-ratio: 3 / 2; }
.mapinha:hover { outline: 3px solid var(--preto); outline-offset: 0; }
.cena.baixa .mapinha { display: none; }
.conteudo { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
.mesa { padding: 12px var(--g) 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.carta-q { position: relative; z-index: 2; }
.papel { position: relative; background: #fff; border-radius: var(--r); border: 1.5px solid var(--preto); }
html.tem-papel .papel { background: none; border: 14px solid transparent; border-image: var(--papel) var(--bi-papel); border-radius: 0; }
.carta-q .papel { padding: 14px 16px 16px; }
html.tem-papel .carta-q .papel { padding: 0; }
html.tem-papel .carta-q .papel-in { padding: 2px 4px 4px; }
.carta-q .pilha-eixo { position: absolute; left: 0; right: 0; top: 100%; height: 0; z-index: -1; }
.carta-q .pilha-eixo i { position: absolute; left: calc(var(--k) * 8px); right: calc(var(--k) * 8px); top: calc(var(--k) * 4px - 14px); height: 14px;
  background: #fff; border: 1.5px solid var(--preto); border-top: 0; }
html.tem-papel .carta-q .pilha-eixo i { background: none; border: 8px solid transparent; border-top-width: 0; border-image: var(--papel) var(--bi-papel); }
.carta-q .regua { margin-bottom: 8px; }
.enunciado { margin: 0; font-size: calc(var(--enu) * var(--zoomf)); font-weight: 800; line-height: 1.17; letter-spacing: -.01em; outline: none; overflow-wrap: break-word; }
.enunciado .balao { display: block; position: relative; margin: 10px 0 10px 24px; padding: 9px 12px; background: var(--preto); color: #fff; border-radius: var(--r); font-weight: 800; font-size: .9em; line-height: 1.22; }
.enunciado .balao::before { content: attr(data-quem); position: absolute; left: -24px; top: 9px; font-size: 13px; font-weight: 900; letter-spacing: .04em; color: var(--preto); }
.enunciado .balao::after { content: ""; position: absolute; left: -7px; top: 13px; border: 7px solid transparent; border-left: 0; border-right-color: var(--preto); }
.enunciado .num { display: inline-block; line-height: 1.08; padding: 0 .18em; margin: 0 .04em; background: var(--preto); color: #fff; border-radius: 2px; }
.balao .num { background: #fff; color: var(--preto); }
.apoio { margin: 8px 0 0; font-size: .9375rem; line-height: 1.35; }
.aviso-auto { margin: 8px 0 0; font-size: .875rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.aviso-auto::before { content: ""; width: 14px; height: 3px; background: var(--verm); flex: 0 0 auto; }
/* ---------- as respostas, ancoradas no pé (E1-a) ---------- */
.respostas { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; position: relative; z-index: 3; }
.respostas.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.respostas.grade3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.carta-r { position: relative; display: grid; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; perspective: 900px;
  transition: transform .09s ease-out; -webkit-user-select: none; user-select: none; min-height: 56px; min-width: 0; }
.carta-r.afunda { transform: scale(.97); }
.carta-r .face { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; min-width: 0; border-radius: var(--r);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; font-size: 1rem; line-height: 1.26; }
.carta-r .frente { background: #fff; border: 1.5px solid var(--preto); }
html.tem-papel .carta-r .frente { background: none; border: 10px solid transparent; border-image: var(--papel) var(--bi-papel); border-radius: 0; padding: 0 4px; }
.carta-r .verso { background: var(--preto); color: #fff; transform: rotateX(180deg); }
.carta-r[aria-checked="true"] .frente, .carta-r[aria-pressed="true"] .frente { transform: rotateX(-180deg); }
.carta-r[aria-checked="true"] .verso, .carta-r[aria-pressed="true"] .verso { transform: rotateX(0deg); }
.tecla { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 2px; border: 2px solid var(--preto); font-weight: 900; font-size: .875rem; line-height: 1; }
.verso .tecla { background: var(--verm); border-color: var(--verm); color: #fff; }
.carta-r .txt { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.carta-r .ok { flex: 0 0 auto; font-weight: 900; font-size: 1.25rem; line-height: 1; }
.carta-r[aria-checked="true"] .ok, .carta-r[aria-pressed="true"] .ok { animation: okPop .32s var(--mola) both; }
@keyframes okPop { from { transform: scale(0); } }
@media (hover: hover) { .carta-r:hover .frente { background-color: var(--cinza); } html.tem-papel .carta-r:hover .frente { background: none; filter: brightness(.94); } .carta-r:hover .frente .tecla { background: var(--preto); color: #fff; } }
.carta-r .idx { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; align-self: center; }
.carta-r .idx .naipe { width: 14px; height: 14px; display: block; }
.verso .idx .naipe { color: var(--verm); }
.carta-r .idx .naipe-l { font-size: 11px; line-height: 1; font-weight: 900; }
.verso .idx .naipe-l { color: var(--verm); }
.carta-r .lapis { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; font-size: 1.0625rem; line-height: 1; font-weight: 900; border-bottom: 2px solid currentColor; }
.m-situacao .carta-r .frente .tecla { background: var(--preto); color: #fff; }
.m-situacao .carta-r .txt { font-size: 1.0625rem; font-weight: 700; }
.m-situacao .carta-r .face { min-height: 64px; }
.m-decisao .carta-r .txt { font-weight: 700; }
.carta-r.fixa .frente { background: transparent !important; border: 2px dashed var(--preto) !important; border-image: none !important; border-radius: var(--r) !important; padding: 8px 12px !important; }
.carta-r.fixa .frente .tecla { border-style: dashed; }
.m-objeto .carta-r .face { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 8px 10px 9px; min-height: 100px; }
html.tem-papel .m-objeto .carta-r .frente { padding: 0 2px 2px; }
.m-objeto .obj { width: 100%; height: 50px; display: grid; place-items: center; }
.m-objeto .obj img { width: 54px; height: 54px; object-fit: contain; }
.m-objeto .tecla { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; }
html.tem-papel .m-objeto .frente .tecla { top: 14px; left: 14px; }
.m-objeto .ok { position: absolute; top: 9px; right: 11px; }
.m-objeto .txt { font-size: .9375rem; font-weight: 800; line-height: 1.16; }
.m-regua .linha { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.m-regua .linha .carta-r .face { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 6px; padding: 8px 3px; min-height: 118px; text-align: center; }
html.tem-papel .m-regua .linha .carta-r .frente { padding: 0; border-width: 6px; }
.m-regua .linha .tecla { width: 24px; height: 24px; font-size: .8125rem; align-self: center; }
.m-regua .linha .txt { font-size: .8125rem; font-weight: 800; line-height: 1.15; overflow-wrap: normal; hyphens: manual; }
.m-regua .ok { display: none; }
.pips { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; justify-content: center; align-content: end; height: 30px; }
.pips i { width: 8px; height: 8px; background: currentColor; }
.pips.vazio i { background: transparent; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
.colunas { height: 34px; display: flex; align-items: flex-end; justify-content: center; }
.colunas i { width: 16px; background: currentColor; min-height: 3px; }
.m-regua .sozinha { margin-top: 8px; display: grid; }
.m-regua .sozinha .carta-r .face { min-height: 52px; }
.m-palpite .carta-r .face { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t m" "n n" "d d"; align-items: center; align-content: start;
  column-gap: 6px; row-gap: 3px; padding: 7px 8px 8px; min-height: 0; }
html.tem-papel .m-palpite .carta-r .frente { padding: 0 1px; }
.m-palpite .tecla { grid-area: t; width: 24px; height: 24px; font-size: .8125rem; }
.m-palpite .mini { grid-area: m; width: 100%; height: 34px; }
.m-palpite .mini svg { width: 100%; height: 100%; display: block; }
.m-palpite .nome { grid-area: n; font-weight: 900; font-size: var(--nome-fs, .9375rem); line-height: 1.12; white-space: nowrap; min-width: 0; margin-top: 2px; }
.m-palpite .desc { grid-area: d; font-size: .8125rem; line-height: 1.2; align-self: start; }
.m-palpite .ok { display: none; }
.m-palpite .fixa .face { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "n"; align-content: center; justify-items: start; }
.m-palpite .fixa .nome { white-space: normal; font-size: .9375rem; }
.respostas.grade3.duas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-inventario { --ico: 40px; }
.m-inventario .carta-r .face { display: grid; grid-template-columns: var(--ico) minmax(0, 1fr); column-gap: 6px; align-items: start; align-content: start; padding: 6px 7px 6px 6px; min-height: 58px; }
html.tem-papel .m-inventario .carta-r .frente { padding: 0; }
.m-inventario .ico { grid-column: 1; position: relative; width: var(--ico); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.m-inventario .ico img { width: var(--ico); height: var(--ico); object-fit: contain; }
.m-inventario .ico .sob { display: flex; align-items: center; gap: 1px; }
.m-inventario .carta-r .face .tecla { position: static; width: 18px; height: 18px; font-size: .6875rem; border-width: 1.5px; }
.m-inventario .txt { grid-column: 2; display: block; font-size: .875rem; font-weight: 800; line-height: 1.16; }
.m-inventario .txt small { font-size: 1em; font-weight: 500; line-height: inherit; }
.m-inventario .ico .ok { position: absolute; right: -5px; top: calc(var(--ico) - 15px); width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--preto); font-size: 12px; line-height: 1; }
.m-inventario .fixa .face { min-height: 52px; }
.tela-q.escura .conteudo { background: var(--preto); color: #fff; }
.tela-q.escura .carta-q .papel { background: transparent; border: 0; border-image: none; padding: 2px 0 0; }
html.tem-papel .tela-q.escura .carta-q .papel { border: 0; border-image: none; }
.tela-q.escura .carta-q .regua > span:first-child { color: #fff; }
.tela-q.escura .carta-q .regua > span:last-child { color: var(--cinza); }
.tela-q.escura .enunciado .balao { background: #fff; color: var(--preto); }
.tela-q.escura .enunciado .balao::before { color: #fff; }
.tela-q.escura .enunciado .balao::after { border-right-color: #fff; }
.tela-q.escura .enunciado .num { background: #fff; color: var(--preto); }
.tela-q.escura .balao .num { background: var(--preto); color: #fff; }
.tela-q.escura .carta-q .pilha-eixo { display: none; }
.tela-q.escura .carta-r { color: var(--preto); }
.tela-q.escura .carta-r .verso { outline: 2px solid #fff; outline-offset: -2px; color: #fff; }
.tela-q.escura .carta-r.fixa .frente { border-color: #fff !important; color: #fff; }
.tela-q.escura .carta-r.fixa .frente .tecla { border-color: #fff; }
.tela-q.escura .rodape { border-top-color: var(--preto); color: var(--preto); }
.m-fato .carta-r .face { min-height: 64px; font-weight: 800; }
.m-fato .fixa { grid-column: 1 / -1; }
.m-fato .fixa.meia { grid-column: auto; }
.tela-q.caso-fundo { position: relative; }
.tela-q.caso-fundo > .cena { position: absolute; left: 0; right: 0; top: 0; bottom: var(--rod-h, 56px); min-height: 0; z-index: 0; }
.tela-q.caso-fundo > .conteudo { position: relative; z-index: 1; }
.tela-q.caso-fundo.fl-cima .fio-local { bottom: auto; top: calc(var(--faixa, 80px) - 44px); }
.tela-q.caso-fundo.fl-fora .fio-local, .tela-q.caso-fundo.mp-fora .mapinha { display: none; }
.tela-q.caso-fundo.mp-baixo .mapinha { top: auto; bottom: 10px; }
.tela-q.caso-fundo .cena.baixa .mapinha { display: block; }
.tela-q.caso-fundo.mp-fora .cena .mapinha { display: none; }
.no-caso .escolhida { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--preto); color: #fff; border-radius: var(--r); font-weight: 800; line-height: 1.26; }
.tela-q.escura .no-caso .escolhida { outline: 2px solid #fff; outline-offset: -2px; }
.no-caso .escolhida .ok { margin-left: auto; font-weight: 900; font-size: 1.25rem; }
.caso { display: flex; flex-direction: column; gap: 8px; }
.caso-caixa { display: flex; flex-direction: column; gap: 8px; background: var(--cinza); padding: 10px 10px 12px; border-radius: var(--r); }
.caso label { margin: 0; font-size: .9375rem; font-weight: 900; line-height: 1.3; }
.caso .nota-caso { margin: 0; font-size: .875rem; font-weight: 500; line-height: 1.3; }
.caso textarea { width: 100%; min-height: 48px; max-height: 110px; resize: none; font-size: max(16px, 1rem); line-height: 1.3; padding: 11px 12px;
  border: 2px solid var(--preto); border-radius: var(--rb); background: #fff; color: var(--preto); overflow-y: auto; }
.tela-q.escura .caso textarea { border-color: #fff; }
.caso textarea:focus { outline: 3px solid var(--verm); outline-offset: 1px; }
.caso .espaco { flex: 0 0 auto; }
.continuar-junto { position: relative; z-index: 3; margin-top: 0; }
.aberta .papel { position: relative; padding: 6px 10px 8px; }
html.tem-papel .aberta .papel { padding: 0 2px; }
.aberta textarea { display: block; width: 100%; height: 152px; resize: none; border: 0; outline: none; padding: 0 2px; color: var(--preto); font-size: max(16px, 1rem); line-height: 25px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='25'%3E%3Crect y='23' width='8' height='2' fill='%23E0E1E0'/%3E%3C/svg%3E") repeat; }
.aberta .conta-car { position: absolute; right: 8px; bottom: 2px; margin: 0; font-size: .8125rem; font-variant-numeric: tabular-nums; background: #fff; padding: 0 4px; }
/* CAPA */
.tela-capa { display: flex; flex-direction: column; background: var(--cena); }
.capa-arte { position: relative; aspect-ratio: 3 / 2; max-height: 44svh; overflow: hidden; background: var(--cena); }
.capa-foto { position: absolute; inset: 0; background: url(/diagnostico-v4/img/capa-800.webp) 50% 45% / cover no-repeat; }
html[data-modo="leve"] .capa-foto { background: #fff; }
.capa-arte svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.capa-texto { flex: 1 1 auto; background: #fff; padding: 16px var(--g) 18px; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--preto); }
.capa-texto h1 { margin: 0; font-size: calc(34px * var(--zoomf)); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; outline: none; }
.capa-texto .lead { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.capa-naipes { display: flex; gap: 6px; align-items: flex-end; margin: 2px 0; }
.capa-naipes .n { width: 46px; height: 60px; background: #fff; border: 1.5px solid var(--preto); display: grid; place-items: center; transform: rotate(calc((var(--k) - 2.5) * 3deg)); transform-origin: 50% 120%; }
html.tem-papel .capa-naipes .n { border: 6px solid transparent; border-image: var(--papel) var(--bi-papel); }
.capa-naipes .n img { width: 34px; height: 34px; object-fit: contain; }
.capa-naipes .n b { font-weight: 900; font-size: 15px; }
.fatos { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 800; }
.fatos li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--preto); margin-right: 6px; vertical-align: 1px; }
.capa-acoes { display: flex; flex-direction: column; gap: 10px; }
.capa-acoes .linha { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-comecar { position: relative; }
.anel-caixa { position: relative; display: block; }
.anel-caixa > .anel { position: absolute; inset: 0; border-radius: 5px; border: 3px solid var(--verm); pointer-events: none; opacity: 0; }
.aviso { margin: 0; font-size: .8125rem; line-height: 1.35; }
.aviso b { font-weight: 900; }
.retomar { font-size: .9375rem; background: var(--cinza); padding: 10px 12px; border-radius: var(--r); margin: 0; }
.retomar button, .link { border: 0; background: none; padding: 0; text-decoration: underline; font-weight: 800; cursor: pointer; min-height: 44px; }
.perfis-teste { border: 2px dashed var(--preto); padding: 10px; border-radius: var(--r); }
.perfis-teste p { margin: 0 0 8px; font-size: .8125rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.perfis-teste div { display: flex; flex-wrap: wrap; gap: 6px; }
.perfis-teste button { min-height: 44px; border: 2px solid var(--preto); background: #fff; padding: 6px 10px; border-radius: var(--rb); font-weight: 800; cursor: pointer; font-size: .8125rem; }
/* A ILHA: a capa em cinza, e cada lugar feito acende a SUA região */
.ilha { position: relative; overflow: hidden; background: var(--cena); aspect-ratio: 3 / 2; }
.ilha > img, .ilha .cel img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ilha .cel, .ilha .luz { position: absolute; inset: 0; }
.ilha .cel.novo { will-change: transform, opacity; }
.ilha svg.rota { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rota path { fill: none; stroke: var(--verm); stroke-width: 5; stroke-linecap: round; }
.rota path.falta { stroke: none; }
.rota .anel { fill: none; stroke: var(--verm); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: anel 1.4s ease-out 1 both; }
@keyframes anel { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.rota .no { fill: #fff; stroke: var(--preto); stroke-width: 4; }
.rota .no.feito { fill: var(--preto); }
.rota .no.agora { fill: #fff; stroke: var(--verm); stroke-width: 7; }
.pino-e { position: absolute; transform: translate(-50%, -50%); width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border: 2px solid var(--preto); border-radius: var(--rb); z-index: 2; }
.pino-e img { width: 29px; height: 29px; object-fit: contain; }
.pino-e.falta { border-color: #fff; }
.pino-e.falta img { filter: grayscale(1); opacity: .6; }
.pino-e.proximo { border-color: var(--verm); border-width: 3px; }
.pino-e.forte { outline: 3px solid var(--preto); outline-offset: 2px; }
.pino-e.alavanca { border-color: var(--verm); border-width: 3px; }
.pino-e .n { font-weight: 900; font-size: 15px; }
.mapinha .rota path { stroke-width: 9; }
.mapinha .rota .no { stroke-width: 7; }
.ilha.diagrama { background: #fff; }
.diagrama-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.diagrama-svg .contorno { fill: var(--cinza); stroke: var(--preto); stroke-width: 3; }
.diagrama-svg .pino circle { fill: #fff; stroke: var(--preto); stroke-width: 4; }
.diagrama-svg .pino.feito circle { fill: var(--preto); }
.diagrama-svg .pino.agora circle { fill: #fff; stroke: var(--verm); stroke-width: 8; }
.diagrama-svg .pino .ic { fill: none; stroke: var(--preto); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.diagrama-svg .pino.feito .ic { stroke: #fff; }
.diagrama-svg .pino.agora .ic { stroke: var(--preto); }
.diagrama-svg .pino circle.anel-f { fill: none; stroke: var(--preto); stroke-width: 7; }
.diagrama-svg .pino circle.anel-a { fill: none; stroke: var(--verm); stroke-width: 7; }
/* o emblema no Leve: o naipe em traço numa caixa (nunca um dígito solto) */
.emb-l { display: inline-grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 2px solid var(--preto); border-radius: var(--rb); background: #fff; color: var(--preto); }
.emb-l .naipe { width: 60%; height: 60%; }
/* ---------- o mapa entre lugares ---------- */
.tela-mapa { display: flex; flex-direction: column; background: #fff; }
.tela-mapa .ilha { border-bottom: 2px solid var(--preto); }
.mapa-texto { padding: 12px var(--g) 10px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.mapa-texto h1 { margin: 0; font-size: calc(26px * var(--zoomf)); font-weight: 900; line-height: 1.08; outline: none; }
.faltam { display: inline-flex; align-items: center; gap: 6px; }
.faltam .roda { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; }
.faltam .roda b { display: block; line-height: 1.25em; }
.encaixes { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.encaixes li { width: 26px; height: 36px; border: 1.5px dashed var(--preto); display: grid; place-items: center; }
.encaixes li.cheio { border: 1.5px solid var(--preto); background: #fff; }
html.tem-rara .encaixes li.cheio { border: 0; background: var(--rara) center / 100% 100% no-repeat; }
.encaixes li img { width: 18px; height: 18px; object-fit: contain; }
.encaixes li.novo { animation: slot .36s var(--mola) both; }
@keyframes slot { from { transform: translateY(-14px) scale(1.4); opacity: 0; } }
.encaixes .leg { border: 0; width: auto; height: auto; font-size: .8125rem; font-weight: 800; margin-left: 4px; }
.mapa-acoes { position: sticky; bottom: 0; z-index: 4; padding: 10px var(--g) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--preto); }
.mapa-acoes .btn { position: relative; }
.tela-mapa .mapa-acoes { bottom: 0; }
.achado { position: relative; perspective: 1100px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left; width: 100%; display: grid; color: inherit; }
.achado .face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; padding: 14px 16px; border-radius: var(--r); background: #fff; outline: 3px solid var(--preto); outline-offset: -6px; min-height: 150px;
  display: flex; flex-direction: column; gap: 8px; }
html.tem-rara .achado .face { outline: 0; background: none; border: 18px solid transparent; border-image: var(--rara) var(--bi-rara); border-radius: 0; padding: 0 4px; }
.achado .tras { transform: rotateY(180deg); }
.achado.virado .frente { transform: rotateY(-180deg); }
.achado.virado .tras { transform: rotateY(0); }
.achado .cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
html.tem-rara .achado .cab { padding-right: 30px; }
.achado .cab span:last-child { font-weight: 800; letter-spacing: 0; text-transform: none; }
.achado p { margin: 0; font-size: 1rem; line-height: 1.34; }
.achado .fonte { font-size: .8125rem; margin-top: auto; }
.achado .vira { font-size: .8125rem; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.achado.entra-carta { animation: cartaEntra .36s var(--sai) both; }
@keyframes cartaEntra { from { transform: translateY(40px) rotate(-4deg); opacity: 0; } }
/* A CHEGADA A UM LUGAR */
#chegada { position: fixed; inset: var(--barra) 0 0 0; z-index: 60; background: var(--cena); overflow: hidden; }
#chegada .quadro { position: absolute; inset: 0; will-change: transform, opacity; }
#chegada .quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#chegada .quadro.ilha-c img { object-fit: contain; object-position: 50% 30%; }
#chegada .quadro.ilha-v img { object-fit: cover; object-position: 50% 100%; }
#chegada .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px var(--g) calc(26px + env(safe-area-inset-bottom)); background: #fff; border-top: 2px solid var(--preto); z-index: 3; }
#chegada .txt .regua { margin-bottom: 8px; }
#chegada .txt h2 { margin: 0; font-size: calc(36px * var(--zoomf)); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; }
#chegada .txt p { margin: 8px 0 0; font-size: 1.0625rem; line-height: 1.32; max-width: 34em; }
#chegada .mao { position: absolute; right: var(--g); z-index: 4; display: flex; align-items: flex-end; pointer-events: none; }
#chegada .dorsos { display: flex; margin-left: -10px; position: relative; z-index: 0; }
#chegada .dorso { width: 40px; height: 56px; margin-left: -18px; background: #fff; border: 1.5px solid var(--preto); background-size: cover; background-position: center; transform: rotate(calc((var(--k) - 2) * 5deg)); transform-origin: 50% 110%; }
#chegada .toque { display: table; margin: 12px 0 0 auto; font-size: .875rem; font-weight: 800; background: #fff; color: var(--preto); padding: 7px 10px; border: 2px solid var(--preto); border-radius: var(--rb); }
#chegada.leve { background: #fff; }
.carta-lugar { position: relative; z-index: 1; width: 132px; height: 184px; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--preto); border-radius: var(--r); padding: 8px 8px 10px; transform: rotate(-3deg); transform-origin: 50% 90%; }
html.tem-papel .carta-lugar { background: none; border: 12px solid transparent; border-image: var(--papel) var(--bi-papel); border-radius: 0; padding: 0 2px 2px; }
.carta-lugar .idx { display: flex; flex-direction: column; align-items: center; width: 26px; gap: 2px; }
.carta-lugar .idx b { font-size: 20px; font-weight: 900; line-height: 1; }
.carta-lugar .idx img { width: 24px; height: 24px; object-fit: contain; }
.carta-lugar .pp { width: 118%; max-width: none; margin: -6px -9% 0; flex: 1 1 auto; min-height: 0; object-fit: contain; object-position: 50% 60%; }
.carta-lugar .grande { flex: 1 1 auto; display: grid; place-items: center; font-size: 64px; font-weight: 900; }
.carta-lugar .lg { font-size: .8125rem; font-weight: 800; line-height: 1.12; text-align: center; }
.carta-lugar-voo { position: fixed; z-index: 70; pointer-events: none; }
.carta-lugar-voo .carta-lugar { width: 100%; height: 100%; transform: none; }
#chegada.vertical .txt { top: 14px; bottom: auto; background: transparent; border: 0; padding-top: 0; }
#chegada.vertical .txt h2 { font-size: calc(40px * var(--zoomf)); }
/* SELO E CÁLCULO */
.tela-selo { display: flex; flex-direction: column; background: var(--preto); color: #fff; }
.selo-arte { position: relative; background: var(--cena); }
.tela-selo .ilha { background: var(--cena); }
.foto-selo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; opacity: 0; }
.selo-texto { padding: 22px var(--g); display: flex; flex-direction: column; justify-content: center; gap: 14px; flex: 1 1 auto; }
.selo-texto h1 { margin: 0; font-size: calc(34px * var(--zoomf)); line-height: 1.04; font-weight: 900; outline: none; }
.selo-texto p { margin: 0; }
.leque-maco { display: flex; align-items: flex-end; justify-content: center; height: 96px; margin: 6px 0 4px; padding-right: 30px; }
.leque-maco i { width: 48px; height: 68px; margin-right: -30px; background: #fff; border: 1.5px solid #fff; background-size: cover; transform: rotate(calc((var(--k) - var(--m)) * 4deg)); transform-origin: 50% 140%; }
.veu { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; pointer-events: none; z-index: 4; }
.calculando { font-weight: 900; display: flex; gap: 10px; align-items: center; }
.tela-selo .rodape, .tela-r.escuro .rodape { background: var(--preto); color: #fff; border-top-color: #fff; }
.tela-selo .voltar, .tela-r.escuro .voltar, .tela-r.escuro .maco { color: #fff; }
.tela-selo .voltar:hover, .tela-r.escuro .voltar:hover { background: #fff; color: var(--preto); }
/* OS EXEMPLOS, numa tela só antes do selo: areia, cartas brancas de borda fina, nada preto, nenhuma sombra (nos dois modos) */
.tela-casos { display: flex; flex-direction: column; background: var(--cena); }
.casos-arte { display: none; }
.casos-corpo { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px var(--g) 20px; }
.casos-corpo h1 { margin: 0; font-size: calc(28px * var(--zoomf)); line-height: 1.08; font-weight: 900; letter-spacing: -.01em; outline: none; }
.casos-corpo .lead { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.casos-corpo .nota { margin: 0; font-size: .875rem; line-height: 1.3; color: var(--texto2, rgba(35, 31, 32, .74)); }
.casos-lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.caso-item { display: grid; gap: 8px; background: #fff; border: 1px solid var(--cinza); border-radius: 6px; }
.caso-item[data-aberto] { padding-bottom: 12px; }
.caso-abre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; font: inherit; color: inherit; text-align: left;
  background: none; border: 0; border-radius: 6px; cursor: pointer; }
.caso-abre .o { grid-column: 1 / -1; }
.caso-abre .mais { grid-row: 1; grid-column: 2; align-self: start; font-size: .8125rem; font-weight: 700; line-height: 1.25; color: var(--verm); white-space: nowrap; }
.caso-item[data-aberto] .caso-abre { padding-bottom: 0; cursor: text; }
.caso-item[data-aberto] .mais { display: none; }
.caso-abre:focus-visible { outline: 2px solid var(--verm); outline-offset: 1px; }
@media (hover: hover) { .caso-item:not([data-aberto]) .caso-abre:hover .mais { text-decoration: underline; } }
.caso-item .q { font-size: .8125rem; font-weight: 700; line-height: 1.25; color: var(--texto2, rgba(35, 31, 32, .74)); }
.caso-item .o { font-size: .9375rem; font-weight: 600; line-height: 1.28; }
.caso-item .o .ok { color: var(--verm); font-weight: 900; }
.caso-item input { width: calc(100% - 24px); margin: 0 12px; min-height: 44px; padding: 9px 12px; font: inherit; font-size: max(16px, 1rem); color: var(--preto); background: #fff;
  border: 1px solid rgba(35, 31, 32, .34); border-radius: 4px; }
.caso-item input[hidden] { display: none; }
.caso-item input::placeholder { color: rgba(35, 31, 32, .64); }
.caso-item input:focus { outline: 2px solid var(--verm); outline-offset: 1px; border-color: transparent; }
.tela-casos .rodape { position: sticky; bottom: 0; z-index: 5; background: var(--cena); border-top: 1px solid rgba(35, 31, 32, .22); }
@media (min-width: 900px) {
  .tela-casos { display: grid; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: calc(100svh - var(--barra)); }
  .casos-arte { display: grid; align-content: center; grid-row: 1 / 3; position: sticky; top: var(--barra); height: calc(100svh - var(--barra)); border-right: 1px solid rgba(35, 31, 32, .22); }
  .casos-corpo { width: 100%; max-width: 600px; margin: 0 auto; justify-content: center; padding: 32px var(--g) 16px; }
  .tela-casos .rodape { grid-column: 2; width: 100%; max-width: 600px; margin: 0 auto; border: 0; padding: 4px var(--g) 20px; }
}
/* ---------- camadas de efeito ---------- */
#voo { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
#voo > * { position: fixed; margin: 0; }
.quadrado-voo { width: 10px; height: 14px; background: var(--verm); left: 0; top: 0; }
.voo-caixa, .voo-caixa .voo-mesa { display: block; min-height: 0; padding: 0; margin: 0; gap: 0; background: none; }
.voo-caixa .voo-mesa { width: 100%; height: 100%; }
#particulas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }
/* ---------- diálogos (menu Aa, fichas, mapa) ---------- */
.dialogo { position: fixed; inset: 0; z-index: 80; background: rgba(35, 31, 32, .55); display: flex; align-items: flex-end; justify-content: center; }
.dialogo .caixa { width: 100%; max-width: 560px; background: #fff; border-top: 3px solid var(--preto); padding: 18px var(--g) calc(18px + env(safe-area-inset-bottom)); max-height: 90svh; overflow: auto; }
.dialogo h2 { margin: 0 0 12px; font-size: 1.375rem; font-weight: 900; }
.dialogo .grupo { border-top: 2px solid var(--cinza); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.dialogo .grupo > span { font-size: .8125rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.dialogo .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.dialogo .seg button { min-height: 48px; min-width: 48px; padding: 6px 14px; border: 2px solid var(--preto); background: #fff; border-radius: var(--rb); font-weight: 800; cursor: pointer; }
.dialogo .seg button[aria-pressed="true"] { background: var(--preto); color: #fff; }
/* o seletor de língua (27/09): links com o mesmo desenho dos botões; a língua atual, cheia */
.dialogo .seg.linguas a { display: inline-flex; align-items: center; min-height: 48px; padding: 6px 14px; border: 2px solid var(--preto); background: #fff; border-radius: var(--rb); font-weight: 800; color: var(--preto); text-decoration: none; }
.dialogo .seg.linguas a[aria-current="true"] { background: var(--preto); color: #fff; }
/* as bandeiras (27/09): SVG pequeno ao lado do nome da língua; o fio fino deixa ver as bandeiras brancas (Japão, Polônia) no branco */
.band { flex: 0 0 auto; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(35, 31, 32, .28); overflow: hidden; }
.dialogo .seg.linguas a { gap: 8px; }
.dialogo .seg.linguas a[aria-current="true"] .band { box-shadow: 0 0 0 1px #fff; }
/* o nome de cada língua na letra que a tem: a pilha da página em japonês desenha o cirílico largo demais */
.dialogo .seg.linguas a span, .chip-lingua span { font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
/* na capa, discreto: fio fino, sem preencher */
.chip-lingua { border-width: 1px; border-color: rgba(35, 31, 32, .4); font-weight: 700; }
.chip-lingua .band { width: 18px; height: 12px; }
.dialogo .fechar { margin-top: 10px; }
.lista-lugares { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lista-lugares li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; font-weight: 800; font-size: .9375rem; }
.lista-lugares img { width: 30px; height: 30px; object-fit: contain; }
.lista-lugares .st { font-size: .8125rem; font-weight: 800; }
/* RESULTADO: oito telas em sequência */
.tela-r { display: flex; flex-direction: column; background: #fff; touch-action: pan-y; }
.tela-r .corpo { flex: 1 1 auto; padding: 16px var(--g) 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tela-r h1 { margin: 0; font-size: calc(30px * var(--zoomf)); font-weight: 900; line-height: 1.06; letter-spacing: -.015em; outline: none; overflow-wrap: break-word; }
.tela-r .lead { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.tela-r.escuro { background: var(--preto); color: #fff; }
.tela-r .rodape { position: sticky; bottom: 0; z-index: 5; }
.tela-r .rodape .pontos { display: flex; gap: 6px; }
.tela-r .rodape .pontos i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.tela-r .rodape .pontos i.on { background: currentColor; }
.fino { font-size: .875rem; margin: 0; }
.cartao { border: 2px solid var(--preto); border-radius: var(--r); padding: 12px 14px; }
.cartao h3 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 900; }
.cartao p { margin: 0; line-height: 1.38; }
/* COMPUTADOR: duas colunas, a cena sticky à esquerda */
@media (min-width: 900px) {
  :root { --g: 28px; --enu: 28px; }
  html { font-size: calc(17px * var(--zoomf)); }
  .tela-q { display: grid; grid-template-columns: 44% minmax(0, 1fr); min-height: calc(100svh - var(--barra)); }
  .cena, .cena[data-cena="empresa"] { position: sticky; top: var(--barra); height: calc(100svh - var(--barra)); max-height: none; border-right: 2px solid var(--preto); }
  .fio-local, .tela-q.sobre .fio-local { bottom: 18px; left: 18px; }
  .mapinha { width: 210px; right: auto; left: 18px; top: 18px; }
  .conteudo { justify-content: center; padding: 24px 0; }
  .conteudo > .mesa, .conteudo > .rodape-slot { width: 100%; max-width: 600px; margin: 0 auto; }
  .conteudo .rodape { border: 0; background: transparent; padding: 4px var(--g); }
  .tela-q.escura .conteudo .rodape .voltar, .tela-q.escura .conteudo .rodape .maco, .tela-q.escura .conteudo .rodape .avancar { color: #fff; }
  .tela-q.escura .conteudo .rodape .voltar:hover, .tela-q.escura .conteudo .rodape .avancar:hover { background: #fff; color: var(--preto); }
  .tela-q.escura .maco .pilha i { border-color: #fff; }
  .tela-capa, .tela-mapa, .tela-selo { display: grid; grid-template-columns: 55% minmax(0, 1fr); min-height: calc(100svh - var(--barra)); }
  .capa-arte { max-height: none; aspect-ratio: auto; height: 100%; border-right: 2px solid var(--preto); }
  .capa-texto { border-top: 0; padding: 48px; justify-content: center; }
  .capa-texto h1 { font-size: calc(52px * var(--zoomf)); }
  .capa-acoes { margin-top: 12px; max-width: 460px; }
  .tela-mapa > .ilha-col, .tela-selo > .selo-arte { grid-row: 1 / 4; display: grid; align-content: center; border-right: 2px solid var(--preto); background: var(--cena); }
  .tela-mapa > .ilha-col .ilha, .tela-selo .selo-arte .ilha { border: 0; }
  .mapa-texto, .selo-texto { justify-content: center; padding: 40px 48px; max-width: 620px; }
  .mapa-acoes { position: static; border: 0; padding: 0 48px 24px; max-width: 620px; }
  .tela-mapa .rodape, .tela-selo .rodape { grid-column: 2; border: 0; background: transparent; padding: 0 40px 24px; }
  .dialogo { align-items: center; }
  .dialogo .caixa { border: 3px solid var(--preto); border-radius: 6px; }
  #chegada .txt { left: auto; width: 520px; right: 40px; bottom: 40px; border: 2px solid var(--preto); }
  .carta-lugar { width: 168px; height: 232px; }
  .carta-lugar .lg { font-size: .875rem; }
}
@media (min-width: 1440px) { .conteudo > .mesa, .conteudo > .rodape-slot { max-width: 640px; } .tela-q { grid-template-columns: 48% minmax(0, 1fr); } }
/* ---------- modo Leve: sem imagem, sem fonte baixada, o mesmo jogo ---- */
html[data-modo="leve"] .cena { background: #fff; }
html[data-modo="leve"] .enunciado, html[data-modo="leve"] .capa-texto h1, html[data-modo="leve"] .tela-r h1 { letter-spacing: 0; }
html[data-modo="leve"] .cena .diagrama-svg { inset: 6px 0 36px; height: auto; }
html[data-modo="leve"] .tela-capa, html[data-modo="leve"] .capa-arte { background: #fff; }
@media (min-width: 900px) { html[data-modo="leve"] .cena .diagrama-svg { inset: 30px 20px 70px; } }
@media (max-width: 379px) {
  .m-regua .linha { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .m-regua .linha .carta-r .face { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 48px; padding: 6px 10px; text-align: left; gap: 10px; }
  .m-regua .pips, .m-regua .colunas { width: 26px; height: 22px; flex: 0 0 26px; }
  .m-regua .linha .txt { font-size: .9375rem; }
}
@media (max-width: 899px) and (max-height: 780px) {
  :root { --enu: 20px; --rodape: 50px; }
  .enunciado { font-size: calc(var(--enu) * min(var(--zoomf), 1.08)); }
  .carta-r .face { font-size: .9375rem; line-height: 1.22; }
  .tela-mapa .ilha { width: min(100%, 40svh); margin: 0 auto; }
  .mapa-texto { gap: 7px; padding-top: 10px; padding-bottom: 6px; }
  .achado .face { min-height: 0; padding: 10px 12px; gap: 6px; }
  .achado p { font-size: .9375rem; line-height: 1.3; }
  .encaixes li { width: 22px; height: 30px; }
  .mapa-acoes { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}
/* ---------- telas estreitas (320–359 px) ---------- */
@media (max-width: 359px) {
  .respostas.grade3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fio6 ol { gap: 3px; }
  .fio6 li { width: 27px; height: 27px; }
  .fio6 li img { width: 21px; height: 21px; }
  .marca span { display: none; }
}
html[data-aa="2"] .respostas.grade3, html[data-aa="3"] .respostas.grade3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-aa="2"] .m-regua .linha, html[data-aa="3"] .m-regua .linha { grid-template-columns: minmax(0, 1fr); }
html[data-aa="2"] .m-regua .linha .carta-r .face, html[data-aa="3"] .m-regua .linha .carta-r .face { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 52px; padding: 6px 12px; text-align: left; gap: 12px; }
html[data-aa="2"] .m-regua .linha .txt, html[data-aa="3"] .m-regua .linha .txt { font-size: 1rem; }
html[data-aa="2"] .m-regua .pips, html[data-aa="2"] .m-regua .colunas, html[data-aa="3"] .m-regua .pips, html[data-aa="3"] .m-regua .colunas { width: 26px; height: 22px; flex: 0 0 26px; }
html[data-aa="3"] .m-inventario .respostas.grade2 { grid-template-columns: minmax(0, 1fr); }
html[data-aa="3"] .fio-local .qual { display: none; }
html[data-aa="2"] .tela-mapa .ilha, html[data-aa="3"] .tela-mapa .ilha { width: min(100%, 40svh); margin: 0 auto; }
@media (max-width: 899px) and (max-height: 780px) { html[data-aa="2"] .tela-mapa .ilha, html[data-aa="3"] .tela-mapa .ilha { width: min(100%, 29svh); }
  html[data-aa="2"] .mapa-texto h1, html[data-aa="3"] .mapa-texto h1 { font-size: calc(26px * min(var(--zoomf), 1.08)); }
  html.tem-rara[data-aa="2"] .achado .face, html.tem-rara[data-aa="3"] .achado .face { border-width: 12px; } }
@media (max-width: 899px) { html[data-aa="2"] .mapa-texto, html[data-aa="3"] .mapa-texto { gap: 7px; padding-top: 10px; padding-bottom: 6px; } html[data-aa="2"] .achado .face, html[data-aa="3"] .achado .face { min-height: 0; padding: 10px 12px; gap: 6px; } html[data-aa="2"] .achado p, html[data-aa="3"] .achado p { line-height: 1.28; } html[data-aa="2"] .tela-mapa .ilha, html[data-aa="3"] .tela-mapa .ilha { width: min(100%, 34svh); } }
/* ---------- movimento reduzido: nada anda, tudo aparece pronto -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cena > img { transform: none !important; }
}
html.sem-movimento *, html.sem-movimento *::before, html.sem-movimento *::after { animation: none !important; transition: none !important; }
.tela-q.dn1 .carta-q .papel { padding: 10px 14px 12px; }
html.tem-papel .tela-q.dn1 .carta-q .papel { padding: 0; border-width: 12px; }
.tela-q.dn1 .mesa { gap: 10px; padding-top: 10px; padding-bottom: 12px; }
.tela-q.dn1 .apoio { margin-top: 6px; }
.tela-q.dn2 .mesa { gap: 8px; padding-top: 8px; padding-bottom: 10px; }
.tela-q.dn2 .carta-r .face { padding: 6px 12px; min-height: 50px; }
.tela-q.dn2 .carta-r { min-height: 50px; }
html.tem-papel .tela-q.dn2 .carta-r .frente { padding: 0 4px; border-width: 8px; }
html.tem-papel .tela-q.dn2 .carta-q .papel { border-width: 10px; }
.tela-q.dn2 .carta-q .regua { margin-bottom: 5px; }
.tela-q.dn2 .enunciado .balao { margin: 7px 0 7px 24px; padding: 7px 10px; }
.tela-q.dn2 .m-objeto .carta-r .face { min-height: 92px; }
.tela-q.dn2 .m-objeto .obj { height: 44px; }
.tela-q.dn2 .m-objeto .obj img { width: 46px; height: 46px; }
.tela-q.dn2 .m-palpite .mini { height: 30px; }
.tela-q.dn2 .m-inventario .carta-r .face { padding: 4px 6px 4px 5px; min-height: 52px; }
@media (min-width: 380px) { html[data-aa="1"] .tela-q.dn2 .m-regua .linha .carta-r .face, html:not([data-aa]) .tela-q.dn2 .m-regua .linha .carta-r .face { min-height: 106px; } }
.tela-q.dn3 .carta-r .face { padding: 4px 10px; min-height: 48px; }
.tela-q.dn3 .carta-r { min-height: 48px; }
html.tem-papel .tela-q.dn3 .carta-r .frente { border-width: 7px; padding: 0 5px; }
.tela-q.dn3 .carta-r .tecla { width: 24px; height: 24px; }
.tela-q.dn3 .m-inventario { --ico: 36px; }
.tela-q.dn3 .m-inventario .carta-r .face { min-height: 48px; padding: 3px 5px 3px 4px; column-gap: 5px; }
html.tem-papel .tela-q.dn3 .m-inventario .carta-r .frente { border-width: 7px; }
.tela-q.dn3 .m-inventario .txt, .tela-q.dn3 .m-inventario .txt small { line-height: 1.12; }
.tela-q.dn3 .apoio { font-size: .875rem; line-height: 1.28; }
.tela-q.dn3 .mesa { padding-top: 6px; padding-bottom: 8px; }
html.tem-papel .tela-q.dn3 .carta-r .frente { border-width: 5px; padding: 0 6px; }
html.tem-papel .tela-q.dn3 .carta-q .papel { border-width: 8px; }
.tela-q.dn3 .carta-q .regua { margin-bottom: 4px; }
.tela-q.dn3 .enunciado { line-height: 1.12; }
.tela-q.dn3 .enunciado .balao { margin: 5px 0 5px 24px; padding: 6px 10px; }
.tela-q.dn3 .apoio { margin-top: 4px; line-height: 1.22; }
.tela-q.dn4 .mesa { padding: 4px 12px 6px; gap: 6px; }
.tela-q.dn4 .enunciado .balao { margin: 4px 0 4px 22px; padding: 5px 9px; }
.tela-q.dn4 .respostas { gap: 8px; }
.tela-q.dn4 .carta-r .face { font-size: .9375rem; line-height: 1.2; padding: 3px 8px; }
html.tem-papel .tela-q.dn4 .carta-r .frente { border-width: 4px; padding: 0 6px; }
.tela-q.dn4 .m-inventario { --ico: 34px; }
.tela-q.dn4 .m-inventario .carta-r .face { padding: 2px 4px; }
html.tem-papel .tela-q.dn4 .m-inventario .carta-r .frente { border-width: 5px; }
.tela-q.dn4 .m-inventario .txt, .tela-q.dn4 .m-inventario .txt small { line-height: 1.1; }
.tela-q.dn4 .continuar-junto { min-height: 52px; }
.tela-q.dn3 .carta-r.fixa .frente { padding: 3px 10px !important; }
.tela-q.dn4 .carta-q .papel { padding: 6px 10px 8px; }
html.tem-papel .tela-q.dn4 .carta-q .papel { padding: 0; }
.tela-q.dn5 .enunciado { line-height: 1.14; }
.tela-q.dn5 .enunciado .balao { display: inline; margin: 0; padding: 0; background: none; color: inherit; font-size: 1em; line-height: inherit; }
.tela-q.dn5 .enunciado .balao::before { position: static; display: inline-block; margin: 0 6px 0 0; padding: 0 4px; border: 1.5px solid currentColor; border-radius: 2px; font-size: 11px; line-height: 15px; vertical-align: 3px; color: inherit; }
.tela-q.dn5 .enunciado .balao::after { display: none; }
.tela-q.dn5 .balao .num { background: var(--preto); color: #fff; }
.tela-q.escura.dn5 .balao .num { background: #fff; color: var(--preto); }
.tela-q.dn5 .rodape { padding-top: 1px; padding-bottom: calc(1px + env(safe-area-inset-bottom)); }
.tela-q.dn5 .carta-r .face { line-height: 1.15; }
.tela-q.dn5 .mesa { gap: 5px; }
.tela-q.dn5 .m-inventario .txt, .tela-q.dn5 .m-inventario .txt small { line-height: 1.08; }
.tela-q.dn5 .apoio { font-size: .875rem; line-height: 1.2; margin-top: 3px; }
.tela-q.dn5 .carta-r .idx .naipe, .tela-q.dn5 .carta-r .idx .naipe-l { display: none; }
.tela-q.dn5 :is(.m-situacao, .m-decisao, .m-caso, .m-fato) .carta-r .face { padding-top: 2px; padding-bottom: 2px; gap: 10px; }
html.tem-papel .tela-q.dn5 :is(.m-situacao, .m-decisao, .m-caso, .m-fato) .carta-r .frente { border-width: 4px; }
.tela-q.dn5 .carta-r .lapis { height: 20px; width: 18px; font-size: .9375rem; }
.tela-q.dn5 :is(.m-situacao, .m-decisao, .m-caso) .carta-r .face { gap: 8px; padding-left: 8px; padding-right: 6px; }
.tela-q.dn5 :is(.m-situacao, .m-decisao, .m-caso) .carta-r .tecla { width: 22px; height: 22px; }
html.tem-papel .tela-q.dn5 .carta-q .papel { border-width: 7px; }
.tela-q.dn5 .carta-q .regua { margin-bottom: 3px; }
.tela-q.dn6 .enunciado { line-height: 1.1; }
html.tem-papel .tela-q.dn6 .carta-q .papel { border-width: 5px; }
.tela-q.dn6 .carta-q .papel { padding: 4px 8px 6px; }
html.tem-papel .tela-q.dn6 .carta-q .papel { padding: 0; }
.tela-q.dn6 .carta-r .face { line-height: 1.12; }
.tela-q.dn6 .mesa { padding-top: 3px; padding-bottom: 4px; }
/* quando a pergunta rola, só o controle obrigatório (o Continuar) fica preso ao pé; o rodapé (Voltar e maço) fica no fim da
   página, e nenhuma alternativa passa por baixo dele (AX-0037, que substitui a parte do rodapé da AX-0032) */
.tela-q.rola .continuar-junto { position: sticky; bottom: 8px; z-index: 5; }
@media (min-width: 900px) { .tela-q.dn2 .conteudo { padding: 12px 0; } .tela-q.dn3 .conteudo { padding: 4px 0; } .tela-q.dn3 .conteudo .rodape { min-height: 50px; } }
html[data-modo="leve"] .m-objeto .carta-r .face { min-height: 72px; padding-top: 42px; }
html[data-modo="leve"] .m-inventario .carta-r .face { display: flex; align-items: flex-start; gap: 8px; }
html[data-modo="leve"] .m-inventario .carta-r .face .tecla { width: 22px; height: 22px; flex: 0 0 22px; font-size: .75rem; }
html[data-modo="leve"] .encaixes li b { font-size: .8125rem; font-weight: 900; }
@media (max-width: 899px) {
  html[data-modo="leve"] .tela-q .cena .diagrama-svg { inset: 4px 8px 50px 8px; width: auto; height: auto; }
  html[data-modo="leve"] .tela-q.sobre .cena .diagrama-svg { bottom: 80px; }
}
.tela-q.dn2 .continuar-junto { margin-top: 4px; }
.tela-q.dn4 .continuar-junto { margin-top: 6px; }
@media (max-width: 899px) { .m-objeto .obj { height: 42px; } .m-objeto .obj img { width: 46px; height: 46px; } .m-objeto .txt { font-size: .875rem; line-height: 1.14; } .m-objeto .carta-r .face { min-height: 88px; padding-bottom: 6px; }
  html.tem-papel .m-objeto .carta-r .frente { border-width: 7px; padding: 0 3px 2px; } html.tem-papel .m-objeto .frente .tecla { top: 10px; left: 10px; } }
.nq { white-space: nowrap; }
/* ---------- a área que o navegador mostra no celular (iPhone 390×664, Android 360×640): AX-0037 ---------- */
.achado .cab span { white-space: nowrap; }
.achado .cab { flex-wrap: wrap; }
.tela-selo .rodape { position: sticky; bottom: 0; z-index: 5; }
.tela-q.dn7 .enunciado { font-size: calc(18px * min(var(--zoomf), 1.08)); line-height: 1.1; }
.tela-q.dn7 .carta-q .regua { margin-bottom: 2px; }
.tela-q.dn8 .rodape { min-height: 48px; padding-top: 0; padding-bottom: env(safe-area-inset-bottom); }
.tela-q.dn8 .carta-r .face { font-size: .875rem; line-height: 1.15; }
.tela-q.dn8 .mesa { padding-top: 2px; padding-bottom: 3px; gap: 4px; }
@media (max-width: 899px) and (max-height: 760px) {
  .capa-arte { max-height: 30svh; }
  .capa-texto { padding-top: 12px; padding-bottom: 14px; gap: 10px; }
  .capa-texto h1 { font-size: calc(30px * var(--zoomf)); }
  .capa-texto .lead { font-size: 1rem; line-height: 1.32; }
  .capa-naipes .n { width: 38px; height: 50px; }
  .capa-naipes .n img { width: 28px; height: 28px; }
  .capa-acoes { gap: 8px; }
  .capa-acoes .chip { padding: 6px 11px; font-size: .8125rem; }
  .tela-selo .selo-arte .ilha { width: min(100%, 51svh); margin: 0 auto; }
  .selo-texto { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
  .leque-maco { height: 72px; margin: 2px 0; }
  .leque-maco i { width: 38px; height: 54px; margin-right: -24px; }
  .tela-mapa .ilha { width: min(100%, 34svh); }
  .mapa-texto h1 { font-size: calc(24px * min(var(--zoomf), 1.08)); }
  html.tem-rara .achado .face { border-width: 12px; }
  .mapa-acoes .btn { min-height: 52px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  html[data-aa="2"] .capa-arte, html[data-aa="3"] .capa-arte { max-height: 22svh; }
  html[data-aa="3"] .capa-naipes { display: none; }
  .tela-mapa .ilha { width: min(100%, 30svh); }
  .achado p { font-size: .9375rem; line-height: 1.28; }
}
.fixas-par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tela-q.dn8 .m-inventario .carta-r .face { font-size: 1rem; }
.pino-e .pulso { position: absolute; inset: -5px; border: 3px solid var(--verm); border-radius: var(--rb); opacity: 0; pointer-events: none; }
/* o achado do meio do caminho: uma carta rara na cena (AX-0038) */
.rara-btn { position: absolute; left: var(--g); top: 10px; z-index: 4; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 6px; border: 2px solid var(--preto);
  border-radius: var(--rb); background: #fff; color: var(--preto); font-weight: 900; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.rara-btn .c { width: 24px; height: 33px; display: grid; place-items: center; border: 1.5px solid var(--preto); background: #fff; }
html.tem-rara .rara-btn .c { border: 0; background: var(--rara) center / 100% 100% no-repeat; }
.rara-btn:hover { background: var(--cinza); }
.cena.baixa .rara-btn { left: auto; right: 10px; top: 8px; }
.tela-q.caso-fundo .rara-btn { display: none; }
@media (min-width: 900px) { .rara-btn { left: auto; right: 18px; top: 18px; } }
/* o giro das cartas não depende só de backface-visibility (um motor sem composição mostrava o verso preto e espelhado): a face
   de trás fica invisível e troca na metade do giro (AX-0037) */
.carta-r .verso, .carta-r[aria-checked="true"] .frente, .carta-r[aria-pressed="true"] .frente, .achado .tras, .achado.virado .frente { visibility: hidden; }
.carta-r[aria-checked="true"] .verso, .carta-r[aria-pressed="true"] .verso, .achado.virado .tras { visibility: visible; }
.carta-r .face { transition: visibility 0s linear .16s; }
.achado .face { transition: visibility 0s linear .25s; }
/* texto maior no celular: a ação e os modos logo abaixo do título; a frase e os naipes depois (a escolha de modo à vista, #120) */
@media (max-width: 899px) {
  html[data-aa="2"] .capa-arte, html[data-aa="3"] .capa-arte { max-height: 30svh; }
  html[data-aa="2"] .capa-texto > .retomar, html[data-aa="3"] .capa-texto > .retomar { order: 1; }
  html[data-aa="2"] .capa-acoes, html[data-aa="3"] .capa-acoes { order: 2; }
  html[data-aa="2"] .capa-texto > .lead, html[data-aa="3"] .capa-texto > .lead { order: 3; }
  html[data-aa="2"] .capa-naipes, html[data-aa="3"] .capa-naipes { order: 4; }
  html[data-aa="2"] .capa-texto > .fatos, html[data-aa="3"] .capa-texto > .fatos, html[data-aa="2"] .capa-texto > .aviso, html[data-aa="3"] .capa-texto > .aviso { order: 5; }
  html[data-aa="3"] .tela-mapa .ilha { width: min(100%, 26svh); }
}
#voo > .r1-ilha { object-fit: cover; transform-origin: 50% 50%; max-width: none; }
/* O MUNDO (07-CONTRATO-DO-MUNDO): a faixa é a ilha; o estilo das camadas vem com mundo.js (fora da primeira tela) */
html { hyphens: manual; -webkit-hyphens: manual; }
.tela-q, .tela-mapa, .tela-selo { touch-action: pan-y; }
.mapinha.mapinha { width: auto; }
.cena.com-mundo .mapinha { right: 8px; top: 8px; }
.ilha.mapa-ilha, .ilha.selo-ilha { position: relative; }
.diagrama-svg .contorno2 { fill: none; stroke: var(--preto); stroke-width: .8; vector-effect: non-scaling-stroke; }
.obrigatoria { margin: 0; font-size: .9375rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.obrigatoria::before { content: ""; width: 14px; height: 3px; background: var(--verm); flex: 0 0 auto; }
.tela-q.escura .obrigatoria { color: #fff; }
.link.clara { color: #fff; }
.tela-selo .selo-texto .link { align-self: flex-start; }
/* no celular baixo, a ilha do selo fica em até 38% da altura e o botão preso ao pé (§17.1, AX-0037) */
@media (max-width: 899px) { .tela-selo .selo-arte .ilha { width: min(100%, 57svh); margin: 0 auto; } .tela-selo .rodape { position: sticky; bottom: 0; z-index: 5; } }
@media (max-width: 899px) and (max-height: 760px) { .tela-selo .selo-arte .ilha { width: min(100%, 55svh); } }
/* o Leve: a ilha da capa do kit (leve/ilha-capa.svg) no lugar do diagrama */
.ilha.diagrama.kit > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-inventario .ico .kit, .m-objeto .obj.kit { display: grid; place-items: center; }
.m-inventario .ico .kit svg { width: var(--ico); height: var(--ico); }
.m-objeto .obj.kit svg { width: 54px; height: 36px; }
.verso .kit svg g { stroke: #fff; }
/* o ✓ sobre o ícone do kit, na carta marcada do Leve (fundo #EDEDED): o vermelho escuro do canon, que passa de 4,5:1 ali (o vermelho dá 4,2) */
html[data-modo="leve"] .m-inventario .face.verso .ico .ok { color: #AF0421; }

/* árabe (dir=rtl): o balão da fala da IA abre para o outro lado */
[dir="rtl"] .enunciado .balao { margin-left: 0; margin-right: 24px; }
[dir="rtl"] .enunciado .balao::before { left: auto; right: -24px; }
[dir="rtl"] .enunciado .balao::after { left: auto; right: -7px; border-right: 0; border-left: 7px solid var(--preto); }
[dir="rtl"] .tela-q.escura .enunciado .balao::after { border-left-color: #fff; }
[dir="rtl"] .tela-q.dn2 .enunciado .balao { margin: 7px 24px 7px 0; }
[dir="rtl"] .tela-q.dn3 .enunciado .balao { margin: 5px 24px 5px 0; }
[dir="rtl"] .tela-q.dn4 .enunciado .balao { margin: 4px 22px 4px 0; }
[dir="rtl"] .tela-q.dn5 .enunciado .balao { margin: 0; }
[dir="rtl"] .tela-q.dn5 .enunciado .balao::before { margin: 0 0 0 6px; }
