/* Site do Advanced Netherite. Tema escuro único, nas cores da netherita; cada nível tem a sua cor. */
:root {
  --fundo: #17141a; --fundo2: #201c24; --placa: #2a252f; --borda: #3d3644; --tinta: #eee8ef; --apagado: #a9a0ad;
  --destaque: #c58bf2; --botao: #4a3566; --botao-borda: #8a64c4;
  --ferro: #c9ccd2; --ouro: #f0c13b; --esmeralda: #3fd17f; --diamante: #4fe0d8;
  --f-display: "Pixelify Sans", "Courier New", monospace;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fundo); color: var(--tinta); font-family: var(--f-texto); font-size: 16px; line-height: 1.55;
  background-image: linear-gradient(45deg, #1b181e 25%, transparent 25%, transparent 75%, #1b181e 75%),
                    linear-gradient(45deg, #1b181e 25%, transparent 25%, transparent 75%, #1b181e 75%);
  background-size: 64px 64px; background-position: 0 0, 32px 32px;
}
a { color: var(--destaque); }
code { font-family: var(--f-mono); font-size: .9em; background: #0003; padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
img.px { image-rendering: pixelated; vertical-align: middle; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 20px; margin-top: 8px; }
h4 { font-size: 17px; color: var(--apagado); font-weight: 500; }
p { margin: 0; }
.nota { color: var(--apagado); font-size: 14px; }

/* barra do topo */
.barra { position: sticky; top: 0; z-index: 5; background: #17141aee; backdrop-filter: blur(6px); border-bottom: 2px solid var(--borda); }
.barra-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.marca { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 18px; color: var(--tinta); text-decoration: none; white-space: nowrap; }
.marca img { image-rendering: pixelated; }
.menu { display: flex; gap: 18px; margin-left: auto; }
.menu a { color: var(--apagado); text-decoration: none; font-size: 15px; }
.menu a:hover { color: var(--tinta); }
.idioma { font-family: var(--f-display); font-size: 14px; background: var(--placa); color: var(--tinta); border: 2px solid var(--borda); padding: 4px 10px; cursor: pointer; }
.idioma:hover { border-color: var(--destaque); }
@media (max-width: 640px) { .menu { display: none; } .idioma { margin-left: auto; } }

/* corpo */
main, .rodape { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.secao { display: grid; gap: 14px; padding: 48px 0 8px; }
.secao > * { min-width: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 56px 0 24px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.hero > * { min-width: 0; }
.hero-txt { display: grid; gap: 16px; }
.selo { font-family: var(--f-display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--destaque); }
h1 { font-size: clamp(40px, 7vw, 72px); }
h1 span { color: var(--diamante); }
.lead { font-size: 18px; color: var(--apagado); max-width: 56ch; }
.baixar { display: flex; flex-wrap: wrap; gap: 10px; }
.bt { font-family: var(--f-display); font-size: 17px; text-decoration: none; color: var(--tinta); background: var(--placa); border: 2px solid var(--borda); padding: 10px 18px; box-shadow: inset 0 -4px 0 #0005; }
.bt:hover { border-color: var(--destaque); }
.bt-pri { background: var(--botao); border-color: var(--botao-borda); }
.versao { font-size: 14px; color: var(--apagado); }

.hero-img { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; background: var(--fundo2); border: 2px solid var(--borda); padding: 24px 12px; }
.degrau { display: grid; justify-items: center; gap: 4px; }
.degrau small { font-family: var(--f-display); font-size: 13px; color: var(--apagado); }
.degrau.t-iron small { color: var(--ferro); } .degrau.t-gold small { color: var(--ouro); }
.degrau.t-emerald small { color: var(--esmeralda); } .degrau.t-diamond small { color: var(--diamante); }
.degrau img, .degrau .base { width: clamp(36px, 9vw, 64px); height: clamp(36px, 9vw, 64px); }
.hero-img { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; }
@media (max-width: 480px) { .hero-img { gap: 2px; padding: 16px 8px; } .degrau small { font-size: 11px; } .seta { font-size: 16px; } }
.seta { font-family: var(--f-display); font-size: 22px; color: var(--apagado); }
@media (min-width: 861px) { .degrau img, .degrau .base { width: clamp(36px, 4.2vw, 56px); height: clamp(36px, 4.2vw, 56px); } }

/* cores dos níveis */
.t-iron { --cor: var(--ferro); } .t-gold { --cor: var(--ouro); } .t-emerald { --cor: var(--esmeralda); } .t-diamond { --cor: var(--diamante); }
th.t-iron, th.t-gold, th.t-emerald, th.t-diamond { color: var(--cor); font-family: var(--f-display); font-size: 16px; text-align: left; }

/* tabelas */
.tabela-rolar { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: middle; }
@media (max-width: 560px) { th, td { padding: 6px; font-size: 14px; } }
thead th { font-size: 13px; color: var(--apagado); font-weight: 600; }
table.todos { background: var(--fundo2); border: 2px solid var(--borda); }
table.todos td, table.todos thead th { text-align: center; }
table.todos thead th { font-size: 12px; }
table.resumo { background: var(--fundo2); border: 2px solid var(--borda); font-size: 15px; }
table.stats td:not(:first-child), table.stats th:not(:first-child) { text-align: right; white-space: nowrap; }
table.stats td:first-child { display: flex; align-items: center; gap: 8px; }
table.cmds { background: var(--fundo2); border: 2px solid var(--borda); }
table.cmds td:first-child { white-space: nowrap; }
@media (max-width: 720px) { table.cmds td:first-child { white-space: normal; } }

/* abas dos níveis */
.abas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.aba { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 17px; background: var(--placa); color: var(--apagado); border: 2px solid var(--borda); padding: 8px 14px; cursor: pointer; }
.aba[aria-selected="true"] { color: var(--cor); border-color: var(--cor); box-shadow: inset 0 -3px 0 var(--cor); }
.aba:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }
.nivel { display: grid; gap: 14px; background: var(--fundo2); border: 2px solid var(--borda); border-top: 3px solid var(--cor); padding: 20px; }
.nivel-topo { display: flex; align-items: center; gap: 16px; }
.nivel-topo h3 { color: var(--cor); font-size: 26px; margin: 0; }
.poderes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.poderes li { display: flex; align-items: center; gap: 12px; background: var(--placa); padding: 8px 12px; }
.duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.duas > div { display: grid; gap: 8px; min-width: 0; }

/* receitas */
.receitas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1000px) { .receitas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .receitas { grid-template-columns: 1fr; } }
.receita { margin: 0; background: #c6c6c6; color: #303030; border: 3px solid #fff; border-right-color: #555; border-bottom-color: #555; padding: 14px; display: grid; gap: 10px; justify-items: center; }
.receita figcaption { font-size: 13px; text-align: center; line-height: 1.4; }
.receita figcaption b { color: #222; }
.mesa { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.mesa .seta { color: #777; font-size: 26px; margin: 0 6px; }
.grade { display: grid; grid-template-columns: repeat(3, 36px); }
.slot { width: 36px; height: 36px; background: #8b8b8b; border: 2px solid #373737; border-right-color: #fff; border-bottom-color: #fff; display: grid; place-items: center; }
.slot img { width: 28px; height: 28px; }


.lista { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* instalação */
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.cartao { background: var(--fundo2); border: 2px solid var(--borda); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.cartao ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.codigo { margin: 0; background: #0006; border: 1px solid var(--borda); padding: 12px; overflow-x: auto; font-size: 13px; }
.codigo code { background: none; padding: 0; overflow-wrap: normal; }

/* rodapé */
.rodape { border-top: 2px solid var(--borda); margin-top: 56px; padding-top: 20px; padding-bottom: 40px; display: grid; gap: 8px; color: var(--apagado); font-size: 14px; }
.link { background: none; border: 0; color: var(--destaque); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
