/* ══════════════════════════════════════════════
   BENTUX — Mission Control (Stylesheet)
   ══════════════════════════════════════════════ */

/* ─── Fonts ─── */
@font-face {
  font-family: 'Boldu';
  src: url('../fonts/Boldu.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Boldu Italic';
  src: url('../fonts/Boldu_Italic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Eras Medium ITC';
  src: url('../fonts/eras-medium-itc.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Variables ─── */
:root {
  --bg-deep: #06080a;
  --bg-panel: #0c1015;
  --bg-surface: #121821;
  --border: rgba(168, 201, 115, 0.12);
  --border-active: rgba(168, 201, 115, 0.35);
  --green-dim: rgba(168, 201, 115, 0.08);
  --green: #a8c973;
  --green-bright: #d4ed8a;
  --green-dark: #4a6b28;
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --amber: #f59e0b;
  --cyan: #5ce5e0;
  --text: #d0d6e0;
  --text-bright: #f0f4fa;
  --text-dim: #6b7280;
  --font-display: 'Boldu', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  transition: background 0.6s var(--ease);
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}

/* ─── Background particle canvas ─── */
#scan-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── App Container ─── */
.app {
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* ─── TOP BAR ─── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(6,8,10,0.95) 60%, transparent);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  display: block;
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 0 transparent; }
  50% { opacity: 1; box-shadow: 0 0 12px var(--green); }
}

/* ─── PAGE SECTIONS ─── */
.page-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px env(safe-area-inset-bottom, 24px);
  position: relative;
}

/* ════════════════════════════════════════════
   PAGE 1 — HOME / ORBIT
   ════════════════════════════════════════════ */
#page-home {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(168,201,115,0.04) 0%, transparent 60%),
    var(--bg-deep);
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 15px !important;
}

.home-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2px;
}

.home-logo {
  height: clamp(48px, 6.5vw, 68px);
  width: auto;
  filter: drop-shadow(0 0 8px rgba(168, 201, 115, 0.25));
}

.home-header {
  text-align: center;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-title {
  text-align: left;
  z-index: 5;
  margin-bottom: 0;
}

.home-title h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: 8px;
  color: var(--text-bright);
  text-transform: uppercase;
  line-height: 1.05;
}

.home-title h1 span {
  display: block;
  font-size: 0.52em;
  letter-spacing: 6px;
  color: var(--green-bright);
  margin-top: 2px;
}

.home-desc-tag {
  font-family: var(--font-mono);
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 2px;
  color: var(--text-bright);
  margin-top: 2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.home-desc {
  font-size: clamp(14px, 1.8vw, 17px);
  color: #d4dae5;
  line-height: 1.65;
  margin: 24px auto 6px;
  max-width: 580px;
}
.home-mission-text {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.home-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.home-keyword {
  font-family: var(--font-mono);
  font-size: clamp(8px, 1vw, 11px);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(168,201,115,0.04);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.home-keyword:hover {
  border-color: var(--green);
  color: var(--green-bright);
  background: var(--green-dim);
}

.orbit-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  min-height: 0;
}
.orbit-container {
  width: min(65vmin, 560px);
  height: min(65vmin, 560px);
  position: relative;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.orbit-ring:nth-child(1) { inset: 5%; }
.orbit-ring:nth-child(2) { inset: 22%; border-color: rgba(168,201,115,0.06); border-style: dashed; }
.orbit-ring:nth-child(3) { inset: 39%; border-color: rgba(168,201,115,0.04); }
.orbit-ring:nth-child(4) { inset: 56%; border-color: rgba(92,229,224,0.04); border-style: dashed; }

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,201,115,0.15), transparent);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 5;
}
.orbit-center .icon {
  font-size: 28px;
  filter: grayscale(0.5);
}
.orbit-center .label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.orbit-node {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -24px 0 0 -24px;
  background: var(--bg-surface);
  border: 1.5px solid rgba(245, 158, 11, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  z-index: 10;
  text-decoration: none;
}
.orbit-node:hover {
  border-color: var(--amber);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
  transform: scale(1.12);
  z-index: 20;
}
.orbit-node .tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: #fbbf24;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
  pointer-events: none;
}
.orbit-node:hover .tooltip { opacity: 1; }
.orbit-node.completed {
  border-color: var(--amber);
  color: #fbbf24;
}
.orbit-node.completed::after {
  content: '✓';
  position: absolute;
  top: -4px; right: -4px;
  font-size: 9px;
  color: #fbbf24;
}

