:root {
  --bg: #08080f;
  --bg-deep: #05050a;
  --surface: rgba(19, 18, 31, 0.72);
  --surface-strong: rgba(24, 22, 38, 0.94);
  --line: rgba(223, 202, 154, 0.17);
  --line-strong: rgba(232, 207, 150, 0.38);
  --gold: #d8b86a;
  --gold-light: #f2d999;
  --paper: #f1e7ce;
  --ink: #24202a;
  --text: #f5f0e7;
  --muted: #a9a2b3;
  --theme: #a782f7;
  --theme-rgb: 167, 130, 247;
  --theme-deep: #372264;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 22%, rgba(87, 66, 133, 0.16), transparent 28%),
    linear-gradient(145deg, #06060c 0%, #0e0c19 46%, #07070d 100%);
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 8, 0.45), transparent 27%, transparent 73%, rgba(4, 4, 8, 0.45));
}

.aurora {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  animation: aurora-drift 15s ease-in-out infinite alternate;
}

.aurora-one {
  top: -300px;
  left: -160px;
  background: #65509c;
}

.aurora-two {
  right: -240px;
  bottom: -340px;
  background: var(--theme);
  animation-delay: -7s;
  transition: background 800ms ease;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.stars {
  position: absolute;
  inset: 0;
}

.star-dot {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 244, 217, var(--alpha));
  box-shadow: 0 0 calc(var(--size) * 4) rgba(240, 218, 167, 0.44);
  animation: twinkle var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.site-header {
  width: min(1440px, calc(100% - 72px));
  height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(236, 220, 184, 0.09);
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(216, 184, 106, 0.05);
  box-shadow: inset 0 0 16px rgba(216, 184, 106, 0.08);
}

.brand-mark svg {
  width: 24px;
  fill: var(--gold-light);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand small {
  color: #8f8796;
  font-size: 7px;
  letter-spacing: 0.28em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(216, 184, 106, 0.18);
  border-radius: 50%;
  color: #bdb4c4;
  background: rgba(216, 184, 106, 0.025);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-icon-button:hover {
  border-color: rgba(216, 184, 106, 0.42);
  color: var(--gold-light);
  background: rgba(216, 184, 106, 0.07);
}

.header-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.speaker-body {
  fill: currentColor;
  stroke: none;
}

.audio-slash {
  display: none;
}

.sound-toggle.is-muted .audio-waves {
  display: none;
}

.sound-toggle.is-muted .audio-slash {
  display: block;
}

.language-switch {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(216, 184, 106, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.018);
}

.language-switch i {
  width: 1px;
  height: 11px;
  background: rgba(216, 184, 106, 0.18);
}

.language-option {
  border: 0;
  padding: 0;
  color: #68626f;
  background: none;
  font-size: 9px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color 180ms ease;
}

.language-option.is-active {
  color: var(--gold-light);
}

.nav-button {
  border: 0;
  padding: 8px 0;
  color: #b9b2c1;
  background: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-button:hover {
  color: var(--gold-light);
}

.count-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid rgba(216, 184, 106, 0.35);
  border-radius: 20px;
  color: var(--gold-light);
  background: rgba(216, 184, 106, 0.1);
  font-size: 9px;
}

main {
  width: 100%;
}

.screen {
  display: none;
  min-height: calc(100vh - 154px);
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
  opacity: 0;
}

.screen.is-active {
  display: block;
  animation: screen-in 700ms ease forwards;
}

.hero-copy {
  position: relative;
  z-index: 4;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
  color: #9d8b66;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
}

.eyebrow > span {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 184, 106, 0.48));
}

.eyebrow > span:last-child {
  transform: rotate(180deg);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-copy h1 em {
  color: var(--gold-light);
  font-style: normal;
  text-shadow: 0 0 34px rgba(216, 184, 106, 0.2);
}

.hero-description {
  margin: 18px 0 0;
  color: #9e97a8;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.home-content {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  width: min(1050px, 100%);
  min-height: 470px;
  margin: 20px auto 4px;
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 450px;
  perspective: 1200px;
}

.floor-glow {
  position: absolute;
  top: 67%;
  left: 50%;
  width: 360px;
  height: 105px;
  border: 1px solid rgba(216, 184, 106, 0.18);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(216, 184, 106, 0.17), rgba(95, 68, 127, 0.05) 45%, transparent 70%);
  filter: blur(2px);
  transform: translate(-50%, -50%) rotateX(65deg);
}

.closed-book {
  position: relative;
  z-index: 3;
  width: 234px;
  height: 326px;
  border-radius: 4px 12px 12px 4px;
  transform: rotateY(-13deg) rotateX(2deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  animation: book-float 5s ease-in-out infinite;
}

.book-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #8d6f3b;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 7%, transparent 92%, rgba(0,0,0,.28)),
    radial-gradient(circle at 50% 35%, #383046 0%, #1c1828 55%, #12101b 100%);
  box-shadow:
    -12px 14px 35px rgba(0, 0, 0, 0.62),
    0 0 45px rgba(204, 171, 91, 0.13),
    inset 0 0 0 6px #15121e,
    inset 0 0 0 7px rgba(216, 184, 106, 0.34),
    inset 0 0 38px rgba(0, 0, 0, 0.5);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(216, 184, 106, 0.45);
  border-radius: 3px 8px 8px 3px;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(216, 184, 106, 0.14);
  border-radius: 90px 90px 5px 5px;
}

.book-spine {
  position: absolute;
  z-index: 5;
  top: 3px;
  bottom: 3px;
  left: -14px;
  width: 24px;
  border: 1px solid #755c34;
  border-radius: 6px 1px 1px 6px;
  background: linear-gradient(90deg, #0c0a12, #292234 46%, #14101c);
  box-shadow: inset -3px 0 rgba(216, 184, 106, 0.12), -6px 9px 16px rgba(0,0,0,.4);
  transform: translateZ(-6px);
}

.book-edge {
  position: absolute;
  z-index: -1;
  top: 8px;
  right: -11px;
  bottom: -9px;
  left: 6px;
  border-radius: 3px 12px 11px 4px;
  background: repeating-linear-gradient(0deg, #bfae87 0 1px, #e1d4b6 1px 3px);
  box-shadow: 8px 9px 16px rgba(0,0,0,.45);
  transform: translateZ(-10px);
}

.cover-corner {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-color: rgba(216, 184, 106, 0.5);
}

.corner-tl { top: 20px; left: 20px; border-top: 1px solid; border-left: 1px solid; border-radius: 4px 0 0; }
.corner-tr { top: 20px; right: 20px; border-top: 1px solid; border-right: 1px solid; border-radius: 0 4px 0 0; }
.corner-bl { bottom: 20px; left: 20px; border-bottom: 1px solid; border-left: 1px solid; border-radius: 0 0 0 4px; }
.corner-br { right: 20px; bottom: 20px; border-right: 1px solid; border-bottom: 1px solid; border-radius: 0 0 4px; }

.cover-sigil {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translateX(-50%);
}

.cover-sigil svg {
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(232, 205, 139, 0.65);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 9px rgba(216, 184, 106, 0.16));
}

.cover-sigil .sigil-star {
  fill: rgba(242, 217, 153, 0.82);
  stroke-width: 0;
}

.cover-title {
  position: absolute;
  z-index: 3;
  top: 157px;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cover-title small {
  margin-bottom: 6px;
  color: #9e8959;
  font-size: 7px;
  letter-spacing: 0.5em;
}

.cover-title strong {
  color: #ead39c;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.cover-title span {
  margin-top: 10px;
  color: #9e8a63;
  font-size: 7px;
  letter-spacing: 0.33em;
}

.cover-motto {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 45px;
  left: 0;
  color: #74684f;
  text-align: center;
  font-size: 6px;
  letter-spacing: 0.34em;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(218, 195, 139, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  animation: orbit-rotate 22s linear infinite;
}

.orbit-one {
  width: 390px;
  height: 390px;
}

.orbit-two {
  width: 320px;
  height: 320px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 28s;
}

.orbit i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e3c578;
  box-shadow: 0 0 12px #d8b86a;
}

.orbit-one i:nth-child(1) { top: 12%; left: 18%; }
.orbit-one i:nth-child(2) { right: 3%; bottom: 38%; }
.orbit-one i:nth-child(3) { bottom: 8%; left: 27%; }
.orbit-two i:nth-child(1) { top: -2px; left: 54%; }
.orbit-two i:nth-child(2) { right: 8%; bottom: 18%; }

.floating-symbol {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(216, 184, 106, 0.17);
  border-radius: 50%;
  color: rgba(237, 211, 149, 0.65);
  background: rgba(12, 11, 19, 0.58);
  box-shadow: 0 0 24px rgba(216, 184, 106, 0.08);
  font-family: var(--serif);
  animation: symbol-float 5s ease-in-out infinite;
}

.symbol-heart { top: 19%; left: 5%; animation-delay: -1s; }
.symbol-coin { top: 24%; right: 5%; animation-delay: -3s; }
.symbol-star { bottom: 15%; left: 11%; animation-delay: -2s; }
.symbol-moon { right: 8%; bottom: 18%; animation-delay: -4s; }

.question-card {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 35%),
    rgba(16, 15, 26, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}

.question-card::before,
.question-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(216, 184, 106, 0.45);
}

.question-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.question-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.question-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}

.mini-spark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(216, 184, 106, 0.28);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 12px;
}

.question-heading h2 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.question-heading p {
  margin: 0;
  color: #898390;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.input-shell {
  position: relative;
}

textarea {
  display: block;
  width: 100%;
  min-height: 94px;
  padding: 18px 18px 30px;
  resize: none;
  border: 1px solid rgba(219, 201, 162, 0.14);
  border-radius: 3px;
  color: #eee8dd;
  background: rgba(4, 4, 9, 0.42);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea::placeholder {
  color: #5f5a67;
}

textarea:focus {
  border-color: rgba(216, 184, 106, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 184, 106, 0.05);
}

.question-counter {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #5f5a66;
  font-size: 9px;
}

.input-error {
  min-height: 18px;
  margin: 5px 0 6px;
  color: #d58e91;
  font-size: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  width: 100%;
  border: 1px solid #e1c57e;
  color: #17131b;
  background: linear-gradient(110deg, #b99448, #ead18c 46%, #c5a052);
  box-shadow: 0 10px 28px rgba(166, 125, 43, 0.17), inset 0 1px rgba(255,255,255,.38);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 14px 36px rgba(202, 162, 77, 0.25), inset 0 1px rgba(255,255,255,.45);
}

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.suggestions > span {
  margin-right: 2px;
  color: #66616c;
  font-size: 9px;
}

.suggestions button {
  border: 1px solid rgba(219, 201, 162, 0.12);
  border-radius: 20px;
  padding: 6px 9px;
  color: #8f8996;
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--serif);
  font-size: 9px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.suggestions button:hover {
  border-color: rgba(216, 184, 106, 0.32);
  color: var(--gold-light);
  background: rgba(216, 184, 106, 0.06);
}

.ritual-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #67616d;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ritual-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ritual-steps b {
  color: #a18b5b;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
}

.ritual-steps > i {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 184, 106, 0.25), rgba(216, 184, 106, 0.04));
}

