﻿:root {
  --bg: #120d0a;
  --bg-soft: #1d1510;
  --panel: rgba(30, 18, 12, 0.78);
  --panel-strong: rgba(19, 11, 8, 0.88);
  --line: rgba(212, 178, 121, 0.22);
  --text: #eadfcf;
  --muted: #c9baa4;
  --accent: #d0a35a;
  --accent-soft: #8f6530;
  --danger: #d87c68;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Spectral", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(138, 88, 35, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(108, 33, 17, 0.2), transparent 30%),
    linear-gradient(160deg, #080605 0%, #140d09 48%, #1a120e 100%);
  overflow-x: hidden;
}

body.ritual-awakening {
  animation: pageRattle 5s ease-in-out forwards;
}

.sigil {
  position: fixed;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(2px);
  background:
    radial-gradient(circle, rgba(208, 163, 90, 0.16) 0 18%, transparent 19% 100%),
    radial-gradient(circle, transparent 0 56%, rgba(208, 163, 90, 0.18) 57% 58%, transparent 59% 100%),
    radial-gradient(circle, transparent 0 72%, rgba(208, 163, 90, 0.12) 73% 74%, transparent 75% 100%);
  animation: sigilPulse 6s ease-in-out infinite;
}

.sigil::before,
.sigil::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 68%;
  height: 1px;
  background: rgba(208, 163, 90, 0.18);
  transform-origin: left center;
}

.sigil::before {
  transform: rotate(35deg);
}

.sigil::after {
  transform: rotate(-35deg);
}

.sigil-left {
  top: 6%;
  left: -90px;
}

.sigil-right {
  right: -100px;
  bottom: 4%;
  animation-delay: -2s;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(4, 3, 3, 0.25), rgba(4, 3, 3, 0.65)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 3px,
      rgba(255, 219, 168, 0.018) 4px,
      transparent 7px
    );
  opacity: 0.9;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 2vw, 24px);
  align-items: center;
  padding: clamp(18px, 4vh, 40px) 0;
}

.hero-card,
.oracle-card {
  position: relative;
  width: 100%;
  min-height: clamp(570px, 63vh, 670px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(61, 38, 22, 0.22), transparent 32%),
    var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(8px);
}

.page-shell.page-shell-single {
  grid-template-columns: 1fr;
  width: min(980px, calc(100% - 32px));
  align-items: center;
}

.guide-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(61, 38, 22, 0.22), transparent 32%),
    var(--panel);
  box-shadow: 0 24px 70px var(--shadow);
  backdrop-filter: blur(8px);
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 184, 127, 0.1);
  border-radius: 18px;
  pointer-events: none;
}

.brand-mark {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 9, 7, 0.7);
  border: 1px solid rgba(208, 163, 90, 0.18);
  box-shadow: inset 0 0 20px rgba(208, 163, 90, 0.08);
}