.home-info {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.home-info strong {
  color: var(--green);
  font-weight: 700;
}

/* ════════════════════════════════════════════
   PAGE 2 — CHAOS / MISSÃO CUMPRIDA
   ════════════════════════════════════════════ */
#page-missao {
  background: radial-gradient(ellipse at 50% 30%, rgba(239,68,68,0.04) 0%, transparent 60%), var(--bg-deep);
  flex-direction: column;
  justify-content: flex-start;
  padding: 58px 24px 32px;
}

.missao-layout {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  min-height: calc(100vh - 58px);
}

/* ─── Failure Log ─── */
.missao-log {
  padding: 8px 60px 28px;
  overflow: hidden;
}
.missao-log .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  border: 1px solid rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.06);
  padding: 6px 12px;
  margin-bottom: 16px;
}
.missao-log h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 6px;
}
.missao-log .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.log-container {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 8px;
}
.log-container::-webkit-scrollbar { width: 3px; }
.log-container::-webkit-scrollbar-track { background: transparent; }
.log-container::-webkit-scrollbar-thumb { background: rgba(239,68,68,0.3); border-radius: 99px; }

.log-entry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease);
  line-height: 1.4;
}
.log-entry.visible {
  opacity: 1;
  transform: translateX(0);
}
.log-entry.error {
  background: rgba(239,68,68,0.05);
  border-left-color: var(--red);
  color: #fca5a5;
}
.log-entry .ts {
  color: var(--text-dim);
  min-width: 60px;
  font-size: 10px;
}
.log-entry .icon-log {
  min-width: 18px;
  color: var(--red);
  font-weight: 700;
}
.log-entry.success {
  background: rgba(34,197,94,0.05);
  border-left-color: #22c55e;
  color: #bbf7d0;
}
.log-entry.success .icon-log { color: #22c55e; }

.help-btn-wrap {
  margin-top: 16px;
}

/* ─── Visual (People + Portal + Trophy) ─── */
.missao-visual {
  height: 100%;
  min-height: 400px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(239,68,68,0.03) 0%, transparent 50%);
}

.chaos-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.mission-floor-map {
  position: absolute;
  left: 8px;
  top: 50%;
  right: 126px;
  height: min(74%, 430px);
  min-height: 250px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
}

.mission-floor-map::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(160, 170, 185, 0.08);
  background-image:
    linear-gradient(rgba(160,170,185,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,170,185,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 8px;
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0,0,0,0.55) 56%, transparent 100%);
}

.mission-route-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.mission-route-lines line {
  stroke: rgba(160, 170, 185, 0.18);
  stroke-width: 0.7;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.mission-sector {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(160, 170, 185, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(160,170,185,0.055), rgba(160,170,185,0.015)),
    rgba(6, 8, 10, 0.35);
  box-shadow: inset 0 0 20px rgba(160,170,185,0.025);
}

.mission-sector::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(160, 170, 185, 0.11);
  border-radius: 4px;
}

.mission-sector span {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.75vw, 10px);
  font-weight: 700;
  letter-spacing: 1.3px;
  line-height: 1.25;
  color: rgba(160, 170, 185, 0.62);
  text-align: center;
  text-transform: uppercase;
}

.mission-sector-credenciamento { left: 62%; top: 36%; width: 28%; height: 20%; }
.mission-sector-publico { left: 30%; top: 36%; width: 26%; height: 24%; }
.mission-sector-expositores { left: 39%; top: 8%; width: 28%; height: 18%; }
.mission-sector-imprensa { left: 42%; bottom: 9%; width: 26%; height: 18%; }
.mission-sector-palco { left: 3%; top: 34%; width: 21%; height: 30%; }