/* Reading ritual */
.reading-screen {
  min-height: calc(100vh - 94px);
  padding-top: 40px;
  text-align: center;
}

.reading-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.reading-head h2::after {
  content: "...";
  display: inline-block;
  width: 24px;
  overflow: hidden;
  vertical-align: bottom;
  animation: ellipsis 1.4s steps(4, end) infinite;
}

.question-echo {
  max-width: 620px;
  margin: 14px auto 0;
  color: #928b9b;
  font-family: var(--serif);
  font-size: 13px;
}

.question-echo::before,
.question-echo::after {
  color: #655d6b;
  content: "「";
}

.question-echo::after {
  content: "」";
}

.reading-visual {
  position: relative;
  display: flex;
  min-height: 440px;
  align-items: center;
  justify-content: center;
  margin-top: -6px;
  perspective: 1500px;
}

.reading-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 540px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--theme-rgb), .23), rgba(var(--theme-rgb), .06) 45%, transparent 72%);
  filter: blur(28px);
  opacity: .5;
  transform: translate(-50%, -50%);
  transition: background 800ms ease;
  animation: aura-pulse 3s ease-in-out infinite;
}

.constellation {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 340px;
  border: 1px solid rgba(var(--theme-rgb), 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  transition: border-color 800ms ease;
}

.constellation::before,
.constellation::after {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px dashed rgba(var(--theme-rgb), .08);
  border-radius: 50%;
}

.constellation::after {
  inset: 72px;
}

.constellation i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--theme);
  box-shadow: 0 0 12px var(--theme);
  transition: background 800ms ease;
}

.constellation i:nth-child(1) { top: 8%; left: 22%; }
.constellation i:nth-child(2) { top: 22%; right: 8%; }
.constellation i:nth-child(3) { right: 4%; bottom: 26%; }
.constellation i:nth-child(4) { bottom: 4%; left: 35%; }
.constellation i:nth-child(5) { bottom: 22%; left: 4%; }
.constellation i:nth-child(6) { top: 27%; left: 9%; }

.book-universe {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 420px;
  opacity: 1;
  perspective: 1200px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 520ms ease, filter 520ms ease, transform 800ms cubic-bezier(.16,.8,.25,1);
}

.book-field {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--field-x, 0), var(--field-y, 0), 0) rotateX(var(--field-rx, 0deg)) rotateY(var(--field-ry, 0deg));
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}

.category-volume {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122px;
  height: 174px;
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(-61px, 110px, -520px) rotateY(0deg) rotateZ(0deg) scale(.42);
  transform-style: preserve-3d;
  transition:
    transform 1.05s cubic-bezier(.16,.82,.24,1),
    opacity 720ms ease,
    filter 720ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

.book-universe.is-visible .category-volume {
  opacity: .92;
  filter: blur(0);
  transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--book-ry)) rotateZ(var(--book-rz)) scale(var(--scale, 1));
}

.volume-book {
  position: absolute;
  inset: 0;
  transform: rotateY(-5deg);
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.16,.82,.24,1), filter 260ms ease;
  filter: drop-shadow(12px 18px 14px rgba(0, 0, 0, .28));
}

.volume-book::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 3px;
  right: -12px;
  width: 13px;
  height: calc(100% - 4px);
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #c8bea9 0 1px, #f3ead7 1px 3px);
  box-shadow: inset 2px 0 3px rgba(77, 60, 42, .15);
  transform: rotateY(7deg);
  transform-origin: left center;
}

.volume-book::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: -8px;
  bottom: -7px;
  left: 4px;
  height: 9px;
  border-radius: 0 0 3px 3px;
  background: repeating-linear-gradient(0deg, #c7bda9 0 1px, #eee4cf 1px 3px);
  transform: skewX(36deg);
  transform-origin: top;
}

.volume-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 15px 14px 13px;
  border: 1px solid color-mix(in srgb, var(--book-color), white 26%);
  border-radius: 2px 5px 5px 2px;
  color: var(--book-ink);
  background:
    linear-gradient(105deg, rgba(255,255,255,.1), transparent 18%, transparent 85%, rgba(0,0,0,.14)),
    var(--book-color);
  box-shadow: inset 0 0 0 3px rgba(12, 10, 17, .12), inset 0 0 0 4px rgba(255, 255, 255, .1);
}

.volume-cover::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-bottom: 17px;
  opacity: .42;
  background: currentColor;
}

.volume-index {
  position: absolute;
  right: 13px;
  bottom: 12px;
  opacity: .62;
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .16em;
}

.volume-cover strong {
  max-width: 90px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.28;
}

.volume-cover small {
  margin-top: 8px;
  opacity: .68;
  font-family: var(--sans);
  font-size: 5px;
  letter-spacing: .18em;
}

.volume-accent {
  width: 28px;
  height: 2px;
  margin-top: auto;
  opacity: .72;
  background: currentColor;
}

.book-universe.has-selection .category-volume:not(.is-selected) {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(var(--out-x), var(--out-y), -520px) rotateY(var(--book-ry)) rotateZ(var(--book-rz)) scale(.62);
  transition-delay: 0ms;
}

.book-universe.has-selection .category-volume.is-selected {
  z-index: 20;
  opacity: 1;
  filter: blur(0) drop-shadow(0 0 30px rgba(var(--theme-rgb), .18));
  transform: translate3d(-61px, -87px, 240px) rotateY(0deg) rotateZ(0deg) scale(1.22);
  transition-delay: 0ms;
}

.book-universe.has-selection .category-volume.is-selected .volume-book {
  transform: rotateY(-3deg) translateY(-4px);
}

.book-universe.is-morphing {
  opacity: 0;
  filter: blur(8px);
  transform: translate(-50%, -50%) scale(1.16);
  pointer-events: none;
}

.ritual-book {
  position: relative;
  z-index: 3;
  width: 520px;
  height: 320px;
  opacity: 0;
  visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateX(3deg) rotateY(-4deg) scale(.9);
  transition: transform 1.4s cubic-bezier(.16,.8,.25,1), opacity 420ms ease, visibility 0s linear 420ms;
}

.ritual-book.is-revealed {
  z-index: 6;
  opacity: 1;
  visibility: visible;
  transform: rotateX(3deg) rotateY(-4deg) scale(1);
  transition: transform 1.4s cubic-bezier(.16,.8,.25,1), opacity 420ms ease, visibility 0s;
}

.book-shadow {
  position: absolute;
  z-index: -2;
  bottom: -32px;
  left: 50%;
  width: 300px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  filter: blur(16px);
  transform: translateX(-50%) rotateX(70deg);
  transition: width 1.4s ease;
}

.book-half {
  position: absolute;
  z-index: 8;
  top: 0;
  width: 230px;
  height: 100%;
  opacity: 0;
  transition: opacity 520ms ease 360ms;
}

.left-half { left: 30px; transform-origin: right center; }
.right-half { left: 260px; transform-origin: left center; }

.page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 94%, rgba(42,32,29,.13)),
    radial-gradient(circle at 25% 30%, #fff9e9, #e7d9b9 75%);
  box-shadow: inset 0 0 28px rgba(66,46,29,.12);
}

.page-left { border-radius: 9px 2px 2px 10px; }
.page-right { border-radius: 2px 9px 10px 2px; transform: scaleX(-1); }

