@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&display=swap');

:root {
  --cosmic-black: #0d1021;
  --nebula-plum: #45223b;
  --nebula-mauve: #443449;
  --nebula-indigo: #16173a;
  --nebula-teal: #2a4e63;
  --nebula-slate: #697763;
  --nebula-amber: #b07d3a;
  --rose-gold: #c8a57a;
  --rose-gold-dim: rgba(176, 125, 58, 0.3);
  --guadalupe-cyan: #7fa8bc;
  --guadalupe-rose: #b28da0;
  --golden-thread: #b07d3a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 18%, rgba(69, 34, 59, 0.56), transparent 44%),
    radial-gradient(circle at 86% 14%, rgba(42, 78, 99, 0.44), transparent 46%),
    radial-gradient(circle at 76% 82%, rgba(105, 119, 99, 0.32), transparent 48%),
    radial-gradient(circle at 40% 64%, rgba(68, 52, 73, 0.34), transparent 52%),
    var(--cosmic-black);
  background-size: 130% 130%;
  animation: nebulaShift 42s ease-in-out infinite alternate;
  color: var(--rose-gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(176, 125, 58, 0.1), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(176, 125, 58, 0.08), transparent 30%),
    linear-gradient(to bottom, rgba(22, 23, 58, 0.2), rgba(13, 16, 33, 0.48));
}

#sigil-canvas {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 10;
  width: min(94vw, 780px);
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0 4rem;
}

.page-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 23, 58, 0.05), rgba(13, 16, 33, 0.5)),
    radial-gradient(circle at 50% 0%, rgba(176, 125, 58, 0.09), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(68, 52, 73, 0.24), transparent 42%);
  z-index: -1;
}

@keyframes nebulaShift {
  0% {
    background-position: 0% 0%;
    filter: saturate(0.95);
  }

  50% {
    background-position: 50% 40%;
    filter: saturate(1.04);
  }

  100% {
    background-position: 100% 100%;
    filter: saturate(0.98);
  }
}

.page-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.glyph-row {
  margin-top: 0.55rem;
  color: var(--guadalupe-rose);
  font-size: 1.2rem;
  letter-spacing: 0.32rem;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 4.8vw, 3rem);
  letter-spacing: 0.2em;
  color: var(--guadalupe-cyan);
  margin-bottom: 0.4rem;
  text-shadow: 0 0 26px rgba(78, 205, 196, 0.28);
}

.subtitle {
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--rose-gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(212, 165, 116, 0.2);
  background: rgba(12, 11, 19, 0.55);
}

.nav-link {
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-gold);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 0.5rem 0.72rem;
  background: linear-gradient(160deg, rgba(10, 10, 15, 0.78), rgba(22, 17, 30, 0.66));
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  color: var(--guadalupe-cyan);
  border-color: var(--guadalupe-cyan);
}

.nav-link.active {
  border-color: var(--guadalupe-cyan);
  color: var(--guadalupe-cyan);
  background: rgba(78, 205, 196, 0.12);
}

.oracle-card {
  background: linear-gradient(160deg, rgba(10, 10, 15, 0.86), rgba(21, 16, 30, 0.84));
  border: 1px solid var(--rose-gold-dim);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(212, 165, 116, 0.06);
  backdrop-filter: blur(14px);
  padding: clamp(1rem, 2.6vw, 1.7rem);
}

.prompt-text {
  text-align: center;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  margin-bottom: 1rem;
}

.method-note {
  border: 1px solid rgba(212, 165, 116, 0.25);
  background: rgba(10, 10, 15, 0.62);
  padding: 0.8rem;
  margin-bottom: 0.9rem;
}