.brand-mark-button {
  touch-action: manipulation;
  appearance: none;
  padding: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.brand-mark-button:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 163, 90, 0.38);
  box-shadow:
    inset 0 0 22px rgba(208, 163, 90, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.brand-mark-button.is-charged {
  border-color: rgba(208, 163, 90, 0.52);
  box-shadow:
    inset 0 0 26px rgba(208, 163, 90, 0.18),
    0 0 34px rgba(208, 163, 90, 0.16);
}

.brand-mark-button.is-awakening {
  animation: sealBloom 5s ease-in-out forwards;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(14px, 2vh, 18px);
}

.hero-title-row .brand-mark {
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title-block h1 {
  margin: 0;
}

.hero-subtitle {
  margin: 6px 0 0;
  font-family: "Cinzel", serif;
  font-size: 1.28rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-mark img {
  width: 58px;
  height: 58px;
  display: block;
}

.brand-mark-guide {
  margin-bottom: 0;
}

.guide-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.guide-hero__copy {
  min-width: 0;
}

.guide-hero__copy h1 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.02;
}

.guide-card .brand-mark {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  flex-shrink: 0;
}

.guide-card .brand-mark img {
  width: 58px;
  height: 58px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.guide-panel {
  padding: 24px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(208, 163, 90, 0.16);
}

.guide-panel h2 {
  margin: 0 0 16px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.guide-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.guide-list li + li {
  margin-top: 10px;
}

.guide-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid rgba(208, 163, 90, 0.5);
  background: rgba(13, 9, 7, 0.55);
  color: var(--muted);
  line-height: 1.8;
}

.consent-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: min(420px, calc(100% - 32px));
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(208, 163, 90, 0.24);
  background:
    linear-gradient(180deg, rgba(66, 40, 24, 0.3), transparent 34%),
    rgba(19, 12, 9, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.consent-banner__copy p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.consent-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.consent-banner__button {
  justify-self: auto;
}

.consent-banner__button--ghost {
  background: rgba(14, 9, 7, 0.72);
}

.mobile-manifestation {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.mobile-manifestation.is-open {
  display: flex;
}

.mobile-manifestation__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 2, 0.8);
  backdrop-filter: blur(8px);
}

.mobile-manifestation__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(208, 163, 90, 0.22);
  background:
    linear-gradient(180deg, rgba(69, 41, 23, 0.28), transparent 34%),
    rgba(24, 15, 10, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  opacity: 0;
  transform: scale(0.94);
}

.mobile-manifestation.is-open .mobile-manifestation__dialog {
  animation: mobileManifestationIn 520ms ease forwards;
}

.mobile-manifestation__seal {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(208, 163, 90, 0.22);
  background: rgba(10, 7, 5, 0.76);
  box-shadow: inset 0 0 22px rgba(208, 163, 90, 0.08);
}

.mobile-manifestation__seal img {
  width: 52px;
  height: 52px;
  display: block;
}

.mobile-manifestation__text {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1.14rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mobile-manifestation__close {
  margin: 24px auto 0;
  justify-self: center;
}

.hero-card::before,
.oracle-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 184, 127, 0.1);
  border-radius: 18px;
  pointer-events: none;
}

.oracle-card {
  overflow: hidden;
}

.oracle-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 10, 8, 0.46), rgba(12, 8, 6, 0.92)),
    radial-gradient(circle at center, rgba(208, 163, 90, 0.08), transparent 45%);
  backdrop-filter: blur(10px);
  transition: opacity 650ms ease, visibility 650ms ease;
}

.oracle-card.is-unlocking .oracle-lock {
  animation: chamberUnseal 5s ease-in-out forwards;
}

.oracle-card.is-unlocked .oracle-lock {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.oracle-lock__title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.28rem;
  color: var(--text);
}

.oracle-lock__copy {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.7;
}

.oracle-heading {
  display: block;
}

.oracle-heading__seal {
  display: none;
}

.eyebrow,
.oracle-label,
.answer-label,
.ritual-title,
.input-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--accent);
}

h1 {
  margin: 18px 0 20px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 0.98;
  font-weight: 800;
  text-wrap: balance;
}

.lead,
.ritual-copy,
.status-text,
.answer-text {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-card .lead,
.hero-card .ritual-copy {
  text-align: justify;
  text-justify: inter-word;
}

.ritual-box,
.answer-panel {
  margin-top: clamp(18px, 2.8vh, 28px);
  padding: 22px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(208, 163, 90, 0.16);
  overflow: hidden;
}

.tribute-modal__keylabel {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--accent);
}

.tribute-modal__copy,
.tribute-modal__feedback {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.tribute-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 32;
}

.tribute-modal.is-open {
  display: flex;
}

.tribute-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 2, 0.84);
  backdrop-filter: blur(8px);
}

.tribute-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  padding: 30px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(208, 163, 90, 0.22);
  background:
    linear-gradient(180deg, rgba(69, 41, 23, 0.28), transparent 34%),
    rgba(24, 15, 10, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  opacity: 0;
  transform: scale(0.94);
}

.tribute-modal.is-open .tribute-modal__dialog {
  animation: mobileManifestationIn 520ms ease forwards;
}

.tribute-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(208, 163, 90, 0.16);
  border-radius: 999px;
  background: rgba(13, 9, 7, 0.24);
  color: var(--muted);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.tribute-modal__seal {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(208, 163, 90, 0.22);
  background: rgba(10, 7, 5, 0.76);
  box-shadow: inset 0 0 22px rgba(208, 163, 90, 0.08);
}

