/* =====================================================================
   TERRAFORM — Site da apresentação (CROPE 2026)
   Mesma identidade do jogo e do deck: Orbitron + Inter, navy, ciano.
   ===================================================================== */

:root {
  --deep: #050810;
  --navy: #0a0e27;
  --card: #111633;
  --card-2: #161c40;
  --line: #2a3156;
  --text: #e8ecf7;
  --muted: #8b93b0;
  --soft: #c5cbe0;
  --cyan: #00d4ff;
  --green: #00ff66;
  --leaf: #00dd00;
  --gold: #ffd700;
  --red: #ff5c6b;
  --purple: #c084fc;
  --teal: #00dddd;
  --accent: var(--cyan);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: 'Orbitron', 'Segoe UI', sans-serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--deep);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.c-cyan { color: var(--cyan); }
.c-green { color: var(--green); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Fundo de estrelas (todas as páginas) ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(0, 212, 255, .10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(0, 255, 102, .06), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--deep));
}
.sky canvas { width: 100%; height: 100%; display: block; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 700 15px/1 var(--display);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-play {
  background: var(--green);
  color: #021208;
  box-shadow: 0 0 0 0 rgba(0, 255, 102, .5), 0 8px 30px rgba(0, 255, 102, .25);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn-play:hover { box-shadow: 0 0 0 6px rgba(0, 255, 102, .18), 0 10px 40px rgba(0, 255, 102, .4); }
.btn-play.lg { padding: 20px 38px; font-size: 18px; }

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(17, 22, 51, .6);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 212, 255, .2); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 102, .45), 0 8px 30px rgba(0, 255, 102, .25); }
  50% { box-shadow: 0 0 0 10px rgba(0, 255, 102, 0), 0 8px 30px rgba(0, 255, 102, .25); }
}

/* =====================================================================
   TELA INICIAL (index.html)
   ===================================================================== */

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: var(--gutter);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: opacity .7s ease, transform .7s var(--ease), filter .7s ease;
}
.splash.leaving { opacity: 0; transform: scale(1.08); filter: blur(6px); }

.splash .kicker { animation: rise 1s var(--ease) .2s both; }
.splash .planet { animation: planet-in 1.6s var(--ease) .1s both; }
.splash .mega { animation: zoom-in 1.2s var(--ease) .5s both; }
.splash .sub { animation: rise 1s var(--ease) 1s both; }
.splash .lede { animation: rise 1s var(--ease) 1.2s both; }
.splash .start { animation: fade 1s ease 1.8s both; }

.kicker {
  font: 700 clamp(11px, 1.3vw, 15px)/1.4 var(--display);
  letter-spacing: .4em;
  color: var(--cyan);
  text-transform: uppercase;
}

.mega {
  font: 900 clamp(46px, 11vw, 150px)/1 var(--display);
  letter-spacing: .06em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(0, 212, 255, .55), 0 0 90px rgba(0, 212, 255, .25);
}

.sub {
  font: 500 clamp(15px, 2vw, 24px)/1.3 var(--display);
  letter-spacing: .12em;
  color: var(--cyan);
  font-style: italic;
}

.lede {
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--soft);
}

.start {
  margin-top: clamp(8px, 3vh, 32px);
  font: 700 clamp(12px, 1.3vw, 15px)/1 var(--display);
  letter-spacing: .35em;
  color: var(--text);
}
.start span { animation: blink-soft 1.8s ease-in-out infinite; display: inline-block; }

.splash-foot {
  position: fixed;
  left: 0; right: 0; bottom: clamp(14px, 3vh, 28px);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 0 var(--gutter);
  animation: fade 1s ease 2.2s both;
}

/* Planeta
   Tudo aqui anima só transform/opacity (rodam na GPU sem redesenhar), para
   não piscar em celulares. Camadas: brilho (0) < anel de trás (1) < lua atrás
   (1) < globo (2) < anel da frente (3) < lua na frente (4). */

