:root {
  --fundo: #06070a;
  --painel: rgba(13, 15, 20, .82);
  --painel-solido: #0d0f14;
  --linha: rgba(255, 255, 255, .08);
  --linha-forte: rgba(255, 255, 255, .16);
  --texto: #ecebe6;
  --texto-2: #b9bac0;
  --suave: #7d818b;
  --acento: #d6c39b;
  --c: var(--acento);
  --serif: 'Sora', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --raio: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #0b0d12 0%, var(--fundo) 70%) fixed, var(--fundo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: rgba(214, 195, 155, .3); }

#ceu {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Cortina de transição entre páginas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--fundo);
  pointer-events: none;
  animation: abrir .8s ease forwards;
}
@keyframes abrir { to { opacity: 0; visibility: hidden; } }
body.a-sair::before { animation: fechar .38s ease forwards; }
@keyframes fechar { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }

.zoom {
  position: fixed;
  z-index: 9999;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform .75s cubic-bezier(.7, 0, .25, 1);
  pointer-events: none;
}
.zoom.ativo { transform: translate(-50%, -50%) scale(240); }

@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

.rotulo-pequeno {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--suave);
}

/* ---------- Cabeçalho ---------- */
.cabecalho {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 36px;
  height: 68px;
  border-bottom: 1px solid var(--linha);
  background: rgba(6, 7, 10, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: aparecer .8s ease both;
}
.logo {
  font-family: var(--serif);
  font-size: 26px;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.logo em { color: var(--acento); }
.menu { display: flex; gap: 6px; }
.menu a {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.menu a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 1px;
  background: var(--acento);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.menu a:hover { color: var(--texto); }
.menu a:hover::after, .menu a.ativo::after { transform: scaleX(1); }
.menu a.ativo { color: var(--texto); }

@media (max-width: 760px) {
  .cabecalho { padding: 0 16px; height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; }
  .logo { font-size: 22px; }
  .menu { width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; }
  .menu a { padding: 8px 14px 12px; font-size: 12.5px; }
}

/* =================== PÁGINA INICIAL (MAPA) =================== */
.pagina-mapa { height: 100vh; overflow: hidden; }

#orbitas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
#sistema { position: fixed; inset: 0; z-index: 2; }

.corpo {
  position: absolute;
  left: 0; top: 0;
  display: block;
  border-radius: 50%;
  will-change: transform;
  outline: none;
  cursor: pointer;
}
.corpo::before {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
}
.corpo .pvis { transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.corpo:hover .pvis,
.corpo:focus-visible .pvis,
.corpo.realce .pvis {
  transform: scale(1.18);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent));
}

.rotulo-astro {
  position: absolute;
  left: 0; top: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--suave);
  white-space: nowrap;
  pointer-events: none;
  transition: color .3s;
}
.rotulo-astro.realce { color: var(--texto); }

.intro-mapa {
  position: fixed;
  left: 36px;
  top: 104px;
  z-index: 3000;
  max-width: 300px;
}
.intro-mapa h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.05;
  animation: subir .9s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.intro-mapa h1 em { color: var(--acento); }
.intro-mapa p {
  margin: 0;
  color: var(--texto-2);
  font-size: 14px;
  animation: subir .9s .35s cubic-bezier(.2, .8, .2, 1) both;
}

/* Cartão ao passar o rato */
#tooltip {
  position: fixed;
  left: 0; top: 0;
  z-index: 4000;
  width: 300px;
  padding: 20px;
  border-radius: var(--raio);
  background: var(--painel);
  border: 1px solid var(--linha-forte);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  opacity: 0;
  scale: .96;
  transition: opacity .22s, scale .22s cubic-bezier(.2, .8, .2, 1);
}
#tooltip.visivel { opacity: 1; scale: 1; }
#tooltip .tt-tipo { display: flex; align-items: center; gap: 8px; }
#tooltip .tt-tipo::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c);
}
#tooltip h3 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
}
#tooltip p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--texto-2); }
#tooltip dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 16px;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}
#tooltip dl div { padding: 10px 0; }
#tooltip dl div + div { padding-left: 12px; border-left: 1px solid var(--linha); }
#tooltip dt { font-size: 9.5px; color: var(--suave); text-transform: uppercase; letter-spacing: .14em; }
#tooltip dd { margin: 4px 0 0; font-size: 13px; font-weight: 500; }
#tooltip .tt-cta { font-size: 12px; color: var(--acento); letter-spacing: .04em; }

