@font-face { font-family: "Manrope"; src: url("fontes/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fontes/Manrope-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fontes/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fontes/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fontes/CormorantGaramond-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --fundo: #0b0d14;
  --fundo-2: #11141d;
  --vidro: rgba(20, 24, 36, .72);
  --linha: rgba(236, 234, 242, .12);
  --texto: #eceaf2;
  --texto-2: #a9b1c0;
  --ouro: #e6d29a;
  --ouro-forte: #f0dfae;
  --ork: #2fd36f;
  --azul: #3f7dff;
  --brasa: #ff8a3c;
  --raio: 14px;
  --largura: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
h1, h2, .cena h3, .marca span { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
img { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Botões */
.botao {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.botao:hover { transform: translateY(-1px); }
.botao:active { transform: translateY(0); }
.botao:focus-visible, .link:focus-visible, a:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
.fantasma { background: rgba(236, 234, 242, .06); border-color: var(--linha); color: var(--texto); }
.fantasma:hover { background: rgba(236, 234, 242, .12); }
.ouro { background: var(--ouro); color: #1c1708; }
.ouro:hover { background: var(--ouro-forte); box-shadow: 0 6px 24px rgba(230, 210, 154, .25); }
/* Criar conta: cor lisa, o azul escuro da capa do livro */
.capa {
  background: #24348f; color: #fff; border-color: #4254c4;
  text-transform: uppercase; letter-spacing: 1.2px; font-size: 14px; font-weight: 800;
}
.capa:hover { background: #2d40ad; border-color: #6274e0; }
.capa.grande { font-size: 16px; }
.grande { min-height: 64px; padding: 0 30px; font-size: 18px; }
.baixar {
  min-height: 64px; padding: 0 28px 0 22px; text-align: left;
  background: linear-gradient(180deg, #4a88ff, #2f66e0); color: #fff;
  box-shadow: 0 10px 34px rgba(63, 125, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.baixar:hover { box-shadow: 0 14px 40px rgba(63, 125, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .3); }
.baixar span { display: flex; flex-direction: column; line-height: 1.2; }
.baixar strong { font-size: 18px; }
.baixar small { font-size: 13px; font-weight: 500; opacity: .85; }
.baixar.pequeno { min-height: 54px; }
.baixar.pequeno strong { font-size: 15px; }
.baixar.outro {
  background: rgba(20, 24, 36, .82); border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.baixar.outro:hover { border-color: rgba(255, 255, 255, .45); box-shadow: 0 14px 36px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.baixe { margin-top: 30px; font-weight: 700; font-size: 16px; letter-spacing: .4px; color: var(--texto); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.sistemas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.sistemas .baixar { min-height: 56px; padding: 0 24px 0 18px; }
.sistemas .baixar strong { font-size: 17px; }
.sistemas + .acoes { margin-top: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--ouro); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Topo */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 12px 28px;
  background: rgba(11, 13, 20, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; }
.marca span { font-size: 28px; letter-spacing: .5px; line-height: 1; }
.menu { display: flex; gap: 24px; margin-right: auto; }
.menu a { color: var(--texto-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--texto); }
.conta { display: flex; gap: 10px; margin-left: auto; }

/* Herói */
.heroi {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px 16px 72px;
  background:
    linear-gradient(180deg, rgba(11, 13, 20, .55) 0%, rgba(11, 13, 20, .35) 40%, var(--fundo) 100%),
    radial-gradient(ellipse at center, rgba(11, 13, 20, .2) 0%, rgba(11, 13, 20, .75) 80%),
    url("img/biblioteca.jpg") center / cover no-repeat;
}
.heroi-conteudo { text-align: center; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.heroi-livro { filter: drop-shadow(0 12px 40px rgba(63, 125, 255, .55)); margin-bottom: 4px; }
h1 { font-size: clamp(64px, 12vw, 120px); line-height: 1; letter-spacing: 1px; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.lema { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(26px, 4.2vw, 38px); color: var(--ouro); margin-top: 6px; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.resumo { margin-top: 14px; max-width: 560px; color: var(--texto); font-size: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.ja-tem { margin-top: 18px; color: var(--texto-2); font-size: 15px; }

/* Blocos */
.bloco { max-width: var(--largura); margin: 0 auto; padding: 84px 16px 0; scroll-margin-top: 40px; }
.bloco h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; text-align: center; text-wrap: balance; }
.sub { text-align: center; color: var(--texto-2); margin-top: 10px; }
.nota { text-align: center; color: var(--texto-2); margin-top: 20px; font-size: 15px; }
.grade { display: grid; gap: 18px; margin-top: 36px; }
.quatro { grid-template-columns: repeat(4, 1fr); }
.dois { grid-template-columns: repeat(2, 1fr); }

.carta { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 22px; }
.carta h3 { font-size: 18px; font-weight: 700; margin: 16px 0 6px; }
.carta p { color: var(--texto-2); font-size: 15.5px; }
.selo { display: block; width: 36px; height: 4px; border-radius: 2px; }
.selo.fogo { background: var(--brasa); box-shadow: 0 0 16px var(--brasa); }
.selo.azul { background: var(--azul); box-shadow: 0 0 16px var(--azul); }
.selo.dourado { background: var(--ouro); box-shadow: 0 0 16px var(--ouro); }
.selo.verde { background: var(--ork); box-shadow: 0 0 16px var(--ork); }

.cena {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--raio); border: 1px solid var(--linha);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.cena.ork { background-image: linear-gradient(180deg, transparent 45%, rgba(8, 9, 14, .92)), url("img/ork.jpg"); }
.cena.maga { background-image: linear-gradient(180deg, transparent 45%, rgba(8, 9, 14, .92)), url("img/maga.jpg"); }
.cena > div { padding: 22px 24px; }
.cena h3 { font-size: 38px; line-height: 1; }
.cena.ork h3 { color: var(--ork); }
.cena.maga h3 { color: #9fc6ff; }
.cena p { color: var(--texto); margin-top: 6px; font-size: 15.5px; }

.planos { align-items: stretch; }
.plano { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 30px 28px; display: flex; flex-direction: column; }
.plano.destaque { border-color: rgba(230, 210, 154, .55); background: linear-gradient(180deg, rgba(230, 210, 154, .09), var(--fundo-2) 55%); box-shadow: 0 0 60px rgba(230, 210, 154, .08); }
.plano h3 { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--texto-2); }
.plano.destaque h3 { color: var(--ouro); }
.preco { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; }
.preco small { font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; margin-left: 4px; }
.plano ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.plano li { position: relative; padding-left: 26px; color: var(--texto-2); font-size: 15.5px; }
.plano li strong { color: var(--texto); font-weight: 700; }
.plano li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; transform: rotate(45deg); background: var(--ouro); border-radius: 2px; }
.plano .botao { margin-top: auto; align-self: flex-start; }

/* Página de companheiros */
.pagina { padding-top: 128px; }
.titulo-pagina { font-size: clamp(44px, 7vw, 68px); text-align: center; }
.tres { grid-template-columns: repeat(3, 1fr); }
.tres .cena { aspect-ratio: 3 / 4; }
.cena.samurai {
  border-color: rgba(255, 77, 77, .4);
  background-image:
    linear-gradient(180deg, transparent 45%, rgba(8, 9, 14, .92)),
    radial-gradient(circle at 50% 38%, rgba(255, 60, 60, .55) 0, rgba(255, 60, 60, .55) 17%, rgba(150, 18, 24, .35) 17.5%, rgba(40, 8, 12, .9) 70%);
}
.cena.samurai h3 { color: #ff5a5a; }
.etiqueta { position: absolute; top: 16px; right: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(8, 9, 14, .75); border: 1px solid rgba(255, 90, 90, .6); color: #ffb3b3; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.menu a[aria-current="page"] { color: var(--ouro); }

/* Rede de estudos (build309) */
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.painel-grafico { margin-top: 36px; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; }
.grafico-topo { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; }
.grafico-titulo { font-size: 30px; text-align: left; }
.grafico-resumo { color: var(--texto-2); font-size: 15px; margin-top: 4px; }
.grafico-controles { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
select { font: inherit; font-size: 15px; color: var(--texto); background: rgba(236, 234, 242, .06); border: 1px solid var(--linha); border-radius: 10px; min-height: 40px; padding: 0 12px; }
select option { background: var(--fundo-2); color: var(--texto); }
select:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; }
.segmentos { display: inline-flex; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; }
.segmentos button { background: none; border: 0; min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--texto-2); }
.segmentos button + button { border-left: 1px solid var(--linha); }
.segmentos button[aria-pressed="true"] { background: rgba(230, 210, 154, .14); color: var(--ouro); }
.segmentos button:focus-visible { outline: 2px solid var(--ouro); outline-offset: -2px; }
.grafico { margin-top: 20px; min-height: 220px; display: grid; place-items: center; overflow: hidden; }
.grafico svg { display: block; max-width: 100%; }
.grafico .barra { fill: var(--ouro); opacity: .9; }
.grafico .barra:hover { opacity: 1; }
.grafico .grade-linha { stroke: rgba(236, 234, 242, .08); stroke-width: 1; }
.grafico .eixo { fill: var(--texto-2); font-size: 12px; font-family: "Manrope", sans-serif; }
.grafico-vazio { color: var(--texto-2); text-align: center; max-width: 420px; }
.grafico-nota { color: var(--texto-2); font-size: 13.5px; margin-top: 12px; }
.rede-cartas { margin-top: 28px; }

/* Minha conta (build309) */
.conta-pagina { max-width: 640px; }
.painel-conta { margin-top: 32px; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 28px; display: grid; gap: 16px; justify-items: start; }
.painel-conta > p { color: var(--texto-2); }
.aviso { margin-top: 24px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255, 138, 60, .5); background: rgba(255, 138, 60, .08); color: var(--texto); }
.conta-quem { display: flex; gap: 16px; align-items: center; justify-content: space-between; width: 100%; }
.conta-nome { font-size: 20px; font-weight: 700; }
.selo-plano { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--linha); font-size: 13px; font-weight: 700; color: var(--texto-2); white-space: nowrap; }
.selo-plano.ouro { background: rgba(230, 210, 154, .14); border-color: rgba(230, 210, 154, .5); color: var(--ouro); }
.conta-linha { color: var(--texto-2); }
.conta-linha strong { color: var(--texto); letter-spacing: 1px; }
.conta-form { display: grid; gap: 10px; width: 100%; padding-top: 16px; border-top: 1px solid var(--linha); }
.conta-form select { width: 100%; }
.conta-marcar { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.conta-marcar input { width: 18px; height: 18px; accent-color: var(--ouro); }
.conta-acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.conta-sair { padding-top: 16px; border-top: 1px solid var(--linha); width: 100%; }
[hidden] { display: none !important; }

/* Rodapé */
.rodape { margin-top: 96px; padding: 36px 16px 44px; border-top: 1px solid var(--linha); text-align: center; color: var(--texto-2); font-size: 14.5px; display: grid; gap: 10px; justify-items: center; }
.rodape .marca span { font-size: 22px; }
.miudo { font-size: 13px; opacity: .8; }
.rodape-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.rodape-links .link { font-weight: 600; }

/* R8: Privacidade e Termos de uso */
.legal { max-width: 760px; }
.legal-resumo { margin-top: 36px; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 26px; }
.legal h2 { font-size: 30px; line-height: 1.15; text-align: left; color: var(--texto); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-resumo ul { margin-top: 12px; }
.legal-corpo { margin-top: 12px; display: grid; gap: 14px; color: var(--texto-2); }
.legal-corpo h2 { margin-top: 30px; }
.legal-corpo strong, .legal-resumo strong { color: var(--texto); }

/* R9: Instalar no Windows */
.instalar { max-width: 820px; }
.instalar-baixar { margin-top: 32px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.instalar-status { padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(47, 211, 111, .45); background: rgba(47, 211, 111, .08); }
.instalar-requisitos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--texto-2); font-size: 15px; }
.instalar-requisitos li::before { content: "✓ "; color: var(--ork); font-weight: 700; }
.passos { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 18px; counter-reset: passo; }
.passo { position: relative; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 26px 24px 78px; color: var(--texto-2); display: grid; gap: 12px; counter-increment: passo; }
.passo::before { content: counter(passo); position: absolute; left: 24px; top: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(230, 210, 154, .14); border: 1px solid rgba(230, 210, 154, .5); color: var(--ouro); font-weight: 800; }
.passo h2, .instalar-texto h2 { font-size: 28px; line-height: 1.15; text-align: left; color: var(--texto); }
.passo strong, .instalar-texto strong { color: var(--texto); }
.janelas-win { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 4px; }
.janela-win { margin: 0; display: grid; gap: 10px; align-content: start; }
.janela-win-tela { background: #0f4c99; color: #fff; border-radius: 6px; padding: 18px 18px 16px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 13.5px; line-height: 1.45; display: grid; gap: 10px; min-height: 210px; align-content: start; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.janela-win-titulo { font-size: 19px; font-weight: 600; line-height: 1.2; }
.janela-win-link { text-decoration: underline; justify-self: start; }
.janela-win-botoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 6px; }
.janela-win-botao { border: 1px solid rgba(255, 255, 255, .85); padding: 5px 14px; white-space: nowrap; }
.realce { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 3px; box-shadow: 0 0 18px rgba(230, 210, 154, .55); }
.janela-win figcaption { font-size: 15px; }
.instalar-texto { margin-top: 44px; display: grid; gap: 12px; color: var(--texto-2); }
.impressao { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.impressao code, .comando { font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px; color: var(--texto); background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 10px; padding: 10px 14px; overflow-wrap: anywhere; }
.impressao code { flex: 1 1 320px; }
.comando { margin: 0; white-space: pre-wrap; }

/* Janela "em breve" */
dialog { background: var(--fundo-2); color: var(--texto); border: 1px solid var(--linha); border-radius: var(--raio); padding: 28px; max-width: min(420px, calc(100vw - 32px)); text-align: center; }
dialog::backdrop { background: rgba(5, 6, 10, .7); }
dialog h2 { font-size: 34px; color: var(--ouro); }
dialog p { color: var(--texto-2); margin: 10px 0 22px; }

/* Passagem suave entre as páginas */
@view-transition { navigation: auto; }
.topo { view-transition-name: topo; }
::view-transition-old(root) { animation: pagina-sai .18s ease both; }
::view-transition-new(root) { animation: pagina-entra .32s ease both; }
@keyframes pagina-sai { to { opacity: 0; } }
@keyframes pagina-entra { from { opacity: 0; transform: translateY(10px); } }

/* Telas menores */
@media (max-width: 900px) {
  .quatro { grid-template-columns: repeat(2, 1fr); }
  .tres { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .tres .cena { aspect-ratio: 16 / 9; }
  .menu { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topo { gap: 10px; padding: 10px 16px; }
  .marca span { font-size: 24px; }
  .conta .botao { padding: 0 14px; font-size: 14px; }
  .heroi { padding-top: 96px; }
  .heroi-livro { width: 88px; height: 88px; }
  .acoes, .sistemas { flex-direction: column; align-self: stretch; }
  .acoes .botao, .sistemas .botao { width: 100%; justify-content: flex-start; }
  .acoes .botao { justify-content: center; }
  .dois, .tres, .quatro { grid-template-columns: 1fr; }
  .bloco { padding-top: 64px; }
  .cena { aspect-ratio: 4 / 3; }
  .painel-grafico, .painel-conta { padding: 18px 16px; }
  .janelas-win { grid-template-columns: 1fr; }
  .passo { padding: 70px 16px 20px; }
  .passo::before { left: 16px; top: 18px; }
  .instalar-baixar .baixar { width: 100%; justify-content: flex-start; }
  .grafico-controles, .grafico-controles .escolha, .grafico-controles select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* R4: páginas de aviso do servidor (entrada expirada, muitas tentativas). */
.aviso-servidor main {
  min-height: 90vh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 24px 16px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