.tribute-modal__seal img {
  width: 52px;
  height: 52px;
  display: block;
}

.tribute-modal__keybox {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(11, 7, 5, 0.72);
  border: 1px solid rgba(208, 163, 90, 0.16);
}

.tribute-modal__key {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(22, 14, 10, 0.78);
  color: var(--text);
  font-family: "Spectral", serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tribute-modal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.tribute-modal__copybutton {
  justify-self: center;
}

.tribute-modal__feedback {
  min-height: 1.8em;
}

.answer-panel {
  position: relative;
  isolation: isolate;
}

.answer-panel::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background:
    radial-gradient(circle at 18% 52%, rgba(214, 171, 104, 0.16), transparent 28%),
    radial-gradient(circle at 48% 30%, rgba(125, 59, 33, 0.16), transparent 30%),
    radial-gradient(circle at 76% 58%, rgba(227, 209, 166, 0.1), transparent 24%);
  opacity: 0;
  transform: translateX(-8%) scale(0.96);
  filter: blur(16px);
  pointer-events: none;
  z-index: 0;
}

.answer-panel > * {
  position: relative;
  z-index: 1;
}

.oracle-header {
  margin-bottom: 18px;
  min-height: clamp(110px, 16vh, 150px);
}

.oracle-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.pix-toggle,
.sound-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(208, 163, 90, 0.14);
  border-radius: 999px;
  background: rgba(13, 9, 7, 0.18);
  color: rgba(234, 223, 207, 0.78);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.pix-toggle:hover,
.sound-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(208, 163, 90, 0.28);
  background: rgba(13, 9, 7, 0.3);
  color: rgba(234, 223, 207, 0.92);
}

.pix-toggle:focus-visible,
.sound-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(208, 163, 90, 0.08);
  border-color: rgba(208, 163, 90, 0.4);
}

.pix-toggle__icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pix-toggle__icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) saturate(100%) invert(89%) sepia(11%) saturate(377%) hue-rotate(356deg) brightness(98%) contrast(90%);
  opacity: 0.92;
}

.sound-toggle__icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sound-toggle__icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.sound-toggle__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle__icon--on {
  opacity: 1;
  transform: scale(1);
}

.sound-toggle__icon--off {
  opacity: 0;
  transform: scale(0.92);
  color: var(--danger);
}

.sound-toggle.is-muted {
  color: rgba(201, 186, 164, 0.6);
  border-color: rgba(216, 124, 104, 0.24);
}

.sound-toggle.is-muted .sound-toggle__icon--on {
  opacity: 0;
  transform: scale(0.92);
}

.sound-toggle.is-muted .sound-toggle__icon--off {
  opacity: 1;
  transform: scale(1);
}

.status-text {
  margin: 12px 0 0;
}

.oracle-form {
  display: grid;
  gap: 14px;
  margin-top: -20px;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: clamp(150px, 22vh, 184px);
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(208, 163, 90, 0.2);
  background: rgba(7, 5, 4, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.7;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea:focus {
  border-color: rgba(208, 163, 90, 0.65);
  box-shadow: 0 0 0 4px rgba(208, 163, 90, 0.08);
  transform: translateY(-1px);
}

textarea::placeholder {
  color: rgba(233, 216, 189, 0.42);
}

.invoke-button {
  justify-self: start;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(208, 163, 90, 0.32);
  background: linear-gradient(180deg, rgba(165, 111, 50, 0.22), rgba(71, 39, 19, 0.76));
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.invoke-button:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 163, 90, 0.56);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.answer-text {
  margin: 10px 0 0;
  min-height: 72px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  transform: translateY(0);
  opacity: 1;
}

.answer-text.revealed {
  color: var(--text);
  font-size: 1.2rem;
}

.answer-text.rejected {
  color: #efc1b6;
}

.answer-panel.is-revealing::before {
  animation: answerMist 1.25s ease-out;
}

.answer-panel.is-revealing .answer-text {
  animation: answerMaterialize 0.85s ease-out;
}

@keyframes sigilPulse {
  0%,
  100% {
    transform: scale(0.95) rotate(0deg);
    opacity: 0.14;
  }

  50% {
    transform: scale(1.04) rotate(8deg);
    opacity: 0.28;
  }
}

@keyframes answerMist {
  0% {
    opacity: 0;
    transform: translateX(-10%) scale(0.94);
  }

  30% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translateX(8%) scale(1.03);
  }
}

@keyframes answerMaterialize {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(8px);
  }

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

@keyframes mobileManifestationIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
    filter: blur(10px);
  }

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

