.oracle-page {
  min-height: 100vh;
  background: var(--bg);
}

.oracle-page .site-nav {
  position: absolute;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.oracle-page .nav-links a[aria-current="page"] {
  color: #d59afa;
}

.oracle-page .nav-links a[aria-current="page"]::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 12px;
  background: rgba(180, 108, 255, 0.7);
}

.oracle {
  width: min(calc(100% - 64px), 1320px);
  margin: 0 auto;
  padding: 150px 0 32px;
}

.oracle-hero {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding: 24px 32px 36px;
}

.oracle-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(4.8rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #f2edf2;
}

.oracle-tagline,
.oracle-panel-title,
.oracle-upload-label,
.oracle-reading-section h3,
.oracle-orientation,
.oracle-numeral {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.oracle-tagline {
  margin-top: 28px;
  font-size: clamp(0.95rem, 1.4vw, 1.28rem);
  color: rgba(244, 241, 236, 0.88);
}

.oracle-star {
  display: block;
  width: max-content;
  margin: 30px auto 18px;
  color: #cf78ef;
  font-size: 1.25rem;
}

.oracle-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 300;
  color: rgba(244, 241, 236, 0.78);
}

.oracle-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.oracle-hero-media img {
  width: min(100%, 390px);
  height: auto;
  object-fit: contain;
}

.oracle-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.oracle-panel,
.oracle-reading {
  border: 1px solid rgba(141, 122, 232, 0.48);
  border-radius: 24px;
  background: rgba(8, 8, 10, 0.64);
}

.oracle-panel {
  min-height: 390px;
  padding: 40px;
}

.oracle-panel-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(244, 241, 236, 0.9);
}

.oracle-dropzone {
  min-height: 300px;
  margin-top: 28px;
  border: 1px dashed rgba(194, 132, 222, 0.5);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 250ms ease, background-color 250ms ease;
}

.oracle-dropzone:hover,
.oracle-dropzone:focus-within,
.oracle-dropzone.is-dragging {
  border-color: rgba(210, 151, 239, 0.86);
  background: rgba(141, 122, 232, 0.035);
}

.oracle-plus {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 200;
  line-height: 1;
  color: #cd76e8;
}

.oracle-upload-label {
  margin-top: 44px;
  font-size: 0.8rem;
}

.oracle-upload-help,
.oracle-file-name,
.oracle-counter {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.oracle-upload-help {
  margin-top: 12px;
}

.oracle-file-name {
  max-width: 80%;
  margin-top: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d19aea;
}

.oracle-question-field {
  position: relative;
  height: 300px;
  margin-top: 28px;
}

.oracle-question-field textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 28px 28px 58px;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.18);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.5;
  outline: none;
  transition: border-color 250ms ease;
}

.oracle-question-field textarea:focus {
  border-color: rgba(141, 122, 232, 0.58);
}

.oracle-question-field textarea::placeholder {
  color: rgba(169, 164, 160, 0.72);
}

.oracle-counter {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(244, 241, 236, 0.78);
}

.oracle-status {
  min-height: 24px;
  margin: 22px 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(209, 154, 234, 0.9);
}

.oracle-thinking {
  min-height: 40px;
  margin: 8px 0 30px;
  padding: 0 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: 0.01em;
  color: #ddd2ff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.oracle-thinking.is-visible {
  opacity: 1;
}

.oracle-thinking:not([hidden]) {
  animation: oracle-thinking-pulse 2.2s ease-in-out infinite;
}

@keyframes oracle-thinking-pulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(141, 122, 232, 0.85),
      0 0 24px rgba(141, 122, 232, 0.65),
      0 0 46px rgba(141, 122, 232, 0.45),
      0 0 80px rgba(141, 122, 232, 0.28);
  }
  50% {
    text-shadow:
      0 0 16px rgba(141, 122, 232, 1),
      0 0 36px rgba(141, 122, 232, 0.95),
      0 0 64px rgba(141, 122, 232, 0.75),
      0 0 110px rgba(141, 122, 232, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oracle-thinking {
    transition: none;
  }
  .oracle-thinking:not([hidden]) {
    animation: none;
    text-shadow:
      0 0 10px rgba(141, 122, 232, 0.85),
      0 0 24px rgba(141, 122, 232, 0.65),
      0 0 46px rgba(141, 122, 232, 0.45),
      0 0 80px rgba(141, 122, 232, 0.28);
  }
}

.oracle-reveal-panel {
  margin-top: 16px;
  min-height: 300px;
  padding: clamp(48px, 7vw, 84px);
  border: 1px solid rgba(141, 122, 232, 0.48);
  border-radius: 24px;
  background: rgba(8, 8, 10, 0.64);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 42px;
  text-align: center;
}

.oracle-reveal-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #cf78ef;
}