.page-lines {
  position: absolute;
  top: 40px;
  right: 26px;
  bottom: 42px;
  left: 26px;
  opacity: .22;
  background: repeating-linear-gradient(0deg, transparent 0 19px, #776a56 20px, transparent 21px);
}

.page-flourish {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #9e8456;
  font-size: 30px;
  transform: translate(-50%, -50%);
}

.book-cover-leaf {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 50%;
  width: 230px;
  height: 320px;
  transform: translateX(-50%) rotateY(0deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.2,.78,.24,1);
}

.book-cover-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(var(--theme-rgb), .75);
  border-radius: 4px 11px 11px 4px;
}

.book-cover-front {
  background:
    linear-gradient(105deg, rgba(255,255,255,.06), transparent 18%, transparent 85%, rgba(0,0,0,.35)),
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--theme-deep), #2b2735 35%), #13101c 75%);
  box-shadow:
    13px 17px 35px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(var(--theme-rgb), .2),
    inset 0 0 0 7px rgba(5,5,9,.38),
    inset 0 0 0 8px rgba(var(--theme-rgb), .25);
  transition: background 800ms ease, border-color 800ms ease;
}

.book-cover-front::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(var(--theme-rgb), .35);
  border-radius: 80px 80px 4px 4px;
}

.book-cover-back {
  padding: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--theme-rgb), .12), transparent 42%),
    linear-gradient(105deg, #17131f, color-mix(in srgb, var(--theme-deep), #17131f 58%));
  box-shadow: inset 0 0 0 7px rgba(5,5,9,.32), inset 0 0 0 8px rgba(var(--theme-rgb), .22);
  transform: rotateY(180deg);
}

.inside-frame {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(var(--theme-rgb), .3);
  border-radius: 80px 80px 4px 4px;
  color: var(--theme);
  font-size: 25px;
  box-shadow: inset 0 0 35px rgba(var(--theme-rgb), .06);
}

.mini-sigil {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 27px;
  place-items: center;
  border: 1px solid rgba(var(--theme-rgb), .6);
  border-radius: 50%;
  color: var(--theme);
  font-size: 25px;
  box-shadow: 0 0 24px rgba(var(--theme-rgb), .14), inset 0 0 18px rgba(var(--theme-rgb), .08);
}

.book-cover-front strong {
  color: #f0e5ce;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .1em;
}

.book-cover-front small {
  margin-top: 9px;
  color: var(--theme);
  font-size: 7px;
  letter-spacing: .34em;
}

.turning-pages {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 260px;
  width: 230px;
  height: 100%;
  opacity: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.turning-pages span {
  position: absolute;
  inset: 3px 3px 3px 0;
  border-radius: 2px 9px 9px 2px;
  background: linear-gradient(90deg, #d1c4a6, #f3ead2 18%, #e7dabd);
  box-shadow: inset 15px 0 18px rgba(72,54,36,.1);
  transform-origin: left center;
}

.ritual-book.is-opening {
  transform: rotateX(10deg) rotateY(0deg) translateY(10px);
}

.ritual-book.is-opening .book-cover-leaf {
  transform: translateX(0) rotateY(-180deg);
}

.ritual-book.is-opening .book-half {
  opacity: 1;
}

.ritual-book.is-opening .book-shadow {
  width: 500px;
}

.ritual-book.is-flipping .turning-pages {
  opacity: 1;
}

.ritual-book.is-flipping .turning-pages span:nth-child(1) { animation: flip-page .65s ease-in-out 0s 2; }
.ritual-book.is-flipping .turning-pages span:nth-child(2) { animation: flip-page .75s ease-in-out .18s 2; }
.ritual-book.is-flipping .turning-pages span:nth-child(3) { animation: flip-page .58s ease-in-out .38s 2; }
.ritual-book.is-flipping .turning-pages span:nth-child(4) { animation: flip-page .7s ease-in-out .62s 2; }

.reading-status {
  position: absolute;
  bottom: 8px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.reading-status p {
  margin: 0;
  color: #aaa3b2;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.status-orb {
  position: relative;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(var(--theme-rgb), .42);
  border-radius: 50%;
}

.status-orb::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-top: 1px solid var(--theme);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.status-orb span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--theme);
  box-shadow: 0 0 7px var(--theme);
}

.analysis-track {
  display: flex;
  max-width: 600px;
  align-items: center;
  justify-content: center;
  margin: 5px auto 0;
}

.analysis-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #595461;
  font-size: 9px;
  letter-spacing: .09em;
  transition: color 500ms ease;
}

.analysis-step i {
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid #5e5965;
  border-radius: 50%;
  transition: all 500ms ease;
}

.analysis-step.is-active,
.analysis-step.is-done {
  color: #c9bdad;
}

.analysis-step.is-active i,
.analysis-step.is-done i {
  border-color: var(--theme);
  background: var(--theme);
  box-shadow: 0 0 8px rgba(var(--theme-rgb), .6);
}

.analysis-line {
  width: 90px;
  height: 1px;
  margin: 0 15px;
  background: #302c36;
}

/* Result */
.result-screen {
  min-height: calc(100vh - 94px);
  padding-top: 42px;
  text-align: center;
}

.result-topline {
  position: relative;
  z-index: 3;
}

.selected-book-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 15px 8px 10px;
  border: 1px solid rgba(var(--theme-rgb), .3);
  border-radius: 30px;
  background: rgba(var(--theme-rgb), .07);
  box-shadow: 0 0 24px rgba(var(--theme-rgb), .06);
}

.selected-book-badge > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(var(--theme-rgb), .28);
  border-radius: 50%;
  font-size: 14px;
}

.selected-book-badge > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.selected-book-badge strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}

.selected-book-badge small {
  color: var(--theme);
  font-size: 6px;
  letter-spacing: .22em;
}

.result-book-wrap {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  margin-top: -6px;
  perspective: 1500px;
}

.result-glow {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 750px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--theme-rgb), .22), rgba(var(--theme-rgb), .04) 45%, transparent 71%);
  filter: blur(35px);
  transform: translate(-50%, -50%);
  animation: aura-pulse 4s ease-in-out infinite;
}

.open-book-result {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(720px, 78vw);
  height: 350px;
  transform: rotateX(8deg) translateY(4px);
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 21px rgba(0, 0, 0, .48));
  animation: result-book-in 1.1s cubic-bezier(.16,.82,.28,1) both;
}

.open-book-result::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border-radius: 11px;
  background: linear-gradient(90deg, #19141e 0 49.5%, #0b090e 49.5% 50.5%, #19141e 50.5%);
  box-shadow: 0 0 0 1px rgba(var(--theme-rgb), .34), 0 0 50px rgba(var(--theme-rgb), .13);
}

.result-page {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.85), transparent 32%),
    linear-gradient(105deg, #e4d7b9, #f4ecd9 42%, #dfd0af);
  box-shadow: inset 0 0 30px rgba(83,58,34,.13);
}

.result-page::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(112, 86, 50, 0.19);
  pointer-events: none;
}

.result-page-left {
  border-radius: 8px 2px 2px 9px;
  padding: 34px 48px 30px;
}

.result-page-right {
  border-radius: 2px 8px 9px 2px;
  padding: 35px;
  background:
    radial-gradient(circle at 65% 25%, rgba(var(--theme-rgb), .17), transparent 34%),
    linear-gradient(105deg, #ddcead, #f1e7cf 62%, #d7c6a3);
}

.page-number {
  position: absolute;
  top: 22px;
  left: 27px;
  color: rgba(65,50,44,.4);
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .25em;
}

.right-number {
  right: 27px;
  bottom: 22px;
  left: auto;
  top: auto;
}

.page-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 16px;
  color: #9b7a46;
}

.page-decoration span {
  width: 38px;
  height: 1px;
  background: rgba(111, 81, 41, 0.27);
}

.page-decoration b {
  font-size: 9px;
}

.answer-label {
  margin: 34px 0 14px;
  color: rgba(55,42,38,.52);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .28em;
}

blockquote {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #322b31;
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.55;
  text-shadow: 0 1px rgba(255,255,255,.4);
}

.answer-translation {
  min-height: 18px;
  margin: 1px 0 0;
  color: rgba(55, 42, 38, .5);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .045em;
  line-height: 1.5;
}

body[data-language="en"] blockquote {
  font-size: clamp(21px, 2.25vw, 30px);
  letter-spacing: .025em;
}

.answer-mark {
  margin-top: 7px;
  color: #987746;
  font-size: 11px;
}

.answer-footnote {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  margin: 0;
  color: rgba(55,42,38,.38);
  font-family: var(--serif);
  font-size: 7px;
  letter-spacing: .12em;
}

.book-center-shadow {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(60,42,28,.2) 46%, rgba(255,255,255,.15) 54%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.celestial-chart {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 205px;
  height: 205px;
  transform: translate(-50%, -50%);
}

.chart-orbit {
  position: absolute;
  border: 1px solid rgba(73, 59, 57, .23);
  border-radius: 50%;
}

.orbit-a { inset: 0; }
.orbit-b { inset: 26px; border-style: dashed; }
.orbit-c { inset: 58px; }

.celestial-chart::before,
.celestial-chart::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(73,59,57,.16);
}

.celestial-chart::after {
  transform: rotate(90deg);
}

.celestial-chart b {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(var(--theme-rgb), .55);
  border-radius: 50%;
  color: var(--theme-deep);
  background: rgba(var(--theme-rgb), .08);
  font-size: 16px;
  transform: translate(-50%, -50%);
}

