/* Site do Ludo Deck: mesmas cores do jogo (índigo, grafite e dourado). */
:root {
  --bg-top: #2c3040;
  --bg: #15171d;
  --surface: #262a34;
  --surface-2: #1d2029;
  --line: #363b48;
  --text: #f4f5f8;
  --text-2: #cfd2db;
  --muted: #a4a9b6;
  --indigo: #6d5dfc;
  --indigo-2: #7d6dff;
  --gold: #ecb84e;
  --link: #a79cff;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(120% 60% at 50% 0%, var(--bg-top), var(--bg) 65%) no-repeat, var(--bg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
a:hover { color: var(--text); }

.topo {
  max-width: 820px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.marca img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(109, 93, 252, .35); }
.marca span { font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.idioma {
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface-2);
}

main { max-width: 820px; margin: 0 auto; padding: 8px 16px 64px; }
.capa { padding: 24px 0 8px; }
.selo {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gold); background: rgba(236, 184, 78, .12); border: 1px solid rgba(236, 184, 78, .35);
  border-radius: 999px; padding: 4px 10px;
}
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 14px 0 6px; font-weight: 800; }
.vigencia { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
h2 {
  font-size: 21px; margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
h2 .n {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--indigo); color: #fff; font-size: 15px; font-weight: 800;
}
p, li { color: var(--text-2); }
strong { color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

.caixa {
  background: linear-gradient(135deg, rgba(109, 93, 252, .18), rgba(109, 93, 252, .06));
  border: 1px solid rgba(125, 109, 255, .45); border-radius: 16px; padding: 16px 18px; margin: 18px 0;
}
.caixa p { margin: 0; color: var(--text); }

.indice {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 18px 0 8px;
}
.indice p { margin: 0 0 8px; font-weight: 700; color: var(--text); font-size: 14px; }
.indice ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.indice li { margin: 3px 0; font-size: 14px; break-inside: avoid; }
.indice a { color: var(--text-2); text-decoration: none; }
.indice a:hover { color: var(--gold); }

.tabela { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface-2); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: none; }
td:first-child { min-width: 180px; }

.nota { color: var(--muted); font-size: 14px; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.botao {
  display: inline-block; text-decoration: none; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--indigo-2), var(--indigo)); border-radius: 12px; padding: 12px 18px;
}
.botao.secundario { background: var(--surface); border: 1px solid var(--line); color: var(--text); }

footer {
  max-width: 820px; margin: 0 auto; padding: 22px 16px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  .indice ol { columns: 1; }
  /* No celular, cada linha da tabela vira um cartão. */
  .tabela { border: none; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; background: none; }
  table tr:first-child:has(th) { display: none; }
  tr { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
  td { border: none; padding: 4px 0; min-width: 0; }
  td:first-child { min-width: 0; color: var(--text); }
  td + td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
}