.oracle-reveal-step::before,
.oracle-reveal-step::after {
  content: '';
  width: 56px;
  height: 1px;
  background: rgba(141, 122, 232, 0.38);
}

.oracle-reveal-copy h2 {
  margin-top: 22px;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2edf2;
}

.oracle-receive {
  width: min(100%, 460px);
  min-height: 74px;
  justify-content: center;
  gap: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.oracle-receive span {
  color: #cf78ef;
  font-size: 1.1rem;
}

.oracle-receive:disabled {
  opacity: 0.34;
  cursor: not-allowed;
  box-shadow: none;
}

.oracle-reading {
  display: grid;
  grid-template-columns: minmax(310px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(56px, 8vw, 118px);
  align-items: center;
  min-height: 670px;
  padding: clamp(48px, 6vw, 76px);
}

.oracle-reading[hidden] {
  display: none;
}

.oracle-reading-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oracle-package-anchor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66%;
  max-height: 68%;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
}

.oracle-card-image {
  position: relative;
  z-index: 1;
  width: min(78%, 330px);
  max-height: 560px;
  object-fit: contain;
  border: 8px solid rgba(213, 203, 183, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
}

.oracle-numeral {
  min-height: 1.2em;
  font-size: 1rem;
  color: #cf76e8;
}

.oracle-card-name {
  margin-top: 14px;
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2edf2;
}

.oracle-orientation {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #d27ce9;
}

.oracle-reading-star {
  display: block;
  margin: 26px 0;
  color: #cb72e6;
}

.oracle-reading-section h3 {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(244, 241, 236, 0.86);
}

.oracle-reading-section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(244, 241, 236, 0.82);
  white-space: pre-line;
}

.oracle-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 30px 0 24px;
  color: #cb72e6;
}

.oracle-divider::before,
.oracle-divider::after {
  content: '';
  height: 1px;
  background: rgba(141, 122, 232, 0.34);
}

.oracle-reset {
  min-width: 300px;
  margin: 24px auto 28px;
  gap: 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.oracle-reset:not([hidden]) {
  display: flex;
}

.oracle-reset[hidden] {
  display: none;
}

.oracle-reset span {
  color: #cc72e8;
  font-size: 1.1rem;
}

.oracle-page .lunatiq-chaos {
  margin-top: 0;
}

@media (max-width: 900px) {
  .oracle {
    width: min(calc(100% - 40px), 720px);
    padding-top: 120px;
  }

  .oracle-hero,
  .oracle-inputs,
  .oracle-reveal-panel,
  .oracle-reading {
    grid-template-columns: 1fr;
  }

  .oracle-hero {
    gap: 12px;
    padding-inline: 0;
  }

  .oracle-hero-media img {
    width: min(70vw, 360px);
  }

  .oracle-reveal-panel {
    gap: 36px;
  }

  .oracle-reading-visual {
    min-height: 600px;
  }

  .oracle-reading-copy {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .oracle {
    width: min(calc(100% - 28px), 480px);
  }

  .oracle-title {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .oracle-panel,
  .oracle-reveal-panel,
  .oracle-reading {
    padding: 24px;
    border-radius: 18px;
  }

  .oracle-panel {
    min-height: 340px;
  }

  .oracle-dropzone,
  .oracle-question-field {
    min-height: 250px;
    height: 250px;
  }

  .oracle-reading-visual {
    min-height: 470px;
  }

  .oracle-card-image {
    width: 80%;
    max-height: 470px;
  }

  .oracle-reset {
    width: 100%;
    min-width: 0;
  }


  .oracle-receive {
    min-height: 68px;
  }
}