.planet {
  position: relative;
  width: clamp(120px, 22vh, 220px);
  aspect-ratio: 1;
  margin-bottom: clamp(4px, 1vh, 12px);
  container-type: inline-size; /* cqw = 1% da largura do planeta (órbita da lua) */
}
/* Halo em volta: camada própria que só muda de opacidade */
.planet::before {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, .30) 0%, rgba(0, 255, 160, .10) 38%, transparent 66%);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.planet .globe {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #7dffc9 0%, #19e0a0 18%, #0a8fa8 48%, #063a63 72%, #041a33 100%);
  box-shadow: inset -18px -22px 40px rgba(0, 0, 0, .55);
  clip-path: circle(50%);
}
.planet .globe::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 30% 12% at 30% 40%, rgba(255, 255, 255, .14), transparent 70%),
    radial-gradient(ellipse 25% 10% at 65% 62%, rgba(255, 255, 255, .10), transparent 70%),
    radial-gradient(ellipse 18% 8% at 45% 78%, rgba(0, 60, 40, .35), transparent 70%);
  animation: drift 26s linear infinite alternate;
  will-change: transform;
}
/* Anel: a mesma elipse cortada ao meio (metade de cima atrás, de baixo na frente) */
.planet .ring {
  position: absolute;
  left: -32%; right: -32%;
  top: 41%; height: 18%;
  z-index: 1;
  border: 2px solid rgba(0, 212, 255, .55);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: 0 0 18px rgba(0, 212, 255, .35);
  clip-path: inset(-24px -24px 50% -24px);
}
.planet .ring.front {
  z-index: 3;
  clip-path: inset(50% -24px -24px -24px);
}

@keyframes drift { from { transform: translateX(-10%); } to { transform: translateX(10%); } }
@keyframes glow-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.7); letter-spacing: .4em; filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes planet-in { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* =====================================================================
   BRIEFING (briefing.html)
   ===================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(5, 8, 16, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 49, 86, .6);
}
.brand {
  font: 900 18px/1 var(--display);
  letter-spacing: .14em;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(0, 212, 255, .5);
}
.topbar nav { display: flex; gap: 4px; margin-left: auto; }
.topbar nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
}
.topbar nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.topbar .btn { padding: 11px 20px; font-size: 13px; }

@media (max-width: 720px) {
  .topbar nav:not(.doc-tabs) { display: none; }
  .topbar .btn { margin-left: auto; }
}

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

section.block { padding: clamp(56px, 9vw, 110px) 0; }
section.block + section.block { padding-top: 0; }

.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.h2 {
  position: relative;
  font: 700 clamp(26px, 4vw, 44px)/1.15 var(--display);
  padding-bottom: 14px;
}
.h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 120px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.sec-head p { max-width: 720px; color: var(--soft); font-size: clamp(15px, 1.6vw, 18px); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-top: clamp(40px, 8vw, 96px);
}
.hero h1 {
  font: 900 clamp(40px, 7vw, 88px)/1 var(--display);
  letter-spacing: .05em;
  text-shadow: 0 0 40px rgba(0, 212, 255, .5), 0 0 90px rgba(0, 212, 255, .2);
  margin: 14px 0 10px;
}
.hero .sub { text-align: left; }
.hero .lede { margin: 20px 0 30px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .planet { width: min(320px, 70%); margin: 0 auto; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.quote {
  max-width: 380px;
  text-align: center;
  font-size: clamp(15px, 1.5vw, 18px);
  font-style: italic;
  color: var(--soft);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero .planet { width: 160px; }
}

.credits-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
}
.credits-line b { color: var(--text); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
}
.stat {
  padding: 18px 12px;
  text-align: center;
  background: rgba(17, 22, 51, .7);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat b { display: block; font: 900 clamp(26px, 3vw, 36px)/1 var(--display); color: var(--green); text-shadow: 0 0 18px rgba(0, 255, 102, .35); }
.stat span { display: block; margin-top: 8px; font: 600 11px/1.2 var(--display); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mini apresentação ---------- */

.deck {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--navy);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 212, 255, .05);
  outline: none;
}
.deck:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
@media (max-width: 760px) { .deck { aspect-ratio: 4 / 5; } }
@media (max-width: 420px) { .deck { aspect-ratio: 3 / 5; } }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2.2cqw, 32px);
  padding: clamp(20px, 6cqw, 96px) clamp(18px, 6.5cqw, 112px) clamp(56px, 7cqw, 110px);
  background: var(--bg, var(--navy));
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 1; }