/* People Zone — background layer */
.people-zone {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.person-actor {
  position: absolute;
  width: 36px;
  height: 36px;
  will-change: transform;
  z-index: 3;
  transition: opacity 0.3s, color 0.3s, filter 0.3s;
}
.person-actor svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Garante que os elementos internos herdem fill */
.person-actor svg circle,
.person-actor svg path {
  fill: currentColor;
}

/* Cores neon de entrada: pessoas felizes antes de passar pelo portão */
.person-actor.happy[data-idx="0"],
.person-actor.safe[data-idx="0"] { color: #ffcf4d; filter: drop-shadow(0 0 10px rgba(255,207,77,0.85)) drop-shadow(0 0 20px rgba(255,207,77,0.35)); }
.person-actor.happy[data-idx="1"],
.person-actor.safe[data-idx="1"] { color: #22d3ee; filter: drop-shadow(0 0 10px rgba(34,211,238,0.85)) drop-shadow(0 0 20px rgba(34,211,238,0.35)); }
.person-actor.happy[data-idx="2"],
.person-actor.safe[data-idx="2"] { color: #34d399; filter: drop-shadow(0 0 10px rgba(52,211,153,0.85)) drop-shadow(0 0 20px rgba(52,211,153,0.35)); }
.person-actor.happy[data-idx="3"],
.person-actor.safe[data-idx="3"] { color: #c084fc; filter: drop-shadow(0 0 10px rgba(192,132,252,0.85)) drop-shadow(0 0 20px rgba(192,132,252,0.35)); }
.person-actor.happy[data-idx="4"],
.person-actor.safe[data-idx="4"] { color: #fb923c; filter: drop-shadow(0 0 10px rgba(251,146,60,0.85)) drop-shadow(0 0 20px rgba(251,146,60,0.35)); }
.person-actor.happy[data-idx="5"],
.person-actor.safe[data-idx="5"] { color: #f472b6; filter: drop-shadow(0 0 10px rgba(244,114,182,0.85)) drop-shadow(0 0 20px rgba(244,114,182,0.35)); }

.person-actor.alert {
  color: #ff2f2f;
  animation: person-alert 0.72s infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255,47,47,0.95)) drop-shadow(0 0 24px rgba(255,47,47,0.55));
}

@keyframes person-alert {
  from {
    opacity: 0.58;
    filter: drop-shadow(0 0 6px rgba(255,47,47,0.75)) drop-shadow(0 0 14px rgba(255,47,47,0.35));
  }
  to {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255,47,47,1)) drop-shadow(0 0 30px rgba(255,47,47,0.75));
  }
}

/* Event Gates */
.portal-stack {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 5;
}

.portal {
  width: 72px;
  height: 142px;
  border-radius: 12px 12px 16px 16px;
  position: relative;
  flex-shrink: 0;
  border: 2px solid rgba(168, 201, 115, 0.55);
  background:
    linear-gradient(90deg, rgba(168,201,115,0.08), transparent 34%, transparent 66%, rgba(168,201,115,0.08)),
    rgba(168, 201, 115, 0.035);
  transition: all 0.8s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 16px rgba(168,201,115,0.06), 0 0 26px rgba(168,201,115,0.08);
}
.portal::before,
.portal::after {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
  box-shadow: 0 0 12px currentColor;
}
.portal::before { left: 12px; }
.portal::after { right: 12px; }
.portal-entry {
  color: var(--green);
}
.portal-exit {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.5);
  background:
    linear-gradient(90deg, rgba(239,68,68,0.08), transparent 34%, transparent 66%, rgba(239,68,68,0.08)),
    rgba(239, 68, 68, 0.035);
  box-shadow: inset 0 0 16px rgba(239,68,68,0.06), 0 0 26px rgba(239,68,68,0.08);
}
.portal-glow {
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(168,201,115,0.2), transparent 70%);
  transition: all 0.8s var(--ease);
  animation: portal-pulse 1.5s infinite ease-in-out;
}
.portal-exit .portal-glow {
  background: radial-gradient(ellipse at center, rgba(239,68,68,0.18), transparent 70%);
}
@keyframes portal-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
.portal-sign {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 92px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  background: rgba(6,8,10,0.92);
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 0 14px color-mix(in srgb, currentColor 35%, transparent);
}
.portal-inner {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 98px;
  border-radius: 8px 8px 12px 12px;
  border: 1px solid currentColor;
  background: rgba(6,8,10,0.42);
  display: grid;
  place-items: center;
  transition: all 0.8s var(--ease);
  opacity: 0.65;
}
.portal-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: currentColor;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.65;
}