/* Legenda */
.legenda {
  position: fixed;
  left: 36px;
  bottom: 40px;
  z-index: 3000;
  width: 200px;
  animation: aparecer 1s 1s ease both;
}
.legenda h2 { margin: 0 0 10px; }
.legenda ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linha); }
.legenda li { border-bottom: 1px solid var(--linha); }
.legenda a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
  text-decoration: none;
  font-size: 13px;
  color: var(--texto-2);
  transition: color .2s, padding .3s;
}
.legenda a:hover, .legenda a.realce { color: var(--texto); padding-left: 10px; }
.legenda .mini { width: 20px; display: grid; place-items: center; }
.legenda .seta { margin-left: auto; opacity: 0; transition: opacity .2s; color: var(--acento); }
.legenda a:hover .seta, .legenda a.realce .seta { opacity: 1; }

/* Controlos */
.controlos {
  position: fixed;
  right: 36px;
  bottom: 40px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  animation: aparecer 1s 1.2s ease both;
}
.nota-modelo {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--texto-2);
  text-align: right;
  transition: opacity .3s;
}
.nota-modelo b { color: var(--texto); font-weight: 500; }
.nota-modelo.trocar { opacity: 0; }

.barra-ctrl {
  display: flex;
  border: 1px solid var(--linha-forte);
  border-radius: var(--raio);
  background: var(--painel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.barra-ctrl button, .botao {
  font: 500 12.5px var(--sans);
  letter-spacing: .02em;
  color: var(--texto-2);
  background: transparent;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.barra-ctrl button + button { border-left: 1px solid var(--linha); }
.barra-ctrl button:hover { color: var(--texto); background: rgba(255, 255, 255, .04); }
.barra-ctrl button[aria-pressed="true"] { color: var(--fundo); background: var(--texto); }

.botao-modelo {
  font: 500 13px var(--sans);
  color: var(--fundo);
  background: var(--acento);
  border: 0;
  border-radius: var(--raio);
  padding: 11px 18px;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.botao-modelo:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (max-width: 1000px) {
  .intro-mapa { left: 16px; top: 96px; max-width: 260px; }
  .intro-mapa h1 { font-size: 30px; }
  .intro-mapa p { display: none; }
  .legenda {
    left: 0; right: 0; bottom: 92px;
    width: auto;
    padding: 0 16px;
  }
  .legenda h2 { display: none; }
  .legenda ul { display: flex; overflow-x: auto; border: 0; gap: 2px; scrollbar-width: none; }
  .legenda li { border: 0; }
  .legenda a { flex-direction: column; gap: 4px; padding: 6px 8px; font-size: 11px; }
  .legenda a:hover, .legenda a.realce { padding-left: 8px; }
  .legenda .seta { display: none; }
  .controlos { left: 16px; right: 16px; bottom: 20px; flex-direction: row; justify-content: space-between; align-items: center; }
  .nota-modelo { display: none; }
}
@media (max-width: 560px) {
  .barra-ctrl button { padding: 9px 9px; font-size: 12px; }
  .botao-modelo { padding: 10px 12px; font-size: 12px; }
  #tooltip { width: min(300px, calc(100vw - 32px)); }
}

/* =================== ESTRUTURA DAS PÁGINAS DE CONTEÚDO =================== */
main { position: relative; z-index: 1; }

.miolo { max-width: 1160px; margin: 0 auto; padding: 0 36px; }

.revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.revelar.visivel { opacity: 1; transform: none; }

.seccao { padding: 96px 0; border-top: 1px solid var(--linha); }
.seccao-cabeca {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.seccao-cabeca .indice { padding-top: 14px; }
.seccao-cabeca h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
}
.seccao-cabeca p { margin: 14px 0 0; max-width: 620px; color: var(--texto-2); font-size: 16px; }

.titulo-pagina {
  padding: 160px 0 64px;
}
.titulo-pagina .rotulo-pequeno { animation: subir .8s .1s ease both; display: block; }
.titulo-pagina h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 86px);
  line-height: .98;
  letter-spacing: -.035em;
  animation: subir 1s .2s cubic-bezier(.2, .8, .2, 1) both;
}
.titulo-pagina h1 em { color: var(--acento); }
.titulo-pagina .lead {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--texto-2);
  animation: subir 1s .35s cubic-bezier(.2, .8, .2, 1) both;
}

/* Grelha de dados com linhas finas */
.grelha-dados {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linha);
  border-left: 1px solid var(--linha);
}
.grelha-dados > div {
  padding: 28px 28px 26px;
  border-right: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
  transition: background .3s;
}
.grelha-dados > div:hover { background: rgba(255, 255, 255, .02); }
.grelha-dados .val {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.grelha-dados .uni { font-family: var(--sans); font-size: 13px; color: var(--suave); margin-left: 6px; }
.grelha-dados .nota { margin-top: 12px; font-size: 13px; color: var(--suave); line-height: 1.5; }

.lista-numerada {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.lista-numerada article {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 26px 0;
  border-top: 1px solid var(--linha);
}
.lista-numerada .num { font-size: 12px; color: var(--acento); padding-top: 6px; font-variant-numeric: tabular-nums; }
.lista-numerada h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; }
.lista-numerada p { margin: 0; color: var(--texto-2); font-size: 14.5px; }

.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--linha);
}
.linha-tempo .ano { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--acento); }
.linha-tempo h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
.linha-tempo p { margin: 0; max-width: 640px; color: var(--texto-2); font-size: 14.5px; }

.ligacoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ligacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--linha-forte);
  border-radius: var(--raio);
  text-decoration: none;
  transition: border-color .3s, background .3s;
}
.ligacao:hover { border-color: var(--acento); background: rgba(214, 195, 155, .05); }
.ligacao strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 26px; }
.ligacao small { color: var(--suave); font-size: 13px; }
.ligacao .seta { color: var(--acento); font-size: 20px; transition: transform .3s; }
.ligacao:hover .seta { transform: translateX(4px); }

.rodape {
  padding: 40px 0 60px;
  border-top: 1px solid var(--linha);
  color: var(--suave);
  font-size: 13px;
}

@media (max-width: 860px) {
  .miolo { padding: 0 18px; }
  .seccao { padding: 64px 0; }
  .seccao-cabeca { grid-template-columns: 1fr; gap: 8px; margin-bottom: 32px; }
  .seccao-cabeca .indice { padding-top: 0; }
  .titulo-pagina { padding: 140px 0 40px; }
  .grelha-dados { grid-template-columns: repeat(2, 1fr); }
  .grelha-dados > div { padding: 20px 18px; }
  .grelha-dados .val { font-size: 34px; }
  .lista-numerada { grid-template-columns: 1fr; }
  .linha-tempo li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  .grelha-dados { grid-template-columns: 1fr; }
}