.slide [data-a] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.slide [data-a="left"] { transform: translateX(-28px); }
.slide [data-a="pop"] { transform: scale(.85); }
.slide [data-a="zoom"] { transform: scale(.7); filter: blur(6px); transition: opacity .9s ease, transform .9s var(--ease), filter .9s ease; }
.slide.on [data-a] { opacity: 1; transform: none; filter: none; transition-delay: calc(var(--i, 0) * 110ms + 150ms); }

.s-kicker { font: 700 clamp(10px, 1.5cqw, 22px)/1.3 var(--display); letter-spacing: .35em; color: var(--cyan); }
.s-mega { font: 900 clamp(34px, 9cqw, 150px)/1 var(--display); letter-spacing: .05em; text-shadow: 0 0 40px rgba(0, 212, 255, .55), 0 0 90px rgba(0, 212, 255, .25); }
.s-sub { font: 500 clamp(14px, 2.4cqw, 38px)/1.2 var(--display); color: var(--cyan); font-style: italic; letter-spacing: .08em; }
.s-h2 { position: relative; font: 700 clamp(20px, 3.8cqw, 64px)/1.1 var(--display); padding-bottom: clamp(6px, .9cqw, 16px); }
.s-h2::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent); border-radius: 2px;
  transition: width 1.1s var(--ease) .5s;
}
.slide.on .s-h2::after { width: clamp(80px, 14cqw, 240px); }
.s-lead { font-size: clamp(14px, 2.1cqw, 36px); line-height: 1.35; }
.s-body { font-size: clamp(13px, 1.65cqw, 28px); line-height: 1.45; color: var(--soft); }
.s-small { font-size: clamp(11px, 1.2cqw, 21px); line-height: 1.45; color: var(--muted); }

.s-row { display: flex; gap: clamp(14px, 3cqw, 56px); align-items: center; }
.s-col { display: flex; flex-direction: column; gap: clamp(8px, 1.6cqw, 26px); flex: 1; min-width: 0; }

.s-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, .7cqw, 12px);
  padding: clamp(12px, 2cqw, 36px);
  background: var(--card);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 14px 14px;
}
.s-card h3 { font: 700 clamp(14px, 1.9cqw, 32px)/1.2 var(--sans); color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: clamp(6px, .8cqw, 14px); }
.chip {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: clamp(11px, 1.5cqw, 26px);
  font-weight: 600;
}
.chip i { width: .7em; height: .7em; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

.statement { font: 900 clamp(26px, 6.4cqw, 110px)/1.08 var(--display); color: #050810; }
.statement .hit { color: #fff; text-shadow: 0 0 30px rgba(255, 255, 255, .6); }

.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.8cqw, 32px); }
.num-card { align-items: flex-start; }
.num-card b { font: 900 clamp(30px, 7cqw, 120px)/1 var(--display); color: var(--cyan); text-shadow: 0 0 30px rgba(0, 212, 255, .4); }
.num-card .lbl { font: 700 clamp(11px, 1.6cqw, 28px)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; }

.thumbs { display: grid; gap: clamp(6px, 1.2cqw, 20px); }
.thumbs.seven { grid-template-columns: repeat(4, 1fr); }
.thumbs.six { grid-template-columns: repeat(3, 1fr); }
.thumb {
  position: relative;
  overflow: hidden;
  border-radius: clamp(6px, .8cqw, 14px);
  border: 1px solid var(--line);
  background: var(--card);
  aspect-ratio: 16 / 9;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb:hover img { transform: scale(1.05); }
.thumb figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(14px, 2.6cqw, 40px) clamp(6px, 1cqw, 16px) clamp(5px, .8cqw, 12px);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 16, .92));
  font-size: clamp(9px, 1.15cqw, 20px);
  font-weight: 700;
  line-height: 1.2;
}
.thumb figcaption small { display: block; font: 700 .78em/1.2 var(--display); letter-spacing: .12em; color: var(--accent); }
.thumb.end { border-top: 3px solid var(--accent); }
.thumbs.seven .thumb.more { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 1.4cqw, 24px); border-style: dashed; }

.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 1.4cqw, 24px); }
.area { align-items: center; text-align: center; border-top-color: var(--ac); }
.area .ico { font-size: clamp(18px, 3.2cqw, 54px); }
.area b { font: 900 clamp(22px, 4.6cqw, 80px)/1 var(--display); color: var(--ac); }
.area h3 { color: var(--text); font-size: clamp(11px, 1.5cqw, 26px); }