/* ─── TROPHY SECTION — Main content, not overlay! ─── */
.trophy-section {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  padding: 32px 24px;
  background: rgba(6, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1.5px solid rgba(168, 201, 115, 0.25);
  box-shadow: 0 0 40px rgba(168, 201, 115, 0.15);
  margin: 0;
  transition: all 0.6s var(--ease);
  width: min(90%, 400px);
}

.trophy-icon {
  font-size: 64px;
  margin-bottom: 12px;
  display: inline-block;
  animation: trophy-bounce 1.5s var(--ease-spring) infinite;
}
@keyframes trophy-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
}

.trophy-title {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 16px;
}

.btn-trophy {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--green);
  background: rgba(168,201,115,0.08);
  color: var(--green-bright);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  display: inline-block;
}
.btn-trophy:hover {
  background: rgba(168,201,115,0.15);
  box-shadow: 0 0 30px rgba(168,201,115,0.15);
}

/* ─── Stats ─── */
.chaos-stats {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  z-index: 5;
}
.chaos-stats .num {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  display: block;
}

/* ─── Buttons ─── */
.btn-mission {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 28px;
  border: 1px solid var(--red);
  background: rgba(239,68,68,0.08);
  color: var(--red);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-mission:hover {
  background: rgba(239,68,68,0.15);
  box-shadow: 0 0 30px rgba(239,68,68,0.1);
}
.btn-mission::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,0.1), transparent);
  transition: left 0.5s;
}
.btn-mission:hover::before { left: 100%; }

.btn-save {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 14px 28px;
  border: 1px solid var(--green);
  background: rgba(168,201,115,0.08);
  color: var(--green);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-save:hover {
  background: rgba(168,201,115,0.15);
  box-shadow: 0 0 30px rgba(168,201,115,0.1);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.hidden { display: none !important; }

/* ════════════════════════════════════════════
   PAGE 3 — FINAL / CONTATOS
   ════════════════════════════════════════════ */
#page-contato {
  background: radial-gradient(ellipse at 50% 50%, rgba(168,201,115,0.04) 0%, transparent 60%), var(--bg-deep);
  flex-direction: column;
}

.final-center {
  text-align: center;
  max-width: 560px;
  padding: 20px;
  z-index: 5;
}
.final-center .trophy {
  font-size: 48px;
  margin-bottom: 12px;
  display: inline-block;
  animation: trophy-bounce 1.5s var(--ease-spring) infinite;
}
.final-center .mission-complete {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.final-center h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 80px);
  letter-spacing: 8px;
  color: var(--green-bright);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 8px;
}
.final-center h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 4px;
  color: var(--text-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.final-center p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 20px;
}
.final-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.final-contacts a, .final-contacts button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: rgba(12,16,21,0.6);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.final-contacts a:hover, .final-contacts button:hover {
  border-color: var(--green);
  color: var(--green-bright);
  background: var(--green-dim);
}
.final-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ─── Logo do topo e tamanho ─── */
.top-bar .logo-img {
  max-width: 150px;
  height: auto;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .missao-layout {
    grid-template-columns: 1fr;
  }
  .missao-log {
    padding: 24px;
  }
  .missao-visual {
    height: 42vh;
    min-height: 300px;
  }
  .portal-stack {
    right: 18px;
    gap: 18px;
  }
  .portal {
    width: 58px;
    height: 104px;
  }
  .portal-sign {
    top: -14px;
    min-width: 74px;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 3px 6px;
  }
  .portal-inner {
    width: 32px;
    height: 68px;
  }
  .orbit-container {
    width: 85vmin;
    height: 85vmin;
  }
  .home-title { letter-spacing: 6px; }
  .home-title h1 { font-size: 24px; }
  #page-home { padding-top: 60px; }
  .top-bar { padding: 10px 14px; }
  .top-bar .logo-img { max-width: 120px; }
  .status-panel { display: none; }
  .chaos-stats { left: 24px; bottom: 20px; }
  .log-entry { font-size: 11px; }
  .log-entry .ts { min-width: 40px; }
  .trophy-section { margin: 0; padding: 24px 16px; width: 85%; }
  .trophy-icon { font-size: 48px; }
}

