:root {
  --bg: #14110f; --painel: #1f1a17; --painel2: #2a231f; --linha: #3b322c;
  --texto: #f3ece2; --suave: #b5a796; --papel: #efe4cc; --tinta: #2b2118;
  --vermelho: #b91c1c; --ouro: #e0b04a; --verde: #15803d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--texto); font-family: Inter, system-ui, sans-serif; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
button { font: inherit; cursor: pointer; color: inherit; }
input { font: inherit; font-size: 16px; }
[hidden] { display: none !important; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--suave); margin: 20px 0 8px; }
.cinza { color: var(--suave); font-size: 13px; }
.pad { padding: 14px 16px 24px; }
.carregando { min-height: 100vh; display: grid; place-items: center; color: var(--suave); font-family: 'Special Elite', monospace; }

.btn { border: 1px solid var(--linha); background: var(--painel2); padding: 12px 16px; border-radius: 12px; font-weight: 600; transition: transform .12s, background .15s, opacity .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primario { background: var(--vermelho); border-color: #7f1d1d; color: #fff; }
.btn.grande { padding: 16px 20px; font-size: 18px; width: 100%; }
.btn.fantasma { background: transparent; }
.mini { border: 1px solid var(--linha); background: #0003; border-radius: 8px; padding: 5px 9px; font-size: 12px; margin-top: 6px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--c, #555); display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; box-shadow: 0 0 0 2px #fff3; }
.marca { font-family: 'Special Elite', monospace; letter-spacing: 2px; color: var(--ouro); }

/* ---------- INÍCIO ---------- */
.inicio { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 30%, #2d241e 0%, #0d0b0a 70%); }
.dossie { position: relative; width: min(620px, 100%); background: var(--papel); color: var(--tinta); padding: 40px 28px 26px; border-radius: 4px; box-shadow: 0 30px 80px #000c, inset 0 0 80px #b8a17a55; animation: deslizaDossie .9s cubic-bezier(.2,.8,.2,1) both; }
.dossie.pequeno { width: min(420px, 100%); }
.dossie::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 27px, #a8916b22 27px 28px); pointer-events: none; }
.dossie h1 { font-family: 'Special Elite', monospace; font-size: clamp(30px, 8vw, 46px); margin: 0 0 12px; letter-spacing: 3px; }
.dossie .ref { font-family: 'Special Elite', monospace; font-size: 12px; opacity: .7; margin: 0 0 6px; }
.dossie .maq { font-family: 'Special Elite', monospace; font-size: 16px; line-height: 1.6; }
.dossie input { width: 100%; padding: 12px; border: 2px solid var(--tinta); border-radius: 8px; background: #fffa; color: var(--tinta); }
.clip { position: absolute; top: -14px; left: 40px; width: 26px; height: 60px; border: 4px solid #8a8f96; border-radius: 14px; border-bottom-color: transparent; }
.carimbo { position: absolute; top: 6px; right: 22px; border: 4px solid var(--vermelho); color: var(--vermelho); padding: 4px 12px; font: 20px 'Special Elite', monospace; letter-spacing: 2px; transform: rotate(-12deg); opacity: 0; }
.carimbo.bate { animation: carimbo .45s .4s cubic-bezier(.3,1.6,.5,1) forwards; }
.carimbo.verde { border-color: #16a34a; color: #16a34a; }
.ini-botoes { display: grid; gap: 10px; margin-top: 18px; position: relative; }
.ini-botoes .btn { width: 100%; }
.ini-botoes .btn:not(.primario) { background: #fff6; color: var(--tinta); border-color: #0002; }
.entrar { display: flex; gap: 8px; }
.entrar input { flex: 1; text-transform: uppercase; letter-spacing: 6px; text-align: center; font-weight: 800; }
.aviso { font-size: 12px; opacity: .7; margin: 18px 0 0; }
@keyframes deslizaDossie { from { transform: translateY(60px) rotate(-3deg); opacity: 0; } }
@keyframes carimbo { 0% { transform: scale(3) rotate(-25deg); opacity: 0; } 100% { transform: scale(1) rotate(-12deg); opacity: .9; } }

/* ---------- LOBBY ---------- */
.lobby { min-height: 100vh; }
.lobby-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--linha); background: #0d0b0a; }
.cod-mini b { letter-spacing: 3px; color: var(--ouro); }
.lobby-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 32px; max-width: 1300px; margin: 0 auto; }
.cartaz { background: var(--papel); color: var(--tinta); border-radius: 8px; padding: 40px; text-align: center; font-family: 'Special Elite', monospace; align-self: start; box-shadow: 0 20px 60px #0008; }
.cartaz h2 { font-size: 34px; margin: 6px 0; }
.codigo { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.codigo span { font-size: 90px; font-weight: 800; background: var(--tinta); color: var(--papel); width: 110px; border-radius: 10px; animation: pula .6s cubic-bezier(.3,1.6,.5,1) both; }
.cartaz .sub { opacity: .7; }
@keyframes pula { from { transform: translateY(-40px) scale(.6); opacity: 0; } }
.lobby-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lobby-lista li { display: flex; align-items: center; gap: 10px; background: var(--painel2); padding: 8px 12px; border-radius: 12px; border-left: 4px solid var(--c); animation: entra .4s cubic-bezier(.3,1.5,.5,1) both; }
.lobby-lista li.off { opacity: .5; }
.lobby-lista li.vazio { border-left-color: var(--linha); color: var(--suave); }
.lobby-lista small { color: var(--suave); }
@keyframes entra { from { transform: translateX(-30px); opacity: 0; } }
.niveis { display: grid; gap: 8px; }
.nivel { text-align: left; background: var(--painel2); border: 2px solid var(--linha); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.nivel.on { border-color: var(--ouro); background: #3a2e1d; }
.nivel span { font-size: 13px; color: var(--suave); }
.nivel small { font-size: 11px; color: var(--suave); }
.nivel:disabled { cursor: default; }
.lobby .btn.grande { margin-top: 18px; }
.espera { color: var(--suave); text-align: center; margin: 20px 0; font-family: 'Special Elite', monospace; animation: piscaLento 2s infinite; }
@keyframes piscaLento { 50% { opacity: .4; } }
.regras { margin-top: 18px; background: var(--painel2); border-radius: 12px; padding: 10px 14px; }
.regras summary { cursor: pointer; font-weight: 600; }
.regras-txt { padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--suave); }
.regras-txt b { color: var(--texto); }

/* ---------- MAPA ---------- */
svg#mapa { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; touch-action: none; background: #e8dcc2; }
.m-rot { font: 600 11px Inter, sans-serif; fill: #2b2118; paint-order: stroke; stroke: #f3ead7; stroke-width: 3.5px; pointer-events: none; }
.m-num { font: 800 10px Inter, sans-serif; fill: #1c1917; pointer-events: none; }
.m-ic { font-size: 15px; pointer-events: none; }
.m-cid { font: 800 15px Inter, sans-serif; fill: #2b2118; }
.m-sub { font: 600 11px Inter, sans-serif; fill: #6b5a45; }
.m-ini { font: 800 9px Inter, sans-serif; fill: #fff; pointer-events: none; }
.m-estado { font-size: 15px; }
.m-halo { fill: none; stroke: #fff; stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-est.pode { cursor: pointer; }
.m-est.pode .m-halo { opacity: 1; animation: mPulsa 1s ease-in-out infinite; }
.m-peca { transition: opacity .4s; }
.m-peca.morto { opacity: .45; }
.m-peca.vez .m-pino { animation: mPino 1s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.m-lupa { font-size: 15px; pointer-events: none; }
.m-vit { pointer-events: auto; }
.m-cena { pointer-events: none; }
@keyframes mPulsa { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.3); opacity: .35; } }
@keyframes mPino { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.banner { position: absolute; top: 12px; left: 50%; transform: translate(-50%, -90px); background: #0d0b0aee; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .35s cubic-bezier(.3,1.4,.5,1); pointer-events: none; white-space: nowrap; border: 1px solid var(--linha); z-index: 5; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.banner.vis { transform: translate(-50%, 0); }
.zoom { position: absolute; right: 10px; top: 56px; display: flex; flex-direction: column; gap: 6px; }
.zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #0003; background: #fffd; color: #222; font-size: 20px; font-weight: 700; }

/* ---------- MESA ---------- */
.mesa { height: 100vh; display: flex; flex-direction: column; }
.m-topo { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #0d0b0a; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.chip { background: var(--painel2); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.chip b { color: var(--ouro); letter-spacing: 1px; }
.metas { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.meta-tit { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--suave); }
.meta { background: #3a1414; border: 1px solid #5b1f1f; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.meta.erro { background: var(--painel2); border-color: var(--linha); }
.m-corpo { flex: 1; display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
.m-mapa { position: relative; overflow: hidden; }
.m-lado { background: var(--painel); border-left: 1px solid var(--linha); display: flex; flex-direction: column; min-height: 0; }
.m-vez { padding: 12px; border-bottom: 1px solid var(--linha); }
.vez-card { display: flex; align-items: center; gap: 12px; background: var(--painel2); border: 2px solid var(--c); border-radius: 14px; padding: 12px; animation: entra .4s; }
.vez-card .av { width: 48px; height: 48px; font-size: 16px; }
.vez-card > div:not(.dado-mini) { display: grid; flex: 1; }
.vez-card small { color: var(--suave); font-size: 12px; }
.vez-card b { font-size: 20px; }
.vez-card em { font-size: 13px; color: var(--suave); }
.dado-mini { flex: none; width: 46px; height: 46px; background: #fff; color: #111; border-radius: 10px; display: grid; place-items: center; font-size: 26px; font-weight: 800; box-shadow: 0 4px 0 #bbb; }
.vez-noite { text-align: center; font-family: 'Special Elite', monospace; font-size: 22px; padding: 14px; color: #c7d2fe; }
.m-jogs { padding: 8px 12px; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; border-bottom: 1px solid var(--linha); }
.mj { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; position: relative; }
.mj.atual { background: var(--painel2); box-shadow: inset 4px 0 0 var(--c); }
.mj.morto { opacity: .5; }
.mj div { display: grid; }
.mj small { font-size: 12px; color: var(--suave); }
.mj .loc { font-size: 11px; }
.mj .desc { position: absolute; right: 8px; top: 8px; color: #ef4444; font-style: normal; }
.jornal { flex: 1; overflow-y: auto; padding: 12px; background: var(--papel); color: var(--tinta); font-family: Georgia, serif; }
.jornal-cab { font: 800 15px 'Special Elite', monospace; text-align: center; border-bottom: 3px double var(--tinta); padding-bottom: 6px; margin-bottom: 8px; letter-spacing: 1px; }
.nt { font-size: 13.5px; line-height: 1.4; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #0001; animation: entra .4s; }
.nt small { font: 700 10px Inter; background: var(--tinta); color: var(--papel); padding: 1px 5px; border-radius: 4px; margin-right: 4px; }
.nt.crime { font-weight: 700; color: #7f1d1d; }
.nt.grande, .nt.manchete { font-weight: 800; font-size: 15px; }
.nt.erro { color: #92400e; }
.nt.esclarecido { color: #166534; }
.nt.dinheiro, .nt.bicho { color: #57534e; }

/* ---------- CELULAR ---------- */
.cel { height: 100dvh; display: flex; flex-direction: column; }
.c-topo { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: #0d0b0a; border-bottom: 1px solid var(--linha); }
.ct-nome { display: grid; flex: 1; min-width: 0; }
.ct-nome b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-nome small { color: var(--suave); font-size: 12px; }
.ct-din { background: #14532d; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.ct-rod { font-size: 13px; color: var(--suave); }
.c-corpo { flex: 1; min-height: 0; position: relative; }
.c-aba { position: absolute; inset: 0; overflow-y: auto; display: none; }
.c-aba.on { display: block; animation: surge .2s; }
.c-mapa { position: absolute; inset: 0; }
@keyframes surge { from { opacity: 0; } }
.c-nav { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--linha); background: #0d0b0a; padding-bottom: env(safe-area-inset-bottom); }
.c-nav button { background: none; border: 0; padding: 8px 2px; font-size: 11px; color: var(--suave); display: grid; justify-items: center; gap: 2px; position: relative; }
.c-nav button span { font-size: 20px; }
.c-nav button.on { color: var(--ouro); }
.c-nav .ponto { position: absolute; top: 6px; right: 26%; width: 9px; height: 9px; border-radius: 50%; background: var(--vermelho); display: none; }
.c-nav button.novo .ponto { display: block; animation: piscaLento 1s infinite; }
.dock:empty { display: none; }
.dock-in { padding: 10px 12px; background: var(--painel); border-top: 1px solid var(--linha); display: grid; gap: 8px; max-height: 42vh; overflow-y: auto; }
.dock-in.espera { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--suave); }
.dock-in.sua { border-top: 3px solid var(--ouro); animation: sobe .35s cubic-bezier(.3,1.4,.5,1); }
.dock-in .sv { font-family: 'Special Elite', monospace; font-size: 18px; color: var(--ouro); text-align: center; }
.bol { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-l { background: var(--painel2); border: 1px solid var(--linha); border-radius: 999px; padding: 8px 12px; font-size: 14px; }
.acoes { display: grid; gap: 6px; }
.acoes .btn { justify-content: flex-start; text-align: left; }
.fantasma-dock { text-align: center; }

.papel-card { perspective: 900px; height: 150px; margin-top: 4px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.papel-card.grande { height: 280px; }
.pc-in { position: relative; height: 100%; transition: transform .6s cubic-bezier(.3,1.3,.5,1); transform-style: preserve-3d; }
.papel-card.virado .pc-in { transform: rotateY(180deg); }
.pc-frente, .pc-verso { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; display: grid; place-content: center; text-align: center; gap: 4px; padding: 16px; }
.pc-frente { background: repeating-linear-gradient(45deg, #2a231f 0 12px, #241e1a 12px 24px); border: 2px solid var(--linha); }
.pc-verso { background: var(--c); transform: rotateY(180deg); color: #fff; }
.pc-frente span, .pc-verso span { font-size: 38px; }
.papel-card.grande .pc-verso span { font-size: 70px; }
.pc-verso b { font: 24px 'Special Elite', monospace; }
.pc-verso small, .pc-frente small { font-size: 13px; opacity: .9; }
.tracos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tracos div { background: var(--painel2); padding: 8px 10px; border-radius: 10px; display: grid; }
.tracos small { color: var(--suave); font-size: 11px; }
.missao { background: #1e293b; border-left: 4px solid #60a5fa; padding: 10px 12px; border-radius: 10px; display: grid; gap: 4px; }
.missao span { font-size: 13px; color: var(--suave); }
.lugares { padding-left: 0; list-style: none; font-size: 14px; display: grid; gap: 4px; }

.quadro { display: grid; gap: 6px; }
.qs { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av nome n" "av tr n" "av barra n"; gap: 0 10px; align-items: center; background: var(--painel2); padding: 8px 10px; border-radius: 10px; border-left: 4px solid var(--c); }
.qs.morto { opacity: .5; }
.qs .av { grid-area: av; }
.qs b { grid-area: nome; }
.qs small { grid-area: tr; font-size: 11px; color: var(--suave); }
.qs .barra { grid-area: barra; height: 5px; background: #0005; border-radius: 3px; margin-top: 4px; display: block; overflow: hidden; }
.qs .barra i { display: block; height: 100%; background: var(--vermelho); transition: width .6s; }
.qs em { grid-area: n; font-style: normal; font-weight: 800; font-size: 22px; color: var(--ouro); }
.pista { display: flex; gap: 10px; background: var(--papel); color: var(--tinta); padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; animation: entra .4s; }
.pista.ok { box-shadow: inset 4px 0 0 #16a34a; }
.pista.falsa { box-shadow: inset 4px 0 0 var(--vermelho); opacity: .7; }
.pista .pi { font-size: 24px; }
.pista small { font-size: 11px; opacity: .7; }
.pista p { margin: 2px 0; font-size: 14px; }
.pista em { font-size: 12px; font-style: normal; font-weight: 700; margin-right: 8px; }
.pista .mini { background: #0001; border-color: #0002; color: var(--tinta); }
.cartas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.carta { background: linear-gradient(160deg, #fdf6e3, #e8dcc2); color: var(--tinta); border-radius: 12px; padding: 12px; display: grid; gap: 4px; justify-items: start; box-shadow: 0 6px 16px #0006; animation: daCarta .5s var(--d) cubic-bezier(.3,1.4,.5,1) both; }
.carta span { font-size: 28px; }
.carta small { font-size: 12px; opacity: .8; }
.carta .mini { background: var(--vermelho); color: #fff; border: 0; }
@keyframes daCarta { from { transform: translateY(30px) rotate(-8deg); opacity: 0; } }
.catalogo { display: grid; gap: 6px; }
.catalogo div { background: var(--painel2); padding: 8px 10px; border-radius: 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 0 8px; align-items: center; }
.catalogo span { font-size: 22px; grid-row: span 2; }
.catalogo em { color: var(--ouro); font-style: normal; font-weight: 700; }
.catalogo small { grid-column: 2 / 4; font-size: 12px; color: var(--suave); }
.casos { display: grid; gap: 10px; }
.caso { display: flex; gap: 12px; background: var(--painel2); padding: 10px; border-radius: 12px; align-items: flex-start; }
.caso .polaroid { width: 84px; transform: rotate(-3deg); flex: none; }
.caso div { display: grid; gap: 2px; }
.caso small { color: var(--suave); font-size: 12px; }
.caso p { margin: 4px 0 0; font-size: 13px; }
.caso em { color: #86efac; font-size: 12px; font-style: normal; }
.caso.esclarecido { opacity: .65; }
.real { font-size: 13px; line-height: 1.55; color: var(--suave); background: var(--painel2); padding: 12px; border-radius: 10px; }

/* polaroid */
.polaroid { margin: 0; background: #f7f3ea; padding: 7px 7px 26px; box-shadow: 0 8px 20px #0007; position: relative; width: 150px; }
.polaroid .retrato { display: block; width: 100%; height: auto; filter: sepia(.35) contrast(1.05); }
.polaroid figcaption { position: absolute; bottom: 5px; left: 0; right: 0; text-align: center; font: 13px 'Special Elite', monospace; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }

/* ---------- FOLHAS / OVERLAYS ---------- */
.folha-fundo { position: fixed; inset: 0; background: #000a; z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: surge .2s; }
.folha { position: relative; width: min(560px, 100%); max-height: 88dvh; overflow-y: auto; background: var(--painel); border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: sobe .35s cubic-bezier(.3,1.3,.5,1); border-top: 1px solid var(--linha); }
.folha.alta { max-height: 94dvh; }
.folha h2 { margin: 0 0 10px; font-size: 20px; padding-right: 30px; }
.folha-x { position: absolute; right: 12px; top: 12px; background: var(--painel2); border: 0; width: 34px; height: 34px; border-radius: 50%; }
.folha-fundo.saindo { opacity: 0; transition: opacity .25s; }
@media (min-width: 700px) { .folha-fundo { align-items: center; } .folha { border-radius: 20px; } }
.opcao { display: block; width: 100%; text-align: left; background: var(--painel2); border: 1px solid var(--linha); border-radius: 12px; padding: 12px; margin-bottom: 8px; font-size: 14px; }
.grade-j { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.opcao-j { background: var(--painel2); border: 2px solid var(--linha); border-radius: 14px; padding: 12px; display: grid; justify-items: center; gap: 4px; }
.opcao-j:active { border-color: var(--c); }
.opcao-j small { color: var(--suave); font-size: 12px; }
.lado-a-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acusado { display: grid; place-items: center; margin: 10px 0; }
.revelado { font: 28px 'Special Elite', monospace; text-align: center; background: var(--c); color: #fff; padding: 18px; border-radius: 14px; animation: daCarta .5s; }
.pista-nova { background: var(--papel); color: var(--tinta); border-radius: 12px; padding: 18px; margin-bottom: 14px; font-family: 'Special Elite', monospace; animation: viraCarta .7s cubic-bezier(.3,1.3,.5,1); }
.pista-nova p { font-size: 18px; line-height: 1.5; margin: 6px 0 0; }
@keyframes viraCarta { from { transform: perspective(600px) rotateX(90deg); opacity: 0; } }
.bichos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bichos button { background: var(--painel2); border: 2px solid transparent; border-radius: 10px; padding: 6px 2px; font-size: 9.5px; display: grid; justify-items: center; }
.bichos button span { font-size: 22px; }
.bichos button.on { border-color: var(--ouro); background: #3a2e1d; }
.valores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.valores button { background: var(--painel2); border: 2px solid transparent; border-radius: 10px; padding: 10px; font-weight: 700; }
.valores button.on { border-color: var(--ouro); }
.loja { display: grid; gap: 8px; }
.item { display: flex; gap: 10px; align-items: center; background: var(--painel2); border-radius: 12px; padding: 10px; }
.item > span { font-size: 28px; }
.item div { flex: 1; display: grid; }
.item small { font-size: 12px; color: var(--suave); }

.ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: #000c; animation: surge .3s; cursor: pointer; }
.ov.claro { background: #0009; }
.ov.escuro { background: radial-gradient(ellipse, #1a0d0dee, #000f); }
.ov.saindo { opacity: 0; transition: opacity .4s; }
.ov-dado { display: flex; align-items: center; gap: 30px; animation: daCarta .6s cubic-bezier(.3,1.4,.5,1); flex-wrap: wrap; justify-content: center; }
.foto-dado { width: min(360px, 70vw); border: 10px solid #f7f3ea; border-bottom-width: 40px; transform: rotate(-4deg); box-shadow: 0 20px 50px #000; }
.ov-dado div { display: grid; text-align: center; }
.num-dado { font-size: 150px; line-height: 1; font-weight: 800; color: #fff; text-shadow: 0 8px 0 #0008; animation: pulaNum .7s .3s cubic-bezier(.3,1.8,.5,1) both; }
.ov-dado em { color: #fbbf24; font-style: normal; }
@keyframes pulaNum { from { transform: scale(0) rotate(-40deg); } }
.ov-jornal { background: var(--papel); color: var(--tinta); padding: 30px; max-width: 640px; text-align: center; animation: jornalGira 1s cubic-bezier(.2,1,.4,1) both; box-shadow: 0 30px 80px #000; }
.ov-jornal h2 { font-family: Georgia, serif; font-size: clamp(24px, 4vw, 40px); line-height: 1.15; margin: 14px 0; }
.jn-cab { font: 800 16px 'Special Elite', monospace; border-bottom: 4px double var(--tinta); padding-bottom: 8px; }
@keyframes jornalGira { from { transform: scale(.05) rotate(-720deg); opacity: 0; } }
.ov-noite { text-align: center; color: #c7d2fe; font-family: 'Special Elite', monospace; }
.ov-noite h2 { font-size: 44px; margin: 10px 0; }
.lua { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto; box-shadow: inset -24px -6px 0 0 #f5f0d0; animation: lua 3s ease-in-out infinite; }
@keyframes lua { 50% { transform: translateY(-10px); } }
.ov-crime { position: relative; display: flex; gap: 28px; align-items: center; max-width: 820px; flex-wrap: wrap; justify-content: center; }
.ov-crime .polaroid { width: 200px; transform: rotate(-5deg); animation: daCarta .7s .3s cubic-bezier(.3,1.4,.5,1) both; }
.crime-txt { max-width: 460px; animation: surge .8s .6s both; }
.crime-txt h2 { font: 34px 'Special Elite', monospace; margin: 0 0 8px; color: #fca5a5; }
.crime-txt p { line-height: 1.5; }
.vistos span { display: inline-block; background: var(--c); padding: 2px 10px; border-radius: 999px; margin: 2px; font-weight: 600; }
.fita { position: fixed; left: -10%; right: -10%; top: 18%; background: #facc15; color: #111; font: 800 18px Inter; letter-spacing: 2px; white-space: nowrap; overflow: hidden; transform: rotate(-6deg); padding: 6px 0; box-shadow: 0 6px 20px #0008; animation: fita .8s cubic-bezier(.3,1.2,.5,1) both; }
.fita span { display: inline-block; animation: corre 12s linear infinite; }
@keyframes fita { from { transform: rotate(-6deg) translateX(-110%); } }
@keyframes corre { to { transform: translateX(-50%); } }
.ov-bicho { text-align: center; }
.ov-bicho small { font: 18px 'Special Elite', monospace; color: var(--ouro); }
.rolo { width: 280px; height: 120px; overflow: hidden; margin: 14px auto; background: var(--papel); color: var(--tinta); border-radius: 14px; border: 6px solid var(--ouro); position: relative; }
.fita-b { animation: rolo 3s cubic-bezier(.1,.7,.2,1) forwards; }
.fita-b div { height: 108px; display: grid; place-content: center; font: 800 22px Inter; }
.fita-b span { font-size: 54px; }
@keyframes rolo { from { transform: translateY(0); } to { transform: translateY(calc(-108px * 29)); } }
.ganh { font-size: 18px; animation: surge .5s 3s both; }
.ov-prisao { text-align: center; position: relative; }
.ov-prisao .polaroid { margin: 0 auto; width: 200px; }
.ov-prisao .carimbo { position: absolute; top: 40%; left: 50%; font-size: 40px; transform: translate(-50%, -50%) rotate(-12deg); background: #0006; }
.ov-prisao .carimbo.bate { animation: carimboC .5s .6s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes carimboC { 0% { transform: translate(-50%,-50%) scale(3) rotate(-25deg); opacity: 0; } 100% { transform: translate(-50%,-50%) scale(1) rotate(-12deg); opacity: 1; } }

/* ---------- DADO ---------- */
.cam { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; }
.cam-msg { position: absolute; bottom: 8px; left: 8px; right: 8px; background: #000a; padding: 6px 10px; border-radius: 8px; font-size: 13px; text-align: center; }
.cam-msg:empty { display: none; }
.scan { position: absolute; inset: 0; display: grid; place-items: center; background: #0006; }
.scan i { position: absolute; left: 0; right: 0; height: 3px; background: #22d3ee; box-shadow: 0 0 20px #22d3ee; animation: scan 1.2s ease-in-out infinite alternate; }
.scan span { font-family: 'Special Elite', monospace; font-size: 20px; background: #000a; padding: 6px 14px; border-radius: 8px; }
@keyframes scan { from { top: 5%; } to { top: 95%; } }
.cam-bts { display: grid; gap: 8px; margin-top: 12px; }
.cam-res { margin-top: 12px; display: grid; gap: 10px; text-align: center; }
.valor-lido { display: flex; align-items: center; justify-content: center; gap: 14px; }
.valor-lido b { font-size: 72px; font-weight: 800; }
.erro-dado { color: #fca5a5; }
.nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.nums button { background: var(--painel2); border: 1px solid var(--linha); border-radius: 10px; padding: 12px 0; font-size: 18px; font-weight: 800; }
.dado-face, .face { background: #fff; border-radius: 12px; display: grid; place-items: center; }
.dado-face { width: 64px; height: 64px; box-shadow: 0 5px 0 #bbb; animation: pulaNum .5s cubic-bezier(.3,1.8,.5,1); }
.pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 70%; height: 70%; }
.pts i { border-radius: 50%; }
.pts i.p { background: #111; }
.cubo-palco { perspective: 700px; width: 140px; height: 140px; margin: 30px auto; }
.cubo { width: 140px; height: 140px; position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.4,.5,1); }
.cubo .face { position: absolute; inset: 0; border: 2px solid #ddd; }
.cubo .f1 { transform: translateZ(70px); } .cubo .f6 { transform: rotateY(180deg) translateZ(70px); }
.cubo .f2 { transform: rotateY(90deg) translateZ(70px); } .cubo .f5 { transform: rotateY(-90deg) translateZ(70px); }
.cubo .f3 { transform: rotateX(90deg) translateZ(70px); } .cubo .f4 { transform: rotateX(-90deg) translateZ(70px); }
.cubo.rolando { animation: rola .5s linear infinite; }
.cubo.mostra1 { transform: rotateX(0) rotateY(0); } .cubo.mostra6 { transform: rotateY(180deg); }
.cubo.mostra2 { transform: rotateY(-90deg); } .cubo.mostra5 { transform: rotateY(90deg); }
.cubo.mostra3 { transform: rotateX(-90deg); } .cubo.mostra4 { transform: rotateX(90deg); }
@keyframes rola { to { transform: rotateX(360deg) rotateY(720deg); } }

/* ---------- CENA DO CRIME ---------- */
.cena { position: fixed; inset: 0; z-index: 70; background: #050505; display: flex; flex-direction: column; padding: 10px; padding-top: max(10px, env(safe-area-inset-top)); gap: 8px; animation: surge .4s; }
.cena.saindo { opacity: 0; transition: opacity .4s; }
.cena-topo { display: flex; gap: 12px; align-items: center; }
.cena-topo .polaroid { width: 74px; padding: 4px 4px 16px; transform: rotate(-4deg); flex: none; }
.cena-topo .polaroid figcaption { font-size: 9px; bottom: 2px; }
.cena-topo div { display: grid; gap: 2px; flex: 1; }
.cena-topo small { color: var(--suave); font-size: 12px; }
.tempo { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #222; }
.tempo i { display: block; height: 100%; background: var(--vermelho); width: 100%; transition: width .2s linear; }
.cena-palco { position: relative; flex: 1; border-radius: 12px; overflow: hidden; touch-action: none; min-height: 240px; }
.cena-palco .cenario { position: absolute; inset: 0; width: 100%; height: 100%; }
.cena-achados { flex: none; display: flex; gap: 6px; overflow-x: auto; min-height: 54px; align-items: center; }
.achado-item { flex: none; background: var(--papel); color: var(--tinta); border-radius: 10px; padding: 6px 10px; display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: center; animation: daCarta .4s; font-size: 12px; }
.achado-item span { font-size: 22px; grid-row: span 2; }
.achado-item em { font-style: normal; font-size: 11px; font-weight: 700; }
.achado-item .rec { color: #b91c1c; } .achado-item .ant { color: #57534e; }

/* ---------- NOITE NO CELULAR ---------- */
.noite-cel { position: fixed; inset: 0; z-index: 45; background: linear-gradient(#050816, #0f1a3a); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; text-align: center; animation: surge 1.2s; }
.noite-cel h2 { font-family: 'Special Elite', monospace; color: #c7d2fe; font-size: 30px; margin: 20px 0 10px; }
.ceu { position: absolute; inset: 0; pointer-events: none; }
.ceu i { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; animation: piscaLento 2.5s infinite; }
.ceu .lua { position: absolute; top: 12%; left: 50%; margin-left: -45px; }
.noite-ops { position: relative; display: grid; gap: 8px; width: min(440px, 100%); color: #c7d2fe; }
.opcao-n { background: #ffffff12; border: 1px solid #ffffff22; color: #e0e7ff; border-radius: 12px; padding: 13px; font-size: 15px; text-align: left; }
.opcao-n.quieto { text-align: center; }

/* ---------- FIM ---------- */
.fim { position: fixed; inset: 0; z-index: 80; background: radial-gradient(ellipse at center, #1d1714f2, #000f); display: grid; place-items: center; padding: 16px; text-align: center; animation: surge .6s; overflow-y: auto; }
.fim.minimizado { inset: auto 10px 10px auto; background: #000d; border-radius: 14px; max-width: 300px; }
.fim.minimizado .algemas, .fim.minimizado .estrada, .fim.minimizado .revelacao, .fim.minimizado p { display: none; }
.fim h2 { font-family: 'Special Elite', monospace; font-size: clamp(28px, 6vw, 46px); margin: 10px 0; }
.fim p { color: var(--suave); max-width: 560px; margin: 8px auto; line-height: 1.5; }
.fim .btn { margin: 6px; }
.algemas { width: 220px; height: 140px; animation: caiAlgema .6s cubic-bezier(.3,1.5,.5,1) both; }
.algemas .esq { transform-origin: 70px 80px; animation: fechaE .7s .5s cubic-bezier(.5,1.8,.5,1) both; }
.algemas .dir { transform-origin: 150px 80px; animation: fechaD .7s .5s cubic-bezier(.5,1.8,.5,1) both; }
@keyframes caiAlgema { from { transform: translateY(-200px) rotate(-30deg); } }
@keyframes fechaE { from { transform: rotate(-70deg); } }
@keyframes fechaD { from { transform: rotate(70deg); } }
.estrada { position: relative; width: min(520px, 90vw); height: 90px; margin: 0 auto; border-bottom: 4px dashed #fff4; overflow: hidden; }
.estrada .bus { position: absolute; bottom: 2px; font-size: 56px; animation: busVai 3.5s ease-in forwards; transform: scaleX(-1); }
.estrada .placa { position: absolute; right: 6px; top: 6px; background: var(--verde); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
@keyframes busVai { from { left: -70px; } to { left: 110%; } }
.revelacao { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px auto; max-width: 760px; }
.rv { background: var(--painel2); border-radius: 12px; padding: 10px; display: grid; justify-items: center; gap: 4px; min-width: 120px; animation: daCarta .5s both; border: 2px solid transparent; }
.rv.maniaco { border-color: var(--vermelho); background: #3a1414; }
.rv small { color: var(--suave); font-size: 12px; }

.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translate(-50%, -200px); background: #0d0b0a; border: 1px solid var(--linha); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 90; transition: transform .3s cubic-bezier(.3,1.4,.5,1); max-width: 92vw; text-align: center; }
.toast.vis { transform: translate(-50%, 0); }
#offline { position: fixed; top: 0; left: 0; right: 0; background: #92400e; text-align: center; font-size: 13px; padding: 4px; z-index: 100; }

@media (max-width: 900px) {
  .lobby-grid { grid-template-columns: 1fr; padding: 16px; }
  .codigo span { font-size: 60px; width: 72px; }
  .m-corpo { grid-template-columns: 1fr; grid-template-rows: 60vh auto; }
  .mesa { height: auto; }
}

/* ===== v3: retratos, mapa, luz ===== */
.av.foto { padding: 0; overflow: hidden; background: #8a7a62; box-shadow: 0 0 0 2.5px var(--c), 0 2px 6px #0008; }
.av.foto svg { width: 100%; height: 120%; display: block; margin-top: -4%; }
.av.grande { width: 52px; height: 52px; }
.meu-retrato { display: grid; place-items: center; margin: 4px 0 12px; }
.meu-retrato .polaroid { width: 150px; transform: rotate(-2deg); }
.polaroid .retrato { filter: sepia(.28) contrast(1.06) saturate(.9); }
.m-poste { animation: poste 3.2s ease-in-out infinite; }
@keyframes poste { 0%,100% { opacity: 1; } 45% { opacity: .82; } 48% { opacity: .55; } 50% { opacity: .9; } }
.m-corrente { animation: corrente 6s linear infinite; }
@keyframes corrente { to { stroke-dashoffset: -72; } }
.m-cena circle { animation: mPulsa 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.m-cena.ok circle { animation: none; }

/* cena do crime: lanterna */
.cena-palco { background: #000; }
.cena-palco .cenario { filter: saturate(.85); }
.neblina { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 60% 18% at 30% 72%, #b8c6d41c, transparent 70%),
  radial-gradient(ellipse 50% 14% at 75% 66%, #b8c6d414, transparent 70%);
  animation: neblina 14s ease-in-out infinite alternate; }
@keyframes neblina { to { transform: translateX(6%); } }
.cena-base, .cena-luz { position: absolute; inset: 0; }
.cena-base .cenario, .cena-luz .cenario { position: absolute; inset: 0; width: 100%; height: 100%; }
.cena-base { filter: brightness(.55) saturate(.55) hue-rotate(10deg); }
.cena-luz { --x: 50%; --y: 70%; --r: 120px; filter: brightness(2.6) contrast(1.1) sepia(.6) saturate(1.3);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0, #000 35%, #0008 65%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0, #000 35%, #0008 65%, transparent 100%); }
.escuro { position: absolute; inset: 0; pointer-events: none; --x: 50%; --y: 70%; --r: 120px;
  background: radial-gradient(circle calc(var(--r) * 2.6) at var(--x) var(--y), transparent 0, transparent 40%, #01030aa0 100%); }
.feixe { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; --x: 50%; --y: 70%; --r: 120px;
  background: radial-gradient(circle var(--r) at var(--x) var(--y), #ffd9a0aa 0, #ffc98055 45%, transparent 80%); }
.poeira { position: absolute; width: 0; height: 0; pointer-events: none; mix-blend-mode: screen; }
.poeira i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff3d1; opacity: 0;
  animation: grao var(--t) linear var(--d) infinite; }
@keyframes grao { 0% { transform: translate(calc(var(--dx) * var(--r) * .7), calc(var(--dy) * var(--r) * .7)); opacity: 0; }
  20% { opacity: .8; } 80% { opacity: .5; } 100% { transform: translate(calc(var(--dx) * var(--r) * .7 + 14px), calc(var(--dy) * var(--r) * .7 - 26px)); opacity: 0; } }
.obj { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 8px; font-size: 30px; --l: 0;
  opacity: calc(.12 + var(--l) * 1.2); filter: drop-shadow(0 3px 2px #000c) brightness(calc(.4 + var(--l) * 1.1)); transition: transform .3s; z-index: 2; }
.obj span { display: block; transform: rotate(-12deg); }
.obj.luz::before { content: ''; position: absolute; left: 60%; top: 10%; width: 10px; height: 10px; pointer-events: none;
  background: radial-gradient(circle, #fff 0, #fff8 30%, transparent 70%); animation: brilho 1.4s ease-in-out infinite; }
@keyframes brilho { 0%,100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.4) rotate(45deg); opacity: 1; } }
.obj.achado { opacity: 1; filter: drop-shadow(0 3px 2px #000c); }
.obj.achado::after { content: attr(data-n); position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font: 800 11px Inter; color: #111;
  background: #facc15; width: 20px; height: 18px; clip-path: polygon(50% 0, 100% 100%, 0 100%); display: grid; place-items: end center; padding-bottom: 1px;
  animation: pulaNum .4s cubic-bezier(.3,1.8,.5,1); }

/* overlays */
.flash { position: fixed; inset: 0; background: #fff; z-index: 2; pointer-events: none; animation: flash .7s ease-out forwards; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.ov-crime .polaroid .retrato { animation: revela 3.2s .4s ease-out both; }
@keyframes revela { 0% { filter: brightness(2.6) sepia(1) blur(4px) contrast(.4); } 60% { filter: brightness(1.2) sepia(.7) blur(1px) contrast(.8); } 100% { filter: sepia(.28) contrast(1.06) saturate(.9); } }
.ov.anoitece { background: linear-gradient(#020617f2, #0f1a3af2 60%, #1e1b4bf2); }
.ov.anoitece .ceu i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: piscaLento 2.4s infinite; }
.lua.sobe { animation: sobeLua 3s cubic-bezier(.2,.8,.3,1) both, lua 3s 3s ease-in-out infinite; }
@keyframes sobeLua { from { transform: translateY(120px); opacity: 0; } }
.ov.aurora { background: linear-gradient(0deg, #f59e0bdd, #fb923c99 30%, #60a5fa55 70%, transparent); animation: aurora 2.6s ease-out both; }
@keyframes aurora { from { opacity: 0; transform: translateY(40%); } 30% { opacity: 1; transform: none; } }
.ov-dia { text-align: center; color: #fff7ed; text-shadow: 0 3px 12px #7c2d12; }
.ov-dia h2 { font: 46px 'Special Elite', monospace; margin: 10px 0 4px; }
.sol { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto; background: radial-gradient(circle, #fff7d6, #fbbf24 60%, #f59e0b); box-shadow: 0 0 80px 30px #fbbf2499; animation: sobeLua 2s cubic-bezier(.2,.8,.3,1) both; }

.notas-aba textarea { width: 100%; min-height: 55vh; background: var(--papel); color: var(--tinta); border: 0; border-radius: 10px; padding: 14px; font: 16px/1.6 'Special Elite', monospace;
  background-image: repeating-linear-gradient(0deg, transparent 0 25px, #a8916b33 25px 26px); background-attachment: local; resize: vertical; }
.caso { cursor: pointer; }
.caso .ler { color: var(--ouro); font-size: 12px; font-weight: 600; }
.dossie-caso { font-family: Georgia, serif; }
.dc-topo { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.dc-topo .polaroid { width: 110px; transform: rotate(-3deg); flex: none; }
.dc-topo h2 { margin: 2px 0; font-family: 'Special Elite', monospace; }
.dc-topo small { color: var(--ouro); letter-spacing: 1px; font-family: Inter; }
.dc-topo p { margin: 2px 0; }
.rel { line-height: 1.6; font-size: 15px; animation: surge .6s both; border-left: 2px solid var(--linha); padding-left: 10px; }
.ok-caso { color: #86efac; }
.rel-ov { font-family: Georgia, serif; font-size: 15px; line-height: 1.5; color: #e7d9c8; margin: 6px 0; animation: surge .8s both; border-left: 2px solid #7f1d1d; padding-left: 10px; }
.ov-crime { max-height: 92vh; overflow-y: auto; }
@media (max-width: 420px) { .c-nav button { font-size: 10px; } }

.evento .ev-img { position: relative; margin: -20px -16px 12px; height: 170px; overflow: hidden; border-radius: 20px 20px 0 0; }
.evento .paisagem { width: 100%; height: 100%; display: block; animation: zoomLento 12s ease-out both; }
@keyframes zoomLento { from { transform: scale(1.15); } }
.ev-ic { position: absolute; left: 16px; bottom: -4px; font-size: 44px; filter: drop-shadow(0 4px 6px #000a); animation: pulaNum .6s .3s cubic-bezier(.3,1.8,.5,1) both; }
.ev-local { color: var(--ouro); letter-spacing: 1.5px; text-transform: uppercase; font-size: 11px; font-weight: 700; }
.ev-txt { font: 16px/1.6 Georgia, serif; min-height: 4.8em; cursor: pointer; }
.ev-ops { opacity: 0; transform: translateY(10px); transition: .4s; pointer-events: none; }
.ev-ops.vis { opacity: 1; transform: none; pointer-events: auto; }
.opcao:disabled { opacity: .45; }
.ev-res { text-align: center; padding: 8px 0 14px; }
.ev-res span { font-size: 48px; display: block; animation: pulaNum .5s cubic-bezier(.3,1.8,.5,1); }
.ev-res p { font: 16px/1.6 Georgia, serif; }

.chip-l.cidade { border-color: var(--ouro); background: #3a2e1d; }

.foto-wrap { position: relative; display: block; }
.foto-wrap .foto-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.polaroid .foto-wrap { aspect-ratio: 5 / 6; overflow: hidden; }
.polaroid .foto-wrap .retrato { width: 100%; height: 100%; }
.polaroid .foto-real { filter: sepia(.32) contrast(1.05) saturate(.85); }
.av.foto .foto-wrap { width: 100%; height: 100%; }
.av.foto .foto-real { object-position: center 18%; }
.ov-crime .polaroid .foto-real { animation: revela 3.2s .4s ease-out both; }

/* ===== casos ===== */
.dossie.largo { width: min(820px, 100%); }
.casos-ini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.caso-card { text-align: left; background: #fff6; border: 2px solid #0002; border-radius: 10px; padding: 14px; color: var(--tinta); display: grid; gap: 4px; font-family: Inter, sans-serif; transition: transform .15s, border-color .15s, box-shadow .15s; }
.caso-card:hover { transform: translateY(-2px); }
.caso-card.on { border-color: var(--vermelho); box-shadow: 0 8px 24px #7f1d1d33; background: #fffc; }
.caso-card .cc-ic { font-size: 34px; }
.caso-card b { font: 20px 'Special Elite', monospace; }
.caso-card small { opacity: .7; font-weight: 600; }
.caso-card p { margin: 4px 0; font-size: 13.5px; line-height: 1.45; }
.caso-card em { font-size: 11.5px; opacity: .7; }
.niveis-ini { position: relative; grid-template-columns: repeat(3, 1fr); }
.niveis-ini .nivel { background: #fff6; color: var(--tinta); border-color: #0002; }
.niveis-ini .nivel.on { background: #fffc; border-color: var(--vermelho); }
.niveis-ini .nivel span { color: #57534e; }
.casos-lobby { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.caso-mini { background: var(--painel2); border: 2px solid var(--linha); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.caso-mini.on { border-color: var(--ouro); background: #3a2e1d; }
.meta.ok { background: #14532d; border-color: #166534; }
.ov-busca { text-align: center; max-width: 520px; }
.ov-busca h2 { font: 30px 'Special Elite', monospace; margin: 10px 0 4px; }
.caes { font-size: 54px; display: flex; justify-content: center; gap: 30px; }
.caes, .caes span { animation: fareja 1s ease-in-out infinite; }
.caes span { display: inline-block; animation-delay: .3s; }
@keyframes fareja { 50% { transform: translateX(14px) rotate(-6deg); } }
.res-busca { margin-top: 18px; font: 22px 'Special Elite', monospace; color: #a8a29e; animation: surge .6s 2.2s both; }
.res-busca.achou { color: #fde68a; font-size: 26px; }
.qs.local .av { background: #a16207; }
.qs.achado { box-shadow: 0 0 0 2px #facc15; }
@media (max-width: 640px) { .casos-ini, .niveis-ini { grid-template-columns: 1fr; } }

.entrar .btn { width: auto !important; flex: none; padding-left: 22px; padding-right: 22px; }
.entrar input { min-width: 0; }

.cubo-palco.grande { margin: 24px auto 10px; }
.valor-virtual { text-align: center; font-size: 20px; min-height: 28px; }
.valor-virtual b { font-size: 34px; color: var(--ouro); }

.robos-ini { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; position: relative; }
.robos-ini button { background: #fff6; border: 2px solid #0002; border-radius: 10px; padding: 9px 2px; font-weight: 700; color: var(--tinta); font-size: 13px; }
.robos-ini button.on { border-color: var(--vermelho); background: #fffc; }
.robos-lobby { display: flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--painel2); padding: 8px 12px; border-radius: 12px; }
.robos-lobby span { flex: 1; }
.robos-lobby button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--linha); background: var(--painel); font-size: 22px; font-weight: 800; }
.robos-lobby button:disabled { opacity: .35; }
@media (max-width: 640px) { .robos-ini { grid-template-columns: repeat(4, 1fr); } }

.cena-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoomLento 12s ease-out both; }
.fundo-foto { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.7); z-index: -1; animation: zoomLento 10s ease-out both; }
.ov { isolation: isolate; }
.cena-base .cena-foto { filter: brightness(.75); }
.cena-luz .cena-foto { filter: brightness(.55) contrast(1.05); }

/* ===== caso dos desaparecidos ===== */
.fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ficha { background: var(--papel); color: var(--tinta); border-radius: 8px; padding: 8px; display: grid; gap: 6px; cursor: pointer; border: 3px solid transparent; transition: transform .15s, border-color .15s; }
.ficha .polaroid { width: 100%; padding: 4px 4px 18px; box-shadow: none; }
.ficha .polaroid figcaption { font-size: 10px; bottom: 2px; }
.ficha .fi { display: grid; gap: 2px; font-size: 12px; }
.ficha .fi b { font-size: 13px; }
.ficha .fi small { opacity: .75; }
.ficha .fi em { font-size: 10.5px; opacity: .7; font-style: normal; }
.ficha.on { border-color: var(--vermelho); transform: scale(.97); }
.ficha.vitima { border-color: #57534e; filter: grayscale(.6); }
.fichas.sel .ficha { cursor: pointer; }
.corpo-k { background: var(--painel2); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.corpo-k small { color: var(--suave); }
.cands { display: flex; gap: 6px; flex-wrap: wrap; }
.cand { background: #0005; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.cand i { color: var(--ouro); font-style: normal; font-weight: 800; }
.opcao-n.perigo { border-color: #b91c1c88; }
.ov-fichas { width: min(1200px, 100%); max-height: 92vh; overflow-y: auto; text-align: center; }
.ov-fichas h2 { font: 32px 'Special Elite', monospace; margin: 0 0 4px; }
.fichas.mesa-f { grid-template-columns: repeat(6, 1fr); margin: 14px 0; text-align: left; }
.entra-ficha { animation: daCarta .5s both; }
.ov-ident { text-align: center; position: relative; }
.ov-ident h2 { font: 30px 'Special Elite', monospace; }
.fichas-ov { display: flex; gap: 14px; justify-content: center; margin: 14px 0; }
.fichas-ov .polaroid { width: 150px; animation: daCarta .5s both; }
.ov-ident .carimbo { position: static; display: inline-block; font-size: 30px; }
@media (max-width: 900px) { .fichas.mesa-f { grid-template-columns: repeat(3, 1fr); } }

.ov-perigo { text-align: center; max-width: 480px; position: relative; }
.ov-perigo .pg-ic { font-size: 80px; display: block; animation: pulaNum .6s cubic-bezier(.3,1.8,.5,1) both; }
.ov-perigo h2 { font: 40px 'Special Elite', monospace; color: #fca5a5; margin: 6px 0; }
.pg-det { color: #fde68a; font-weight: 600; }
.sirene { position: fixed; inset: 0; z-index: -1; pointer-events: none; animation: sirene .9s steps(1) 4; }
@keyframes sirene { 0% { background: #dc262633; } 50% { background: #2563eb33; } }
.m-perigo circle { animation: mPulsa 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ===== Mesa aberta num celular ===== */
@media (max-width: 700px) {
  .lobby-grid { padding: 12px; gap: 16px; }
  .cartaz { padding: 20px 12px; }
  .cartaz h2 { font-size: 20px; overflow-wrap: anywhere; }
  .codigo { gap: 6px; }
  .codigo span { font-size: 44px; width: 58px; }
  .m-topo { gap: 6px; padding: 6px 10px; }
  .m-topo .marca { font-size: 12px; letter-spacing: 1px; }
  .m-topo .chip { font-size: 12px; padding: 4px 8px; }
  .m-topo .metas { margin-left: 0; gap: 4px; width: 100%; }
  .m-topo .meta { font-size: 11px; padding: 3px 7px; }
  .m-topo .meta-tit { display: none; }
  .m-corpo { grid-template-rows: 72vh auto; }
  .m-mapa .zoom { top: 50px; }
  .m-vez { padding: 8px; }
  .vez-card { padding: 8px; gap: 8px; }
  .vez-card .av { width: 38px; height: 38px; }
  .vez-card b { font-size: 16px; }
  .m-jogs { max-height: none; grid-template-columns: 1fr 1fr; }
  .mj small { font-size: 11px; }
  .jornal { max-height: 60vh; }
  .ov-dado .foto-dado { width: 60vw; }
  .num-dado { font-size: 100px; }
  .fichas.mesa-f { grid-template-columns: repeat(2, 1fr); }
}

.qr { display: grid; place-items: center; margin: 8px auto 0; }
.qr img, .qr canvas { border: 8px solid #f6efe0; border-radius: 8px; }
.convite { display: flex; gap: 14px; align-items: center; background: var(--papel); color: var(--tinta); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.convite .qr { margin: 0; flex: none; }
.convite p { font-size: 13px; margin: 4px 0 8px; }
.convite .cod-conv { letter-spacing: 3px; font-size: 16px; }
.convite .btn { background: var(--tinta); color: var(--papel); border: 0; }
.ini-botoes .btn small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.ini-botoes .btn { flex-direction: column; }
@media (max-width: 420px) { .convite { flex-direction: column; text-align: center; } }

.secreto { margin-top: 14px; background: var(--painel2); border-radius: 12px; padding: 10px 14px; }
.secreto summary { cursor: pointer; font-weight: 600; }
.secreto h4 { margin: 12px 0 6px; font-size: 13px; color: var(--suave); }
