/* Guia do Vida na Banda — www.vidaemluanda.com (as páginas são geradas por tools/gerar_guia.py; este ficheiro é escrito à mão)
   0ac (dono, 30 out): «make it look a bit better, smoother, and nicer». */
:root {
  --fundo: #fbf6ee; --papel: #ffffff; --tinta: #1b1511; --suave: #6a5c4f; --linha: #ece2d4; --amarelo: #ffcb00; --amarelo2: #ffd93d;
  --escuro: #14100d; --escuro2: #221a14; --link: #8a5a00; --vermelho: #d7263d;
  --sombra: 0 1px 2px rgba(40, 25, 10, .06), 0 8px 24px rgba(40, 25, 10, .07);
  --sombra-alta: 0 2px 4px rgba(40, 25, 10, .08), 0 18px 40px rgba(40, 25, 10, .14);
  --raio: 18px; --titulo: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --fundo: #120e0b; --papel: #1c1713; --tinta: #f3ece2; --suave: #b9ad9f; --linha: #2c241d; --link: #ffcb00;
    --sombra: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --sombra-alta: 0 2px 4px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; border-radius: 14px; }
h1, h2, h3 { font-family: var(--titulo); letter-spacing: -0.02em; }
.larg { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; background: var(--amarelo); color: #1a1408; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 0 #c99a00, 0 6px 16px rgba(255, 203, 0, .25); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { background: var(--amarelo2); transform: translateY(-1px); box-shadow: 0 3px 0 #c99a00, 0 10px 22px rgba(255, 203, 0, .32); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #c99a00, 0 3px 8px rgba(255, 203, 0, .2); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.btn.grande { min-height: 56px; padding: 0 26px; font-size: 18px; border-radius: 16px; }
.btn.ghost { background: transparent; color: var(--tinta); border: 2px solid var(--linha); box-shadow: none; }
.btn.ghost:hover { background: var(--papel); border-color: var(--amarelo); box-shadow: var(--sombra); }

/* topo */
.topo { background: rgba(20, 16, 13, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: #f3ece2; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topo .larg { display: flex; align-items: center; gap: 10px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marca { color: #f3ece2; text-decoration: none; font-family: var(--titulo); font-weight: 800; font-size: 21px; margin-right: auto; }
.marca b { color: var(--amarelo); }
.marca small { font-family: Inter, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #c9bdb0; border: 1px solid #3a3029; border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: middle; }
.menu { color: #e6dccf; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 10px; border-radius: 10px; transition: background .15s, color .15s; }
.menu:hover { color: var(--amarelo); background: rgba(255, 255, 255, .06); }
.linguas { display: flex; gap: 2px; background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 3px; }
.linguas a { color: #b9ad9f; text-decoration: none; font-weight: 800; font-size: 12px; padding: 7px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.linguas a:hover { color: #fff; }
.linguas a[aria-current] { color: #1a1408; background: var(--amarelo); }

/* herói */
.heroi { position: relative; overflow: hidden; color: #f3ece2; padding: 44px 0 56px;
  background: radial-gradient(90% 70% at 15% 0%, #5a0d1c 0%, transparent 60%), radial-gradient(70% 60% at 100% 100%, #3f2d08 0%, transparent 65%), linear-gradient(180deg, var(--escuro) 0%, var(--escuro2) 100%); }
.heroi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--vermelho) 0 40%, #000 40% 60%, var(--amarelo) 60% 100%); opacity: .9; }
.heroi .larg { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.heroi-txt { flex: 1 1 400px; min-width: 0; animation: sobe .6s ease both; }
.selo { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 700; color: #ffe27a; background: rgba(255, 203, 0, .12); border: 1px solid rgba(255, 203, 0, .35); border-radius: 999px; padding: 6px 12px; }
.heroi h1 { margin: 0 0 14px; font-size: clamp(36px, 6vw, 60px); line-height: 1.02; font-weight: 800; }
.heroi h1 span { color: var(--amarelo); }
.heroi p { margin: 0 0 24px; color: #d9cebf; font-size: 18px; max-width: 540px; }
.heroi-img { flex: 1 1 440px; min-width: 0; width: 100%; max-width: 580px; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-1.2deg); animation: entra .8s .1s ease both; }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } }
@keyframes entra { from { opacity: 0; transform: rotate(-1.2deg) translateY(22px) scale(.98); } }

/* corpo */
.corpo { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 40px; padding-bottom: 56px; }
.indice { flex: 1 1 230px; min-width: 0; align-self: flex-start; position: sticky; top: 84px; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px 18px 14px; box-shadow: var(--sombra); }
.indice h2 { margin: 0 0 10px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); }
.indice ol { margin: 0; padding: 0; list-style: none; counter-reset: i; }
.indice li { counter-increment: i; }
.indice a { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--tinta); font-weight: 600; font-size: 15px; transition: background .15s; }
.indice a::before { content: counter(i); font-size: 12px; font-weight: 800; color: var(--suave); min-width: 14px; }
.indice a:hover { background: var(--fundo); }
.conteudo { flex: 999 1 580px; min-width: 0; }
.conteudo h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; margin: 48px 0 16px; display: flex; align-items: center; gap: 12px; }
.conteudo h2 .ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--papel); border: 1px solid var(--linha); box-shadow: var(--sombra); font-size: 22px; flex: none; }
.intro h2 { margin-top: 0; }
.intro p { color: var(--tinta); }
.intro img, .grupo > img { margin-top: 22px; box-shadow: var(--sombra-alta); border-radius: var(--raio); }
.grupo { scroll-margin-top: 84px; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cartoes article { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px 18px 16px; scroll-margin-top: 90px; box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; }
.cartoes article::before { content: ""; position: absolute; left: 18px; top: 0; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--amarelo); }
.cartoes article:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); border-color: #e2d3bd; }
.cartoes h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.25; }
.cartoes p { margin: 0; color: var(--suave); font-size: 15.5px; line-height: 1.6; }
.dicas { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dicas li { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; padding: 14px 16px 14px 48px; position: relative; box-shadow: var(--sombra); }
.dicas li::before { content: "💡"; position: absolute; left: 16px; top: 13px; }
details { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; padding: 0 18px; margin: 10px 0; box-shadow: var(--sombra); transition: box-shadow .2s; }
details[open] { box-shadow: var(--sombra-alta); }
summary { cursor: pointer; font-weight: 700; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--suave); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--suave); }
.marcas { background: linear-gradient(135deg, #1d1611, #2c2016); color: #f3ece2; border: 0; border-radius: 22px; padding: 6px 24px 20px; margin-top: 48px; box-shadow: var(--sombra-alta); }
.marcas h2 { margin-top: 20px; color: #fff; }
.marcas p { color: #d9cebf; }
.faixa-jogar { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 8px; padding: 20px; border-radius: 22px; background: var(--papel); border: 1px solid var(--linha); box-shadow: var(--sombra); align-items: center; }
.fim { margin: 40px 0 0; text-align: center; }
.pub { margin: 30px 0; text-align: center; }
.pub span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); margin-bottom: 4px; }
.rodape { border-top: 1px solid var(--linha); color: var(--suave); font-size: 14px; background: var(--papel); }
.rodape .larg { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 22px; padding-bottom: 30px; }
.texto { padding-top: 32px; padding-bottom: 56px; max-width: 760px; }

/* calculadora */
.calc { flex: 1 1 340px; min-width: 0; align-self: flex-start; position: sticky; top: 84px; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra-alta); }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.calc select, .calc input[type=number] { min-height: 48px; border: 1px solid var(--linha); border-radius: 12px; padding: 0 12px; font: 500 16px Inter, system-ui, sans-serif; background: var(--fundo); color: var(--tinta); transition: border-color .15s, box-shadow .15s; }
.calc select:hover, .calc input[type=number]:hover { border-color: #d9c7ae; }
.calc input[type=range] { width: 100%; accent-color: #c99a00; min-height: 32px; }
.calc output { font-weight: 800; display: inline-block; min-width: 26px; text-align: center; background: var(--amarelo); color: #1a1408; border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.calc .duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc .req { margin: -6px 0 0; color: var(--suave); font-size: 14px; }
.resultado { background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 6px 20px; box-shadow: var(--sombra); }
.resultado .lin { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linha); font-size: 17px; }
.resultado .lin:last-child { border-bottom: 0; }
.resultado .total { background: linear-gradient(90deg, rgba(255, 203, 0, .16), transparent); margin: 0 -20px; padding: 16px 20px; }
.resultado .total b { font-family: var(--titulo); font-size: 28px; }
.resultado .dias b { font-size: 20px; text-align: right; }
.nota { color: var(--suave); font-size: 14px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu { display: none; }
  .topo .btn { display: none; }
  .heroi { padding: 28px 0 40px; }
  .heroi-img { transform: none; animation: none; }
  .indice, .calc { position: static; }
  .indice ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .indice a { background: var(--fundo); border-radius: 999px; padding: 7px 12px; font-size: 14px; }
  .indice a::before { display: none; }
  .faixa-jogar .btn { flex: 1 1 100%; }
}

/* 0gj (10 nov): página «Como ganhar dinheiro» — a escada */
.escada { list-style: none; margin: 8px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: passo; }
.escada li { display: flex; gap: 16px; align-items: flex-start; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; box-shadow: var(--sombra); position: relative; }
.escada li::before { content: ""; position: absolute; left: 20px; top: 0; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--amarelo); }
.escada .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff3c4; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.escada h2 { margin: 4px 0 8px; font-size: 21px; line-height: 1.25; }
.escada p { margin: 0 0 8px; color: var(--suave); font-size: 15.5px; line-height: 1.6; }
.tabela { overflow-x: auto; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); }
.tabela table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .escada li { flex-direction: column; gap: 10px; } }
.heroi .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }

/* 0gm (10 nov): perguntas e respostas */
.pg-busca { display: block; margin-top: 18px; max-width: 560px; }
.pg-busca input { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 15px 18px; border-radius: 16px; border: 2px solid var(--amarelo); background: #fff; color: #14110e; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.pg-nav a { text-decoration: none; background: var(--papel); border: 1px solid var(--linha); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14.5px; color: inherit; }
.pg-tema details { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; margin: 0 0 10px; }
.pg-tema summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 16px; }
.pg-tema details p { margin: 0; padding: 0 18px 16px; color: var(--suave); line-height: 1.6; }
.pg-nada { background: #fff3c4; border-radius: 14px; padding: 14px 18px; font-weight: 600; }
.pg-perg { background: #fff8db; border: 1px solid #f2d36b; border-radius: var(--raio); padding: 20px; }
.pg-perg textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linha); margin: 6px 0 12px; resize: vertical; }
.pg-perg #pgMsg { font-weight: 600; margin: 10px 0 0; }
.pg-atual { color: var(--suave); font-size: 13px; text-align: center; }
.hide { display: none !important; }

/* 10 nov: página de cada pergunta */
.pq h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 10px 0 14px; }
.pq .pq-r { font-size: 18px; line-height: 1.65; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; }
.pq .migalhas { font-size: 14px; color: var(--suave); }
.pq .migalhas a { color: inherit; }
.pq-rel { padding-left: 20px; line-height: 1.9; }
.pg-mais { font-weight: 700; white-space: nowrap; }
