/* ---------------------------------------------------------
   ✦ 0. ROOT & GLOBAL FIELD
--------------------------------------------------------- */
:root {
  /* Realm base */
  --realm-black: #050508;
  --realm-deep: #0a0a12;

  /* Panel glass + borders */
  --realm-glass: rgba(255, 255, 255, 0.06);
  --realm-border: rgba(255, 255, 255, 0.12);
  --realm-glow: rgba(180, 220, 255, 0.35);

  /* Text */
  --text-primary: #e8e8f2;
  --text-soft: rgba(235, 238, 255, 0.85);

  /* Panel geometry */
  --panel-radius: 18px;
  --panel-blur: 18px;
  --panel-padding: 3rem;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-slow: 1.2s ease;
}

/* ---------------------------------------------------------
   ✦ 1. COSMIC BACKGROUND FIELD
--------------------------------------------------------- */

.realm-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 50% 20%,
      rgba(80, 120, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(180, 80, 255, 0.06),
      transparent 70%
    ),
    var(--realm-black);
  z-index: -2;
  opacity: 0.9;
}

.realm-body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/particles/realm-noise.png");
  opacity: 0.18;
  mix-blend-mode: screen;
  z-index: -1;
}

/* ---------------------------------------------------------
   ✦ 2. UNIVERSAL PANEL STRUCTURE
--------------------------------------------------------- */

.realm-panel {
  width: min(900px, 90%);
  margin: 8rem auto;
  padding: var(--panel-padding);
  background: var(--realm-glass);
  border: 1px solid var(--realm-border);
  border-radius: var(--panel-radius);
  backdrop-filter: blur(var(--panel-blur));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  animation: panelBreath 12s ease-in-out infinite;
  transform: translateY(0);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.realm-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 55px rgba(120, 160, 255, 0.25);
}

/* Panel breathing motion */
@keyframes panelBreath {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.panel-title {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.panel-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---------------------------------------------------------
   ✦ 3. DISCIPLINES GRID
--------------------------------------------------------- */

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.discipline-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  border-radius: 14px;
  backdrop-filter: blur(14px);
  transition: var(--transition-fast);
}

.discipline-tile:hover {
  border-color: rgba(180, 220, 255, 0.4);
  box-shadow: 0 0 25px rgba(120, 160, 255, 0.25);
  transform: translateY(-4px);
}

/* ---------------------------------------------------------
   ✦ 4. PRINCIPLES PILLARS
--------------------------------------------------------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.principle-pillar {
  padding: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.principle-pillar h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.principle-pillar p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   ✦ 5. INVITATION PANEL
--------------------------------------------------------- */

.invitation-button {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.invitation-button:hover {
  background: rgba(180, 220, 255, 0.15);
  border-color: rgba(180, 220, 255, 0.4);
  box-shadow: 0 0 25px rgba(120, 160, 255, 0.25);
}

/* ---------------------------------------------------------
   ✦ 6. DRAGONFLY SIGIL PANEL
--------------------------------------------------------- */

.dragonfly-sigil-panel {
  text-align: center;
}

.dragonfly-sigil-large {
  width: 180px;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(180, 220, 255, 0.35));
  animation: sigilPulse 14s ease-in-out infinite;
}

@keyframes sigilPulse {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.8; transform: scale(1); }
}

/* ---------------------------------------------------------
   ✦ 7. CLOSING BREATH
--------------------------------------------------------- */

.realm-footer {
  text-align: center;
  padding: 4rem 0;
  opacity: 0.75;
  font-size: 0.95rem;
}

.footer-subtle {
  margin-top: 0.5rem;
  color: var(--text-soft);
}
/* ---------------------------------------------------------
   ✦ 1. COSMIC BACKGROUND FIELD
--------------------------------------------------------- */

.realm-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 50% 20%,
      rgba(80, 120, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(180, 80, 255, 0.06),
      transparent 70%
    ),
    var(--realm-black);
  z-index: -2;
  opacity: 0.9;
}

.realm-body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/particles/realm-noise.png");
  opacity: 0.18;
  mix-blend-mode: screen;
  z-index: -1;
}

/* ---------------------------------------------------------
   ✦ 3. DISCIPLINES GRID
--------------------------------------------------------- */

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.discipline-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition-fast);
}

.discipline-tile:hover {
  border-color: rgba(180, 220, 255, 0.4);
  box-shadow: 0 0 25px rgba(120, 160, 255, 0.25);
  transform: translateY(-4px);
}

/* ---------------------------------------------------------
   ✦ 4. PRINCIPLES PILLARS
--------------------------------------------------------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.principle-pillar {
  padding: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}

.principle-pillar h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.principle-pillar p {
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   ✦ 5. INVITATION PANEL
--------------------------------------------------------- */

.invitation-button {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.invitation-button:hover {
  background: rgba(180, 220, 255, 0.15);
  border-color: rgba(180, 220, 255, 0.4);
  box-shadow: 0 0 25px rgba(120, 160, 255, 0.25);
}

/* ---------------------------------------------------------
   ✦ 6. DRAGONFLY SIGIL PANEL
--------------------------------------------------------- */

.dragonfly-sigil-panel {
  text-align: center;
}

.dragonfly-sigil-large {
  width: 180px;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(180, 220, 255, 0.35));
  animation: sigilPulse 14s ease-in-out infinite;
}

@keyframes sigilPulse {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.8; transform: scale(1); }
}

/* ---------------------------------------------------------
   ✦ 7. CLOSING BREATH
--------------------------------------------------------- */

.realm-footer {
  text-align: center;
  padding: 4rem 0;
  opacity: 0.75;
  font-size: 0.95rem;
}

.footer-subtle {
  margin-top: 0.5rem;
  color: var(--text-soft);
}
.sigil-float {
  width: 120px;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(180, 220, 255, 0.35));
  animation: sigilFloat 12s ease-in-out infinite;