.celestial-chart i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-deep);
  box-shadow: 0 0 8px rgba(var(--theme-rgb), .6);
}

.dot-a { top: 9px; left: 50%; }
.dot-b { right: 24px; bottom: 39px; }
.dot-c { bottom: 19px; left: 34px; }

.result-page-right > p {
  position: absolute;
  right: 0;
  bottom: 31px;
  left: 0;
  margin: 0;
  color: rgba(55,42,38,.32);
  font-size: 6px;
  letter-spacing: .28em;
  line-height: 1.7;
}

.result-question {
  margin: 0 auto 20px;
  color: #77717e;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .07em;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.result-actions .primary-button,
.result-actions .secondary-button {
  width: 155px;
}

.secondary-button {
  border: 1px solid rgba(216,184,106,.33);
  color: #d8c9a8;
  background: rgba(216,184,106,.045);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .08em;
}

.secondary-button:hover {
  border-color: rgba(216,184,106,.55);
  background: rgba(216,184,106,.09);
}

.secondary-button.is-saved {
  border-color: rgba(var(--theme-rgb), .38);
  color: var(--theme);
  background: rgba(var(--theme-rgb), .07);
}

footer {
  display: flex;
  width: min(1440px, calc(100% - 72px));
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-top: 1px solid rgba(236, 220, 184, 0.07);
  color: #56515d;
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: .08em;
}

footer span {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .18em;
}

/* Drawer, modal, toast */
.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  opacity: 0;
  background: rgba(3, 3, 7, .72);
  backdrop-filter: blur(7px);
  transition: opacity 250ms ease;
}

.overlay.is-visible {
  opacity: 1;
}

.drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(440px, 94vw);
  height: 100vh;
  padding: 32px;
  overflow-y: auto;
  border-left: 1px solid rgba(216,184,106,.19);
  background:
    radial-gradient(circle at 100% 0, rgba(100,74,141,.18), transparent 34%),
    #0d0c14;
  box-shadow: -20px 0 70px rgba(0,0,0,.46);
  transform: translateX(102%);
  transition: transform 350ms cubic-bezier(.16,.75,.25,1);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-kicker {
  margin: 0 0 8px;
  color: #9e8757;
  font-size: 7px;
  letter-spacing: .32em;
}

.drawer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .05em;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(216,184,106,.18);
  border-radius: 50%;
  color: #aaa2b0;
  background: transparent;
  font-size: 22px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(216,184,106,.4);
  color: var(--gold-light);
}

.saved-list {
  display: grid;
  gap: 14px;
  padding: 22px 0;
}

.saved-card {
  position: relative;
  padding: 20px 44px 20px 20px;
  border: 1px solid rgba(var(--card-rgb), .2);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(var(--card-rgb), .07), rgba(255,255,255,.015));
}

.saved-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--card-rgb));
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .07em;
}

.saved-card-head small {
  color: #746c7b;
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .14em;
}

.saved-card time {
  margin-left: auto;
  color: #625d69;
  font-family: var(--sans);
  font-size: 7px;
}

.saved-question {
  margin: 15px 0 9px;
  color: #827b88;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.6;
}

.saved-answer {
  margin: 0;
  color: #eee7da;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .06em;
}

.saved-answer-translation {
  margin: 6px 0 0;
  color: #77717e;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .035em;
  line-height: 1.55;
}

html[lang="en"] .question-echo::before {
  content: "“";
}

html[lang="en"] .question-echo::after {
  content: "”";
}

body[data-language="en"] .hero-copy h1 {
  letter-spacing: .015em;
}

body[data-language="en"] .cover-title strong {
  max-width: 180px;
  font-size: 15px;
  letter-spacing: .075em;
  line-height: 1.35;
}

body[data-language="en"] .cover-title span {
  letter-spacing: .22em;
}

body[data-language="en"] .question-heading h2,
body[data-language="en"] .reading-head h2 {
  letter-spacing: .025em;
}

.delete-saved {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5f5965;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.delete-saved:hover {
  color: #d58e91;
  background: rgba(213,142,145,.07);
}

.empty-saved {
  display: flex;
  min-height: 60vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #645f6b;
  text-align: center;
}

.empty-saved > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(216,184,106,.2);
  border-radius: 50%;
  color: #927b4e;
}

.empty-saved h3 {
  margin: 0 0 8px;
  color: #aaa2af;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.empty-saved p {
  margin: 0;
  font-family: var(--serif);
  font-size: 10px;
}

.modal {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  padding: 46px;
  border: 1px solid rgba(216,184,106,.24);
  border-radius: 4px;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(89,65,129,.18), transparent 42%),
    #100e18;
  box-shadow: 0 30px 100px rgba(0,0,0,.62), inset 0 0 50px rgba(216,184,106,.025);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(.98);
  transition: opacity 250ms ease, transform 250ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal .icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-sigil {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(216,184,106,.3);
  border-radius: 50%;
  color: var(--gold-light);
  box-shadow: 0 0 30px rgba(216,184,106,.08), inset 0 0 18px rgba(216,184,106,.05);
}

.modal h2 {
  max-width: 380px;
  margin: 0 auto 20px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.modal > p:not(.drawer-kicker) {
  margin: 0;
  color: #928b9a;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 2;
}

.book-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 26px;
}

