/* ---------------------------------------------------------
   THRESHOLD CONTAINER — Cosmic Field + Breath Engine
--------------------------------------------------------- */
.threshold-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #C86B8A 0%, #1E2A44 70%);
  animation: cosmicBreath 16s ease-in-out infinite;
}

/* Breath Cycle (16s) */
@keyframes cosmicBreath {
  0%   { filter: brightness(0.85) saturate(1.1); }
  50%  { filter: brightness(1.15) saturate(1.25); }
  100% { filter: brightness(0.85) saturate(1.1); }
}

/* ---------------------------------------------------------
   BREATH OVERLAY — Luminous Soul-Light Veil
--------------------------------------------------------- */
.threshold-breath-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(237,239,242,0.12) 0%,
    rgba(201,204,214,0.06) 100%
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------------------------------------------------------
   DRAGONFLY SIGIL — Metallic + Glass Behavior
--------------------------------------------------------- */
.threshold-sigil {
  position: absolute;
  top: 12%;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 5;
}

.sigil-img {
  width: 160px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(230,199,122,0.45))
          drop-shadow(0 0 32px rgba(90,61,140,0.35));
  animation: sigilFloat 12s ease-in-out infinite;
}

@keyframes sigilFloat {
  0%   { transform: translateY(0px); opacity: 0.85; }
  50%  { transform: translateY(-12px); opacity: 1; }
  100% { transform: translateY(0px); opacity: 0.85; }
}

/* ---------------------------------------------------------
   THRESHOLD TEXT — Calm, Reverent, Mythic
--------------------------------------------------------- */
.threshold-text {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #EDEFF2;
  max-width: 720px;
  padding: 0 2rem;
}

.threshold-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(237,239,242,0.35);
}

.realm-highlight {
  background: linear-gradient(135deg, #E6C77A, #5A3D8C);
  -webkit-background-clip: text;
  color: transparent;
}

.threshold-subtitle {
  font-family: "Elms Sans", sans-serif;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.4rem;
}

/* ---------------------------------------------------------
   CTA — Pulse (Fusion Glyph)
--------------------------------------------------------- */
.threshold-cta {
  font-family: "Elms Sans", sans-serif;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(120deg, #2FAE8F, #1F6F78);
  color: #EDEFF2;
  cursor: pointer;
  transition: all 0.6s ease;
  box-shadow: 0 0 18px rgba(47,174,143,0.35);
}

.threshold-cta:hover {
  filter: brightness(1.25);
  box-shadow: 0 0 28px rgba(47,174,143,0.55);
}

/* ---------------------------------------------------------
   PARTICLE FIELD — Dragonfly Light Bursts
--------------------------------------------------------- */
#threshold-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
/* Threshold fade-in */
#threshold {
  opacity: 0;
  transition: opacity 1.4s ease;
}

#threshold.threshold-visible {
  opacity: 1;
}

/* Threshold text reveal */
.threshold-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.threshold-text.threshold-text-visible {
  opacity: 1;
  transform: translateY(0);
}
/* THRESHOLD BACKGROUND OVERRIDE */
#threshold {
  background: var(--cosmic-black-base);
  background-image: none;
}
.threshold-enter {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.4s ease, transform 0.4s ease;
}

.threshold-enter:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.threshold-container {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers the button horizontally */
  justify-content: center; /* centers everything vertically */
  text-align: center;
  padding: 4rem 1.5rem;
}
.threshold-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 4rem 1.5rem;
}