.method-note-title {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  color: var(--guadalupe-cyan);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.method-note-text {
  color: var(--golden-thread);
  line-height: 1.55;
  font-size: 0.98rem;
}

.oracle-field-group {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.oracle-input,
.astro-select {
  width: 100%;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--rose-gold-dim);
  color: var(--golden-thread);
  font-family: 'Cormorant Garamond', serif;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
}

.astro-select {
  color: var(--rose-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tarot-pos-note {
  color: var(--rose-gold);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

.oracle-input:focus,
.astro-select:focus {
  outline: none;
  border-color: var(--guadalupe-cyan);
}

.oracle-btn {
  width: 100%;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--guadalupe-cyan);
  color: var(--guadalupe-cyan);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.9rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.oracle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(78, 205, 196, 0.18);
  border-color: var(--guadalupe-cyan);
}

.oracle-results {
  margin-top: 1.2rem;
  background: linear-gradient(165deg, rgba(10, 10, 15, 0.92), rgba(16, 13, 24, 0.9));
  border: 1px solid var(--rose-gold-dim);
  padding: 1.2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.45s ease;
}

.oracle-results.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-section {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.26);
}

.result-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.result-title {
  font-family: 'Cinzel', serif;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.result-title.cyan { color: var(--guadalupe-cyan); }
.result-title.rose { color: var(--guadalupe-rose); }
.result-title.gold { color: var(--rose-gold); }
.result-title.golden { color: var(--golden-thread); }

.result-content {
  color: var(--golden-thread);
  line-height: 1.65;
  font-size: 1.02rem;
}

.hexagram-display {
  text-align: center;
  color: var(--guadalupe-rose);
  font-size: 1.2rem;
  margin: 0.7rem 0;
}

.gematria-value {
  text-align: center;
  color: var(--golden-thread);
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin: 0.7rem 0;
}

.loading {
  text-align: center;
  padding: 1rem;
}

.loading-symbol {
  font-size: 1.8rem;
}

.loading-text {
  margin-top: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.tarot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.tarot-card {
  border: 1px solid var(--rose-gold-dim);
  background: linear-gradient(165deg, rgba(10, 10, 15, 0.92), rgba(21, 17, 26, 0.92));
  padding: 0.8rem;
}

.tarot-card.reversed {
  border-color: var(--guadalupe-rose);
}

.tarot-pos {
  font-family: 'Cinzel', serif;
  color: var(--guadalupe-cyan);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tarot-emoji {
  font-size: 1.5rem;
  margin-top: 0.45rem;
}

.tarot-name {
  font-family: 'Cinzel', serif;
  color: var(--rose-gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.tarot-key {
  color: var(--golden-thread);
  margin-top: 0.5rem;
  line-height: 1.55;
}

.tarot-vision-wrap {
  margin-top: 0.95rem;
  border: 1px solid rgba(212, 165, 116, 0.3);
  background: rgba(10, 10, 15, 0.74);
  padding: 0.45rem;
}

.tarot-vision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.tarot-vision-thumb {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(78, 205, 196, 0.28);
  background: rgba(10, 10, 15, 0.66);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: oracleRevealFade 1.2s ease forwards;
  animation-delay: calc(var(--reveal-order, 0) * 0.8s);
}

.celtic-cross-guide {
  margin-top: 0.95rem;
  border: 1px solid rgba(212, 165, 116, 0.3);
  background: rgba(10, 10, 15, 0.74);
  padding: 0.8rem;
}

.celtic-cross-guide-title {
  font-family: 'Cinzel', serif;
  color: var(--guadalupe-cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.celtic-cross-layout {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(78, 205, 196, 0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(232, 165, 181, 0.12), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(78, 205, 196, 0.12), transparent 36%),
    rgba(22, 12, 33, 0.8);
}

.celtic-slot {
  position: absolute;
  width: 54px;
  height: 86px;
  border: 1px solid rgba(212, 165, 116, 0.65);
  background: rgba(247, 246, 241, 0.9);
  color: #1a1321;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.slot-1 { left: 36%; top: 40%; }
.slot-2 {
  left: 36%;
  top: 40%;
  transform: rotate(90deg);
}
.slot-3 { left: 36%; top: 68%; }
.slot-4 { left: 36%; top: 12%; }
.slot-5 { left: 12%; top: 40%; }
.slot-6 { left: 60%; top: 40%; }

.slot-7 { right: 10%; top: 70%; }
.slot-8 { right: 10%; top: 48%; }
.slot-9 { right: 10%; top: 26%; }
.slot-10 { right: 10%; top: 4%; }

.celtic-cross-legend {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
  color: var(--golden-thread);
  line-height: 1.45;
  font-size: 0.95rem;
}

.oracle-reveal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.oracle-reveal-image {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(78, 205, 196, 0.28);
  background: rgba(10, 10, 15, 0.66);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: oracleRevealFade 1.2s ease forwards;
  animation-delay: calc(var(--reveal-order, 0) * 0.8s);
}

@keyframes oracleRevealFade {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.site-footer {
  margin-top: 1.2rem;
  border: 1px solid rgba(212, 165, 116, 0.25);
  background: linear-gradient(160deg, rgba(10, 10, 15, 0.86), rgba(18, 14, 27, 0.8));
  padding: 0.9rem;
}

.site-footer-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--guadalupe-cyan);
}

.site-footer-links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.site-footer-link {
  text-decoration: none;
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: var(--rose-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
}

.site-footer-link:hover {
  color: var(--guadalupe-cyan);
  border-color: var(--guadalupe-cyan);
}

.site-footer-link.active {
  border-color: var(--guadalupe-cyan);
  color: var(--guadalupe-cyan);
  background: rgba(78, 205, 196, 0.12);
}

.site-footer-meta {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--golden-thread);
  font-size: 0.9rem;
}

.site-footer-message {
  margin-top: 0.55rem;
  color: var(--rose-gold);
  line-height: 1.55;
  border-top: 1px dashed rgba(212, 165, 116, 0.25);
  padding-top: 0.5rem;
  overflow-wrap: anywhere;
}

.uap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.uap-panel {
  border: 1px solid rgba(212, 165, 116, 0.25);
  background: rgba(10, 10, 15, 0.7);
  padding: 0.8rem;
}

.uap-title {
  font-family: 'Cinzel', serif;
  color: var(--guadalupe-cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.uap-text {
  margin-top: 0.35rem;
  color: var(--golden-thread);
  line-height: 1.55;
}

.uap-output {
  margin-top: 0.5rem;
  color: var(--rose-gold);
  line-height: 1.55;
}

.uap-link {
  color: var(--guadalupe-cyan);
}

.uap-list {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.45rem;
}

.uap-item {
  border: 1px solid rgba(212, 165, 116, 0.2);
  padding: 0.55rem;
  background: rgba(10, 10, 15, 0.66);
}

.uap-item a {
  color: var(--guadalupe-cyan);
  text-decoration: none;
}

.void-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.void-focus {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(212, 165, 116, 0.25);
  background:
    radial-gradient(circle at 20% 30%, rgba(78, 205, 196, 0.12), transparent 40%),
    radial-gradient(circle at 80% 22%, rgba(232, 165, 181, 0.12), transparent 45%),
    rgba(10, 10, 15, 0.78);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem;
  overflow: hidden;
}

.void-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 0.45px, transparent 0.45px);
  background-size: 4px 4px;
  animation: voidStatic 0.28s steps(2) infinite;
}

.void-focus-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 7vw, 3rem);
  filter: drop-shadow(0 0 18px rgba(78, 205, 196, 0.28));
}

.void-focus-word {
  position: relative;
  z-index: 1;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--guadalupe-cyan);
}

.void-focus-intention {
  position: relative;
  z-index: 1;
  color: var(--rose-gold);
  line-height: 1.45;
}

.void-focus-countdown {
  position: relative;
  z-index: 1;
  font-family: 'Cinzel', serif;
  color: var(--golden-thread);
  font-size: 1.4rem;
}

.void-focus.active .void-focus-emoji {
  animation: voidPulse 1s ease-in-out infinite;
}

.void-focus.active .void-focus-word {
  animation: voidBreath 1.25s ease-in-out infinite;
}

.void-reveal {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: rgba(6, 7, 12, 0.9);
}

.void-reveal.visible {
  opacity: 1;
  pointer-events: auto;
}

.void-reveal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06) brightness(0.84);
}

.void-reveal-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1rem, 3vw, 1.8rem);
  background: linear-gradient(to top, rgba(6, 7, 12, 0.92), rgba(6, 7, 12, 0.5), transparent);
}

.void-reveal-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--guadalupe-cyan);
}

