/* Campo perceptivo founder — integrado ao Centro de Evolução · auditável */
#evo-perception-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#evo-perception-field.is-off {
  display: none;
}

#evo-perception-field .epf-layer {
  position: absolute;
  inset: -10%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--epf-opacity, 0.08);
  transition: opacity 1.2s ease;
}

#evo-perception-field .epf-mandala {
  width: min(92vmin, 720px);
  height: min(92vmin, 720px);
  animation: epf-mandala-spin 240s linear infinite;
}

#evo-perception-field .epf-mandala svg {
  width: 100%;
  height: 100%;
}

#evo-perception-field .epf-fractal {
  inset: 0;
  background-image:
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0,
      transparent 18px,
      rgba(94, 234, 212, 0.06) 18px,
      rgba(94, 234, 212, 0.06) 19px
    ),
    repeating-radial-gradient(
      circle at 30% 40%,
      transparent 0,
      transparent 36px,
      rgba(129, 140, 248, 0.05) 36px,
      rgba(129, 140, 248, 0.05) 37px
    );
  background-size: 120px 120px, 200px 200px;
  animation: epf-fractal-drift 90s linear infinite;
}

#evo-perception-field .epf-sigil {
  width: min(40vmin, 280px);
  height: min(40vmin, 280px);
  top: 12%;
  right: 8%;
  left: auto;
  bottom: auto;
  opacity: calc(var(--epf-opacity, 0.08) * 1.2);
}

#evo-perception-field .epf-sigil--bl {
  top: auto;
  bottom: 14%;
  left: 6%;
  right: auto;
}

@keyframes epf-mandala-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes epf-fractal-drift {
  to {
    background-position: 120px 80px, 200px 140px;
  }
}

.evo-perception-panel {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: linear-gradient(
    145deg,
    rgba(8, 16, 28, 0.92),
    rgba(12, 22, 40, 0.88)
  );
}

.evo-perception-panel h3 {
  font-family: Orbitron, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #5eead4;
  margin: 0 0 0.5rem;
}

.evo-perception-panel .epf-consent {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.evo-perception-panel .epf-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 0.5rem 0;
}

.evo-perception-panel label {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.evo-perception-panel input[type='range'] {
  width: min(200px, 50vw);
  accent-color: #5eead4;
}

.evo-perception-panel .epf-axiom-ring {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-left: 2px solid rgba(251, 191, 36, 0.5);
  font-size: 0.8rem;
  color: #e2e8f0;
  font-style: italic;
  min-height: 2.5rem;
}

.evo-perception-panel .epf-manifest {
  font-size: 0.62rem;
  color: #64748b;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 0.5rem;
  font-family: ui-monospace, monospace;
}

.evo-perception-panel .epf-exp {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(100, 180, 255, 0.12);
}

.evo-perception-panel .epf-exp button {
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  margin: 0.15rem 0.2rem 0.15rem 0;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: #c7d2fe;
  cursor: pointer;
}

.evo-perception-panel .epf-exp button:hover {
  border-color: #5eead4;
  color: #5eead4;
}

.evo-perception-panel .epf-exp button.is-selected {
  border-color: #5eead4;
  color: #5eead4;
  background: rgba(94, 234, 212, 0.12);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.2);
}

.evo-perception-panel .epf-exp button:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.55);
  outline-offset: 2px;
}

.evo-perception-panel .epf-audit-stat {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  #evo-perception-field .epf-mandala,
  #evo-perception-field .epf-fractal {
    animation: none;
  }
}