.book-types span {
  padding: 9px;
  border: 1px solid rgba(216,184,106,.12);
  color: #aaa2af;
  font-family: var(--serif);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(216,184,106,.25);
  border-radius: 3px;
  opacity: 0;
  color: #e3dac9;
  background: #15121d;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  pointer-events: none;
  transform: translateY(15px);
  transition: all 250ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast span {
  color: var(--gold-light);
}

.toast p {
  margin: 0;
  font-family: var(--serif);
  font-size: 11px;
}

body.panel-open {
  overflow: hidden;
}

/* Themes */
body[data-theme="love"] { --theme: #e996ad; --theme-rgb: 233, 150, 173; --theme-deep: #9f4964; }
body[data-theme="wealth"] { --theme: #e1ba5b; --theme-rgb: 225, 186, 91; --theme-deep: #85631d; }
body[data-theme="career"] { --theme: #72b8f4; --theme-rgb: 114, 184, 244; --theme-deep: #245f99; }
body[data-theme="growth"] { --theme: #83c99a; --theme-rgb: 131, 201, 154; --theme-deep: #39794e; }
body[data-theme="choice"] { --theme: #a782f7; --theme-rgb: 167, 130, 247; --theme-deep: #6741ad; }
body[data-theme="destiny"] { --theme: #8d9de9; --theme-rgb: 141, 157, 233; --theme-deep: #354784; }

/* Animations */
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes book-float {
  0%, 100% { transform: rotateY(-13deg) rotateX(2deg) rotateZ(-1.5deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(1deg) rotateZ(-.5deg) translateY(-9px); }
}

@keyframes orbit-rotate {
  to { transform: translate(-50%, -50%) rotate(344deg); }
}

@keyframes symbol-float {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(-9px); opacity: 1; }
}

@keyframes twinkle {
  from { opacity: .2; transform: scale(.7); }
  to { opacity: 1; transform: scale(1.25); }
}

@keyframes aurora-drift {
  to { transform: translate(75px, 45px) scale(1.12); }
}

@keyframes ellipsis {
  from { width: 0; }
  to { width: 24px; }
}

@keyframes aura-pulse {
  0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.94); }
  50% { opacity: .7; transform: translate(-50%, -50%) scale(1.07); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes flip-page {
  0% { transform: rotateY(0deg); }
  48% { box-shadow: inset 35px 0 24px rgba(71,51,35,.14); }
  100% { transform: rotateY(-178deg); }
}

@keyframes result-book-in {
  from { opacity: 0; transform: rotateX(18deg) translateY(24px) scale(.9); }
  to { opacity: 1; transform: rotateX(8deg) translateY(4px) scale(1); }
}

@keyframes result-book-in-mobile {
  from { opacity: 0; transform: rotateX(18deg) translateY(16px) scale(.94); }
  to { opacity: 1; transform: rotateX(8deg) translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .site-header,
  footer {
    width: calc(100% - 36px);
  }

  .screen {
    width: min(700px, calc(100% - 32px));
  }

  .home-screen {
    padding-top: 42px;
  }

  .home-content {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .book-stage {
    min-height: 365px;
  }

  .closed-book {
    width: 188px;
    height: 262px;
  }

  .cover-sigil {
    top: 29px;
    width: 86px;
    height: 86px;
  }

  .cover-title { top: 127px; }
  .cover-title strong { font-size: 18px; }
  .cover-title span { margin-top: 7px; }
  .cover-motto { bottom: 34px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 260px; height: 260px; }
  .floor-glow { width: 310px; }

  .question-card {
    width: min(580px, 100%);
    margin: 0 auto;
  }

  .ritual-steps {
    margin-top: 28px;
  }

  .reading-visual {
    transform: scale(.86);
    margin-top: -35px;
    margin-bottom: -42px;
  }

  .result-book-wrap {
    min-height: 350px;
  }

  .open-book-result {
    width: min(660px, 90vw);
    height: 320px;
  }

  .result-page-left { padding: 30px 38px; }
}

@media (max-width: 620px) {
  .site-header {
    height: 76px;
  }

  .brand strong { font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .site-nav { gap: 8px; }
  .nav-button { font-size: 11px; }
  .header-icon-button { width: 30px; height: 30px; }
  .language-switch { height: 30px; padding: 0 8px; gap: 5px; }

  .screen {
    min-height: calc(100vh - 136px);
    padding-top: 36px;
  }

  .eyebrow {
    gap: 7px;
    font-size: 7px;
    letter-spacing: .2em;
  }

  .eyebrow > span { width: 20px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-description { font-size: 11px; line-height: 1.8; }

  .book-stage { min-height: 330px; }
  .question-card { padding: 24px 20px; }
  .suggestions > span { width: 100%; }
  .ritual-steps { gap: 8px; font-size: 8px; }
  .ritual-steps > i { width: 18px; }

  .reading-screen { padding-top: 42px; }
  .reading-head h2 { font-size: 26px; }
  .question-echo { font-size: 11px; }
  .reading-visual { min-height: 410px; transform: scale(.62); margin-top: -68px; margin-bottom: -90px; }
  .reading-status { bottom: 42px; }
  .analysis-track { margin-top: 12px; transform: scale(.82); }
  .analysis-line { width: 45px; margin: 0 9px; }

  .result-screen { padding-top: 36px; }
  .result-book-wrap {
    display: grid;
    min-height: 260px;
    margin-top: 8px;
  }
  .open-book-result {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 430px);
    height: 224px;
    margin: 0 auto;
    transform: rotateX(8deg);
    animation-name: result-book-in-mobile;
  }
  .result-glow { width: 480px; height: 250px; }
  .result-page-left { padding: 24px 18px; }
  .page-number { top: 18px; left: 20px; }
  .page-decoration { gap: 7px; margin-top: 8px; }
  .page-decoration span { width: 22px; }
  .answer-label { margin: 22px 0 6px; font-size: 7px; }
  blockquote { min-height: 52px; font-size: clamp(16px, 5vw, 21px); }
  .answer-translation { min-height: 12px; margin-top: 0; font-size: 6px; }
  .answer-mark { margin-top: 2px; }
  .answer-footnote { bottom: 19px; font-size: 5px; }
  .celestial-chart { width: 135px; height: 135px; }
  .orbit-b { inset: 19px; }
  .orbit-c { inset: 42px; }
  .result-page-right { padding: 20px; }
  .result-question { margin-top: -6px; }
  .result-actions { gap: 8px; }
  .result-actions .primary-button,
  .result-actions .secondary-button { width: 140px; }

  footer {
    min-height: 60px;
    justify-content: center;
    text-align: center;
  }

  footer span { display: none; }
  .modal { padding: 40px 24px 30px; }
  .modal h2 { font-size: 20px; }
  .book-types { grid-template-columns: repeat(2, 1fr); }
  .drawer { padding: 26px 20px; }
}

@media (max-width: 440px) {
  #openAbout {
    display: none;
  }

  .site-nav {
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  body[data-language="en"] .brand strong {
    max-width: 105px;
    font-size: 9px;
    letter-spacing: .07em;
    line-height: 1.35;
  }

  .language-switch {
    padding: 0 6px;
  }
}

/* Detail polish: diagonal fades, page-like question field, ordered prompt list. */
.home-book-loop {
  -webkit-mask-image: linear-gradient(
    64deg,
    transparent 0%,
    rgba(0,0,0,.08) 7%,
    rgba(0,0,0,.28) 14%,
    rgba(0,0,0,.58) 21%,
    rgba(0,0,0,.86) 28%,
    #000 35%,
    #000 65%,
    rgba(0,0,0,.86) 72%,
    rgba(0,0,0,.58) 79%,
    rgba(0,0,0,.28) 86%,
    rgba(0,0,0,.08) 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    64deg,
    transparent 0%,
    rgba(0,0,0,.08) 7%,
    rgba(0,0,0,.28) 14%,
    rgba(0,0,0,.58) 21%,
    rgba(0,0,0,.86) 28%,
    #000 35%,
    #000 65%,
    rgba(0,0,0,.86) 72%,
    rgba(0,0,0,.58) 79%,
    rgba(0,0,0,.28) 86%,
    rgba(0,0,0,.08) 93%,
    transparent 100%
  );
}

.question-card::before {
  inset: -138px -176px;
  background: rgba(246, 242, 233, .22);
  -webkit-backdrop-filter: blur(7px) saturate(.92);
  backdrop-filter: blur(7px) saturate(.92);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    rgba(0,0,0,.94) 22%,
    rgba(0,0,0,.72) 43%,
    rgba(0,0,0,.42) 61%,
    rgba(0,0,0,.16) 78%,
    transparent 94%
  );
  mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    rgba(0,0,0,.94) 22%,
    rgba(0,0,0,.72) 43%,
    rgba(0,0,0,.42) 61%,
    rgba(0,0,0,.16) 78%,
    transparent 94%
  );
}

.input-shell {
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3) 9%, rgba(255,255,255,.3) 91%, transparent);
  box-shadow: none;
}

.input-shell::before,
.input-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
}

.input-shell::before {
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(91,77,56,.13) 13%, rgba(91,77,56,.13) 87%, transparent);
}

.input-shell::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(91,77,56,.2) 8%, rgba(91,77,56,.2) 92%, transparent);
}

textarea {
  min-height: 106px;
  border: 0;
  border-radius: 0;
  color: #38342d;
  background: rgba(255, 254, 250, .22);
  box-shadow: inset 0 16px 34px rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

textarea::placeholder { color: #979087; }

textarea:focus {
  border: 0;
  background: rgba(255, 254, 250, .34);
  box-shadow: inset 3px 0 rgba(158,119,50,.42), inset 0 16px 34px rgba(255,255,255,.2);
}

.question-counter {
  right: 14px;
  bottom: 11px;
  color: #8d857b;
  letter-spacing: .06em;
}

.suggestions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid rgba(80,69,52,.1);
}

.suggestions > span {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0 0 5px;
  color: #8e867b;
  font-size: 8px;
  letter-spacing: .12em;
}

.suggestions > span::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(143,105,42,.2), transparent);
}

.suggestions button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(80,69,52,.085);
  border-radius: 0;
  color: #625d55;
  background: transparent;
  text-align: left;
  line-height: 1.45;
}

.suggestions button::before {
  color: #a47b35;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .08em;
}

.suggestions button:nth-of-type(1)::before { content: "01"; }
.suggestions button:nth-of-type(2)::before { content: "02"; }
.suggestions button:nth-of-type(3)::before { content: "03"; }

.suggestions button::after {
  content: "↗";
  color: #aaa196;
  font-family: var(--sans);
  font-size: 10px;
  text-align: right;
  transition: color 180ms ease, transform 180ms ease;
}

.suggestions button:hover {
  border-color: rgba(143,105,42,.2);
  color: #775922;
  background: linear-gradient(90deg, rgba(158,119,50,.045), transparent 80%);
}

.suggestions button:hover::after {
  color: #9e7732;
  transform: translate(2px, -2px);
}

@media (max-width: 620px) {
  .question-card::before { inset: -86px -58px; }
  .suggestions button { padding-block: 9px; }
}

/* Softer overlap treatment after visual QA. */
.hero-copy::before {
  inset: -96px 3%;
  background: rgba(247, 244, 237, .1);
  -webkit-backdrop-filter: blur(4px) saturate(.96);
  backdrop-filter: blur(4px) saturate(.96);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0,0,0,.78) 32%, rgba(0,0,0,.4) 58%, rgba(0,0,0,.12) 80%, transparent 96%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0,0,0,.78) 32%, rgba(0,0,0,.4) 58%, rgba(0,0,0,.12) 80%, transparent 96%);
}

.question-card::before {
  inset: -176px -216px;
  background: rgba(246, 242, 233, .08);
  -webkit-backdrop-filter: blur(3px) saturate(.97);
  backdrop-filter: blur(3px) saturate(.97);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0,0,0,.68) 30%, rgba(0,0,0,.38) 56%, rgba(0,0,0,.14) 78%, transparent 96%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0,0,0,.68) 30%, rgba(0,0,0,.38) 56%, rgba(0,0,0,.14) 78%, transparent 96%);
}

.input-shell {
  overflow: visible;
  background: transparent;
}

.input-shell::before {
  opacity: .42;
}

.input-shell::after {
  background: linear-gradient(90deg, transparent, rgba(91,77,56,.24) 8%, rgba(91,77,56,.24) 92%, transparent);
}

textarea {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

textarea:focus {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.19) 12%, rgba(255,255,255,.19) 88%, transparent);
  box-shadow: inset 2px 0 rgba(158,119,50,.38);
}

@media (max-width: 620px) {
  .question-card::before { inset: -108px -76px; }
}

/* Fade only the actual loop endpoints, keeping every central cover intact. */
.home-book-loop {
  -webkit-mask-image: none;
  mask-image: none;
}

.home-loop-volume[data-cycle="-1"][data-slot="5"],
.home-loop-volume[data-cycle="0"][data-slot="0"] {
  -webkit-mask-image: linear-gradient(64deg, transparent 0%, rgba(0,0,0,.1) 18%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.66) 61%, rgba(0,0,0,.9) 82%, #000 100%);
  mask-image: linear-gradient(64deg, transparent 0%, rgba(0,0,0,.1) 18%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.66) 61%, rgba(0,0,0,.9) 82%, #000 100%);
}