@media (max-width: 480px) {
  .missao-log { padding: 16px; }
  .missao-log h2 { font-size: 20px; }
  .missao-visual { min-height: 260px; }
  .person-actor { width: 30px; height: 30px; }
  .portal-stack { right: 12px; gap: 16px; }
  .portal { width: 50px; height: 92px; }
  .portal-inner { width: 28px; height: 58px; }
  .portal-sign { min-width: 66px; font-size: 8px; }
  .orbit-node { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 11px; }
  .orbit-center { width: 50px; height: 50px; }
  .orbit-center .icon { font-size: 20px; }
  .home-title h1 { font-size: 22px; letter-spacing: 4px; }
  .btn-mission, .btn-save { width: 100%; text-align: center; padding: 12px 18px; font-size: 10px; }
  .final-contacts { flex-direction: column; align-items: stretch; }
  .final-contacts a, .final-contacts button { text-align: center; }
  .final-actions { flex-direction: column; }
  .trophy-section { margin: 0; padding: 20px 12px; width: 90%; }
  .trophy-icon { font-size: 40px; }
}

/* ─── EVENT MAP & LOCAL ORBITS ─── */
.event-map-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  min-height: 0;
  margin-top: 15px;
}

.event-map-container {
  width: 100%;
  max-width: 680px;
  height: min(48vh, 420px);
  position: relative;
  border: 1px solid rgba(168, 201, 115, 0.08);
  background: rgba(12, 16, 21, 0.4);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
}

.map-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.event-sector {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  transform: translate(-50%, -50%);
  transition: all 0.5s var(--ease);
}

/* Posicionamento dos setores */
#sector-palco { left: 14%; top: 50%; }
#sector-expositores { left: 52%; top: 22%; }
#sector-publico { left: 32%; top: 50%; }
#sector-imprensa { left: 52%; top: 78%; }
#sector-credenciamento { left: 82%; top: 50%; }

.sector-label {
  font-family: var(--font-mono);
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
  transition: all 0.3s;
  pointer-events: none;
  background: rgba(6, 8, 10, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(168, 201, 115, 0.05);
}

.sector-orbit-area {
  position: relative;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
}

.sector-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid rgba(239, 68, 68, 0.3); /* vermelho para com problemas */
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
  display: grid;
  place-items: center;
  font-size: 20px;
  z-index: 10;
  cursor: default;
  transition: all 0.5s var(--ease);
  user-select: none;
}

.event-sector.safe .sector-icon {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(168, 201, 115, 0.2);
}

.event-sector.safe .sector-label {
  color: var(--green-bright);
  border-color: rgba(168, 201, 115, 0.2);
}

.sector-orbit-ring {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px dashed rgba(239, 68, 68, 0.2);
  transition: all 0.5s var(--ease);
  pointer-events: none;
}

.event-sector.safe .sector-orbit-ring {
  border-color: rgba(168, 201, 115, 0.15);
  border-style: solid;
}

