/* Detetives da Qualidade · SMX Logistics — Konvéz Studio
   Pixel art nas cores da SMX: marinho e azul dominantes, amarelo de destaque, papel para falas e documentos.
   Caixas "pixeladas": contorno sólido com box-shadow e sombra dura deslocada, sem cantos arredondados. */
:root {
  --k: #0D1626;          /* contorno */
  --fundo: #0B2547;
  --fundo-2: #06182F;
  --fundo-3: #22385C;
  --azul: #004F9E;
  --azul-claro: #3D86D6;
  --amarelo: #FAB14A;
  --amarelo-esc: #C9811A;
  --papel: #F5F2EA;
  --papel-2: #DCD3BE;
  --tinta: #13233A;
  --tinta-2: #4A5A70;
  --cinza: #9FB4D4;
  --certo: #1F8A5B;
  --certo-claro: #7FD1A4;
  --errado: #C2412D;
  --px: 'Pixelify Sans', ui-monospace, 'Courier New', monospace;
  --texto: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background-color: var(--fundo); color: #fff; font-family: var(--texto); font-size: 18px; line-height: 1.45;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 18px 16px 28px; }
main:focus, main:focus-visible { outline: none; }
body.em-jogo main { max-width: 1240px; padding: 0 0 20px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rotulo { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--amarelo); }
.sutil { color: #C9D4E5; font-size: 15px; }
.estreito { max-width: 620px; margin: 0 auto; }

/* ---------- botões ---------- */
.px-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 20px; border: 0;
  background: var(--papel); color: var(--tinta); font-size: 18px; font-weight: 600;
  box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px var(--fundo-2); margin: 3px 7px 7px 3px;
  transition: transform .08s ease, box-shadow .08s ease;
}
.px-btn:hover { background: #fff; }
.px-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px var(--k), 1px 1px 0 3px var(--fundo-2); }
.px-btn.amarelo { background: var(--amarelo); color: var(--k); font-weight: 700; box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px var(--amarelo-esc); }
.px-btn.amarelo:hover { background: #ffc46e; }
.px-btn.grande { min-height: 58px; font-size: 21px; }
.px-btn.largo { width: calc(100% - 10px); }
.px-btn[disabled] { opacity: .45; pointer-events: none; }
.voltar-px { background: none; border: 0; color: var(--cinza); font-size: 16px; padding: 8px 0; margin-bottom: 8px; display: block; }
.voltar-px:hover { color: #fff; }
.link-px { background: none; border: 0; color: var(--cinza); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 8px; }

/* ---------- rodapé, aviso, carregando ---------- */
.rodape { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); font-size: 15px; color: rgba(255,255,255,.8); text-align: center; border-top: 2px solid rgba(255,255,255,.08); margin-top: 8px; }
.rodape-smx { height: 30px; width: auto; }
.rodape-evento { font-family: var(--px); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--amarelo); }
.rodape-dev { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; color: rgba(255,255,255,.7); line-height: 1; }
.rodape-konvez { height: 16px; width: auto; display: inline-block; }
.rodape-studio { font-weight: 700; font-size: 16px; color: #F4F2EA; letter-spacing: .02em; position: relative; top: -2px; }
body.em-jogo .rodape { padding-top: 14px; }
.aviso { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; background: var(--papel); color: var(--tinta); padding: 12px 18px; box-shadow: 0 0 0 3px var(--k); font-size: 16px; max-width: calc(100vw - 40px); }
.carregando { display: grid; place-items: center; min-height: 50vh; }
.carregando i { width: 24px; height: 24px; background: var(--amarelo); box-shadow: 0 0 0 3px var(--k); animation: pisca .6s steps(2) infinite; }
@keyframes pisca { 50% { transform: rotate(45deg) scale(.7); } }

/* ---------- capa ---------- */
.capa-px { display: grid; gap: 24px; justify-items: start; padding-top: 2vh; }
.capa-logo { height: 40px; width: auto; }
.capa-titulo { display: grid; gap: 12px; }
.capa-titulo h1 { font-size: clamp(42px, 9vw, 76px); font-weight: 700; line-height: .95; text-shadow: 4px 4px 0 var(--k); }
.capa-titulo h1 span { color: var(--amarelo); }
.capa-titulo p { max-width: 44ch; color: #DCE6F4; font-size: 18px; }
.capa-elenco { display: flex; align-items: flex-end; gap: 4px; padding: 0 0 6px; width: 100%; overflow: hidden; border-bottom: 6px solid var(--azul); box-shadow: 0 3px 0 var(--k); }
.capa-elenco img { width: clamp(40px, 10vw, 72px); height: auto; image-rendering: pixelated; animation: pula 1.6s steps(2) infinite; animation-delay: calc(var(--i) * .2s); }
@keyframes pula { 50% { transform: translateY(-3px); } }
.capa-acoes { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.capa-acoes .grande { flex: 1 1 100%; }
@media (min-width: 640px) { .capa-acoes .grande { flex: 0 1 auto; } }

/* ---------- painéis e formulários ---------- */
.painel-px { background: var(--fundo-2); padding: 22px; box-shadow: 0 0 0 3px var(--k), 0 0 0 6px var(--azul); margin: 6px; display: grid; gap: 14px; }
.painel-px h2 { font-size: 30px; }
.form { display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 15px; font-weight: 600; }
.campo small { font-size: 13px; color: var(--cinza); }
.campo input, .campo select { min-height: 50px; padding: 10px 12px; border: 0; background: var(--papel); color: var(--tinta); font-size: 18px; box-shadow: inset 3px 3px 0 var(--papel-2), 0 0 0 3px var(--k); width: 100%; border-radius: 0; }
.campo input:focus, .campo select:focus { outline: none; box-shadow: inset 3px 3px 0 var(--papel-2), 0 0 0 3px var(--amarelo); }
.campo-pin { letter-spacing: .5em; font-size: 24px !important; }
.duas { display: grid; gap: 16px; }
@media (min-width: 560px) { .duas { grid-template-columns: 1fr 1fr; } }
.form-erro { background: var(--errado); color: #fff; padding: 10px 14px; box-shadow: 0 0 0 3px var(--k); font-size: 15px; }

/* ---------- fala (fora do jogo) ---------- */
.fala-px { display: flex; gap: 12px; align-items: flex-start; }
.retrato-px { flex-shrink: 0; width: 60px; height: 60px; background: var(--azul); box-shadow: 0 0 0 3px var(--k); overflow: hidden; }
.retrato-px img { width: 100%; height: 100%; object-fit: cover; object-position: top; image-rendering: pixelated; }
.balao-px { flex: 1; background: var(--papel); color: var(--tinta); padding: 8px 12px 10px; box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px var(--fundo-2); margin-right: 6px; }
.balao-px .balao-nome { display: block; font-size: 13px; font-weight: 700; color: var(--azul); letter-spacing: .08em; }
.fala-px.iris .balao-px { box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); background: #fff; }
.fala-px.iris .balao-nome { color: var(--amarelo-esc); }

/* ---------- quadro da investigação ---------- */
.quadro { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; }
.quadro-cab { display: flex; align-items: center; gap: 12px; }
.quadro-av { width: 48px; height: 48px; background: var(--amarelo); box-shadow: 0 0 0 3px var(--k); overflow: hidden; }
.quadro-av img { width: 100%; height: 100%; object-fit: cover; object-position: top; image-rendering: pixelated; }
.quadro-nome { display: grid; flex: 1; min-width: 0; }
.quadro-nome strong { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quadro-nome span { font-size: 14px; color: var(--cinza); }
.quadro-pts { display: grid; justify-items: end; }
.quadro-pts b { font-size: 24px; color: var(--amarelo); line-height: 1; }
.quadro-pts span { font-size: 12px; color: var(--cinza); }
.quadro-pistas { display: grid; gap: 8px; }
.pistas-px { display: flex; flex-wrap: wrap; gap: 8px; }
.pista-px { font-size: 15px; font-weight: 700; padding: 4px 10px; background: var(--amarelo); color: var(--k); box-shadow: 0 0 0 2px var(--k); margin: 2px; }
.pista-px.vazia { background: transparent; color: var(--cinza); box-shadow: inset 0 0 0 2px #3A5480; font-weight: 400; }
.casos-px { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.caso-px {
  width: calc(100% - 9px); display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; text-align: left;
  background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px var(--fundo-2); margin: 3px 6px 6px 3px;
  transition: transform .08s ease;
}
.caso-px:not([disabled]):hover { transform: translate(-1px, -2px); }
.caso-cena { width: 104px; height: 58px; flex-shrink: 0; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--k); }
.caso-txt { display: grid; flex: 1; min-width: 0; gap: 1px; }
.caso-num { font-size: 12px; letter-spacing: .14em; color: var(--azul); }
.caso-titulo { font-size: 18px; font-weight: 700; line-height: 1.1; }
.caso-status { font-size: 13px; color: var(--tinta-2); }
.caso-ic { width: 26px; height: 26px; image-rendering: pixelated; flex-shrink: 0; }
.caso-px.disponivel { background: #fff; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k), 5px 5px 0 6px var(--fundo-2); }
.caso-px.disponivel .caso-status { color: var(--azul); font-weight: 600; }
.caso-px.concluida .caso-num, .caso-px.concluida .caso-status { color: var(--certo); }
.caso-px.bloqueada { background: var(--fundo-3); color: #C9D4E5; cursor: not-allowed; }
.caso-px.bloqueada .caso-cena { filter: grayscale(1) brightness(.6); }
.caso-px.bloqueada .caso-num, .caso-px.bloqueada .caso-status { color: var(--cinza); }
.quadro-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 420px) { .caso-cena { width: 80px; height: 45px; } .caso-titulo { font-size: 16px; } }

/* ---------- jogo ---------- */
.jogo { display: grid; }
.hud {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--fundo-2); box-shadow: inset 0 -4px 0 var(--azul);
}
.hud-voltar { width: 40px; height: 40px; flex-shrink: 0; border: 0; background: var(--fundo); box-shadow: 0 0 0 2px var(--cinza); display: grid; place-items: center; }
.hud-voltar svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; }
.hud-caso { display: grid; flex: 1; min-width: 0; }
.hud-caso strong { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-lupa { display: flex; align-items: center; gap: 6px; padding: 4px 8px; box-shadow: 0 0 0 3px var(--amarelo); }
.hud-lupa img { width: 18px; height: 18px; image-rendering: pixelated; }
.hud-lupa b { font-size: 16px; }
.hud-pts { display: grid; justify-items: end; line-height: 1.1; }
.hud-pts b { font-size: 19px; color: var(--amarelo); }
.hud-pts span { font-size: 11px; color: var(--cinza); }
.jogo-grade { display: grid; gap: 14px; }
.jogo-principal { display: grid; gap: 14px; align-content: start; min-width: 0; }
.palco { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc(50vh * 16 / 9)); justify-self: center; background: #E9EEF5; overflow: hidden; }
.palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.palco-tag { position: absolute; left: 8px; top: 8px; font-size: 13px; padding: 3px 8px; background: rgba(6,24,47,.88); color: #fff; box-shadow: 0 0 0 2px var(--amarelo); }
.palco-pontos { position: absolute; inset: 0; }
.ponto { position: absolute; border: 0; background: rgba(250,177,74,.0); display: grid; place-items: center; padding: 0; }
.ponto:hover, .ponto:focus-visible { background: rgba(250,177,74,.22); outline: 2px dashed var(--amarelo); outline-offset: 0; }
.losango {
  width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--amarelo); color: var(--k); font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 3px var(--k); transform: rotate(45deg); animation: brilho 1.2s steps(2) infinite;
}
.losango b { transform: rotate(-45deg); line-height: 1; }
.ponto.visto .losango { background: var(--certo-claro); animation: none; }
@keyframes brilho { 50% { box-shadow: 0 0 0 3px var(--k), 0 0 0 6px rgba(250,177,74,.55); } }
.dica-acao { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #DCE6F4; padding: 6px 4px; }
.dica-acao .losango { flex-shrink: 0; font-size: 12px; width: 18px; height: 18px; }

.dialogo { display: flex; gap: 12px; align-items: flex-start; padding: 0 12px; }
.retrato { flex-shrink: 0; width: 72px; height: 72px; background: var(--azul); box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px var(--fundo-2); overflow: hidden; margin-top: 3px; }
.retrato img { width: 100%; height: 100%; object-fit: cover; object-position: top; image-rendering: pixelated; }
.retrato[data-quem="iris"] { background: var(--amarelo); }
.retrato[data-quem="ramos"] { background: var(--errado); }
.retrato[data-quem="eu"] { background: #9FB4D4; }
.balao {
  position: relative; flex: 1; min-height: 96px; border: 0; text-align: left; display: grid; align-content: start; gap: 4px; padding: 10px 14px 18px;
  background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px var(--fundo-2); margin: 3px 7px 7px 3px;
}
.balao-nome { font-size: 12px; font-weight: 700; color: var(--azul); letter-spacing: .1em; }
.balao-texto { font-size: 18px; line-height: 1.35; min-height: 2.7em; }
.balao-mais { position: absolute; right: 10px; bottom: 2px; font-size: 13px; color: var(--azul); animation: pisca2 .8s steps(2) infinite; }
@keyframes pisca2 { 50% { opacity: 0; } }
.dialogo.iris .balao { background: #fff; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); margin: 6px; }
.dialogo.iris .balao-nome { color: var(--amarelo-esc); }
.dialogo.pensamento .balao { background: var(--fundo-2); color: #fff; box-shadow: 0 0 0 3px var(--cinza); }
.dialogo.pensamento .balao-nome { color: var(--cinza); }
.dialogo.pensamento .balao-texto { font-style: italic; }
.dialogo.pensamento .balao-mais { color: var(--cinza); }

.jogo-acoes { display: grid; gap: 10px; padding: 0 12px; }
.escolhas { display: grid; gap: 10px; }
.escolha {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 0; text-align: left; font-size: 17px;
  background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px var(--fundo-2); margin: 3px 6px 6px 3px;
}
.escolha:hover:not([disabled]) { background: #fff; }
.escolha .letra { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--k); color: var(--amarelo); font-size: 14px; font-weight: 700; }
.escolha.multi .letra { background: #fff; color: var(--k); box-shadow: inset 0 0 0 2px var(--k); }
.escolha.marcada { background: #fff; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }
.escolha.multi.marcada .letra { background: var(--azul); color: #fff; }
.escolha.certa { background: #DDF3E6; box-shadow: 0 0 0 3px var(--certo), 0 0 0 6px var(--k); }
.escolha.certa .letra { background: var(--certo); color: #fff; }
.escolha.errada { background: #FBE2DD; box-shadow: 0 0 0 3px var(--errado), 0 0 0 6px var(--k); }
.escolha.errada .letra { background: var(--errado); color: #fff; }
.escolha[disabled] { cursor: default; }

.docs-px { display: grid; gap: 12px; }
@media (min-width: 560px) { .docs-px { grid-template-columns: 1fr 1fr; } }
.doc-px { display: grid; gap: 2px; text-align: left; border: 0; padding: 10px 12px; background: #fff; color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px var(--fundo-2); margin: 3px 6px 6px 3px; }
.doc-cod { font-weight: 700; color: var(--azul); }
.doc-tit { font-weight: 600; font-size: 16px; line-height: 1.2; }
.doc-meta { font-size: 14px; color: var(--tinta-2); }
.doc-status { justify-self: start; margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 1px 8px; box-shadow: inset 0 0 0 2px currentColor; }
.s-vigente { color: var(--certo); } .s-obsoleto { color: var(--errado); } .s-em { color: var(--amarelo-esc); } .s-sem { color: #6b7280; }
.doc-px.marcada { box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }
.doc-px.certa { background: #DDF3E6; box-shadow: 0 0 0 3px var(--certo), 0 0 0 6px var(--k); }
.doc-px.errada { background: #FBE2DD; box-shadow: 0 0 0 3px var(--errado), 0 0 0 6px var(--k); }

.mural { list-style: none; margin: 0; padding: 12px; display: grid; gap: 10px; background: #C79A5B; box-shadow: 0 0 0 3px #7C5426, 0 0 0 6px var(--k); margin: 6px; }
.mural li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: #FFFDF5; color: var(--tinta); box-shadow: 0 0 0 2px var(--k), 3px 3px 0 2px rgba(0,0,0,.25); font-size: 16px; }
.mural li:nth-child(odd) { transform: rotate(-.6deg); } .mural li:nth-child(even) { transform: rotate(.5deg); }
.mural .pos { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; background: var(--errado); color: #fff; font-weight: 700; border-radius: 50%; }
.mural .txt { flex: 1; line-height: 1.25; }
.mural .mover { display: flex; gap: 4px; }
.mural .mover button { width: 40px; height: 40px; border: 0; background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--k); font-size: 14px; }
.mural .mover button:hover:not([disabled]) { background: var(--azul); color: #fff; }
.mural .mover button[disabled] { opacity: .3; }
.mural li.mexeu { animation: mexe .2s steps(2); }
@keyframes mexe { from { translate: 0 6px; } }
.mural li.certa { background: #DDF3E6; box-shadow: 0 0 0 3px var(--certo); }
.mural li.errada { background: #FBE2DD; box-shadow: 0 0 0 3px var(--errado); }

.bilhete-px { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 14px 10px; background: #FFFDF5; box-shadow: 0 0 0 3px var(--k); margin: 3px; transform: rotate(-1deg); background-image: repeating-linear-gradient(transparent 0 23px, rgba(0,79,158,.15) 23px 24px); }
.bilhete-px span { font-size: clamp(24px, 7vw, 34px); font-weight: 700; color: var(--errado); width: 1.1em; text-align: center; }
.enigma-px { width: calc(100% - 6px); margin: 3px; min-height: 56px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; border: 0; border-radius: 0; background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 3px var(--k); }
.enigma-px:focus { outline: none; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }
.enigma-px.certa { background: #DDF3E6; } .enigma-px.errada { background: #FBE2DD; }
.dica-px { font-size: 15px; color: #DCE6F4; }
.dica-px summary { cursor: pointer; color: var(--amarelo); }
.dica-px p { margin-top: 6px; }

.tv-px { width: calc(100% - 16px); max-width: 460px; justify-self: center; margin: 8px; padding: 10px 10px 4px; background: #fff; color: var(--tinta); box-shadow: 0 0 0 4px var(--k), 0 0 0 8px #2B2F3A; }
.tv-px figcaption { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.tv-px figcaption span { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--tinta-2); }
.tv-px .l-meta { width: 18px; border-top: 3px dashed var(--certo); }
.tv-px svg { width: 100%; height: auto; font-family: var(--texto); font-weight: 700; }

.avatares { display: flex; gap: 16px; }
.avatar { width: 96px; height: 132px; border: 0; padding: 6px; background: var(--papel); box-shadow: 0 0 0 3px var(--k); margin: 3px; }
.avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.avatar.marcada { background: #fff; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }

.frase-px { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 12px; background: #fff; box-shadow: 0 0 0 3px var(--k); margin: 3px; }
.frase-vazia { color: var(--tinta-2); font-size: 15px; }
.fichas-px { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ficha-px { min-height: 46px; max-width: calc(100% - 10px); overflow-wrap: anywhere; padding: 6px 12px; border: 0; font-size: clamp(14px, 4.4vw, 18px); font-weight: 700; background: var(--amarelo); color: var(--k); box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px var(--amarelo-esc); margin: 3px 6px 6px 3px; }
.ficha-px.azul { background: var(--azul); color: #fff; box-shadow: 0 0 0 3px var(--k); margin: 3px; }
.erro-px { color: #FFB4A6; text-align: center; }

.mochila { display: grid; gap: 14px; align-content: start; padding: 12px; background: var(--fundo-2); box-shadow: inset 0 4px 0 var(--azul); }
.mochila .rotulo { display: block; margin-bottom: 8px; }
.mochila-itens { display: flex; flex-wrap: wrap; gap: 10px; }
.item { width: 46px; height: 46px; border: 0; padding: 7px; background: var(--papel); box-shadow: 0 0 0 3px var(--k); margin: 3px; }
.item img { width: 100%; height: 100%; image-rendering: pixelated; }
.item.vazio { background: var(--fundo-3); }
.item.ativo { box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }
.mochila-detalhe { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px; background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 3px var(--amarelo); }
.mochila-detalhe img { width: 40px; height: 40px; image-rendering: pixelated; flex-shrink: 0; }
.mochila-detalhe div { display: grid; gap: 2px; font-size: 15px; line-height: 1.3; }
.confianca-barra { display: flex; gap: 5px; }
.confianca-barra i { flex: 1; height: 20px; background: var(--fundo-3); box-shadow: 0 0 0 2px var(--k); }
.confianca-barra i.media { background: var(--amarelo); }
.confianca-barra i.alta { background: var(--certo-claro); }

.faixa { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 30; padding: 10px 18px; font-size: 20px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px rgba(0,0,0,.35); animation: entra .25s steps(3) both; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.faixa.certo { background: var(--certo); } .faixa.errado { background: var(--errado); } .faixa.quase { background: var(--amarelo-esc); }
.faixa.info { background: var(--azul); font-size: 17px; } .faixa.erro { background: var(--errado); font-size: 16px; }
@keyframes entra { from { transform: translate(-50%, -16px); opacity: 0; } }

@media (min-width: 980px) {
  body.em-jogo main { padding: 0 20px 24px; }
  .jogo-grade { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding-top: 20px; }
  .jogo-grade:has(> .mochila[hidden]) { grid-template-columns: minmax(0, 900px); justify-content: center; }
  .palco { box-shadow: 0 0 0 4px var(--k), 6px 6px 0 4px var(--fundo-2); width: min(100%, calc(44vh * 16 / 9)); }
  .dialogo, .jogo-acoes { padding: 0; }
  .mochila { padding: 16px; box-shadow: 0 0 0 4px var(--k); position: sticky; top: 90px; align-self: start; }
  .hud { padding-left: 20px; padding-right: 20px; }
}

/* ---------- fim de caso e final ---------- */
.fim-px, .final-px { display: grid; gap: 16px; justify-items: center; text-align: center; padding-top: 2vh; }
.carimbo-px { display: inline-block; font-size: 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); padding: 4px 14px; box-shadow: 0 0 0 3px currentColor; transform: rotate(-5deg); }
.carimbo-px.verde { color: var(--certo); background: #fff; }
.carimbo-px.bate { animation: bate .4s steps(4) both; }
@keyframes bate { from { transform: rotate(-5deg) scale(2.2); opacity: 0; } }
.fim-cena { width: min(100%, 420px); image-rendering: pixelated; box-shadow: 0 0 0 4px var(--k); }
.pista-grande-px { font-size: clamp(18px, 5.6vw, 42px); font-weight: 700; letter-spacing: .04em; padding: 8px clamp(12px, 4vw, 22px); max-width: calc(100% - 20px); overflow-wrap: anywhere; text-align: center; background: var(--amarelo); color: var(--k); box-shadow: 0 0 0 4px var(--k), 6px 6px 0 4px var(--amarelo-esc); }
.placar-px { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 440px; }
.placar-px div { display: grid; padding: 8px 4px; background: var(--fundo-2); box-shadow: 0 0 0 3px var(--k); }
.placar-px b { font-size: 24px; color: var(--amarelo); }
.placar-px span { font-size: 13px; color: var(--cinza); }
.acoes-px { display: grid; gap: 8px; width: 100%; max-width: 440px; }
.final-px h1 { font-size: clamp(38px, 9vw, 56px); color: var(--amarelo); text-shadow: 4px 4px 0 var(--k); }
.final-elenco { display: flex; align-items: flex-end; gap: 6px; }
.final-elenco img { width: 64px; image-rendering: pixelated; }
.final-elenco img.eu { width: 84px; }
.lema-px { font-size: 21px; font-weight: 700; color: var(--azul); background: var(--papel); padding: 10px 14px; box-shadow: 0 0 0 4px var(--k), 4px 4px 0 4px var(--fundo-2); max-width: 440px; }
.cartao-px { position: relative; width: 100%; max-width: 440px; display: grid; gap: 4px; padding: 20px 14px 14px; margin-top: 10px; background: #fff; color: var(--k); box-shadow: 0 0 0 4px var(--amarelo), 0 0 0 8px var(--k); }
.cartao-px .carimbo-px { position: absolute; right: 12px; top: -18px; font-size: 14px; }
.cartao-px .rotulo { color: var(--azul); }
.codigo-px { font-size: clamp(40px, 12vw, 54px); font-weight: 700; letter-spacing: .06em; }
.cartao-nome { font-size: 15px; color: var(--tinta-2); }
.cartao-brinde { font-weight: 700; color: var(--certo); }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.confete i { position: absolute; top: -20px; width: 10px; height: 10px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------- ranking ---------- */
.ranking-px { display: grid; gap: 10px; }
.ranking-px h2 { font-size: 32px; }
.abas-px { display: inline-flex; gap: 8px; margin: 6px 0; }
.abas-px button { border: 0; padding: 8px 16px; font-size: 16px; background: var(--fundo-2); color: var(--cinza); box-shadow: 0 0 0 3px var(--k); margin: 3px; }
.abas-px button[aria-selected="true"] { background: var(--amarelo); color: var(--k); font-weight: 700; }
.tabela-box { overflow-x: auto; padding: 8px 10px; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--cinza); padding: 8px; font-weight: 400; }
.tabela td { padding: 10px 8px; border-top: 2px solid rgba(255,255,255,.1); font-size: 16px; }
.tabela .num { text-align: right; white-space: nowrap; }
.tabela tr.eu td { background: rgba(250,177,74,.16); }
.medalha { display: inline-grid; place-items: center; width: 30px; height: 30px; font-weight: 700; background: var(--fundo-3); box-shadow: 0 0 0 2px var(--k); }
.medalha.m1 { background: #F5C451; color: var(--k); } .medalha.m2 { background: #CBD3DE; color: var(--k); } .medalha.m3 { background: #D69A64; color: var(--k); }
.td-setor { display: block; font-size: 13px; color: var(--cinza); }
@media (max-width: 520px) { .col-tempo { display: none; } }

/* =================== MINIGAMES =================== */
.hud-som { width: 40px; height: 40px; flex-shrink: 0; border: 0; background: var(--fundo); box-shadow: 0 0 0 2px var(--cinza); font-size: 18px; }
.jogo.treino .hud { box-shadow: inset 0 -4px 0 var(--amarelo); }
.estrelas-px { display: inline-flex; gap: 6px; font-size: 34px; line-height: 1; }
.estrelas-px i { font-style: normal; color: var(--fundo-3); text-shadow: 3px 3px 0 var(--k); }
.estrelas-px i.cheia { color: var(--amarelo); animation: estrela .4s steps(3) both; }
.estrelas-px i.cheia:nth-child(2) { animation-delay: .25s; }
.estrelas-px i.cheia:nth-child(3) { animation-delay: .5s; }
@keyframes estrela { from { transform: scale(2.4); opacity: 0; } }

.mg-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mg-erros { font-size: 15px; color: var(--cinza); }
.relogio-px { position: relative; height: 18px; background: var(--fundo-3); box-shadow: 0 0 0 3px var(--k); margin: 3px; --resta: 1; }
.relogio-px i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--resta)); background: var(--certo-claro); }
.relogio-px::after { content: attr(data-s) " s"; position: absolute; right: 6px; top: -1px; font-size: 13px; font-weight: 700; color: var(--k); }
.relogio-px.urgente i { background: var(--errado); animation: pisca2 .5s steps(2) infinite; }
.relogio-px.fino { height: 10px; }
.relogio-px.fino::after { display: none; }
.relogio-px.fino i { background: var(--amarelo); }

/* cena do crime */
.palco-pontos.cacando { cursor: crosshair; }
.lista-alvos { display: flex; flex-wrap: wrap; gap: 8px; }
.alvo-px { font-size: 15px; padding: 5px 10px; background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 2px var(--k); margin: 2px; }
.alvo-px.achado { background: var(--certo-claro); text-decoration: line-through; text-decoration-thickness: 2px; }
.alvo-px.perdido { background: #FBE2DD; color: var(--errado); }
.pop { position: absolute; transform: translate(-50%, -50%); font-size: 20px; font-weight: 700; pointer-events: none; animation: sobePop .9s steps(6) forwards; text-shadow: 2px 2px 0 var(--k); }
.pop.bom { color: var(--certo-claro); font-size: 26px; }
.pop.mau { color: #FF8A75; }
@keyframes sobePop { to { transform: translate(-50%, -160%); opacity: 0; } }
.dica-brilho { position: absolute; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px rgba(250,177,74,.4); pointer-events: none; animation: pisca2 .3s steps(2) 5; }

/* chuva */
.arena-chuva { position: relative; height: min(52vh, 420px); overflow: hidden; margin: 3px; background: linear-gradient(#9CC9F5 0 70%, #2F6DB0 70%); box-shadow: 0 0 0 3px var(--k); }
.cesta { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; text-align: center; font-size: 13px; letter-spacing: .14em; background: var(--azul); color: #fff; box-shadow: inset 0 3px 0 var(--k); }
.gota { position: absolute; top: -60px; max-width: 42%; padding: 8px 10px; border: 0; font-size: 16px; font-weight: 600; background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px rgba(0,0,0,.25); animation: cai2 linear forwards; }
@keyframes cai2 { to { top: 100%; } }
.gota.pega { animation-play-state: paused; background: var(--amarelo); transform: scale(.9); opacity: .9; }
.gota.bom { background: var(--certo-claro); }
.gota.mau { background: #FF8A75; }
.resumo-px { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-res { padding: 6px 10px; font-size: 15px; box-shadow: 0 0 0 2px var(--k); margin: 2px; background: var(--papel); color: var(--tinta); }
.chip-res small { display: block; font-size: 12px; }
.chip-res.ok { background: var(--certo-claro); }
.chip-res.mal { background: #FF8A75; }
.chip-res.escapou { background: #FFE2A6; }
.chip-res.neutro { background: var(--fundo-3); color: #C9D4E5; }

/* roda do código */
.roda-box { display: flex; align-items: center; justify-content: center; gap: 10px; }
.roda-gira { font-size: 26px; min-width: 56px; }
.disco { --d: min(64vw, 240px); position: relative; width: var(--d); aspect-ratio: 1; border-radius: 50%; background: var(--papel); box-shadow: 0 0 0 4px var(--k), 0 0 0 10px var(--azul), 0 0 0 13px var(--k); margin: 14px 0; }
.anel { position: absolute; inset: 0; transition: transform .18s steps(3); }
.anel span { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; text-align: center; font-weight: 700; font-size: 14px; line-height: 20px; transform: rotate(calc(var(--i) * 360deg / 26)) translateY(calc(var(--d) / -2 + 13px)); color: var(--tinta); }
.anel.dentro span { color: var(--errado); font-size: 13px; transform: rotate(calc(var(--i) * 360deg / 26)) translateY(calc(var(--d) * -.32)); }
.disco-centro { position: absolute; inset: 38%; border-radius: 50%; display: grid; place-items: center; background: var(--amarelo); box-shadow: 0 0 0 3px var(--k); font-weight: 700; color: var(--k); }
.decifrado { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 10px; background: var(--fundo-2); box-shadow: 0 0 0 3px var(--amarelo); margin: 3px; }
.decifrado span { font-size: clamp(24px, 7vw, 34px); font-weight: 700; color: #fff; width: 1.1em; text-align: center; }
.decifrado.certa { box-shadow: 0 0 0 3px var(--certo-claro); }
.decifrado.certa span { color: var(--certo-claro); }
.decifrado.errada { box-shadow: 0 0 0 3px var(--errado); }

/* esteira */
.esteira { position: relative; height: 150px; overflow: hidden; margin: 3px; background: var(--fundo-2); box-shadow: 0 0 0 3px var(--k); }
.esteira-faixa { position: absolute; left: 0; right: 0; bottom: 18px; height: 22px; background: repeating-linear-gradient(90deg, #5B6473 0 14px, #7D8796 14px 28px); box-shadow: 0 -3px 0 var(--k), 0 3px 0 var(--k); animation: rodaEsteira .6s linear infinite; }
@keyframes rodaEsteira { to { background-position: -28px 0; } }
.esteira-palco { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 30px; }
.doc-esteira { display: grid; gap: 4px; width: min(86%, 340px); padding: 12px 14px; background: #fff; color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px rgba(0,0,0,.3); }
.doc-esteira.entra { animation: entraDir .35s steps(5) both; }
@keyframes entraDir { from { transform: translateX(120%); } }
.doc-esteira.bom { background: var(--certo-claro); }
.doc-esteira.mau { background: #FF8A75; }
.doc-esteira.vai-vigente { animation: vaiEsq .35s steps(4) forwards; }
.doc-esteira.vai-obsoleto { animation: vaiBaixo .35s steps(4) forwards; }
.doc-esteira.vai-sem { animation: vaiDir .35s steps(4) forwards; }
.doc-esteira.cai, .carta-px.cai { animation: caiFora .35s steps(4) forwards; }
@keyframes vaiEsq { to { transform: translate(-60%, 120%) scale(.5); opacity: 0; } }
@keyframes vaiBaixo { to { transform: translateY(120%) scale(.5); opacity: 0; } }
@keyframes vaiDir { to { transform: translate(60%, 120%) scale(.5); opacity: 0; } }
@keyframes caiFora { to { transform: translateY(160%) rotate(25deg); opacity: 0; } }
.caixas-px { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.caixa-px { min-height: 70px; border: 0; font-size: 16px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px var(--fundo-2); margin: 3px 6px 6px 3px; padding: 8px 4px; }
.caixa-px.c-vigente { background: var(--certo); }
.caixa-px.c-obsoleto { background: var(--errado); }
.caixa-px.c-sem { background: #6b7280; }
.caixa-px:active { transform: translate(3px, 3px); }
.resumo-lista { display: grid; gap: 6px; }
.res-linha { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--papel); color: var(--tinta); box-shadow: 0 0 0 2px var(--k); margin: 2px; font-size: 15px; }
.res-linha b { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: var(--certo); }
.res-linha.mal b { background: var(--errado); }
.res-linha small { display: block; color: var(--tinta-2); font-size: 13px; }

/* pode ou não pode */
.baralho { position: relative; height: 190px; display: grid; place-items: center; isolation: isolate; }
.carta-px { position: absolute; width: min(86%, 340px); min-height: 150px; display: grid; place-items: center; padding: 18px; text-align: center; font-size: 20px; font-weight: 600; line-height: 1.25; background: #fff; color: var(--tinta); box-shadow: 0 0 0 4px var(--k), 6px 6px 0 4px var(--fundo-2); touch-action: none; user-select: none; cursor: grab; }
.carta-px.atras { transform: rotate(3deg) translate(8px, 6px); z-index: -1; background: var(--papel-2); }
.carta-px.entra { animation: entraCarta .25s steps(4) both; }
@keyframes entraCarta { from { transform: translateY(-30px) scale(.8); opacity: 0; } }
.carta-px.pende-sim { box-shadow: 0 0 0 4px var(--certo), 6px 6px 0 4px var(--fundo-2); }
.carta-px.pende-nao { box-shadow: 0 0 0 4px var(--errado), 6px 6px 0 4px var(--fundo-2); }
.carta-px.bom { background: var(--certo-claro); }
.carta-px.mau { background: #FF8A75; }
.carta-px.vai-sim { animation: vaiSim .35s steps(4) forwards; }
.carta-px.vai-nao { animation: vaiNao .35s steps(4) forwards; }
@keyframes vaiSim { to { transform: translateX(140%) rotate(20deg); opacity: 0; } }
@keyframes vaiNao { to { transform: translateX(-140%) rotate(-20deg); opacity: 0; } }
.swipe-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swipe-botoes .px-btn { min-height: 60px; font-size: 20px; font-weight: 700; color: #fff; }
.swipe-botoes .nao { background: var(--errado); }
.swipe-botoes .sim { background: var(--certo); }

/* objeção */
.dialogo.depoimento .balao { background: #FFF6DC; box-shadow: 0 0 0 3px var(--errado), 0 0 0 6px var(--k); margin: 6px; }
.dialogo.depoimento .balao-nome { color: var(--errado); }
.dialogo.depoimento .balao-nome::before { content: "DEPOIMENTO · "; }
.depo-nav { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.passos-px { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.passos-px span { padding: 4px 8px; color: var(--cinza); box-shadow: inset 0 0 0 2px #3A5480; }
.passos-px span.atual { color: var(--k); background: var(--amarelo); box-shadow: 0 0 0 2px var(--k); font-weight: 700; }
.passos-px span.feito { color: var(--certo-claro); box-shadow: inset 0 0 0 2px var(--certo); }
.frases-depo { display: grid; gap: 10px; }
.frase-depo { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; padding: 10px 12px; font-size: 17px; line-height: 1.3; background: #FFF6DC; color: var(--tinta); box-shadow: 0 0 0 3px var(--k), 3px 3px 0 3px var(--fundo-2); margin: 3px 6px 6px 3px; }
.frase-depo b { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; background: var(--k); color: var(--amarelo); font-size: 14px; }
.frase-depo:hover { background: #fff; }
.frase-depo.marcada { background: #fff; box-shadow: 0 0 0 3px var(--errado), 0 0 0 6px var(--k); }
.frase-depo.marcada b { background: var(--errado); color: #fff; }

/* marca: SMX + 2ª Semana da Qualidade */
.marca-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--fundo-2); box-shadow: 0 0 0 3px var(--k), inset 0 -4px 0 var(--azul); margin: 3px 3px 10px; }
.marca-topo img { height: 28px; width: auto; }
.selo-sq { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--k); background: var(--amarelo); padding: 5px 10px; box-shadow: 0 0 0 2px var(--k), 3px 3px 0 2px var(--amarelo-esc); }
.selo-sq b { background: var(--k); color: var(--amarelo); padding: 1px 6px; }
.selo-grande { font-size: clamp(15px, 3.6vw, 20px); padding: 8px 14px; transform: rotate(-2deg); }
.hud-logo { height: 22px; width: auto; flex-shrink: 0; margin-right: 4px; }
@media (max-width: 599px) { .hud-logo { display: none; } }
.px-btn.objecao-btn { min-height: 64px; font-size: 28px; font-weight: 700; letter-spacing: .08em; background: var(--errado); color: #fff; box-shadow: 0 0 0 3px var(--k), 5px 5px 0 3px #7A2418; }
.evid-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.evid-px { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border: 0; background: var(--papel); color: var(--tinta); font-size: 14px; box-shadow: 0 0 0 3px var(--k); margin: 3px; }
.evid-px img { width: 40px; height: 40px; image-rendering: pixelated; }
.evid-px.marcada { background: #fff; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }
.splash { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; font-size: clamp(56px, 16vw, 140px); font-weight: 700; color: #fff; text-shadow: 6px 6px 0 var(--k), -3px -3px 0 var(--k), 3px -3px 0 var(--k), -3px 3px 0 var(--k); background: radial-gradient(circle, rgba(194,65,45,.85) 0 35%, transparent 70%); }
.splash.vai { animation: splash 1s steps(8) both; }
@keyframes splash { 0% { transform: scale(2.5) rotate(-8deg); opacity: 0; } 20% { transform: scale(1) rotate(-4deg); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1) rotate(-4deg); } }

/* mural com barbante */
.mural-barbante { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: calc(100% - 14px); max-width: 560px; justify-self: center; margin: 7px; background: #C79A5B; box-shadow: 0 0 0 4px #7C5426, 0 0 0 7px var(--k); }
@media (min-width: 700px) { .mural-barbante { aspect-ratio: 5 / 4; } }
.fios { position: absolute; inset: 0; width: 100%; height: 100%; }
.fios line { stroke: var(--errado); vector-effect: non-scaling-stroke; stroke-width: 4px; }
.fios line.ok { stroke: var(--certo); }
.fios line.mal { stroke: #7A2418; stroke-dasharray: 6 4; }
.fios line.falta { stroke: #fff; stroke-dasharray: 3 5; }
.no-px { position: absolute; transform: translate(-50%, -50%); width: 30%; max-width: 170px; padding: 12px 8px 8px; border: 0; font-size: clamp(12px, 3.2vw, 15px); line-height: 1.15; background: #FFFDF5; color: var(--tinta); box-shadow: 0 0 0 2px var(--k), 3px 3px 0 2px rgba(0,0,0,.3); }
.no-px .tacha { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--errado); box-shadow: 0 0 0 2px var(--k); border-radius: 50%; }
.no-px.sel { background: var(--amarelo); box-shadow: 0 0 0 3px var(--k), 0 0 0 6px #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .gota { animation-duration: 7s !important; }
}

/* =================== LEGIBILIDADE ===================
   Texto corrido, falas, botões, números e códigos em Atkinson Hyperlegible (feita para baixa visão);
   a fonte pixel fica só em títulos, carimbos, selos e efeitos, onde dá o clima sem atrapalhar a leitura. */
h1, h2, .capa-titulo h1, .carimbo-px, .pista-px, .pista-grande-px, .ficha-px, .splash, .faixa,
.px-btn.objecao-btn, .lema-px, .bilhete-px span, .decifrado span, .estrelas-px {
  font-family: var(--px);
}
.rotulo { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.selo-sq { font-size: 14px; letter-spacing: .08em; }
.rodape-evento { font-family: var(--texto); font-size: 15px; letter-spacing: .08em; }
.caso-num { font-weight: 700; letter-spacing: .08em; }
.balao-nome, .balao-px .balao-nome { font-size: 13px; letter-spacing: .06em; }
.balao-texto { font-size: 19px; line-height: 1.4; }
.escolha, .frase-depo, .mural li, .gota { font-size: 18px; }
.caso-titulo { font-family: var(--texto); font-weight: 700; font-size: 19px; }
.caso-num { font-size: 13px; }
.caso-status, .quadro-nome span, .td-setor, .doc-meta, .res-linha small, .chip-res small, .campo small { font-size: 15px; }
.hud-pts b, .quadro-pts b, .placar-px b { font-family: var(--texto); font-weight: 700; }
.hud-pts span, .quadro-pts span, .placar-px span { font-size: 13px; }
.codigo-px { font-family: var(--texto); font-weight: 700; letter-spacing: .04em; }
.relogio-px::after { font-size: 14px; }
.tabela th { font-size: 13px; }
.tabela td { font-size: 17px; }
.anel span { font-family: var(--texto); }
.passos-px { font-size: 14px; }
.alvo-px { font-size: 16px; }
.mg-erros { font-size: 16px; }
.no-px { font-size: clamp(13px, 3.4vw, 16px); }

/* tela cheia e app na tela de início */
.hud-som svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
main { padding-top: max(18px, env(safe-area-inset-top)); }
body.em-jogo main { padding-top: 0; }
.dica-instalar { display: grid; gap: 4px; width: 100%; max-width: 520px; padding: 12px 14px; background: var(--fundo-2); box-shadow: 0 0 0 3px var(--azul); font-size: 15px; line-height: 1.4; }
.dica-instalar strong { color: var(--amarelo); }
.dica-instalar svg { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; fill: none; stroke: #fff; stroke-width: 1.6; }

/* =================== CELULAR: TELA FIXA, SEM ROLAR A PÁGINA ===================
   O jogo ocupa exatamente a altura do aparelho (100dvh). Só a área de ações rola por dentro, se precisar.
   data-modo (posto pelo motor): conversa = cena + fala + ações · mini = minigame (sem a cena) · cena = cena do crime (sem a fala). */
@media (max-width: 979px) {
  body.em-jogo { height: 100dvh; overflow: hidden; }
  body.em-jogo .rodape { display: none; }
  body.em-jogo main { height: 100dvh; padding: 0; overflow: hidden; }
  .jogo { display: flex; flex-direction: column; height: 100dvh; }
  .hud { flex: none; position: relative; }
  .jogo-grade { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px calc(10px + env(safe-area-inset-bottom)); }
  .jogo-principal { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .palco { flex: none; width: min(calc(100% - 6px), calc(30dvh * 16 / 9)); margin: 3px auto; box-shadow: 0 0 0 3px var(--k), 4px 4px 0 3px var(--fundo-2); }
  .dialogo { flex: none; padding: 0; gap: 10px; }
  .retrato { width: 52px; height: 52px; }
  .balao { min-height: 0; padding: 8px 12px 16px; margin-right: 6px; }
  .balao-texto { font-size: 17px; line-height: 1.35; min-height: 0; }
  .dialogo.iris .balao, .dialogo.depoimento .balao { margin: 4px 6px 4px 4px; }
  .jogo-acoes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 10px; align-content: start;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 14px), transparent); mask-image: linear-gradient(#000 calc(100% - 14px), transparent); }
  .px-btn.largo { width: calc(100% - 10px); }
  /* mochila vira uma faixa fina de ícones no rodapé do jogo */
  .mochila { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 0 0; background: none; box-shadow: inset 0 3px 0 var(--fundo-3); }
  .mochila > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .mochila .rotulo { margin: 0; font-size: 12px; }
  .mochila-itens { flex-wrap: nowrap; gap: 6px; }
  .item { width: 34px; height: 34px; padding: 5px; margin: 2px; }
  .item.vazio { display: none; }
  .confianca-barra { gap: 3px; width: 96px; }
  .confianca-barra i { height: 12px; }
  .mochila-detalhe { position: fixed; left: 12px; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 25; margin: 0; box-shadow: 0 0 0 3px var(--amarelo), 0 0 0 6px var(--k); }
  /* modos */
  .jogo[data-modo="mini"] .palco, .jogo[data-modo="mini"] .mochila { display: none; }
  .jogo[data-modo="cena"] .dialogo { display: none; }
  .jogo[data-modo="cena"] .palco { width: min(calc(100% - 6px), calc(46dvh * 16 / 9)); }
  .arena-chuva { height: auto; min-height: 300px; aspect-ratio: 4 / 5; max-height: 54dvh; }
  .mural-barbante { max-height: 60dvh; }
  .faixa { top: calc(70px + env(safe-area-inset-top)); }
}

/* pausa: saiu do app no meio de um caso */
body.pausado .jogo *, body.pausado .jogo *::before, body.pausado .jogo *::after { animation-play-state: paused !important; }
.pausa-tela { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(6,24,47,.86); }
.pausa-caixa { display: grid; gap: 12px; justify-items: center; width: min(100%, 360px); padding: 26px 20px 18px; border: 0; text-align: center; color: #fff; background: var(--fundo); box-shadow: 0 0 0 4px var(--amarelo), 0 0 0 8px var(--k); }
.pausa-titulo { font-family: var(--px); font-size: 34px; font-weight: 700; color: var(--amarelo); }
.pausa-texto { font-size: 17px; color: #DCE6F4; }

/* mural: orientação e dicas */
.mural-guia { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--fundo-2); box-shadow: 0 0 0 2px #3A5480; margin: 2px; }
.mural-guia p { flex: 1; margin: 0; font-size: 15px; line-height: 1.35; color: #DCE6F4; }
.mural-guia p.e-dica { color: var(--amarelo); }
.px-btn.dica-btn { flex: none; min-height: 40px; padding: 4px 12px; font-size: 15px; margin: 0 4px 4px 0; }
.jogo[data-modo="mural"] .mochila { display: none; }
@media (max-width: 979px) {
  .jogo[data-modo="mural"] .palco, .jogo[data-modo="mural"] .dialogo { display: none; }
  .mural-barbante { aspect-ratio: 3 / 4; width: calc(100% - 14px); max-height: none; }
  .no-px { width: 31%; padding: 10px 5px 6px; font-size: clamp(12px, 3.4vw, 14px); line-height: 1.15; }
}
