/* Página inicial toda em pixel: a fonte do jogo (monogram), a arte do jogo em escala inteira e sem suavizar,
   botões e painéis com os sprites do design system do jogo (border-image). */
@font-face { font-family: "monogram"; src: url("fonts/monogram.ttf") format("truetype"); font-display: swap; }
:root {
  --night: #22172e; --night-2: #2e2240; --plum: #5b4a7a; --plum-light: #7e6ca3; --ink: #2b1d2e;
  --cream: #fff8ec; --muted: #c9b8d6; --yellow: #ffc93c; --green: #4cb85a;
  --px: 4px;                         /* um pixel da arte na tela */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
img { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
body {
  min-height: 100vh; display: flex; flex-direction: column; text-align: center;
  font-family: "monogram", monospace; font-size: 32px; line-height: 1; color: var(--cream);
  -webkit-font-smoothing: none; font-smooth: never;
  background: var(--night) url("img/estrelas.png") repeat;
  background-size: calc(96 * var(--px)) calc(96 * var(--px));
}
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 48px 16px 24px; }
a { color: var(--yellow); }

.banner { display: flex; align-items: flex-end; justify-content: center; gap: calc(6 * var(--px)); }
.banner .logo { width: calc(80 * var(--px)); height: auto; }   /* letreiro 160x88: meio --px por pixel */
.banner .chars { width: calc(76 * var(--px)); height: auto; margin-bottom: calc(2 * var(--px));
  animation: bob 1.6s steps(2) infinite; }
.banner .chars:last-child { animation-delay: .8s; }
@keyframes bob { 50% { transform: translateY(calc(-1 * var(--px))); } }
.tagline { margin: 28px auto 28px; font-size: 40px; }

.btn {
  display: inline-block; text-decoration: none; color: var(--cream); font-size: 40px; padding: 6px 36px 14px;
  border: calc(5 * var(--px)) solid transparent; border-image: url("img/btn_primary.png") 5 fill / calc(5 * var(--px)) stretch;
  image-rendering: pixelated; text-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { border-image-source: url("img/btn_primary_h.png"); }
.btn:active { border-image-source: url("img/btn_primary_p.png"); }
.hint { color: var(--muted); font-size: 28px; margin: 14px 0 0; }

.scene { width: calc(400 * 2px); max-width: 100%; height: auto; margin: 56px auto 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 22px;
  border: calc(10 * 3px) solid transparent; border-image: url("img/ui_panel.png") 10 fill / 30px stretch;
  image-rendering: pixelated;
}
.card img { height: calc(13 * var(--px)); width: auto; }
.card b { font-weight: 400; color: var(--yellow); font-size: 36px; }
.card span { color: var(--muted); font-size: 28px; }

footer { padding: 18px 16px 28px; color: var(--muted); font-size: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
footer nav { display: flex; gap: 18px; }

/* Páginas de texto (privacidade, excluir conta): topo com o logo, o texto num painel Ui_panel, alinhado à esquerda. */
.top { display: flex; justify-content: center; padding: 24px 16px 0; }
.top .logo { width: calc(160 * 2px); height: auto; }
.doc { max-width: 820px; text-align: left; padding-top: 28px; }
.doc .panel {
  padding: 18px 26px 26px; font-size: 28px; line-height: 1.15;
  border: 30px solid transparent; border-image: url("img/ui_panel.png") 10 fill / 30px stretch; image-rendering: pixelated;
}
.doc h1 { color: var(--yellow); font-weight: 400; font-size: 46px; line-height: 1; margin: 0 0 10px; text-shadow: 3px 3px 0 var(--ink); }
.doc h2 { color: var(--yellow); font-weight: 400; font-size: 36px; margin: 30px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 28px; margin: 0 0 12px; }
.doc li::marker { color: var(--green); }
.doc b { font-weight: 400; color: var(--cream); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.doc .meta { color: var(--muted); }
.doc .back { display: block; width: fit-content; margin: 22px auto 0; font-size: 30px; }

@media (max-width: 760px) {
  :root { --px: 2px; }
  body { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .banner { gap: calc(3 * var(--px)); }
  .banner .logo { width: calc(160 * 2px); max-width: 100%; }
  .top .logo { width: 160px; }
  .doc .panel { padding: 8px 6px 14px; font-size: 24px; border-width: 20px; border-image-width: 20px; }
  .doc h1 { font-size: 38px; }
  .doc h2 { font-size: 32px; }
}