/* Mini nós de missões girando ao redor (Ampliados com destaque amarelo) */
.mini-orbit-node {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 2px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  z-index: 15;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.mini-orbit-node:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
  color: #fde68a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.15);
  transform: translate(-50%, -50%) scale(1.2);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.mini-orbit-node.completed {
  border-color: var(--green);
  color: var(--green-bright);
  background: rgba(168, 201, 115, 0.12);
  box-shadow: 0 0 8px rgba(168, 201, 115, 0.15);
  text-shadow: 0 0 6px rgba(168, 201, 115, 0.4);
}

.mini-orbit-node.completed:hover {
  background: rgba(168, 201, 115, 0.2);
  border-color: var(--green-bright);
  box-shadow: 0 0 20px rgba(168, 201, 115, 0.4), 0 0 40px rgba(168, 201, 115, 0.15);
}

.mini-orbit-node .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text-bright);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
  pointer-events: none;
  background: rgba(12, 16, 21, 0.95);
  border: 1px solid rgba(168, 201, 115, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
}

/* --- Blueprint floor plan styles (cinza neutro) --- */
.blueprint-building-shell {
  fill: none;
  stroke: rgba(160, 170, 185, 0.22);
  stroke-width: 2.2;
}

.blueprint-wall {
  fill: none;
  stroke: rgba(160, 170, 185, 0.18);
  stroke-width: 1.5;
  transition: stroke 0.8s var(--ease), stroke-width 0.3s;
}

.blueprint-wall.safe {
  stroke: rgba(168, 201, 115, 0.25);
}

.blueprint-wall.pulse {
  animation: blueprint-pulse-gray 3s infinite ease-in-out;
}

@keyframes blueprint-pulse-gray {
  0%, 100% { stroke: rgba(160, 170, 185, 0.14); }
  50% { stroke: rgba(160, 170, 185, 0.28); }
}

/* Elementos Reais de Evento */
.blueprint-booth {
  fill: rgba(160, 170, 185, 0.02);
  stroke: rgba(160, 170, 185, 0.18);
  stroke-width: 1.2;
  transition: stroke 0.8s var(--ease), fill 0.8s var(--ease);
}
.blueprint-booth.safe {
  stroke: rgba(168, 201, 115, 0.3);
  fill: rgba(168, 201, 115, 0.03);
}
.blueprint-booth.pulse {
  animation: blueprint-pulse-gray 3s infinite ease-in-out;
}

.blueprint-stage {
  fill: rgba(160, 170, 185, 0.02);
  stroke: rgba(160, 170, 185, 0.22);
  stroke-width: 1.8;
  transition: stroke 0.8s var(--ease), fill 0.8s var(--ease);
}
.blueprint-stage.safe {
  stroke: rgba(168, 201, 115, 0.3);
  fill: rgba(168, 201, 115, 0.04);
}
.blueprint-stage.pulse {
  animation: blueprint-pulse-gray 3s infinite ease-in-out;
}

.blueprint-counter {
  fill: none;
  stroke: rgba(160, 170, 185, 0.18);
  stroke-width: 1.5;
  transition: stroke 0.8s var(--ease);
}
.blueprint-counter.safe {
  stroke: rgba(168, 201, 115, 0.3);
}
.blueprint-counter.pulse {
  animation: blueprint-pulse-gray 3s infinite ease-in-out;
}

.blueprint-table {
  fill: none;
  stroke: rgba(160, 170, 185, 0.16);
  stroke-width: 1.2;
  transition: stroke 0.8s var(--ease);
}
.blueprint-table.safe {
  stroke: rgba(168, 201, 115, 0.25);
}
.blueprint-table.pulse {
  animation: blueprint-pulse-gray 3s infinite ease-in-out;
}

.blueprint-desk {
  fill: none;
  stroke: rgba(160, 170, 185, 0.16);
  stroke-width: 1.2;
  transition: stroke 0.8s var(--ease);
}
.blueprint-desk.safe {
  stroke: rgba(168, 201, 115, 0.25);
}
.blueprint-desk.pulse {
  animation: blueprint-pulse-gray 3s infinite ease-in-out;
}

