/* GERADO por menu_beli.py: cores, topo e menu iguais aos do site Biografia. Não editar à mão;
   o que é só dos jogos fica em jogos.css. */

:root {
  --papel: #f6f1e7;
  --papel-2: #ede6d8;
  --tinta: #2b2620;
  --tinta-suave: #5f564d;
  --realce: #7a3b2e;
  --realce-forte: #5e2b21;
  --vermelho: #b3261e;
  --fio: #d8cdbb;
  --sombra: 0 10px 30px rgba(43, 38, 32, 0.18);
  --coluna: 42rem;
  --serif-texto: "Source Serif 4", Georgia, "Times New Roman", serif;
  --serif-titulo: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --serif-marca: "Libre Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --papel: #1c1a17;
    --papel-2: #26231f;
    --tinta: #e8e1d5;
    --tinta-suave: #b3a89a;
    --realce: #e0a98d;
    --realce-forte: #f0c4ad;
    --vermelho: #ff7b6b;
    --fio: #3b3630;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-tema="escuro"] {
  --papel: #1c1a17;
  --papel-2: #26231f;
  --tinta: #e8e1d5;
  --tinta-suave: #b3a89a;
  --realce: #e0a98d;
  --realce-forte: #f0c4ad;
  --vermelho: #ff7b6b;
  --fio: #3b3630;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

.topo {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--fio);
  font-size: 0.95rem;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tinta);
  text-decoration: none;
  margin-right: auto;
}

.logo {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--serif-marca);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

.marca-texto {
  font-family: var(--serif-marca);
  font-weight: 700;
  font-size: 1.1rem;
}

.controles {
  display: flex;
  gap: 0.35rem;
}

.controles button,
.botao {
  font: inherit;
  font-size: 0.85rem;
  color: var(--tinta);
  background: var(--papel-2);
  border: 1px solid var(--fio);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  line-height: 1.2;
  min-width: 2.4rem;
}

.controles button:hover,
.botao:hover {
  border-color: var(--realce);
}

#tema[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--papel);
}

.botao-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tinta);
  background: transparent;
  border: 0;
  padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  cursor: pointer;
}

.hamburguer,
.hamburguer::before,
.hamburguer::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.hamburguer::before,
.hamburguer::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburguer::before {
  top: -6px;
}

.hamburguer::after {
  top: 6px;
}

/* painel lateral do menu */

.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 85vw);
  background: #1c1a17;
  color: #e8e1d5;
  padding: 1.6rem 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  z-index: 40;
}

.topo.aberto .menu {
  transform: none;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .menu {
    transition: none;
  }
}

.menu-nome {
  font-family: var(--serif-marca);
  font-weight: 700;
  color: #fff;
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
}

.fechar-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.fechar-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
}

.menu li {
  margin: 0 0 0.9rem;
}

.menu a {
  color: #bfb5a7;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: #fff;
}

.menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.menu .redes {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.menu .redes a {
  font-size: 0.78rem;
}

.fundo-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 30;
}

/* cabeçalho transparente sobre a foto da página inicial */

.projetos ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.projetos li {
  margin: 0 0 0.7rem;
}

.projetos .projetos-titulo {
  font-family: var(--serif-titulo);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  margin: 0 0 0.5rem;
}

.projetos a {
  font-weight: 600;
}

.projetos .explica {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--tinta-suave);
}

.menu .projetos {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.menu .projetos .projetos-titulo,
.menu .projetos .explica {
  color: #a39a8c;
}

.menu .projetos a {
  font-size: 0.82rem;
}

.icone-menu {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin-right: 0.45em;
  flex: none;
  opacity: 0.85;
}


/* ---------- Só do Portal de Jogos ---------- */
html, body { margin: 0; }
body.tema {
  background: var(--papel) !important;
  color: var(--tinta);
  font-family: var(--serif-texto);
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
}
body.tema *, body.tema *::before, body.tema *::after { box-sizing: border-box; }
body.tema .topo { background: var(--papel); font-family: var(--sans); }
body.tema .topo a { text-decoration: none; }
.jogos-voltar { display: inline-flex; align-items: center; white-space: nowrap; }
#tema {
  font: inherit; font-size: .85rem; color: var(--tinta); background: var(--papel-2);
  border: 1px solid var(--fio); border-radius: 999px; padding: .3rem .7rem; cursor: pointer;
}

/* Título e mesa do jogo */
.tema-cabeca { text-align: center; padding: 1.75rem 1rem .25rem; }
.tema-sobre { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--realce); margin: 0; }
.tema-cabeca h1 {
  font-family: var(--serif-titulo); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.05; margin: .2rem 0 0; color: var(--tinta);
}
.tema-mesa {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  border-radius: 14px;
  border: 1px solid var(--fio);
  box-shadow: var(--sombra);
  overflow: hidden;
  min-height: 0 !important;
  padding: clamp(.75rem, 3vw, 2rem) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* mesas que eram cinza-claro (ou azul-claro) passam para o tom de papel do site */
.tema-mesa[class*="from-gray-100"], .tema-mesa[class*="from-gray-200"], .tema-mesa[class*="from-slate-100"],
.tema-mesa[class*="from-slate-200"], .tema-mesa[class*="bg-slate-200"], .tema-mesa[class*="from-sky-100"] {
  background: var(--papel-2) !important;
}
.tema-mesa > h1:first-child, .tema-mesa > div:first-child > h1:first-child { display: none; }

/* Logotipo da Multiverso Digital: versão clara no tema claro, escura no escuro */
.logo-mv { display: inline-block; height: 2.2rem; width: auto; vertical-align: middle; }
.logo-mv.escuro { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .logo-mv.claro { display: none; }
  :root:not([data-tema="claro"]) .logo-mv.escuro { display: inline-block; }
}
:root[data-tema="escuro"] .logo-mv.claro { display: none; }
:root[data-tema="escuro"] .logo-mv.escuro { display: inline-block; }
.tema-rodape .marca-mv { display: block; margin: 0 auto .8rem; width: fit-content; }

/* Rodapé */
.tema-rodape-linha { width: min(1100px, calc(100% - 2rem)); margin: 2.5rem auto 0; border-top: 1px solid var(--fio); }
.tema-rodape {
  margin-top: auto; padding: 2rem 1rem 2.25rem; text-align: center;
  font-family: var(--sans); font-size: .85rem; color: var(--tinta-suave);
}
.tema-rodape a { color: var(--realce); text-decoration: none; }
.tema-rodape a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .jogos-voltar { font-size: 0; padding: .3rem .6rem; }
  .jogos-voltar::before { content: "‹ Jogos"; font-size: .85rem; }
}

/* link de volta ao portal, acima do título */
.tema-voltar-linha { width: min(1100px, calc(100% - 2rem)); margin: 1.1rem auto 0; }
.tema-voltar {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  color: var(--realce); text-decoration: none;
  padding: .35rem .85rem; border: 1px solid var(--fio); border-radius: 999px; background: var(--papel-2);
}
.tema-voltar:hover { border-color: var(--realce); }
.tema-voltar-linha + .tema-cabeca { padding-top: .6rem; }