.closing-q { font-size: clamp(16px, 2.6cqw, 44px); line-height: 1.3; font-style: italic; color: var(--soft); max-width: 85%; }
.thanks { font: 900 clamp(34px, 8cqw, 136px)/1 var(--display); text-shadow: 0 0 40px rgba(0, 212, 255, .55); }

.slide .planet { position: absolute; right: 7cqw; top: 50%; width: 22cqw; translate: 0 -50%; }

/* Layout das slides no formato retrato (celular) */
@container (max-width: 640px) {
  .s-row { flex-direction: column; align-items: stretch; }
  .nums { grid-template-columns: repeat(2, 1fr); }
  .thumbs.seven { grid-template-columns: repeat(2, 1fr); }
  .thumbs.seven .thumb.more { display: none; }
  .thumbs.six { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .areas .area:last-child { grid-column: span 2; }
  .slide .planet { position: static; translate: none; width: 28cqw; align-self: center; order: -1; }
  .hide-narrow { display: none; }
  .slide { justify-content: flex-start; overflow-y: auto; }
  .s-small { font-size: 12px; }
  .thumb figcaption { font-size: 11px; }
}

/* Controles */

.deck-ui {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.4cqw, 18px) clamp(10px, 2cqw, 28px);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 16, .75));
}
.deck-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(17, 22, 51, .85);
  border: 1px solid var(--line);
  font-size: 15px;
  transition: border-color .2s, background .2s;
  flex: none;
}
.deck-btn:hover { border-color: var(--cyan); background: var(--card-2); }
.deck-dots { display: flex; gap: 6px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.deck-dots button {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(197, 203, 224, .35);
  transition: width .3s var(--ease), background .3s;
  padding: 0;
  position: relative;
}
.deck-dots button::before { content: ''; position: absolute; inset: -8px -3px; }
.deck-dots button[aria-current="true"] { width: 26px; background: var(--cyan); }
.deck-count { font: 600 12px/1 var(--mono); color: var(--muted); min-width: 44px; text-align: right; }
.deck-progress { position: absolute; left: 0; top: 0; height: 3px; z-index: 6; background: var(--cyan); width: 0; box-shadow: 0 0 10px var(--cyan); }
.deck-hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.deck-hint kbd { font: 600 11px var(--mono); padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }

/* ---------- Documentos ---------- */

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }

.doc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.doc-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 30px rgba(0, 212, 255, .12); }
.doc-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transition: transform .8s var(--ease); }
.doc-card:hover .doc-cover img { transform: scale(1.04); }
.doc-cover .pgcount {
  position: absolute; right: 12px; top: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(5, 8, 16, .8); border: 1px solid var(--line);
  font: 600 12px/1 var(--mono); color: var(--soft);
}
.doc-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.doc-body h3 { font: 700 18px/1.2 var(--display); letter-spacing: .04em; }
.doc-body p { font-size: 15px; color: var(--soft); flex: 1; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.doc-actions .btn { padding: 11px 14px; font-size: 11px; letter-spacing: 1.5px; flex: 1; }
.doc-cover { display: block; }

/* ---------- Chamada final ---------- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 64px) var(--gutter);
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 102, .25);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(0, 255, 102, .10), transparent 70%),
    var(--card);
}
.cta h2 { font: 900 clamp(24px, 4vw, 44px)/1.1 var(--display); }
.cta p { color: var(--soft); max-width: 520px; }

footer.site-foot {
  padding: 32px var(--gutter) 48px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid rgba(42, 49, 86, .6);
}
footer.site-foot p + p { margin-top: 4px; }

/* ---------- Modal de jogador ---------- */

dialog.player {
  width: min(460px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 60px rgba(0, 212, 255, .12);
}
dialog.player::backdrop { background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.player[open] { animation: pop-in .4s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

.player form { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.player h2 { font: 900 22px/1.2 var(--display); letter-spacing: .06em; }
.player .intro { font-size: 15px; color: var(--soft); margin-top: -6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--deep);
  color: var(--text);
  font: 500 16px var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, .18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form-error { min-height: 1.2em; font-size: 14px; color: var(--red); }
.form-note { font-size: 12px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.player .close {
  position: absolute; right: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted); font-size: 18px;
}
.player .close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn[disabled] { opacity: .7; cursor: progress; animation: none; }

/* Transição para o jogo */
.warp {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--deep);
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
  font: 700 14px/1 var(--display); letter-spacing: .4em; color: var(--cyan);
}
.warp.on { opacity: 1; pointer-events: all; }

/* =====================================================================
   LEITOR DE DOCUMENTOS (documento.html)
   ===================================================================== */

.reader-bar { flex-wrap: wrap; }
.reader-bar .back { font-size: 14px; font-weight: 600; color: var(--soft); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.reader-bar .back:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.doc-tabs { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.doc-tabs a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--soft); border: 1px solid var(--line);
}
.doc-tabs a[aria-current="page"] { color: #021018; background: var(--cyan); border-color: var(--cyan); }
.doc-tabs a:not([aria-current="page"]):hover { border-color: var(--cyan); color: var(--text); }
@media (max-width: 720px) {
  .doc-tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .doc-tabs a { flex: none; }
}

/* O documento ocupa a tela inteira abaixo da barra e rola dentro do iframe. */
body.viewer { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #03050c; }
.viewer-title {
  font: 700 15px/1.2 var(--display); letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.reader-bar .btn { padding: 10px 16px; font-size: 12px; }
.reader-bar .doc-tabs + .btn { margin-left: 0; }
.viewer-main { position: relative; flex: 1; min-height: 0; }
.viewer-main iframe { display: block; width: 100%; height: 100%; border: 0; background: #03050c; }
.viewer-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #03050c; color: var(--soft); font-size: 14px;
}
.viewer-loading[hidden] { display: none; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--cyan);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .viewer-title { display: none; }
  .reader-bar .back { margin-right: auto; }
}

.page-pill {
  position: fixed; left: 50%; bottom: 18px; z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(17, 22, 51, .9);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.page-pill button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.page-pill button:hover { background: rgba(255, 255, 255, .08); }
.page-pill span { font: 600 13px/1 var(--mono); min-width: 64px; text-align: center; color: var(--soft); }


/* =====================================================================
   ANIMAÇÕES DO BRIEFING
   ===================================================================== */

/* ---------- Tela inicial como camada sobre o briefing ---------- */

.splash { z-index: 60; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 212, 255, .10), transparent 70%), rgba(3, 5, 12, .55); overflow: hidden; }
.splash[hidden] { display: none; }
.splash.leaving { opacity: 0; transform: scale(1.12); filter: blur(10px); pointer-events: none; }
body.splash-on { overflow: hidden; }
body.splash-on .topbar, body.splash-on main, body.splash-on footer { visibility: hidden; }
body.ready .topbar[data-progress] { animation: topbar-in .8s var(--ease) both; }
@keyframes topbar-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

.splash .mega { animation: none; }
.splash .mega .ltr {
  display: inline-block;
  animation: letter-in 1s var(--ease) both;
  animation-delay: calc(.45s + var(--l) * 70ms);
}
@keyframes letter-in {
  0% { opacity: 0; transform: translateY(40px) rotateX(80deg) scale(.6); filter: blur(10px); color: var(--cyan); }
  60% { opacity: 1; filter: blur(0); color: #fff; }
  100% { opacity: 1; transform: none; }
}

/* Grade em perspectiva correndo no chão da tela inicial */
.splash-grid {
  position: absolute;
  left: -50%; right: -50%; bottom: -10%;
  height: 55%;
  background-image:
    linear-gradient(rgba(0, 212, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .22) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: top center;
  -webkit-mask: linear-gradient(180deg, transparent, #000 45%);
          mask: linear-gradient(180deg, transparent, #000 45%);
  animation: grid-run 2.2s linear infinite, fade 2s ease .3s both;
  pointer-events: none;
}
@keyframes grid-run { to { background-position: 0 60px, 0 0; } }

.splash .start span { padding: 12px 22px; border: 1px solid rgba(0, 212, 255, .35); border-radius: 999px; background: rgba(0, 212, 255, .06); }
.fs-hint {
  font-size: 13px;
  color: var(--muted);
  animation: fade 1s ease 2.2s both;
}
kbd {
  display: inline-block;
  font: 600 11px/1 var(--mono);
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--card);
  color: var(--text);
}

/* Lua seguindo o anel inclinado: passa na frente do planeta na metade de
   baixo e some atrás dele na metade de cima (quadros gerados da geometria do anel). */
.planet .orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.planet .orbit i {
  position: absolute;
  left: 50%; top: 50%;
  width: 9%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #9fb4ff 45%, #3a4a8a);
  box-shadow: 0 0 10px rgba(159, 180, 255, .7);
  animation: moon-orbit 16s linear infinite;
  will-change: transform;
}
@keyframes moon-orbit {
  0% { transform: translate(calc(80.21cqw - 50%), calc(-17.05cqw - 50%)) scale(0.975); z-index: 1; }
  2.778% { transform: translate(calc(79.31cqw - 50%), calc(-15.26cqw - 50%)) scale(1.005); z-index: 4; }
  5.556% { transform: translate(calc(76.01cqw - 50%), calc(-13.01cqw - 50%)) scale(1.035); z-index: 4; }
  8.333% { transform: translate(calc(70.40cqw - 50%), calc(-10.36cqw - 50%)) scale(1.062); z-index: 4; }
  11.111% { transform: translate(calc(62.65cqw - 50%), calc(-7.40cqw - 50%)) scale(1.087); z-index: 4; }
  13.889% { transform: translate(calc(52.99cqw - 50%), calc(-4.21cqw - 50%)) scale(1.109); z-index: 4; }
  16.667% { transform: translate(calc(41.72cqw - 50%), calc(-0.90cqw - 50%)) scale(1.127); z-index: 4; }
  19.444% { transform: translate(calc(29.19cqw - 50%), calc(2.44cqw - 50%)) scale(1.139); z-index: 4; }
  22.222% { transform: translate(calc(15.77cqw - 50%), calc(5.71cqw - 50%)) scale(1.147); z-index: 4; }
  25% { transform: translate(calc(1.87cqw - 50%), calc(8.80cqw - 50%)) scale(1.150); z-index: 4; }
  27.778% { transform: translate(calc(-12.09cqw - 50%), calc(11.63cqw - 50%)) scale(1.147); z-index: 4; }
  30.556% { transform: translate(calc(-25.67cqw - 50%), calc(14.10cqw - 50%)) scale(1.139); z-index: 4; }
  33.333% { transform: translate(calc(-38.48cqw - 50%), calc(16.15cqw - 50%)) scale(1.127); z-index: 4; }
  36.111% { transform: translate(calc(-50.12cqw - 50%), calc(17.70cqw - 50%)) scale(1.109); z-index: 4; }
  38.889% { transform: translate(calc(-60.24cqw - 50%), calc(18.72cqw - 50%)) scale(1.087); z-index: 4; }
  41.667% { transform: translate(calc(-68.53cqw - 50%), calc(19.17cqw - 50%)) scale(1.062); z-index: 4; }
  44.444% { transform: translate(calc(-74.73cqw - 50%), calc(19.03cqw - 50%)) scale(1.035); z-index: 4; }
  47.222% { transform: translate(calc(-78.66cqw - 50%), calc(18.32cqw - 50%)) scale(1.005); z-index: 4; }
  50% { transform: translate(calc(-80.21cqw - 50%), calc(17.05cqw - 50%)) scale(0.975); z-index: 4; }
  52.778% { transform: translate(calc(-79.31cqw - 50%), calc(15.26cqw - 50%)) scale(0.945); z-index: 1; }
  55.556% { transform: translate(calc(-76.01cqw - 50%), calc(13.01cqw - 50%)) scale(0.915); z-index: 1; }
  58.333% { transform: translate(calc(-70.40cqw - 50%), calc(10.36cqw - 50%)) scale(0.887); z-index: 1; }
  61.111% { transform: translate(calc(-62.65cqw - 50%), calc(7.40cqw - 50%)) scale(0.863); z-index: 1; }
  63.889% { transform: translate(calc(-52.99cqw - 50%), calc(4.21cqw - 50%)) scale(0.841); z-index: 1; }
  66.667% { transform: translate(calc(-41.72cqw - 50%), calc(0.90cqw - 50%)) scale(0.823); z-index: 1; }
  69.444% { transform: translate(calc(-29.19cqw - 50%), calc(-2.44cqw - 50%)) scale(0.811); z-index: 1; }
  72.222% { transform: translate(calc(-15.77cqw - 50%), calc(-5.71cqw - 50%)) scale(0.803); z-index: 1; }
  75% { transform: translate(calc(-1.87cqw - 50%), calc(-8.80cqw - 50%)) scale(0.800); z-index: 1; }
  77.778% { transform: translate(calc(12.09cqw - 50%), calc(-11.63cqw - 50%)) scale(0.803); z-index: 1; }
  80.556% { transform: translate(calc(25.67cqw - 50%), calc(-14.10cqw - 50%)) scale(0.811); z-index: 1; }
  83.333% { transform: translate(calc(38.48cqw - 50%), calc(-16.15cqw - 50%)) scale(0.823); z-index: 1; }
  86.111% { transform: translate(calc(50.12cqw - 50%), calc(-17.70cqw - 50%)) scale(0.841); z-index: 1; }
  88.889% { transform: translate(calc(60.24cqw - 50%), calc(-18.72cqw - 50%)) scale(0.863); z-index: 1; }
  91.667% { transform: translate(calc(68.53cqw - 50%), calc(-19.17cqw - 50%)) scale(0.888); z-index: 1; }
  94.444% { transform: translate(calc(74.73cqw - 50%), calc(-19.03cqw - 50%)) scale(0.915); z-index: 1; }
  97.222% { transform: translate(calc(78.66cqw - 50%), calc(-18.32cqw - 50%)) scale(0.945); z-index: 1; }
  100% { transform: translate(calc(80.21cqw - 50%), calc(-17.05cqw - 50%)) scale(0.975); z-index: 1; }
}

/* ---------- Herói: entra quando a tela inicial sai ---------- */

.js .hero-in, .js .hero-title .ltr, .js .hero-planet { opacity: 0; }
body.ready .hero-in { animation: hero-in .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes hero-in { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-title .ltr { display: inline-block; }
.hero h1.hero-title, .splash .mega { white-space: nowrap; }
.hero h1.hero-title { font-size: clamp(36px, 6.4vw, 84px); }
body.ready .hero-title .ltr {
  animation: letter-drop .9s var(--ease) both, letter-glow 5s ease-in-out infinite;
  animation-delay: calc(.15s + var(--l) * 55ms), calc(1.5s + var(--l) * 160ms);
}
@keyframes letter-drop {
  0% { opacity: 0; transform: translateY(-60px) rotate(-8deg) scale(1.4); filter: blur(8px); }
  70% { opacity: 1; transform: translateY(6px) rotate(0); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes letter-glow {
  0%, 88%, 100% { color: var(--text); text-shadow: inherit; }
  92% { color: var(--cyan); text-shadow: 0 0 30px var(--cyan), 0 0 60px var(--cyan); }
}

body.ready .hero-planet { animation: planet-in 1.6s var(--ease) .2s both, float 7s ease-in-out 1.8s infinite; will-change: transform, translate; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* Indicador "role para baixo" */
.scroll-cue {
  display: block;
  width: 26px; height: 42px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  border: 2px solid rgba(197, 203, 224, .45);
  border-radius: 14px;
  position: relative;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Revelação ao rolar ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s var(--ease), filter .9s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal="pop"] { transform: translateY(20px) scale(.82); }
.js [data-reveal="zoom"] { transform: scale(.92); filter: blur(8px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* Sublinhado do título cresce quando a seção aparece */
.sec-head .h2::after { width: 0; transition: width 1.2s var(--ease) .35s; }
.sec-head.in .h2::after { width: 120px; }

/* ---------- Cartões que inclinam (data-tilt) ---------- */

[data-tilt] {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform-style: preserve-3d;
}
.js [data-tilt].in {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), opacity .9s ease, border-color .3s, box-shadow .3s;
}
.js [data-tilt].in.tilting { transition: transform .08s linear, border-color .3s, box-shadow .3s; }

.stat { position: relative; overflow: hidden; transition: border-color .3s; }
.stat::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(160px circle at var(--mx) var(--my), rgba(0, 255, 102, .16), transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.stat:hover { border-color: rgba(0, 255, 102, .5); }
.stat:hover::after { opacity: 1; }

.doc-card { position: relative; }
.doc-glow {
  position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(0, 212, 255, .25), transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.doc-card:hover .doc-glow { opacity: 1; }
.js .doc-card.in:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); }

/* ---------- Brilho que atravessa os botões ---------- */

.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  animation: shine 4.5s ease-in-out infinite;
}
.shine:hover::before { animation-duration: 1.2s; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 140%; } }

/* ---------- Barra do topo ---------- */

.topbar { transition: padding .35s var(--ease), background .35s, box-shadow .35s; }
.topbar.scrolled { padding-top: 8px; padding-bottom: 8px; background: rgba(5, 8, 16, .88); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}
.topbar nav a { position: relative; transition: color .2s, background .2s; }
.topbar nav a::after {
  content: '';
  position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; border-radius: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.topbar nav a.active { color: var(--text); }
.topbar nav a.active::after { transform: scaleX(1); }
.brand { transition: text-shadow .3s; }
.brand:hover { text-shadow: 0 0 18px var(--cyan), 0 0 40px var(--cyan); }
.fs-btn { width: 40px; height: 40px; font-size: 17px; }
.fs-btn[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px rgba(0, 212, 255, .35); }

/* Aviso de tela cheia */
.fs-toast {
  position: fixed; left: 50%; top: 22px; z-index: 200;
  transform: translate(-50%, -30px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 22, 51, .94);
  border: 1px solid rgba(0, 212, 255, .4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(0, 212, 255, .2);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ease);
}
.fs-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chamada final ---------- */

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), transparent 0 70%, var(--green) 85%, var(--cyan) 92%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-spin 5s linear infinite;
  pointer-events: none;
}
@keyframes border-spin { to { --ang: 360deg; } }
.cta-orbit { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Três pontos de luz vagando pelo cartão */
.cta-orbit i {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
  animation: drift-dot 12s ease-in-out infinite;
}
.cta-orbit i:nth-child(1) { --x0: 8%; --y0: 20%; --x1: 85%; --y1: 70%; }
.cta-orbit i:nth-child(2) { --x0: 90%; --y0: 15%; --x1: 12%; --y1: 80%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation-delay: -4s; }
.cta-orbit i:nth-child(3) { --x0: 50%; --y0: 90%; --x1: 60%; --y1: 10%; background: var(--purple); box-shadow: 0 0 12px var(--purple); animation-delay: -8s; }
@keyframes drift-dot {
  0%, 100% { left: var(--x0); top: var(--y0); opacity: .2; }
  50% { left: var(--x1); top: var(--y1); opacity: 1; }
}

/* ---------- Painel de documentos ---------- */

.doc-panel {
  position: fixed; inset: 0; z-index: 70;
  display: flex;
  background: rgba(2, 4, 10, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .4s ease;
}
.doc-panel[hidden] { display: none; }
.doc-panel iframe {
  flex: 1;
  border: 0;
  background: #03050c;
  transform: translateY(40px) scale(.97);
  transition: transform .5s var(--ease);
}
.doc-panel.open { opacity: 1; }
.doc-panel.open iframe { transform: none; }
body.panel-on { overflow: hidden; }

/* documento.html aberto dentro do painel */
.close-doc { display: none; }
.embed .close-doc { display: grid; }
.embed .reader-bar .back, .embed .reader-bar .btn-play { display: none; }
.embed .doc-tabs { margin-left: 0; }
.embed .viewer-title { margin-right: auto; }
@media (max-width: 720px) { .embed .reader-bar #doc-pdf { margin-left: auto; } }

/* ---------- Ferramentas do leitor: zoom ---------- */

.page-pill .zoom-at {
  width: auto; min-width: 58px; padding: 0 8px;
  border-radius: 999px;
  font: 600 12px/1 var(--mono); color: var(--cyan);
}
.page-pill .zoom-at.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.18); } }
.page-pill button { font-size: 17px; transition: background .2s, transform .15s; }
.page-pill button:active { transform: scale(.9); }
.pill-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }

/* ---------- Ida para o jogo: salto para o hiperespaço ---------- */

.warp {
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(0, 212, 255, .0) 0deg 4deg, rgba(0, 212, 255, .35) 4.4deg, rgba(0, 212, 255, 0) 5deg),
    radial-gradient(circle at 50% 50%, #0a1a3a, var(--deep) 70%);
}
.warp span { animation: blink-soft 1s ease-in-out infinite; }
.warp.on { animation: warp-zoom .6s ease-in both; }
@keyframes warp-zoom { from { background-size: 100% 100%, 100% 100%; filter: brightness(.6); } to { filter: brightness(1.4); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