.blueprint-door-swing {
  fill: none;
  stroke: rgba(160, 170, 185, 0.15);
  stroke-width: 0.8;
  stroke-dasharray: 2 2;
}

.blueprint-door-leaf {
  fill: none;
  stroke: rgba(160, 170, 185, 0.25);
  stroke-width: 1.2;
}

.blueprint-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  fill: var(--text-dim);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.blueprint-entrance-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  fill: var(--green);
  text-transform: uppercase;
  animation: neon-pulse-green 1.5s infinite alternate;
  user-select: none;
  pointer-events: none;
}

@keyframes neon-pulse-green {
  from { fill: rgba(168, 201, 115, 0.6); filter: drop-shadow(0 0 1px var(--green)); }
  to { fill: rgba(168, 201, 115, 1); filter: drop-shadow(0 0 5px var(--green)); }
}

.mini-orbit-node:hover .tooltip {
  opacity: 1;
}

/* Responsivo para o mapa do evento */
@media (max-width: 1024px) {
  .event-map-container {
    max-width: 95%;
    height: min(58vh, 480px);
  }
  .event-sector {
    width: 100px;
  }
  .sector-orbit-area {
    width: 70px;
    height: 70px;
  }
  .sector-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .sector-orbit-ring {
    width: 62px;
    height: 62px;
  }
  .mini-orbit-node {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  /* Layout vertical: portão no topo */
  #sector-credenciamento { left: 50%; top: 16%; }
  #sector-expositores { left: 22%; top: 45%; }
  #sector-imprensa { left: 78%; top: 45%; }
  #sector-publico { left: 50%; top: 55%; }
  #sector-palco { left: 50%; top: 82%; }
}

@media (max-width: 480px) {
  .event-map-container {
    height: min(55vh, 420px);
  }
  .sector-label {
    font-size: 7px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }
  .sector-orbit-area {
    width: 58px;
    height: 58px;
  }
  .sector-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .sector-orbit-ring {
    width: 50px;
    height: 50px;
  }
  .mini-orbit-node {
    width: 18px;
    height: 18px;
    font-size: 7px;
  }
}

/* Coming soon page */
.coming-soon-app {
  overflow: hidden;
}

.coming-soon-section {
  padding: 32px 24px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(168, 201, 115, 0.11) 0%, rgba(168, 201, 115, 0.025) 34%, transparent 68%),
    radial-gradient(circle at 18% 18%, rgba(92, 229, 224, 0.045), transparent 28%),
    var(--bg-deep);
  isolation: isolate;
}

.coming-soon-section::before,
.coming-soon-section::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.coming-soon-section::before {
  width: min(76vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(168, 201, 115, 0.12);
  box-shadow:
    inset 0 0 42px rgba(168, 201, 115, 0.04),
    0 0 80px rgba(168, 201, 115, 0.05);
  animation: coming-orbit 18s linear infinite;
}

.coming-soon-section::after {
  width: min(44vw, 420px);
  aspect-ratio: 1;
  border: 1px dashed rgba(92, 229, 224, 0.12);
  animation: coming-orbit 24s linear infinite reverse;
}

.coming-soon-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(168, 201, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 201, 115, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.coming-soon-content {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  min-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.coming-soon-logo {
  width: clamp(220px, 34vw, 380px);
  height: auto;
  margin-bottom: clamp(28px, 5vw, 48px);
  filter: drop-shadow(0 0 18px rgba(168, 201, 115, 0.28));
}

.coming-soon-kicker {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.coming-soon-content h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 11vw, 118px);
  line-height: 0.92;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: 0 0 34px rgba(168, 201, 115, 0.16);
}

.coming-soon-text {
  max-width: 440px;
  margin-top: 22px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: #d4dae5;
}

@keyframes coming-orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(1); }
}

@media (max-width: 480px) {
  .coming-soon-section {
    padding: 24px 18px;
  }

  .coming-soon-logo {
    width: min(76vw, 280px);
  }

  .coming-soon-kicker {
    letter-spacing: 2px;
  }

  .coming-soon-content h1 {
    letter-spacing: 4px;
  }
}