.void-reveal-recap,
.void-score {
  margin-top: 0.35rem;
  color: var(--rose-gold);
  line-height: 1.5;
}

.void-banner {
  margin-top: 0.5rem;
  display: inline-block;
  border: 1px solid rgba(232, 165, 181, 0.6);
  color: var(--guadalupe-rose);
  background: rgba(232, 165, 181, 0.14);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.void-close {
  margin-top: 0.8rem;
  max-width: 280px;
}

.void-reveal.high-strangeness {
  animation: voidGlitch 0.5s steps(2) 4;
}

@keyframes voidPulse {
  0%,
  100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.09); opacity: 1; }
}

@keyframes voidBreath {
  0%,
  100% { text-shadow: 0 0 0 rgba(78, 205, 196, 0); }
  50% { text-shadow: 0 0 14px rgba(78, 205, 196, 0.35); }
}

@keyframes voidStatic {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(2px, -2px, 0); }
}

@keyframes voidGlitch {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2px, 1px, 0); }
  40% { transform: translate3d(2px, -1px, 0); }
  60% { transform: translate3d(-1px, -1px, 0); }
  80% { transform: translate3d(1px, 2px, 0); }
}

@media (max-width: 640px) {
  .tarot-vision-grid {
    grid-template-columns: 1fr;
  }

  .tarot-vision-thumb {
    max-width: 100%;
  }

  .celtic-cross-layout {
    min-height: 380px;
  }

  .celtic-slot {
    width: 48px;
    height: 74px;
    font-size: 1.05rem;
  }

  .slot-1 { left: 34%; top: 42%; }
  .slot-2 { left: 34%; top: 42%; }
  .slot-3 { left: 34%; top: 68%; }
  .slot-4 { left: 34%; top: 16%; }
  .slot-5 { left: 8%; top: 42%; }
  .slot-6 { left: 58%; top: 42%; }

  .oracle-reveal-gallery {
    grid-template-columns: 1fr;
  }

  .oracle-reveal-image {
    max-width: 100%;
  }
}
