/* Tidefall — site (notícias e download). Identidade do jogo: petróleo #173D46, pergaminho #E8D8B8, marrom #3C3023, bronze #967648, âmbar nas ações. */
:root {
  --petroleo: #173D46; --petroleo-escuro: #0F2A31; --petroleo-fundo: #0B1F25;
  --pergaminho: #E8D8B8; --pergaminho-claro: #F3E8D2; --marrom: #3C3023; --bronze: #967648; --ambar: #F2A31B;
  --titulo: "Cinzel", Georgia, "Times New Roman", serif;
  --texto: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--petroleo-fundo); color: var(--pergaminho); font-family: var(--texto); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--ambar); }
code { background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 4px; font-size: .92em; }

/* ---------- botões (peças do kit do jogo: pontas preservadas, meio estica) ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--titulo); font-weight: 700; white-space: nowrap;
  border-style: solid; border-color: transparent; border-width: 0 22px; transition: transform .08s ease; }
.botao.principal { border-image: url(img/botao-normal.png) 0 30 fill / 0 22px stretch; color: var(--marrom); }
.botao.principal:hover { border-image-source: url(img/botao-hover.png); }
.botao.principal:active { border-image-source: url(img/botao-pressionado.png); transform: translateY(1px); }
.botao.escuro { border-image: url(img/botao-escuro-normal.png) 0 30 fill / 0 18px stretch; color: var(--pergaminho); }
.botao.escuro:hover { border-image-source: url(img/botao-escuro-hover.png); }
.botao.grande { height: 72px; padding: 0 34px; font-size: 26px; }
.botao.pequeno { height: 44px; padding: 0 14px; font-size: 17px; border-width: 0 18px; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 10; background: rgba(15, 42, 49, .92); border-bottom: 2px solid var(--bronze); backdrop-filter: blur(6px); }
.topo-dentro { max-width: 1140px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca img { display: block; height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu > a:not(.botao) { color: var(--pergaminho); text-decoration: none; font-family: var(--titulo); font-size: 17px; letter-spacing: .5px; }
.menu > a:not(.botao):hover { color: var(--ambar); }

/* ---------- abertura com a cena do login ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: 72px 16px 120px; }
.hero-cena { position: absolute; inset: -2%; background: url(img/hero.jpg) center 62% / cover no-repeat; animation: aproxima 38s ease-in-out infinite alternate; }
.hero-nevoa { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: url(img/nevoa.png) 0 100% / auto 100% repeat-x; opacity: .9; animation: nevoa 90s linear infinite; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,37,.15) 0%, rgba(11,31,37,0) 30%, rgba(11,31,37,.35) 70%, var(--petroleo-fundo) 100%); pointer-events: none; }
.hero-conteudo { position: relative; z-index: 1; max-width: 760px; }
.logo { width: 640px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.chamada { margin: 6px 0 26px; font-family: var(--titulo); font-size: 24px; color: #fff6e2; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.chamada span { color: var(--ambar); padding: 0 6px; }
.botoes { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.detalhe { margin: 16px 0 0; color: #fff6e2; text-shadow: 0 1px 6px rgba(0,0,0,.8); font-weight: 600; }
.detalhe.fraco { margin-top: 4px; font-weight: 400; opacity: .9; }
@keyframes aproxima { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1%); } }
@keyframes nevoa { from { background-position-x: 0; } to { background-position-x: -1280px; } }
@media (prefers-reduced-motion: reduce) { .hero-cena, .hero-nevoa { animation: none; } }

/* ---------- seções ---------- */
main { position: relative; }
.secao { max-width: 1140px; margin: 0 auto; padding: 56px 16px 24px; }
.secao h2 { font-family: var(--titulo); font-weight: 700; font-size: 38px; text-align: center; margin: 0; color: var(--pergaminho); letter-spacing: 1px; }
.divisor { height: 18px; max-width: 520px; margin: 6px auto 34px; background: url(img/divisor.png) center / contain no-repeat; }

/* ---------- notícias (cartões de pergaminho com a moldura do jogo) ---------- */
.lista-noticias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.carregando, .vazio { grid-column: 1 / -1; text-align: center; opacity: .8; }
.noticia { border: 26px solid transparent; border-image: url(img/cartao.png) 56 fill / 26px stretch; color: var(--marrom); display: flex; flex-direction: column; gap: 12px; padding: 4px 6px; }
.noticia img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 2px solid var(--bronze); background: var(--petroleo); }
.noticia time { font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #6b5536; text-transform: uppercase; }
.noticia h3 { margin: 0; font-family: var(--titulo); font-size: 25px; line-height: 1.25; color: var(--marrom); }
.noticia p { margin: 0; }
.noticia .corpo { display: flex; flex-direction: column; gap: 10px; }
.noticia.destaque { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.noticia.destaque .corpo { display: flex; flex-direction: column; gap: 10px; }
.noticia.destaque h3 { font-size: 31px; }

/* ---------- como jogar ---------- */
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.passos li { position: relative; background: linear-gradient(180deg, #1C4954, var(--petroleo-escuro)); border: 2px solid var(--bronze); border-radius: 10px; padding: 30px 22px 22px; }
.passos h3 { margin: 6px 0 8px; font-family: var(--titulo); font-size: 22px; color: var(--pergaminho); }
.passos p { margin: 0; color: #d9ccb0; }
.numero { position: absolute; top: -20px; left: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ambar); color: var(--marrom); font-family: var(--titulo); font-weight: 700; font-size: 20px; border: 2px solid var(--bronze); }
.celular { margin: 34px auto 0; max-width: 860px; background: linear-gradient(180deg, #1C4954, var(--petroleo-escuro)); border: 2px solid var(--bronze); border-radius: 10px; padding: 18px 26px 14px; }
.celular h3 { margin: 0 0 8px; font-family: var(--titulo); font-size: 22px; color: var(--pergaminho); }
.celular ol { margin: 0 0 8px; padding-left: 22px; color: #d9ccb0; }
.celular li { margin: 6px 0; }
.celular p { margin: 6px 0 0; }
.dicas { margin: 28px auto 0; max-width: 860px; text-align: center; }
.dicas p { margin: 8px 0; }
.fraco { opacity: .78; font-size: 16px; }

/* ---------- rodapé ---------- */
.rodape { margin-top: 48px; padding: 26px 16px 34px; display: flex; align-items: center; justify-content: center; gap: 18px; border-top: 2px solid var(--bronze); background: var(--petroleo-escuro); }
.rodape p { margin: 0; font-family: var(--titulo); letter-spacing: 1px; }
.rodape img { width: 34px; height: auto; opacity: .9; }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .lista-noticias, .passos { grid-template-columns: 1fr; }
  .noticia.destaque { grid-template-columns: 1fr; }
  .passos { gap: 34px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .menu { gap: 12px; }
  .menu > a:not(.botao) { font-size: 15px; }
  .menu > a[href="#como-jogar"] { display: none; }   /* no celular cabe só Notícias e Baixar */
  .hero-cena { background-position: 30% 62%; }       /* mostra a cidade élfica e o veleiro em vez de só céu */
  .marca img { height: 36px; }
  .chamada { font-size: 19px; }
  .botao.grande { height: 62px; font-size: 21px; padding: 0 18px; }
  .secao h2 { font-size: 30px; }
  .noticia h3, .noticia.destaque h3 { font-size: 23px; }
  .hero { padding-bottom: 90px; }
}