.home-loop-volume[data-cycle="0"][data-slot="5"],
.home-loop-volume[data-cycle="1"][data-slot="0"] {
  -webkit-mask-image: linear-gradient(64deg, #000 0%, rgba(0,0,0,.9) 18%, rgba(0,0,0,.66) 39%, rgba(0,0,0,.34) 62%, rgba(0,0,0,.1) 82%, transparent 100%);
  mask-image: linear-gradient(64deg, #000 0%, rgba(0,0,0,.9) 18%, rgba(0,0,0,.66) 39%, rgba(0,0,0,.34) 62%, rgba(0,0,0,.1) 82%, transparent 100%);
}

textarea {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent !important;
  background-image: none !important;
  mix-blend-mode: multiply;
}

.suggestions button {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent !important;
  mix-blend-mode: multiply;
}

.book-universe.is-visible:not(.has-selection) .category-volume.is-matched .volume-book {
  animation: matched-book-pulse 1.15s ease-in-out infinite;
}

@keyframes matched-book-pulse {
  0%, 100% {
    filter: drop-shadow(17px 22px 13px rgba(57, 47, 33, .22)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(var(--theme-rgb), .28)) drop-shadow(17px 22px 13px rgba(57, 47, 33, .18)) brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Warm gallery redesign: diagonal book loop, light surfaces, full-screen ritual. */
:root {
  --bg: #f3f0e8;
  --bg-deep: #e9e4d9;
  --surface: rgba(255, 253, 247, .84);
  --surface-strong: #fbf8f0;
  --line: rgba(61, 55, 45, .14);
  --line-strong: rgba(153, 117, 52, .42);
  --gold: #9e7732;
  --gold-light: #ba9147;
  --text: #292721;
  --muted: #777168;
}

body {
  color: var(--text);
  background: var(--bg);
}

.sky {
  background:
    radial-gradient(circle at 13% 10%, rgba(255, 255, 255, .92), transparent 28%),
    radial-gradient(circle at 86% 82%, rgba(210, 195, 165, .22), transparent 34%),
    linear-gradient(135deg, #f8f6f1 0%, #f0ece3 52%, #e9e4da 100%);
}

.sky::after {
  background: linear-gradient(90deg, rgba(137, 117, 82, .035), transparent 25%, transparent 75%, rgba(137, 117, 82, .045));
}

.aurora {
  opacity: .11;
  filter: blur(125px);
}

.aurora-one { background: #d7bd94; }
.aurora-two { opacity: .08; }
.grain { opacity: .018; mix-blend-mode: multiply; }
.star-dot {
  background: rgba(86, 73, 51, var(--alpha));
  box-shadow: 0 0 calc(var(--size) * 3) rgba(137, 104, 46, .2);
}

.site-header {
  width: min(1540px, calc(100% - 56px));
  border-bottom-color: rgba(55, 49, 40, .1);
}

.brand strong { color: #28251f; }
.brand small { color: #817a6e; }
.brand-mark,
.header-icon-button,
.language-switch {
  border-color: rgba(116, 91, 47, .23);
  background: rgba(255, 255, 255, .42);
}
.header-icon-button,
.nav-button { color: #6d675f; }
.language-option { color: #989188; }
.language-option.is-active,
.header-icon-button:hover,
.nav-button:hover { color: #8e692b; }
.count-badge { background: rgba(158, 119, 50, .08); }

.screen {
  width: min(1540px, calc(100% - 48px));
}

.home-screen { padding: 34px 0 46px; }
.hero-copy h1 { color: #2d2a24; }
.hero-copy h1 em { color: #a77e37; text-shadow: none; }
.hero-description { color: #777169; }
.eyebrow { color: #8d7447; }
.eyebrow > span { background: linear-gradient(90deg, transparent, rgba(127, 94, 38, .45)); }

.home-content {
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 38px);
  width: min(1500px, 100%);
  min-height: clamp(520px, 62vh, 680px);
  margin-top: 25px;
}

.home-book-stage {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(63, 57, 48, .1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.84), rgba(255,255,255,.24) 55%, transparent 75%),
    linear-gradient(145deg, rgba(255,255,255,.48), rgba(223,216,203,.2));
  box-shadow: inset 0 1px rgba(255,255,255,.88), 0 22px 65px rgba(72, 61, 43, .07);
  perspective: 1600px;
}

.home-book-stage > .orbit,
.home-book-stage > .floor-glow,
.home-book-stage > .closed-book,
.home-book-stage > .floating-symbol { display: none; }

.home-book-loop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-book-loop::before,
.home-book-loop::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 12%;
  pointer-events: none;
}

.home-book-loop::before {
  left: 0;
  background: linear-gradient(90deg, rgba(244,241,234,.9), transparent);
}

.home-book-loop::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(239,235,226,.9), transparent);
}

.home-loop-track {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.home-loop-volume {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 224px;
  transform: translate3d(var(--home-x), var(--home-y), 0) rotateY(var(--book-ry)) rotateZ(var(--book-rz)) scale(var(--home-scale));
  transform-style: preserve-3d;
  animation: home-volume-breathe 5.5s ease-in-out infinite;
  animation-delay: calc(var(--delay) * -4);
}

.home-loop-volume .volume-book {
  filter: drop-shadow(15px 20px 12px rgba(67, 55, 36, .19));
}

.home-loop-volume .volume-cover strong {
  max-width: 124px;
  font-size: 17px;
  line-height: 1.2;
}

.home-loop-volume .volume-cover small {
  max-width: 120px;
  font-size: 5.5px;
  line-height: 1.45;
}

.question-card {
  align-self: center;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  padding: 30px 26px;
  border-color: rgba(68, 60, 48, .16);
  border-radius: 14px;
  color: #2d2a25;
  background: rgba(255, 253, 247, .78);
  box-shadow: 0 24px 65px rgba(73, 62, 45, .09), inset 0 1px rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
}

.question-heading h2 { color: #302c25; }
.question-heading p { color: #817a70; line-height: 1.65; }
.mini-spark { border-color: rgba(143, 104, 39, .27); color: #9b722e; }

textarea {
  color: #302d27;
  border-color: rgba(62, 55, 45, .16);
  background: rgba(255, 255, 255, .58);
}

textarea::placeholder { color: #9a948b; }
textarea:focus {
  border-color: rgba(151, 111, 43, .52);
  box-shadow: 0 0 0 3px rgba(151, 111, 43, .07);
}
.question-counter,
.suggestions > span { color: #999187; }
.suggestions button {
  color: #736d65;
  border-color: rgba(61, 54, 44, .13);
  background: rgba(255,255,255,.48);
}
.suggestions button:hover { color: #815f26; background: rgba(158,119,50,.06); }

.primary-button {
  border-color: #332f28;
  color: #fffaf0;
  background: linear-gradient(115deg, #28251f, #4d4437 48%, #2c2821);
  box-shadow: 0 11px 24px rgba(48, 42, 33, .16), inset 0 1px rgba(255,255,255,.12);
}
.primary-button:hover { box-shadow: 0 15px 32px rgba(48, 42, 33, .22), inset 0 1px rgba(255,255,255,.14); }
.ritual-steps { color: #898278; }
.ritual-steps > i { background: linear-gradient(90deg, rgba(112,85,40,.28), rgba(112,85,40,.05)); }

body.is-ritual-active {
  overflow: hidden;
}

body.is-ritual-active .site-header,
body.is-ritual-active footer { display: none; }

body.is-ritual-active main,
body.is-ritual-active .reading-screen {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

body.is-ritual-active .reading-screen {
  padding: 24px 0 22px;
}

.reading-head { position: relative; z-index: 8; }
.reading-head h2 { color: #312d27; }
.question-echo { color: #756f66; }
.question-echo::before,
.question-echo::after { color: #a59d92; }

body.is-ritual-active .reading-visual {
  width: 100vw;
  min-height: calc(100vh - 205px);
  margin: -8px 0 0;
  overflow: hidden;
  transform: none;
}

.reading-aura {
  opacity: .14;
  filter: blur(42px);
}

.reading-visual > .constellation { opacity: .18; }

.book-universe {
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 1500px;
  transform: translate(-50%, -50%);
}

.book-field-camera {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(var(--field-x, 0), var(--field-y, 0), 0) rotateX(var(--field-rx, 0deg)) rotateY(var(--field-ry, 0deg));
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}

.book-field {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 0;
  height: 0;
  transform: translate3d(0,0,0);
  transition: transform 650ms cubic-bezier(.18,.78,.24,1);
}

.book-universe.is-visible:not(.has-selection) .book-field {
  animation: diagonal-book-cycle 3.1s linear infinite;
}

.category-volume {
  top: 0;
  left: 0;
  width: 178px;
  height: 250px;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(var(--x), calc(var(--y) + 170px), calc(var(--z) - 260px)) rotateY(var(--book-ry)) rotateZ(var(--book-rz)) scale(.7);
  transition:
    transform 820ms cubic-bezier(.18,.78,.24,1),
    opacity 520ms ease,
    filter 520ms ease;
  transition-delay: var(--delay);
}

.book-universe.is-visible .category-volume {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--book-ry)) rotateZ(var(--book-rz)) scale(1);
}

.category-volume .volume-book {
  filter: drop-shadow(17px 22px 13px rgba(57, 47, 33, .22));
}

.category-volume .volume-cover strong {
  max-width: 142px;
  font-size: 18px;
  line-height: 1.2;
}

.category-volume .volume-cover small {
  max-width: 135px;
  font-size: 6px;
  line-height: 1.45;
}

.book-universe.has-selection .category-volume:not(.is-selected) {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(var(--x), var(--y), -420px) rotateY(var(--book-ry)) rotateZ(var(--book-rz)) scale(.76);
  transition-delay: 0ms;
}

.book-universe.has-selection .category-volume.is-selected {
  z-index: 20;
  opacity: 1;
  filter: drop-shadow(0 22px 20px rgba(50, 41, 28, .24));
  transform: translate3d(var(--select-x), var(--select-y), 220px) rotateY(-2deg) rotateZ(0deg) scale(1.14);
  transition-delay: 0ms;
}

.book-universe.has-selection .category-volume.is-selected .volume-book {
  transform: rotateY(-3deg) translateY(-4px);
}

.book-universe.has-selection .category-volume.is-selected.is-clicked .volume-book {
  animation: selected-book-click 520ms cubic-bezier(.18,.82,.22,1) both;
}

.book-universe.has-selection .category-volume.is-selected.is-clicked::after {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(var(--theme-rgb), .68);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(var(--theme-rgb), .2);
  pointer-events: none;
  animation: selected-click-ring 520ms ease-out both;
}

.book-universe.has-selection .category-volume.is-selected.is-expanding .volume-book {
  animation: selected-book-expand 640ms cubic-bezier(.16,.76,.2,1) forwards;
}

.book-universe.is-morphing {
  opacity: 0;
  filter: blur(7px);
  transform: translate(-50%, -50%) scale(1.12);
}

.reading-status { z-index: 8; bottom: 12px; }
.reading-status p { color: #706a62; }
.analysis-track { position: relative; z-index: 8; }
.analysis-step { color: #989188; }
.analysis-step.is-active,
.analysis-step.is-done { color: #5f5a52; }
.analysis-line { background: rgba(59,53,45,.14); }

.result-screen { color: #302d27; }
.selected-book-badge { background: rgba(255,255,255,.46); }
.result-question { color: #777169; }
.secondary-button {
  border-color: rgba(66,58,47,.24);
  color: #5b554d;
  background: rgba(255,255,255,.4);
}
.secondary-button:hover { border-color: rgba(126,91,34,.48); background: rgba(158,119,50,.06); }
.open-book-result { filter: drop-shadow(0 24px 21px rgba(74, 59, 37, .24)); }

footer {
  border-top-color: rgba(55,49,40,.09);
  color: #8b847a;
}

.drawer,
.modal {
  color: #302c26;
  background: #f8f5ee;
}
.overlay { background: rgba(55,49,40,.38); }

@keyframes diagonal-book-cycle {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1452px, 696px, 0); }
}

@keyframes selected-book-click {
  0% {
    filter: drop-shadow(17px 22px 13px rgba(57, 47, 33, .22)) brightness(1);
    transform: rotateY(-3deg) translateY(-4px) scale(1);
  }
  24% {
    filter: drop-shadow(8px 10px 7px rgba(57, 47, 33, .18)) brightness(.94);
    transform: rotateY(-1deg) translateY(7px) scale(.92);
  }
  55% {
    filter: drop-shadow(0 0 26px rgba(var(--theme-rgb), .38)) drop-shadow(0 24px 17px rgba(57, 47, 33, .2)) brightness(1.1);
    transform: rotateY(0deg) translateY(-12px) scale(1.13);
  }
  78% {
    transform: rotateY(-2deg) translateY(-6px) scale(1.04);
  }
  100% {
    filter: drop-shadow(17px 22px 13px rgba(57, 47, 33, .22)) brightness(1);
    transform: rotateY(-3deg) translateY(-4px) scale(1);
  }
}

@keyframes selected-click-ring {
  0% { opacity: 0; transform: scale(.78); }
  28% { opacity: .88; transform: scale(.94); }
  100% { opacity: 0; transform: scale(1.28); }
}

@keyframes selected-book-expand {
  0% {
    opacity: 1;
    filter: drop-shadow(17px 22px 13px rgba(57, 47, 33, .22)) brightness(1);
    transform: rotateY(-3deg) translateY(-4px) scale(1);
  }
  62% {
    opacity: 1;
    filter: drop-shadow(0 0 34px rgba(var(--theme-rgb), .34)) drop-shadow(0 30px 22px rgba(57, 47, 33, .22)) brightness(1.08);
    transform: rotateY(-1deg) translateY(-12px) scale(1.42);
  }
  100% {
    opacity: .12;
    filter: blur(2px) drop-shadow(0 0 42px rgba(var(--theme-rgb), .2)) brightness(1.08);
    transform: rotateY(0deg) translateY(-16px) scale(1.62);
  }
}

@keyframes home-volume-breathe {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@media (max-width: 1080px) {
  .home-content {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
  .home-loop-volume { width: 146px; height: 205px; }
  .home-loop-volume .volume-cover strong { font-size: 15px; }
}

@media (max-width: 900px) {
  .screen { width: min(720px, calc(100% - 30px)); }
  .home-content {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
  }
  .home-book-stage { min-height: 430px; }
  .question-card { max-width: 620px; margin: 0 auto; }
  .home-loop-volume { width: 145px; height: 203px; }
  body.is-ritual-active .reading-visual { min-height: calc(100vh - 220px); }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 28px); }
  #openSaved,
  #openAbout { display: none; }
  .site-nav { flex: 0 0 auto; }
  .brand { min-width: 0; }
  .brand strong { font-size: 12px; }
  .home-screen { padding-top: 30px; }
  .hero-copy,
  .home-content,
  .home-content > *,
  .question-card,
  .question-card form,
  .question-heading > div { min-width: 0; }
  .hero-copy h1 {
    max-width: 100%;
    font-size: 29px;
    line-height: 1.24;
    overflow-wrap: anywhere;
  }
  body[data-language="en"] .hero-copy h1 em {
    display: block;
    margin-top: 3px;
  }
  .home-book-stage { min-height: 350px; border-radius: 14px; }
  .home-loop-volume { width: 116px; height: 164px; }
  .home-loop-volume .volume-cover { padding: 11px 10px; }
  .home-loop-volume .volume-cover::before { margin-bottom: 11px; }
  .home-loop-volume .volume-cover strong { max-width: 92px; font-size: 12px; }
  .home-loop-volume .volume-cover small { font-size: 4px; }
  .question-card { width: 100%; max-width: 100%; padding: 24px 20px; overflow: hidden; }
  .question-heading h2 { line-height: 1.35; overflow-wrap: anywhere; }
  textarea { min-width: 0; }
  body.is-ritual-active .reading-screen { padding-top: 22px; }
  body.is-ritual-active .reading-visual {
    min-height: calc(100vh - 190px);
    margin-top: -16px;
  }
  .category-volume { width: 142px; height: 199px; }
  .category-volume .volume-cover strong { max-width: 110px; font-size: 14px; }
  .category-volume .volume-cover small { max-width: 108px; font-size: 4.5px; }
  .book-universe.has-selection .category-volume.is-selected {
    transform: translate3d(var(--select-x), var(--select-y), 220px) rotateY(-2deg) scale(.9);
  }
  .reading-status { bottom: 32px; }
  .analysis-track { margin-top: -4px; }
}

/* Borderless home composition: the books live in the page, not inside a card. */
.home-content {
  position: relative;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
  gap: clamp(4px, 1.2vw, 18px);
}

.home-book-stage {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-book-loop {
  inset: -155px -250px -115px -130px;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.34) 10%, #000 23%, #000 84%, rgba(0,0,0,.38) 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.34) 10%, #000 23%, #000 84%, rgba(0,0,0,.38) 94%, transparent 100%);
}

.home-book-loop::before,
.home-book-loop::after { display: none; }

.hero-copy,
.question-card {
  isolation: isolate;
}

.hero-copy::before,
.question-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  border: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 32%, rgba(0,0,0,.78) 52%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 32%, rgba(0,0,0,.78) 52%, transparent 78%);
}

.hero-copy::before {
  inset: -48px 12%;
  background: rgba(247, 244, 237, .24);
}

.question-card {
  padding: 30px 18px 30px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.question-card::before {
  inset: -72px -84px;
  width: auto;
  height: auto;
  background: rgba(246, 242, 233, .42);
}

.question-card::after { display: none; }

.input-shell {
  border-radius: 4px;
  box-shadow: 0 13px 36px rgba(64, 53, 36, .055);
}

textarea {
  background: rgba(255, 254, 250, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ritual-steps {
  position: relative;
  z-index: 7;
}

@media (max-width: 1080px) {
  .home-content {
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 0;
  }
  .home-book-loop { right: -190px; }
}

@media (max-width: 900px) {
  .home-content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-book-loop {
    inset: -95px -110px -60px;
    overflow: hidden;
  }
  .question-card {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 620px) {
  .home-book-loop { inset: -70px -72px -42px; }
  .question-card { overflow: visible; }
  .question-card::before { inset: -48px -34px; }
  .question-heading { width: 100%; }
  .question-heading > div {
    width: 0;
    flex: 1 1 0;
  }
  .question-heading h2 {
    max-width: 100%;
    font-size: 17px;
  }
}

/* =========================================================
   maomaoyulin island integration
   Keep the oracle interaction, align its shell with the site.
   ========================================================= */
:root {
  --bg: #7dc395;
  --bg-deep: #69b889;
  --surface: rgba(255, 252, 244, 0.92);
  --surface-strong: #fffdf7;
  --line: rgba(114, 93, 66, 0.14);
  --line-strong: rgba(25, 200, 185, 0.42);
  --gold: #19c8b9;
  --gold-light: #19c8b9;
  --text: #725d42;
  --muted: #7c5734;
  --theme: #19c8b9;
  --theme-rgb: 25, 200, 185;
  --theme-deep: #0fa395;
  --sans: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  color: var(--text);
  background: #7dc395;
}

.sky {
  background:
    linear-gradient(rgba(125, 195, 149, 0.88), rgba(125, 195, 149, 0.88)),
    url("../assets/home_bg.webp") 0 0 / auto repeat,
    #7dc395;
  animation: island-bg-scroll 80s linear infinite;
}

.sky::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 249, 230, 0.18), transparent 31%),
    linear-gradient(90deg, rgba(56, 128, 92, 0.08), transparent 24%, transparent 76%, rgba(56, 128, 92, 0.08));
}

.aurora-one { background: #fff9e6; opacity: 0.13; }
.aurora-two { background: #19c8b9; opacity: 0.13; }
.grain { opacity: 0.015; }
.star-dot {
  background: rgba(255, 249, 230, var(--alpha));
  box-shadow: 0 0 calc(var(--size) * 4) rgba(255, 249, 230, 0.34);
}

@keyframes island-bg-scroll {
  from { background-position: 0 0, 100% 0%, 0 0; }
  to { background-position: 0 0, 0% 100%, 0 0; }
}

.island-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 60;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(232, 226, 214, 0.62);
  border-radius: 999px;
  background: rgba(255, 252, 244, 0.9);
  box-shadow: 0 4px 16px rgba(114, 93, 66, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  white-space: nowrap;
}

.island-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #7c5734;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.island-nav a:hover {
  color: #725d42;
  background: #f0e8d8;
  transform: translateY(-1px);
}

.island-nav a.active {
  color: #fff;
  background: #19c8b9;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 70px;
  margin: 86px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(232, 226, 214, 0.62);
  border-radius: 24px;
  background: rgba(255, 252, 244, 0.88);
  box-shadow: 0 4px 16px rgba(114, 93, 66, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand strong { color: #725d42; }
.brand small { color: #7c5734; }
.brand-mark,
.header-icon-button,
.language-switch {
  border-color: rgba(25, 200, 185, 0.26);
  background: #e6f9f6;
}
.brand-mark svg { fill: #19c8b9; }
.header-icon-button,
.nav-button { color: #725d42; }
.language-option { color: #9c8a74; }
.language-option.is-active,
.header-icon-button:hover,
.nav-button:hover { color: #0fa395; }
.count-badge {
  color: #0fa395;
  border-color: rgba(25, 200, 185, 0.3);
  background: rgba(25, 200, 185, 0.1);
}

.screen {
  width: min(1180px, calc(100% - 40px));
}

.home-screen { padding-top: 42px; }
.hero-copy h1 {
  color: #fff9e6;
  text-shadow: 0 3px 1px rgba(74, 58, 40, 0.38);
}
.hero-copy h1 em {
  color: #fff9e6;
  text-shadow: 0 3px 1px rgba(74, 58, 40, 0.38);
}
.hero-description {
  color: #fff9e6;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(74, 58, 40, 0.24);
}
.eyebrow {
  color: rgba(255, 249, 230, 0.9);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(74, 58, 40, 0.2);
}
.eyebrow > span {
  background: linear-gradient(90deg, transparent, rgba(255, 249, 230, 0.72));
}
.hero-copy::before {
  background: rgba(85, 159, 110, 0.14);
}

.home-content {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 4vw, 54px);
}

@media (min-width: 901px) {
  .home-screen {
    width: 100%;
    max-width: none;
  }

  .home-screen .hero-copy {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
  }

  .home-content {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: clamp(620px, 68vh, 780px);
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0 clamp(44px, 6vw, 120px);
  }

  .home-book-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
  }

  .home-book-loop {
    inset: -160px -80px -120px;
  }

  .question-card {
    position: relative;
    z-index: 6;
    flex: 0 0 410px;
    margin: 0;
  }
}

.question-card {
  max-width: 410px;
  padding: 28px 26px;
  overflow: hidden;
  border: 1px solid #e8e2d6;
  border-radius: 24px;
  color: #725d42;
  background: rgba(255, 253, 247, 0.95);
  box-shadow: 0 8px 24px rgba(114, 93, 66, 0.15);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.question-card::before,
.question-card::after { display: none; }
.question-heading h2 { color: #725d42; font-weight: 800; }
.question-heading p { color: #7c5734; }
.mini-spark {
  color: #19c8b9;
  border-color: rgba(25, 200, 185, 0.28);
  background: #e6f9f6;
}
.input-shell { border-radius: 14px; }
textarea {
  color: #725d42;
  border-color: #e8e2d6;
  border-radius: 14px;
  background: #fff;
}
textarea:focus {
  border-color: #19c8b9;
  box-shadow: 0 0 0 3px rgba(25, 200, 185, 0.12);
}
.suggestions button {
  color: #7c5734;
  border-color: rgba(114, 93, 66, 0.12);
  border-radius: 999px;
  background: #faf8f3 !important;
  mix-blend-mode: normal;
}
.suggestions button:hover {
  color: #0fa395;
  border-color: rgba(25, 200, 185, 0.3);
  background: #e6f9f6 !important;
}

.primary-button {
  border-color: #19c8b9;
  border-radius: 14px;
  color: #fff;
  background: #19c8b9;
  box-shadow: 0 4px 0 #0fa395, 0 7px 16px rgba(25, 200, 185, 0.28);
}
.primary-button:hover {
  box-shadow: 0 6px 0 #0fa395, 0 11px 22px rgba(25, 200, 185, 0.32);
  transform: translateY(-2px);
}
.secondary-button {
  border-color: rgba(114, 93, 66, 0.18);
  border-radius: 14px;
  color: #725d42;
  background: rgba(255, 249, 230, 0.9);
  box-shadow: 0 4px 0 rgba(114, 93, 66, 0.14);
}
.secondary-button:hover {
  border-color: rgba(25, 200, 185, 0.3);
  color: #0fa395;
  background: #fff;
}

.ritual-steps { color: rgba(255, 249, 230, 0.9); }
.ritual-steps b {
  color: #fff;
  background: #19c8b9;
}
.ritual-steps > i {
  background: linear-gradient(90deg, rgba(255, 249, 230, 0.62), rgba(255, 249, 230, 0.12));
}

.reading-head h2,
.result-screen { color: #725d42; }
.question-echo,
.result-question,
.reading-status p { color: #7c5734; }
.reading-status,
.selected-book-badge {
  border: 1px solid rgba(232, 226, 214, 0.78);
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.9);
  box-shadow: 0 4px 12px rgba(114, 93, 66, 0.08);
}
.analysis-step.is-active,
.analysis-step.is-done { color: #0fa395; }
.analysis-step.is-active i,
.analysis-step.is-done i { background: #19c8b9; }

.drawer,
.modal {
  color: #725d42;
  background: #fffdf7;
  border-color: #e8e2d6;
  box-shadow: 0 18px 50px rgba(114, 93, 66, 0.18);
}
.modal { border-radius: 24px; }
.saved-card {
  border-color: #e8e2d6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(114, 93, 66, 0.08);
}
.book-types span {
  border-color: rgba(25, 200, 185, 0.18);
  border-radius: 999px;
  color: #725d42;
  background: #e6f9f6;
}
.toast {
  border-radius: 14px;
  color: #725d42;
  background: #fffdf7;
  box-shadow: 0 8px 24px rgba(114, 93, 66, 0.15);
}
.overlay { background: rgba(74, 58, 40, 0.34); }

footer {
  color: rgba(255, 249, 230, 0.92);
  border-top-color: rgba(255, 249, 230, 0.24);
  text-shadow: 0 1px 2px rgba(74, 58, 40, 0.24);
}
footer a {
  color: #fff9e6;
  font-weight: 700;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

body.is-ritual-active .island-nav { display: none; }

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 28px);
    margin-top: 78px;
  }
  .home-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .question-card {
    width: min(100%, 620px);
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .island-nav {
    top: 12px;
    gap: 3px;
    padding: 5px;
  }
  .island-nav a {
    gap: 4px;
    padding: 5px 9px;
    font-size: 11px;
  }
  .site-header {
    height: 62px;
    margin-top: 68px;
    padding: 0 13px;
    border-radius: 18px;
  }
  .site-nav { gap: 8px; }
  .screen { width: calc(100% - 28px); }
  .home-screen { padding-top: 30px; }
  .question-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .question-card::before { display: none; }
  .hero-copy h1 { font-size: 31px; }
}

@media (max-width: 390px) {
  .island-nav { gap: 2px; }
  .island-nav a { padding: 5px 7px; font-size: 10.5px; }
}
