:root {
  color-scheme: light;
  --ink: #332a31;
  --muted: #71646b;
  --paper: #f7f0e5;
  --paper-deep: #eadfce;
  --plum: #2f2430;
  --plum-soft: #4b3949;
  --clay: #b9613f;
  --clay-deep: #91462f;
  --gold: #d89c4f;
  --line: rgba(77, 54, 53, 0.18);
  --shadow: 0 18px 50px rgba(52, 35, 41, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(216, 156, 79, 0.24), transparent 34rem),
    radial-gradient(circle at 105% 30%, rgba(185, 97, 63, 0.15), transparent 28rem),
    var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(2.5rem, env(safe-area-inset-bottom));
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: 1.45rem 1.35rem 1.3rem;
  color: #fffaf1;
  background: var(--plum);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.masthead::after {
  position: absolute;
  right: -2.5rem;
  bottom: -4.5rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(242, 200, 121, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgba(242, 200, 121, 0.06), 0 0 0 3rem rgba(242, 200, 121, 0.035);
  content: "";
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  color: #f2c879;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.masthead h1,
.detail-title {
  font-family: Georgia, "Times New Roman", serif;
}

.masthead h1 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.05rem, 9vw, 3.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.tagline {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin: 0.85rem 0 0;
  color: #eadfce;
  font-size: 1rem;
  line-height: 1.45;
}

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.8rem 0 0.85rem;
  padding: 0 0.2rem;
}

.list-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 780;
}

.list-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.character-card {
  position: relative;
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 8px 24px rgba(67, 43, 42, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.character-card::before {
  position: absolute;
  top: -2.3rem;
  right: -2rem;
  width: 6rem;
  height: 6rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 50%;
  content: "";
}

.character-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.character-number {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-style: italic;
}

.character-card h3 {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 4.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.08;
}

.character-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.detail-shell {
  width: min(100%, 54rem);
  margin: 0 auto;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem max(3rem, env(safe-area-inset-bottom));
}

.detail-nav {
  position: sticky;
  z-index: 10;
  top: max(0.55rem, env(safe-area-inset-top));
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.95rem;
  color: #fffaf1;
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
  background: rgba(47, 36, 48, 0.95);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(47, 36, 48, 0.16);
  backdrop-filter: blur(10px);
}

.detail-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 1.65rem 1.3rem 1.45rem;
  color: #fffaf1;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent));
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.detail-hero::after {
  position: absolute;
  top: -3.7rem;
  right: -3.7rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255, 250, 241, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 1.4rem rgba(255, 250, 241, 0.05), 0 0 0 2.8rem rgba(255, 250, 241, 0.03);
  content: "";
}

.detail-index {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  color: rgba(255, 250, 241, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
}

.detail-title {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.05rem, 10vw, 4.1rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.detail-concept {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  color: #fff2de;
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.content-card {
  padding: 1.15rem;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 8px 24px rgba(67, 43, 42, 0.055);
}

.content-card h2,
.polarity-card h2 {
  margin: 0 0 0.65rem;
  color: var(--clay-deep);
  font-size: 0.86rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-card p,
.polarity-card p,
.area p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.66;
}

.message-card {
  color: #fffaf1;
  background: var(--plum);
  border-color: var(--plum);
}

.message-card h2 {
  color: #f2c879;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  padding: 0.4rem 0.66rem;
  color: var(--plum-soft);
  font-size: 0.86rem;
  font-weight: 680;
  background: var(--paper-deep);
  border-radius: 999px;
}

.polarity-grid {
  display: grid;
  gap: 0.9rem;
}

.polarity-card {
  padding: 1.15rem;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.polarity-card.shadow {
  color: #f9efe4;
  background: var(--plum-soft);
  border-color: var(--plum-soft);
}

.polarity-card.shadow h2 {
  color: #f2c879;
}

.question-card {
  padding-left: 1.25rem;
  border-left: 0.32rem solid var(--accent);
}

.question-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 5.4vw, 1.55rem);
  font-style: italic;
  line-height: 1.45;
}

.areas-card {
  padding-bottom: 0.25rem;
}

.area {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.area:first-of-type {
  border-top: 0;
}

.area h3 {
  margin: 0 0 0.42rem;
  color: var(--ink);
  font-size: 1rem;
}

.footer-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.not-found {
  display: grid;
  min-height: 70vh;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.not-found a {
  display: inline-flex;
  justify-self: center;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  color: white;
  font-weight: 720;
  text-decoration: none;
  background: var(--plum);
  border-radius: 999px;
}

@media (hover: hover) {
  .character-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 42%, transparent);
    box-shadow: 0 14px 30px rgba(67, 43, 42, 0.11);
  }
}

@media (min-width: 42rem) {
  .app-shell {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .masthead {
    padding: 2.4rem 2.3rem 2.2rem;
  }

  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .character-card {
    min-height: 12rem;
    padding: 1.25rem;
  }

  .detail-shell {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .detail-hero {
    padding: 2.25rem 2rem 2rem;
  }

  .content-card,
  .polarity-card {
    padding: 1.45rem;
  }

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

@media (min-width: 64rem) {
  .character-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .character-card {
    transition: none;
  }
}

/* Identidade mística */

html {
  background: #18131d;
}

body {
  position: relative;
  color: #f7eddf;
  background:
    radial-gradient(circle at 18% -8%, rgba(155, 83, 59, 0.34), transparent 27rem),
    radial-gradient(circle at 94% 16%, rgba(118, 80, 126, 0.28), transparent 25rem),
    radial-gradient(circle at 45% 108%, rgba(179, 117, 55, 0.18), transparent 32rem),
    linear-gradient(160deg, #18131d 0%, #211724 48%, #17131c 100%);
  background-attachment: fixed;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(238, 197, 126, 0.32) 0 0.75px, transparent 1px),
    radial-gradient(circle, rgba(255, 245, 226, 0.14) 0 0.6px, transparent 0.9px);
  background-position: 0 0, 22px 28px;
  background-size: 58px 58px, 73px 73px;
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.app-shell {
  padding-top: max(1.15rem, env(safe-area-inset-top));
}

.masthead {
  display: grid;
  min-height: 15.5rem;
  align-items: end;
  padding: 1.7rem 1.45rem 1.55rem;
  background:
    radial-gradient(circle at 82% 26%, rgba(222, 168, 87, 0.18), transparent 9rem),
    linear-gradient(145deg, rgba(80, 47, 58, 0.92), rgba(29, 21, 33, 0.98) 62%);
  border: 1px solid rgba(224, 175, 96, 0.56);
  border-radius: 1.55rem;
  box-shadow:
    0 24px 70px rgba(4, 2, 7, 0.44),
    inset 0 0 0 0.34rem rgba(255, 245, 226, 0.025),
    inset 0 0 0 0.42rem rgba(224, 175, 96, 0.14);
}

.masthead::before {
  position: absolute;
  inset: 0.72rem;
  border: 1px solid rgba(230, 187, 116, 0.2);
  border-radius: 1.08rem;
  content: "";
  pointer-events: none;
}

.masthead::after {
  right: -3.5rem;
  bottom: -5.5rem;
  width: 14rem;
  height: 14rem;
  border-color: rgba(242, 200, 121, 0.2);
  box-shadow:
    0 0 0 1.8rem rgba(242, 200, 121, 0.04),
    0 0 0 3.8rem rgba(242, 200, 121, 0.022);
}

.masthead-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: #e4b56b;
  letter-spacing: 0.19em;
}

.eyebrow::before,
.eyebrow::after {
  color: rgba(241, 202, 135, 0.82);
  content: "✦";
  font-size: 0.66rem;
}

.eyebrow::before {
  margin-right: 0.55rem;
}

.eyebrow::after {
  margin-left: 0.55rem;
}

.masthead h1 {
  color: #fff8ed;
  text-shadow: 0 3px 20px rgba(5, 2, 8, 0.38);
}

.tagline {
  color: #dbcdbf;
}

.mystic-seal {
  position: absolute;
  z-index: 2;
  top: 1.75rem;
  right: 1.7rem;
  display: grid;
  width: 4.35rem;
  height: 4.35rem;
  place-items: center;
  color: #edc57f;
  background: rgba(23, 16, 27, 0.48);
  border: 1px solid rgba(231, 186, 111, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 0 0.38rem rgba(231, 186, 111, 0.045),
    0 0 2rem rgba(220, 152, 75, 0.18),
    inset 0 0 1.2rem rgba(220, 152, 75, 0.12);
}

.mystic-seal::before,
.mystic-seal::after {
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(231, 186, 111, 0.2);
  border-radius: 50%;
  content: "";
}

.mystic-seal::after {
  inset: -0.74rem 1.47rem;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
}

.mystic-seal span {
  font-size: 1.28rem;
  text-shadow: 0 0 1rem rgba(238, 192, 112, 0.78);
  animation: seal-glow 3.6s ease-in-out infinite;
}

@keyframes seal-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.92) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.08) rotate(18deg);
  }
}

.list-heading {
  margin-top: 2rem;
  color: #f6ebdd;
}

.list-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.list-heading h2::before {
  margin-right: 0.5rem;
  color: #d9a85e;
  content: "✦";
  font-size: 0.68rem;
  vertical-align: 0.15em;
}

.list-heading p {
  color: #b9a9b3;
}

.character-grid {
  gap: 0.9rem;
}

.character-card {
  min-height: 0;
  aspect-ratio: 1;
  color: #f9efe3;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 23%, #211924), rgba(24, 18, 28, 0.96) 70%);
  border-color: color-mix(in srgb, var(--accent) 56%, rgba(226, 178, 105, 0.2));
  border-radius: 1.3rem;
  box-shadow:
    0 15px 35px rgba(4, 2, 7, 0.28),
    inset 0 0 0 0.3rem rgba(255, 248, 237, 0.018),
    inset 0 0 0 0.36rem color-mix(in srgb, var(--accent) 18%, transparent);
}

.character-card::before {
  top: -2.65rem;
  right: -2.3rem;
  width: 7rem;
  height: 7rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 0 2.5rem color-mix(in srgb, var(--accent) 12%, transparent);
}

.character-card::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(238, 204, 149, 0.09);
  border-radius: 0.92rem;
  content: "";
  pointer-events: none;
}

.character-number {
  position: absolute;
  z-index: 3;
  top: 0.9rem;
  left: 1rem;
  color: #dcb273;
  font-size: 1.35rem;
}

.character-image-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  margin: -0.2rem -0.35rem 0;
}

.character-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 0.45rem 0.7rem rgba(4, 2, 7, 0.38));
}

.character-copy {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.character-card h3 {
  color: #fff8ee;
  margin-top: 0.35rem;
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(4, 2, 7, 0.34);
}

.character-card p {
  color: color-mix(in srgb, var(--accent) 36%, #f0c985);
  letter-spacing: 0.095em;
}

.detail-nav {
  color: #f8ead8;
  background: rgba(27, 20, 31, 0.92);
  border: 1px solid rgba(221, 169, 91, 0.38);
  box-shadow: 0 10px 30px rgba(4, 2, 7, 0.34);
}

.detail-hero {
  padding: 2rem 1.45rem 1.65rem;
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 210, 153, 0.12), transparent 8rem),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-deep) 70%, #211722), color-mix(in srgb, var(--accent) 52%, #271b2b));
  border: 1px solid color-mix(in srgb, var(--accent) 42%, #d9a75f);
  border-radius: 1.55rem;
  box-shadow:
    0 24px 60px rgba(4, 2, 7, 0.38),
    inset 0 0 0 0.38rem rgba(255, 248, 237, 0.025),
    inset 0 0 0 0.45rem rgba(229, 181, 109, 0.11);
}

.detail-hero::before {
  position: absolute;
  inset: 0.72rem;
  border: 1px solid rgba(247, 217, 165, 0.13);
  border-radius: 1.08rem;
  content: "";
  pointer-events: none;
}

.detail-hero::after {
  border-color: rgba(245, 213, 159, 0.2);
  box-shadow:
    0 0 0 1.4rem rgba(245, 213, 159, 0.035),
    0 0 0 2.8rem rgba(245, 213, 159, 0.018);
}

.detail-glyph {
  position: absolute;
  z-index: 2;
  top: 1.6rem;
  right: 1.55rem;
  color: #edc987;
  font-size: 1rem;
  text-shadow: 0 0 1.2rem rgba(244, 198, 118, 0.9);
}

.detail-index {
  color: #d9c6b7;
}

.detail-title {
  color: #fff8ed;
  text-shadow: 0 3px 20px rgba(4, 2, 7, 0.42);
}

.detail-concept {
  color: #efc982;
}

.content-stack {
  gap: 1rem;
  margin-top: 1.15rem;
}

.content-card,
.polarity-card {
  color: #392e35;
  background:
    linear-gradient(145deg, rgba(255, 251, 244, 0.97), rgba(238, 225, 205, 0.96));
  border-color: rgba(216, 164, 88, 0.3);
  border-radius: 1.22rem;
  box-shadow:
    0 14px 32px rgba(4, 2, 7, 0.2),
    inset 0 0 0 0.28rem rgba(255, 255, 255, 0.18);
}

.content-card h2,
.polarity-card h2 {
  color: #8f4c35;
  letter-spacing: 0.12em;
}

.content-card h2::before,
.polarity-card h2::before {
  margin-right: 0.45rem;
  color: #b47a3d;
  content: "✦";
  font-size: 0.58rem;
  vertical-align: 0.16em;
}

.message-card {
  position: relative;
  color: #f8eddf;
  background:
    radial-gradient(circle at 95% 0%, rgba(189, 117, 61, 0.2), transparent 12rem),
    linear-gradient(145deg, #3d293b, #211823);
  border-color: rgba(224, 174, 96, 0.52);
  box-shadow:
    0 18px 40px rgba(4, 2, 7, 0.3),
    inset 0 0 0 0.3rem rgba(224, 174, 96, 0.04);
}

.message-card h2,
.message-card h2::before {
  color: #efc77f;
}

.keyword-list li {
  color: #513941;
  background: rgba(197, 139, 73, 0.14);
  border: 1px solid rgba(158, 98, 55, 0.18);
}

.polarity-card.shadow {
  color: #f8ecdf;
  background:
    radial-gradient(circle at 88% 10%, rgba(150, 91, 116, 0.2), transparent 9rem),
    linear-gradient(145deg, #493647, #2b202e);
  border-color: rgba(215, 165, 96, 0.38);
  box-shadow: 0 14px 32px rgba(4, 2, 7, 0.24);
}

.polarity-card.shadow h2,
.polarity-card.shadow h2::before {
  color: #e9bd77;
}

.question-card {
  background:
    linear-gradient(90deg, rgba(193, 123, 57, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(255, 251, 244, 0.98), rgba(238, 225, 205, 0.97));
  border-left: 0.32rem solid color-mix(in srgb, var(--accent) 72%, #d39b52);
}

.question-card p {
  color: #47323b;
}

.area {
  border-top-color: rgba(122, 84, 72, 0.17);
}

.area h3 {
  color: #4b333b;
}

.footer-note {
  color: #ae9ba7;
  letter-spacing: 0.04em;
}

.footer-note::before,
.footer-note::after {
  margin: 0 0.55rem;
  color: #c39453;
  content: "✦";
  font-size: 0.58rem;
}

.not-found {
  color: #f8eddf;
}

.not-found a {
  background: #7a4639;
  border: 1px solid rgba(231, 183, 108, 0.46);
}

@media (hover: hover) {
  .character-card:hover {
    border-color: color-mix(in srgb, var(--accent) 56%, #e7b469);
    box-shadow:
      0 20px 45px rgba(4, 2, 7, 0.38),
      0 0 2.1rem color-mix(in srgb, var(--accent) 11%, transparent),
      inset 0 0 0 0.36rem color-mix(in srgb, var(--accent) 20%, transparent);
  }
}

@media (min-width: 42rem) {
  .masthead {
    min-height: 18rem;
    padding: 2.6rem 2.45rem 2.3rem;
  }

  .mystic-seal {
    top: 2.4rem;
    right: 2.6rem;
    width: 5.2rem;
    height: 5.2rem;
  }

  .detail-hero {
    padding: 2.55rem 2.2rem 2.15rem;
  }

  .detail-glyph {
    top: 2.1rem;
    right: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mystic-seal span {
    animation: none;
  }
}

/* Página inicial e guias da V1 */

.home-shell {
  width: min(100%, 62rem);
}

.masthead-home {
  min-height: 19rem;
}

.oracle-question {
  position: relative;
  z-index: 2;
  max-width: 25rem;
  margin: 1.35rem 0 0;
  padding-top: 1.05rem;
  color: #f4d9aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 5.6vw, 1.65rem);
  font-style: italic;
  line-height: 1.35;
  border-top: 1px solid rgba(231, 186, 111, 0.24);
}

.home-menu {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.home-choice {
  position: relative;
  display: grid;
  min-height: 6.8rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 1.05rem;
  color: #f9efe3;
  text-decoration: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(203, 144, 72, 0.1), transparent 9rem),
    linear-gradient(145deg, rgba(58, 39, 57, 0.96), rgba(29, 22, 34, 0.98));
  border: 1px solid rgba(218, 166, 89, 0.35);
  border-radius: 1.25rem;
  box-shadow: 0 14px 34px rgba(4, 2, 7, 0.24);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-choice::after {
  position: absolute;
  inset: 0.46rem;
  border: 1px solid rgba(243, 212, 161, 0.07);
  border-radius: 0.9rem;
  content: "";
  pointer-events: none;
}

.home-choice:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.choice-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.05rem;
  height: 3.05rem;
  place-items: center;
  color: #edc47e;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  background: rgba(20, 14, 24, 0.56);
  border: 1px solid rgba(228, 178, 102, 0.34);
  border-radius: 50%;
}

.home-choice > span:last-child {
  position: relative;
  z-index: 1;
}

.home-choice strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-choice small {
  display: block;
  margin-top: 0.34rem;
  color: #cbbcc4;
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-note {
  max-width: 35rem;
  margin: 1.1rem auto 0;
  color: #aa99a5;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 41.99rem) {
  .masthead-home .masthead-copy {
    padding-top: 3.55rem;
  }

  .masthead-home .mystic-seal {
    top: 1.3rem;
    right: 1.35rem;
    width: 3.8rem;
    height: 3.8rem;
  }
}

.section-intro {
  position: relative;
  overflow: hidden;
  padding: 1.55rem 1.25rem 1.4rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(202, 141, 69, 0.13), transparent 12rem),
    linear-gradient(145deg, rgba(66, 43, 62, 0.96), rgba(29, 22, 34, 0.98));
  border: 1px solid rgba(218, 166, 89, 0.38);
  border-radius: 1.35rem;
  box-shadow: 0 18px 44px rgba(4, 2, 7, 0.27);
}

.section-intro::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(240, 207, 153, 0.08);
  border-radius: 0.95rem;
  content: "";
  pointer-events: none;
}

.section-intro .eyebrow,
.section-intro h1,
.section-intro > p:last-child {
  position: relative;
  z-index: 1;
}

.section-intro h1 {
  max-width: 18ch;
  margin: 0;
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 3.45rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  outline: none;
}

.section-intro > p:last-child {
  max-width: 37rem;
  margin: 0.85rem 0 0;
  color: #d3c4cc;
  font-size: 0.96rem;
  line-height: 1.55;
}

.compact-heading {
  margin-top: 1.35rem;
}

.guide-shell,
.spreads-shell {
  width: min(100%, 58rem);
}

.ritual-steps {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.ritual-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.9rem;
  padding: 1.05rem;
  color: #392e35;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.98), rgba(238, 225, 205, 0.97));
  border: 1px solid rgba(216, 164, 88, 0.3);
  border-radius: 1.15rem;
  box-shadow: 0 12px 28px rgba(4, 2, 7, 0.18);
}

.ritual-steps > li > span {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: #fff4e3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  background: #784737;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.24rem rgba(255, 244, 227, 0.06);
}

.ritual-steps strong {
  display: block;
  color: #4a323a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.ritual-steps p {
  margin: 0.28rem 0 0;
  color: #65565c;
  font-size: 0.94rem;
  line-height: 1.52;
}

.physical-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding: 1.2rem;
  color: #f7ebdd;
  background:
    radial-gradient(circle at 100% 0%, rgba(189, 117, 61, 0.2), transparent 10rem),
    linear-gradient(145deg, #3d293b, #211823);
  border: 1px solid rgba(224, 174, 96, 0.48);
  border-radius: 1.18rem;
  box-shadow: 0 14px 34px rgba(4, 2, 7, 0.26);
}

.physical-note > span {
  color: #efc77f;
  text-shadow: 0 0 1rem rgba(244, 198, 118, 0.75);
}

.physical-note h2 {
  margin: 0;
  color: #f3cd8c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.physical-note p {
  margin: 0.34rem 0 0;
  color: #d8c9d0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.spreads-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.spread-card {
  padding: 1.15rem;
  color: #392e35;
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.99), rgba(238, 225, 205, 0.98));
  border: 1px solid rgba(216, 164, 88, 0.32);
  border-radius: 1.28rem;
  box-shadow: 0 16px 36px rgba(4, 2, 7, 0.22);
}

.spread-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.spread-heading p {
  margin: 0 0 0.18rem;
  color: #94543c;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spread-heading h2 {
  margin: 0;
  color: #412d36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62rem;
  font-weight: 600;
  line-height: 1.1;
}

.count-pill {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  color: #fff4e3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  background: #6b3f36;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.26rem rgba(255, 244, 227, 0.06);
}

.spread-description {
  margin: 0.72rem 0 0;
  color: #68585f;
  font-size: 0.96rem;
  line-height: 1.55;
}

.spread-board {
  min-height: 10rem;
  margin-top: 1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(195, 125, 59, 0.17), transparent 10rem),
    linear-gradient(145deg, #302331, #1e1723);
  border: 1px solid rgba(209, 158, 84, 0.36);
  border-radius: 1.05rem;
  box-shadow: inset 0 0 0 0.3rem rgba(241, 207, 151, 0.025);
}

.spread-single {
  display: grid;
  place-items: center;
}

.spread-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0.48rem;
}

.spread-crossing {
  display: grid;
  min-height: 19rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.position-token {
  display: grid;
  min-width: 0;
  min-height: 5.5rem;
  place-content: center;
  padding: 0.5rem 0.28rem;
  color: #f9ead5;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(143, 77, 58, 0.84), rgba(74, 45, 62, 0.92));
  border: 1px solid rgba(237, 191, 117, 0.52);
  border-radius: 0.92rem;
  box-shadow:
    0 8px 20px rgba(4, 2, 7, 0.28),
    inset 0 0 0 0.24rem rgba(255, 243, 224, 0.035);
}

.spread-single .position-token {
  width: 6.4rem;
}

.position-token span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1;
}

.position-token small {
  margin-top: 0.4rem;
  color: #e2c9b0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.position-one {
  grid-area: 2 / 2;
}

.position-two {
  grid-area: 2 / 1;
}

.position-three {
  grid-area: 2 / 3;
}

.position-four {
  grid-area: 3 / 2;
}

.position-five {
  grid-area: 1 / 2;
}

.layout-caption {
  margin: 0.55rem 0 0;
  color: #817178;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

.position-key {
  display: grid;
  gap: 0.48rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.position-key li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(136, 78, 55, 0.07);
  border-radius: 0.72rem;
}

.position-key strong {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: #fff6e8;
  font-family: Georgia, "Times New Roman", serif;
  background: #80503d;
  border-radius: 50%;
}

.position-key span {
  color: #513e46;
  font-size: 0.9rem;
  line-height: 1.3;
}

.question-suggestions {
  margin-top: 1rem;
  padding: 1rem;
  color: #f6eadc;
  background: linear-gradient(145deg, #3c293b, #251b29);
  border: 1px solid rgba(218, 166, 89, 0.34);
  border-radius: 0.95rem;
}

.question-suggestions h3 {
  margin: 0;
  color: #efc982;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
}

.question-suggestions ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
}

.question-suggestions li {
  color: #d9cad1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.open-spread-link {
  display: flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.78rem 0.95rem;
  color: #fff5e6;
  font-weight: 760;
  text-decoration: none;
  background: linear-gradient(135deg, #7b4939, #523342);
  border: 1px solid rgba(218, 166, 89, 0.5);
  border-radius: 0.9rem;
}

.open-spread-link span {
  color: #f1c77f;
  font-size: 1.15rem;
}

.direct-answer-steps {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.direct-answer-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.72rem;
  padding: 0.6rem 0.68rem;
  background: rgba(130, 76, 57, 0.07);
  border-radius: 0.78rem;
}

.direct-answer-steps span {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  color: #fff5e7;
  font-family: Georgia, "Times New Roman", serif;
  background: #7a4939;
  border-radius: 50%;
}

.direct-answer-steps p {
  margin: 0;
  color: #56454c;
  font-size: 0.94rem;
  line-height: 1.4;
}

.direct-answer-tool {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, #352637, #211923);
  border: 1px solid rgba(219, 168, 89, 0.4);
  border-radius: 1rem;
}

.direct-answer-tool label {
  display: block;
  margin-bottom: 0.58rem;
  color: #f2cb88;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.direct-answer-tool select {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.7rem 2.6rem 0.7rem 0.82rem;
  color: #392e35;
  font: inherit;
  font-size: 1rem;
  background: #fffaf1;
  border: 1px solid rgba(218, 166, 89, 0.58);
  border-radius: 0.78rem;
}

.direct-answer-tool select:focus-visible {
  outline: 0.18rem solid rgba(242, 200, 121, 0.55);
  outline-offset: 0.12rem;
}

.direct-answer-result {
  margin-top: 1rem;
  padding: 1.05rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(224, 174, 96, 0.18), transparent 9rem),
    rgba(255, 248, 236, 0.06);
  border: 1px solid rgba(236, 190, 117, 0.48);
  border-radius: 0.9rem;
}

.direct-answer-result[hidden] {
  display: none;
}

.direct-answer-creature {
  margin: 0;
  color: #d8c9d0;
  font-size: 0.84rem;
  font-weight: 730;
}

.direct-answer-classification {
  margin: 0.38rem 0 0;
  color: #f2c879;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 8vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
}

.direct-answer-explanation {
  max-width: 35rem;
  margin: 0.72rem auto 0;
  color: #f4e8db;
  font-size: 1rem;
  line-height: 1.55;
}

.direct-answer-note {
  margin-top: 1rem;
}

.celestial-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.celestial-symbol {
  position: absolute;
  color: #d8a85f;
  font-family: Georgia, "Times New Roman", "Noto Sans Symbols", serif;
  line-height: 1;
  opacity: 0.09;
  text-shadow: 0 0 1.8rem rgba(224, 173, 91, 0.24);
  user-select: none;
}

#app {
  position: relative;
  z-index: 1;
}

.celestial-star-one {
  top: 8%;
  left: 5%;
  font-size: 1.7rem;
  transform: rotate(12deg);
}

.celestial-sun-one {
  top: 21%;
  right: 4%;
  font-size: 3.8rem;
  opacity: 0.075;
  transform: rotate(-9deg);
}

.celestial-spiral-one {
  top: 45%;
  left: 2%;
  font-size: 3rem;
  opacity: 0.08;
  transform: rotate(-18deg);
}

.celestial-star-two {
  top: 63%;
  right: 7%;
  font-size: 1.9rem;
  transform: rotate(22deg);
}

.celestial-spiral-two {
  top: 80%;
  left: 7%;
  font-size: 4rem;
  opacity: 0.07;
  transform: rotate(14deg);
}

.celestial-sun-two {
  right: 2%;
  bottom: 5%;
  font-size: 3.2rem;
  opacity: 0.07;
  transform: rotate(8deg);
}

.celestial-star-three {
  top: 36%;
  left: 46%;
  font-size: 1rem;
  opacity: 0.06;
}

.celestial-spiral-three {
  top: 12%;
  right: 34%;
  font-size: 1.8rem;
  opacity: 0.065;
  transform: rotate(28deg);
}

@media (hover: hover) {
  .home-choice:hover {
    transform: translateY(-3px);
    border-color: rgba(230, 183, 109, 0.62);
    box-shadow: 0 20px 42px rgba(4, 2, 7, 0.34);
  }
}

@media (min-width: 42rem) {
  .masthead-home {
    min-height: 21rem;
  }

  .home-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-choice {
    min-height: 12rem;
    grid-template-columns: 1fr;
    align-content: space-between;
    padding: 1.25rem;
  }

  .section-intro {
    padding: 2rem 1.8rem 1.8rem;
  }

  .ritual-steps {
    grid-template-columns: 1fr 1fr;
  }

  .spread-card {
    padding: 1.45rem;
  }

  .spread-board {
    padding: 1.25rem;
  }

  .spread-path {
    gap: 0.8rem;
  }

  .position-token {
    min-height: 6.25rem;
  }
}

@media (max-width: 41.99rem) {
  .celestial-symbol {
    opacity: 0.065;
  }

  .celestial-star-three {
    display: none;
  }

  .celestial-sun-one,
  .celestial-spiral-two,
  .celestial-sun-two {
    opacity: 0.055;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-choice {
    transition: none;
  }
}