/* =================== PÁGINA DO ASTRO =================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero-vis {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  transition: transform .3s ease-out;
}
.hero-vis .halo {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 65%);
  filter: blur(30px);
}
.hero-vis .orbita-deco {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 1px solid var(--linha);
  animation: girar 80s linear infinite;
}
.hero-vis .orbita-deco::after {
  content: '';
  position: absolute;
  top: -2.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--texto);
}
@keyframes girar { to { transform: rotate(360deg); } }
.hero-planeta { animation: chegar 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes chegar { from { transform: scale(.6); opacity: 0; filter: blur(6px); } }

.migalhas { font-size: 12px; color: var(--suave); letter-spacing: .04em; animation: subir .8s .2s ease both; }
.migalhas a { text-decoration: none; color: var(--texto-2); }
.migalhas a:hover { color: var(--texto); }
.hero-texto .tipo { display: flex; align-items: center; gap: 10px; margin-top: 28px; animation: subir .8s .3s ease both; }
.hero-texto .tipo::before { content: ''; width: 24px; height: 1px; background: var(--c); }
.hero-texto h1 {
  margin: 14px 0 22px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 100px);
  line-height: .92;
  font-weight: 600;
  letter-spacing: -.04em;
  animation: subir 1s .4s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-texto .intro {
  margin: 0 0 32px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--texto-2);
  max-width: 540px;
  animation: subir 1s .55s cubic-bezier(.2, .8, .2, 1) both;
}
.rapidos {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  border-top: 1px solid var(--linha);
  animation: subir 1s .7s cubic-bezier(.2, .8, .2, 1) both;
}
.rapidos div { padding: 16px 28px 0 0; }
.rapidos div + div { padding-left: 28px; border-left: 1px solid var(--linha); }
.rapidos small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.rapidos strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; }

.comparacao-palco {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(30px, 8vw, 110px);
  padding: 56px 20px 40px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  min-height: 360px;
}
.comp-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.comp-item .pvis { transform: scale(0); transition: transform 1.6s cubic-bezier(.2, 1, .3, 1); }
.comparacao-palco.visivel .pvis { transform: scale(1); }
.comparacao-palco.visivel .comp-item:nth-child(2) .pvis { transition-delay: .3s; }
.comp-item strong { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1; }
.comp-item small { color: var(--suave); font-size: 12px; }
.comp-texto { margin: 28px 0 0; max-width: 680px; font-size: 17px; color: var(--texto-2); }
.comp-texto b { color: var(--texto); font-weight: 500; }

.navegacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--linha);
}
.navegacao a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
  text-decoration: none;
}
.navegacao a.seguinte { flex-direction: row-reverse; text-align: right; border-left: 1px solid var(--linha); }
.navegacao .pvis { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.navegacao a:hover .pvis { transform: scale(1.12); }
.navegacao strong { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 0; }
  .hero-vis { max-width: 340px; width: 100%; margin: 0 auto; }
  .rapidos { grid-template-columns: repeat(3, 1fr); }
  .rapidos div, .rapidos div + div { padding: 14px 10px 0; }
  .navegacao a { padding: 28px 0; gap: 12px; }
  .navegacao a.seguinte { padding-left: 12px; }
  .navegacao strong { font-size: 24px; }
  .comparacao-palco { min-height: 240px; }
}

/* Títulos em Sora: mais compactos e sem itálico */
h1, h2, h3, .logo { letter-spacing: -.025em; }
h1 em, h2 em, .logo em, .destaque-texto em { font-style: normal; }
.logo { font-size: 20px; font-weight: 700; }
.grelha-dados .val { font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.linha-tempo .ano { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.lista-numerada h3 { font-size: 21px; }
.ligacao strong { font-size: 21px; }
.navegacao strong { font-size: 28px; }
#tooltip h3 { font-size: 26px; }

/* ---------- Página inicial: versão sem barra de topo ---------- */
.pagina-mapa .intro-mapa { top: 32px; max-width: 340px; }
.pagina-mapa .intro-mapa .logo { display: inline-block; margin-bottom: 28px; animation: aparecer .8s ease both; }
.pagina-mapa .intro-mapa h1 { font-weight: 700; letter-spacing: -.04em; font-size: clamp(34px, 3.4vw, 50px); }
.pagina-mapa .intro-mapa h1 em { color: var(--acento); }
.pagina-mapa .intro-mapa p { line-height: 1.6; }

.modelo {
  position: fixed;
  right: 36px;
  top: 32px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 300px;
  animation: aparecer 1s .8s ease both;
}

.menu-inferior {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3000;
  display: flex;
  padding: 6px;
  gap: 2px;
  border: 1px solid var(--linha-forte);
  border-radius: 999px;
  background: rgba(10, 12, 16, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
  animation: subirMenu 1s 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes subirMenu { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.menu-inferior a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.menu-inferior a:hover { color: var(--texto); background: rgba(255, 255, 255, .06); }
.menu-inferior a.ativo { color: var(--fundo); background: var(--texto); }

/* Explorador em cima da Terra */
.explorador {
  position: absolute;
  left: 0; top: 0;
  z-index: 2600;
  width: 34px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
}
.explorador svg { width: 100%; height: 100%; overflow: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.explorador:hover svg { transform: scale(1.15); }
.explorador .pulso {
  position: absolute;
  left: 50%; bottom: -3px;
  width: 26px; height: 8px;
  margin-left: -13px;
  border-radius: 50%;
  border: 1px solid var(--acento);
  animation: pulsar 2.2s ease-out infinite;
}
@keyframes pulsar { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.explorador .balao {
  position: absolute;
  left: 50%; bottom: 100%;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: var(--raio);
  background: var(--texto);
  color: var(--fundo);
  font: 600 12px var(--sans);
  white-space: nowrap;
  transform: translate(-50%, 6px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.explorador:hover .balao, .explorador:focus-visible .balao { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1000px) {
  .pagina-mapa .intro-mapa { left: 16px; top: 18px; max-width: 70vw; }
  .pagina-mapa .intro-mapa .logo { margin-bottom: 14px; }
  .modelo { right: 16px; top: auto; bottom: 92px; }
  .modelo .nota-modelo { display: none; }
  .menu-inferior { left: 12px; right: 12px; bottom: 16px; transform: none; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .menu-inferior a { padding: 9px 13px; font-size: 12.5px; }
  @keyframes subirMenu { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- ATLAS: logótipo fixo e menu inferior em todas as páginas ---------- */
.logo-fixo {
  position: fixed;
  left: 36px;
  top: 30px;
  z-index: 5000;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .32em;
  animation: aparecer .8s ease both;
}
body { padding-bottom: 90px; }
.pagina-mapa, .pagina-ceu, .pagina-galaxias { padding-bottom: 0; }

/* Título da página inicial centrado no topo */
.pagina-mapa .intro-mapa {
  left: 50%;
  top: 28px;
  max-width: 560px;
  width: calc(100% - 32px);
  text-align: center;
  transform: translateX(-50%);
}
.pagina-mapa .intro-mapa h1 { margin-bottom: 10px; }
.pagina-mapa .intro-mapa p { max-width: 460px; margin: 0 auto; }

@media (max-width: 1000px) {
  .logo-fixo { left: 16px; top: 18px; font-size: 15px; }
  .pagina-mapa .intro-mapa { top: 52px; left: 50%; max-width: none; }
  .pagina-mapa .intro-mapa h1 { font-size: 28px; }
  .pagina-mapa .intro-mapa p { display: block; font-size: 12.5px; }
}

/* Título da página inicial: mais discreto, frase em duas linhas */
.pagina-mapa .intro-mapa { top: 26px; max-width: 470px; }
.pagina-mapa .intro-mapa h1 { font-size: clamp(22px, 1.9vw, 28px); margin-bottom: 8px; letter-spacing: -.03em; }
.pagina-mapa .intro-mapa p { font-size: 13px; line-height: 1.55; max-width: 470px; }
@media (max-width: 1000px) {
  .pagina-mapa .intro-mapa { top: 50px; }
  .pagina-mapa .intro-mapa h1 { font-size: 22px; }
  .pagina-mapa .intro-mapa p { font-size: 12px; max-width: 340px; }
}

/* ---------- Escala de zoom (Terra → Universo) ---------- */
.escala-zoom {
  position: fixed;
  right: 30px;
  top: 50%;
  z-index: 4500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transform: translateY(-50%);
  user-select: none;
  touch-action: none;
  animation: aparecer 1s .9s ease both;
}
.escala-zoom .ez-ponta { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); padding-right: 2px; }
.ez-trilho {
  position: relative;
  width: 140px;
  height: 300px;
  cursor: ns-resize;
}
.ez-trilho::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--linha-forte);
}
.ez-marca {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  padding: 4px 0;
  border: 0;
  background: none;
  font: 500 12px var(--sans);
  color: var(--suave);
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s;
}
.ez-marca::after {
  content: '';
  width: 13px;
  height: 1px;
  background: var(--linha-forte);
  transition: background .25s, width .25s;
}
.ez-marca:hover { color: var(--texto); }
.ez-marca.atual { color: var(--texto); font-weight: 600; }
.ez-marca.atual::after { background: var(--acento); width: 18px; }
.ez-pega {
  position: absolute;
  right: 0;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 0 4px rgba(214, 195, 155, .18), 0 0 16px rgba(214, 195, 155, .5);
  cursor: grab;
  pointer-events: none;
}
.escala-zoom.a-arrastar .ez-pega { cursor: grabbing; box-shadow: 0 0 0 7px rgba(214, 195, 155, .22), 0 0 20px rgba(214, 195, 155, .6); }

@media (max-width: 1000px) {
  .escala-zoom { right: 10px; top: 46%; }
  .ez-trilho { width: 26px; height: 220px; }
  .ez-marca { font-size: 0; gap: 0; }
  .ez-marca.atual { font-size: 10.5px; gap: 6px; }
  .escala-zoom .ez-ponta { display: none; }
}

/* Frase da página inicial: por baixo das órbitas, acima do menu */
.pagina-mapa .intro-mapa {
  top: auto;
  bottom: 96px;
  max-width: 470px;
}
.pagina-mapa .intro-mapa p { color: var(--suave); animation-delay: 1.2s; }
@media (max-width: 1000px) {
  .pagina-mapa .intro-mapa { top: auto; bottom: 150px; }
}

/* Sabre de luz do Jedi: brilho que tremeluz */
@keyframes sabre { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 50% { opacity: 1; } 53% { opacity: .88; } }
.explorador .pulso { border-color: #6dff7a; }

/* Capa castanha do Jedi a esvoaçar ao vento */
.explorador .capa {
  transform-box: fill-box;
  transform-origin: 100% 0;
  animation: capa 2.6s ease-in-out infinite;
}
@keyframes capa {
  0%, 100% { transform: rotate(-3deg) skewY(-3deg) scaleX(.96); }
  30% { transform: rotate(4deg) skewY(5deg) scaleX(1.1); }
  55% { transform: rotate(-1deg) skewY(1deg) scaleX(1.02); }
  75% { transform: rotate(6deg) skewY(7deg) scaleX(1.16); }
}

/* ---------- Duelo de sabres em cima da Terra ---------- */
.explorador { width: 80px; height: 60px; }
.explorador .golpe {
  transform-box: fill-box;
  transform-origin: 2% 72%;
  animation: golpe 2.4s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes golpe {
  0%, 100% { transform: rotate(-32deg); }
  20% { transform: rotate(9deg); }
  27% { transform: rotate(3deg); }
  48% { transform: rotate(-14deg); }
  68% { transform: rotate(28deg); }
  75% { transform: rotate(22deg); }
}
.explorador .avanco { animation: avanco 2.4s ease-in-out infinite; }
@keyframes avanco {
  0%, 48%, 100% { transform: translateX(0); }
  20%, 68% { transform: translateX(1.6px); }
}
.explorador .faisca {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 2px #fff6b0);
}
.explorador .f1 { animation: faisca1 2.4s linear infinite; }
.explorador .f2 { animation: faisca2 2.4s linear infinite; }
@keyframes faisca1 { 0%, 18% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; transform: scale(1.2); } 28% { opacity: 0; transform: scale(.4); } 100% { opacity: 0; } }
@keyframes faisca2 { 0%, 66% { opacity: 0; transform: scale(.2); } 68% { opacity: 1; transform: scale(1.2); } 76% { opacity: 0; transform: scale(.4); } 100% { opacity: 0; } }
.explorador .pulso { width: 52px; margin-left: -26px; }

/* ---------- Star Destroyer a cruzar o espaço (entrada para a galáxia distante) ---------- */
.destroyer {
  position: fixed;
  left: 0; top: 0;
  z-index: 2500;
  width: 96px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  visibility: hidden;
}
.destroyer svg {
  position: absolute;
  left: 50%; top: 50%;
  width: 88px;
  height: 30px;
  margin: -15px 0 0 -44px;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(150, 200, 255, .25));
  transition: filter .3s;
}
.destroyer:hover svg { filter: drop-shadow(0 0 8px rgba(150, 210, 255, .7)); }
.destroyer .motores { animation: motores 1.2s ease-in-out infinite; }
.destroyer .rasto { animation: motores 1.2s ease-in-out infinite; }
@keyframes motores { 50% { opacity: .65; } }
.destroyer .balao {
  position: absolute;
  left: 50%; bottom: 100%;
  margin-bottom: 4px;
  padding: 7px 12px;
  border-radius: var(--raio);
  background: #ffe81f;
  color: #05060a;
  font: 600 12px var(--sans);
  white-space: nowrap;
  transform: translate(-50%, 6px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.destroyer:hover .balao, .destroyer:focus-visible .balao { opacity: 1; transform: translate(-50%, 0); }
body.modo-sw .destroyer { display: none; }