@keyframes pageRattle {
  0% {
    transform: translate3d(0, 0, 0);
  }

  8% {
    transform: translate3d(-7px, 3px, 0);
  }

  16% {
    transform: translate3d(7px, -4px, 0);
  }

  24% {
    transform: translate3d(-6px, 4px, 0);
  }

  32% {
    transform: translate3d(6px, -3px, 0);
  }

  44% {
    transform: translate3d(-4px, 2px, 0);
  }

  58% {
    transform: translate3d(3px, -2px, 0);
  }

  72% {
    transform: translate3d(-2px, 1px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sealBloom {
  0% {
    transform: scale(1);
    box-shadow:
      inset 0 0 20px rgba(208, 163, 90, 0.08),
      0 0 0 rgba(208, 163, 90, 0);
    filter: brightness(1);
  }

  16% {
    transform: scale(1.08);
    box-shadow:
      inset 0 0 26px rgba(208, 163, 90, 0.2),
      0 0 38px rgba(208, 163, 90, 0.28);
    filter: brightness(1.12);
  }

  42% {
    transform: scale(1.14);
    box-shadow:
      inset 0 0 30px rgba(208, 163, 90, 0.28),
      0 0 56px rgba(208, 163, 90, 0.38);
    filter: brightness(1.24);
  }

  76% {
    transform: scale(1.07);
    box-shadow:
      inset 0 0 28px rgba(208, 163, 90, 0.22),
      0 0 42px rgba(208, 163, 90, 0.24);
    filter: brightness(1.12);
  }

  100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 26px rgba(208, 163, 90, 0.18),
      0 0 34px rgba(208, 163, 90, 0.16);
    filter: brightness(1);
  }
}

@keyframes chamberUnseal {
  0% {
    opacity: 1;
    filter: blur(0);
    background:
      linear-gradient(180deg, rgba(15, 10, 8, 0.46), rgba(12, 8, 6, 0.92)),
      radial-gradient(circle at center, rgba(208, 163, 90, 0.08), transparent 45%);
  }

  38% {
    opacity: 1;
    filter: blur(0);
    background:
      linear-gradient(180deg, rgba(22, 14, 9, 0.5), rgba(11, 7, 5, 0.9)),
      radial-gradient(circle at center, rgba(208, 163, 90, 0.14), transparent 52%);
  }

  74% {
    opacity: 0.96;
    filter: blur(1px);
    background:
      linear-gradient(180deg, rgba(22, 14, 9, 0.44), rgba(11, 7, 5, 0.74)),
      radial-gradient(circle at center, rgba(208, 163, 90, 0.18), transparent 56%);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    background:
      linear-gradient(180deg, rgba(22, 14, 9, 0), rgba(11, 7, 5, 0)),
      radial-gradient(circle at center, rgba(208, 163, 90, 0), transparent 60%);
  }
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(1080px, calc(100% - 24px));
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-height: 860px) and (min-width: 901px) {
  .page-shell {
    padding: 16px 0;
  }

  .hero-card,
  .oracle-card,
  .guide-card {
    padding: 24px;
  }

  .hero-card,
  .oracle-card {
    min-height: 590px;
    justify-content: center;
  }

  .brand-mark {
    width: 78px;
    height: 78px;
  }

  .brand-mark img {
    width: 50px;
    height: 50px;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .lead,
  .ritual-copy,
  .status-text,
  .answer-text,
  .guide-list,
  .guide-note {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .oracle-header {
    min-height: 118px;
    margin-bottom: 12px;
  }

  .oracle-form {
    margin-top: -12px;
    gap: 12px;
  }

  textarea {
    min-height: 156px;
  }

  .ritual-box,
  .answer-panel,
  .guide-note,
  .guide-panel {
    margin-top: 16px;
    padding: 18px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    display: block;
    align-items: stretch;
    padding: 24px 0 120px;
  }

  .hero-card,
  .oracle-card {
    min-height: auto;
    justify-content: flex-start;
    padding: 24px;
  }

  body.mobile-oracle-collapsed .oracle-card,
  body.mobile-oracle-entering .oracle-card {
    display: none;
  }

  body.mobile-oracle-open .oracle-card {
    display: flex;
    animation: mobileOracleFadeIn 1200ms ease forwards;
  }

  .answer-panel {
    display: none;
  }

  body.mobile-oracle-entering .hero-card {
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
  }

  body.mobile-oracle-open .hero-card {
    display: none;
  }

  .hero-card {
    transition:
      opacity 520ms ease,
      transform 520ms ease;
  }

  .oracle-card {
    margin-top: 0;
  }

  .oracle-lock {
    inset: 0;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .oracle-heading {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .oracle-heading__seal {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
    border: 1px solid rgba(208, 163, 90, 0.2);
    background: rgba(12, 8, 6, 0.72);
    box-shadow: inset 0 0 18px rgba(208, 163, 90, 0.08);
  }

  .oracle-heading__seal img {
    width: 28px;
    height: 28px;
    display: block;
  }

  .oracle-label {
    font-size: 0.94rem;
    letter-spacing: 0.24em;
  }

  .oracle-controls {
    top: 17px;
    right: 17px;
    gap: 7px;
  }

  .pix-toggle,
  .sound-toggle {
    width: 30px;
    height: 30px;
  }

  .pix-toggle__icon img,
  .sound-toggle__icon svg {
    width: 14px;
    height: 14px;
  }

  .oracle-form {
    margin-top: -10px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .sigil {
    width: 250px;
    opacity: 0.14;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-row {
    align-items: flex-start;
  }

  .guide-hero {
    align-items: flex-start;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .consent-banner {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 16px;
  }

  .consent-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tribute-modal__dialog {
    padding: 28px 20px 22px;
  }

  .tribute-modal__key {
    font-size: 0.94rem;
  }
}

@keyframes mobileOracleFadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

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

.initiation-page-gate {
  overflow: hidden;
}

.initiation-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.initiation-gate__panel {
  position: relative;
  width: min(100%, 560px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(208, 163, 90, 0.2);
  background:
    linear-gradient(180deg, rgba(61, 38, 22, 0.24), transparent 34%),
    rgba(22, 14, 10, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.initiation-gate__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(218, 184, 127, 0.1);
  border-radius: 18px;
  pointer-events: none;
}

.initiation-gate .brand-mark {
  margin: 0 auto 20px;
}

.initiation-gate__title {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.initiation-gate__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.guide-note-formula {
  margin-top: 0;
  margin-bottom: 24px;
  border-left-color: rgba(208, 163, 90, 0.66);
}

.initiation-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.initiation-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(208, 163, 90, 0.22);
  background: rgba(8, 5, 4, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.initiation-form input:focus {
  border-color: rgba(208, 163, 90, 0.58);
  box-shadow: 0 0 0 4px rgba(208, 163, 90, 0.08);
}

.initiation-form .invoke-button {
  justify-self: stretch;
}

.initiation-feedback {
  margin: 0;
  min-height: 1.8em;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .initiation-gate__panel {
    padding: 24px;
  }

  .initiation-gate__title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
}
.grimorio-page.grimorio-checking main {
  visibility: hidden;
}

.initiation-form.is-submitting .invoke-button {
  opacity: 0.72;
  pointer-events: none;
}

.guide-note-tribute {
  margin-top: 22px;
  margin-bottom: 24px;
  border-left-color: rgba(208, 163, 90, 0.82);
  background:
    linear-gradient(180deg, rgba(76, 46, 24, 0.22), transparent 60%),
    rgba(13, 9, 7, 0.64);
  box-shadow: inset 0 0 0 1px rgba(208, 163, 90, 0.08);
}

.guide-note-tribute .ritual-title {
  margin-bottom: 8px;
}
