@font-face { font-family: "Pixel"; src: url("fontes/PressStart2P-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --ceu1: #12122e; --ceu2: #2a1f4a; --painel: #1f1f3d; --painel2: #2b2b52;
  --amarelo: #ffd66e; --creme: #fadc8c; --verde: #78ff8c; --texto: #ececff; --suave: #a9a9d6; --vermelho: #e05050;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: linear-gradient(var(--ceu1), var(--ceu2)) fixed;
  color: var(--texto); font-family: "Pixel", monospace; font-size: 12px; line-height: 1.9;
  image-rendering: pixelated; min-height: 100vh;
}
a { color: var(--amarelo); }
.topo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; max-width: 760px; margin: 0 auto; }
.topo img { width: 44px; height: 44px; border-radius: 50%; }
.topo .marca { color: var(--creme); font-size: 13px; line-height: 1.4; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; max-width: 760px; margin: 0 auto; }
nav a { background: var(--painel2); color: var(--texto); text-decoration: none; padding: 8px 10px; font-size: 9px; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
nav a.ativo { background: var(--amarelo); color: #1a1a1a; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
h1 { font-size: 18px; color: var(--creme); line-height: 1.5; margin: 18px 0 10px; text-shadow: 3px 3px 0 #000; }
h2 { font-size: 13px; color: var(--amarelo); line-height: 1.6; margin: 26px 0 8px; }
p, li { font-size: 11px; }
.caixa { background: var(--painel); border: 3px solid #000; box-shadow: 5px 5px 0 #000; padding: 14px 16px; margin: 16px 0; }
.contador { font-size: 16px; color: var(--verde); text-align: center; margin: 10px 0 4px; text-shadow: 2px 2px 0 #000; }
.sub { text-align: center; color: var(--suave); font-size: 10px; }
#predio { width: 100%; max-width: 420px; display: block; margin: 8px auto; image-rendering: pixelated; }
.botao { display: block; text-align: center; background: var(--vermelho); color: #fff; text-decoration: none; font-size: 13px;
  padding: 14px 12px; margin: 16px auto; max-width: 420px; border: 3px solid #000; box-shadow: 5px 5px 0 #000; }
.botao:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #000; }
.passos { list-style: none; padding: 0; counter-reset: p; }
.passos li { counter-increment: p; background: var(--painel); border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 12px 12px 12px 52px; margin: 12px 0; position: relative; }
.passos li::before { content: counter(p); position: absolute; left: 12px; top: 10px; background: var(--amarelo); color: #111; width: 28px; height: 28px; text-align: center; line-height: 28px; border: 2px solid #000; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.morador { background: var(--painel); border: 3px solid #000; text-align: center; padding: 10px 6px; font-size: 8px; line-height: 1.6; min-width: 0; }
.morador .arroba { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.morador canvas { width: 64px; height: 96px; image-rendering: pixelated; display: block; margin: 0 auto 6px; }
.vazio { color: var(--suave); text-align: center; }
.legal p, .legal li { font-family: -apple-system, system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.legal h2 { font-size: 12px; }
footer { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; color: var(--suave); font-size: 8px; line-height: 2; }
footer a { color: var(--suave); }
.barra { max-width: 420px; height: 14px; margin: 6px auto; background: var(--painel2); border: 3px solid #000; }
.barra div { height: 100%; width: 0; background: var(--verde); }
.busca { display: flex; gap: 8px; max-width: 420px; }
.busca input { flex: 1; font: inherit; font-size: 11px; padding: 10px; border: 3px solid #000; background: #fff; color: #111; min-width: 0; }
.busca button { font: inherit; font-size: 10px; padding: 10px 12px; background: var(--amarelo); border: 3px solid #000; box-shadow: 3px 3px 0 #000; cursor: pointer; }
.resposta { font-size: 11px; min-height: 1.9em; }
.morador img { width: 64px; height: 96px; image-rendering: pixelated; display: block; margin: 0 auto 6px; }
.elenco { display: grid; gap: 12px; }
.personagem { display: flex; gap: 14px; align-items: center; background: var(--painel); border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 12px; font-size: 10px; line-height: 1.8; }
.personagem img { width: 64px; height: 96px; image-rendering: pixelated; flex: none; object-fit: contain; }
