:root {
  color-scheme: dark;
  --ink-950: #080b12;
  --ink-900: #101729;
  --ink-850: #131b2e;
  --ink-800: #172033;
  --ink-700: #22304a;
  --ink-600: #31415e;
  --night-blue: #0d1425;
  --deep-purple: #20152d;
  --purple-veil: #3a254c;
  --paper: #f7f4ec;
  --paper-soft: #d9d0bb;
  --moon: #d9e2ee;
  --mist: #9fb1ca;
  --copper: #b7954b;
  --copper-soft: #d6bd7a;
  --cinnabar: #a94c3d;
  --jade: #5c9786;
  --line-soft: rgba(247, 244, 236, 0.1);
  --line-gold: rgba(214, 189, 122, 0.34);
  --shadow: 0 28px 82px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 18px 54px rgba(183, 149, 75, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --tap: 44px;
  --bottom-nav: 76px;
  --topbar: 72px;
  --max: 1180px;
  --font-body: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-title: "Noto Serif SC", "Songti SC", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink-950);
  font-size: 16px;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--moon);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 4%, rgba(214, 189, 122, 0.13), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(78, 49, 110, 0.28), transparent 30rem),
    radial-gradient(circle at 56% 84%, rgba(169, 76, 61, 0.08), transparent 26rem),
    linear-gradient(180deg, #101729 0%, #080b12 54%, #0b0d15 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(247, 244, 236, 0.13), transparent 32rem),
    radial-gradient(ellipse at 12% 55%, rgba(159, 177, 202, 0.08), transparent 24rem),
    radial-gradient(ellipse at 82% 60%, rgba(58, 37, 76, 0.18), transparent 25rem);
  filter: blur(0.2px);
  transform: scale(1.035) translate3d(-0.4%, -0.3%, 0);
  transform-origin: 50% 20%;
  animation: ambientVeil 30s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(247, 244, 236, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 18%, rgba(214, 189, 122, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 68%, rgba(247, 244, 236, 0.1) 0 1px, transparent 1.4px),
    radial-gradient(circle at 34% 78%, rgba(217, 226, 238, 0.12) 0 1px, transparent 1.4px),
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.36) 100%);
  background-size: 260px 260px, 330px 330px, 290px 290px, 360px 360px, 100% 100%;
  opacity: 0.65;
  transform: scale(1.025);
  animation: starFieldDrift 46s linear infinite alternate;
  will-change: transform, opacity;
}

body.font-large {
  font-size: 18px;
}

body.modal-open {
  overflow: hidden;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

:focus-visible {
  outline: 2px solid var(--copper-soft);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 9px 12px;
  color: var(--ink-950);
  border-radius: var(--radius-sm);
  background: var(--copper-soft);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
}

.app-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(247, 244, 236, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 236, 0.018) 1px, transparent 1px),
    radial-gradient(ellipse at 18% 18%, rgba(247, 244, 236, 0.055), transparent 18rem),
    radial-gradient(ellipse at 72% 36%, rgba(183, 149, 75, 0.045), transparent 22rem);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}

.app-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(112deg, transparent 0 28%, rgba(247, 244, 236, 0.035) 42%, transparent 58%),
    radial-gradient(ellipse at 42% 20%, rgba(159, 177, 202, 0.07), transparent 24rem);
  opacity: 0.9;
  transform: translate3d(-2%, 0, 0) scale(1.04);
  animation: veilPass 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid rgba(214, 189, 122, 0.12);
  background:
    linear-gradient(180deg, rgba(16, 23, 41, 0.88), rgba(8, 11, 18, 0.72)),
    rgba(8, 11, 18, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(1.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--copper-soft);
  font-family: var(--font-title);
  font-size: 1.25rem;
  border: 1px solid rgba(214, 189, 122, 0.58);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, rgba(247, 244, 236, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(183, 149, 75, 0.12), rgba(16, 23, 41, 0.94));
  box-shadow: inset 0 0 18px rgba(214, 189, 122, 0.08), 0 0 26px rgba(183, 149, 75, 0.1);
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  color: var(--paper);
  border-color: rgba(247, 244, 236, 0.72);
  box-shadow: inset 0 0 22px rgba(214, 189, 122, 0.12), 0 0 30px rgba(183, 149, 75, 0.18);
  transform: rotate(-5deg) scale(1.035);
}

.brand strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--mist);
  font-size: 0.75rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: var(--tap);
  min-height: var(--tap);
  color: var(--moon);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.06), transparent),
    rgba(23, 32, 51, 0.78);
  box-shadow: inset 0 1px 0 rgba(247, 244, 236, 0.06);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--copper-soft);
  border-color: rgba(183, 149, 75, 0.48);
  background: rgba(34, 48, 74, 0.9);
  box-shadow: 0 0 0 4px rgba(183, 149, 75, 0.08), inset 0 1px 0 rgba(247, 244, 236, 0.08);
}

.app-main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 16px calc(var(--bottom-nav) + 38px + env(safe-area-inset-bottom));
}

.page {
  display: grid;
  gap: 20px;
  animation: pageIn 320ms ease both;
}

.page-hero {
  --hero-copy-x: 0px;
  --hero-copy-y: 0px;
  --hero-orb-x: 0px;
  --hero-orb-y: 0px;
  --hero-scene-x: 0px;
  --hero-scene-y: 0px;
  position: relative;
  display: grid;
  gap: 16px;
  min-height: min(62vh, 620px);
  padding: clamp(22px, 5vw, 46px);
  overflow: hidden;
  isolation: isolate;
  perspective: 1000px;
  border: 1px solid rgba(214, 189, 122, 0.17);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(23, 32, 51, 0.94), rgba(12, 16, 26, 0.86)),
    radial-gradient(circle at 74% 18%, rgba(214, 189, 122, 0.2), transparent 18rem),
    radial-gradient(circle at 18% 88%, rgba(58, 37, 76, 0.28), transparent 20rem);
  box-shadow: var(--shadow), var(--shadow-gold);
}

.page-hero::after {
  position: absolute;
  z-index: 0;
  right: -64px;
  top: -64px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(217, 226, 238, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(247, 244, 236, 0.16), transparent 34%),
    radial-gradient(circle, rgba(217, 226, 238, 0.05), transparent 68%);
  box-shadow: inset 0 0 44px rgba(217, 226, 238, 0.06), 0 0 58px rgba(217, 226, 238, 0.06);
  opacity: 0.76;
  transform: translate3d(0, 0, 0) scale(1);
  animation: distantMoon 28s cubic-bezier(0.45, 0.05, 0.55, 0.95) -7s infinite;
  will-change: transform, opacity;
}

.page-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(100deg, transparent 0 36%, rgba(247, 244, 236, 0.045) 48%, transparent 62%),
    radial-gradient(ellipse at 28% 72%, rgba(247, 244, 236, 0.045), transparent 22rem);
  mix-blend-mode: screen;
  opacity: 0.82;
  transform: translate3d(-7%, 0, 0) scale(1.08);
  animation: spiritSweep 24s ease-in-out -5s infinite;
  will-change: transform, opacity;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 760px;
  transform: translate3d(var(--hero-copy-x), var(--hero-copy-y), 0);
  transition: transform 180ms ease-out;
  will-change: transform;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(var(--hero-scene-x), var(--hero-scene-y), 0) scale(1.03);
  transition: transform 220ms ease-out;
  will-change: transform;
}

.mystic-orbit,
.mystic-star {
  position: absolute;
  display: block;
  pointer-events: none;
}

.mystic-orbit {
  border: 1px solid rgba(214, 189, 122, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(214, 189, 122, 0.025), 0 0 30px rgba(159, 177, 202, 0.025);
}

.orbit-one {
  right: 10%;
  top: 12%;
  width: clamp(180px, 25vw, 330px);
  aspect-ratio: 1;
  border-left-color: transparent;
  border-bottom-color: rgba(159, 177, 202, 0.08);
  animation: webOrbitOne 18s ease-in-out -4s infinite alternate;
}

.orbit-two {
  right: 2%;
  bottom: -20%;
  width: clamp(260px, 36vw, 460px);
  aspect-ratio: 1;
  border-top-color: transparent;
  border-right-color: rgba(247, 244, 236, 0.08);
  animation: webOrbitTwo 26s ease-in-out -9s infinite alternate;
}

.mystic-star {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 16px rgba(247, 244, 236, 0.5);
  opacity: 0.5;
}

.star-one {
  left: 46%;
  top: 22%;
  animation: webStarPulse 5.4s ease-in-out -1s infinite;
}

.star-two {
  right: 20%;
  top: 56%;
  width: 3px;
  height: 3px;
  animation: webStarPulse 7.2s ease-in-out -3s infinite;
}

.hero-orb-wrap {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  justify-self: center;
  transform: translate3d(var(--hero-orb-x), var(--hero-orb-y), 22px);
  transition: transform 220ms ease-out;
  will-change: transform;
}

.hero-scroll-cue {
  position: absolute;
  left: clamp(22px, 5vw, 46px);
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(217, 226, 238, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.hero-scroll-cue span {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper-soft), transparent);
  transform-origin: left center;
  animation: cueLine 2.6s ease-in-out infinite;
}

.home-hero .hero-copy > * {
  animation: heroTextIn 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero .hero-copy > :nth-child(1) { animation-delay: 70ms; }
.home-hero .hero-copy > :nth-child(2) { animation-delay: 140ms; }
.home-hero .hero-copy > :nth-child(3) { animation-delay: 230ms; }
.home-hero .hero-copy > :nth-child(4) { animation-delay: 300ms; }
.home-hero .hero-copy > :nth-child(5) { animation-delay: 370ms; }
.home-hero .hero-copy > :nth-child(6) { animation-delay: 430ms; }

.home-hero .button:hover,
.home-hero .button:focus-visible {
  transform: translateY(-1px);
}

.hero-product-note {
  max-width: 54ch;
  margin: -2px 0 16px;
  color: rgba(217, 226, 238, 0.68);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.home-value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(214, 189, 122, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(214, 189, 122, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.home-value-strip article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.03), transparent),
    rgba(12, 17, 29, 0.94);
}

.home-value-strip article > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--copper-soft);
  font-family: var(--font-title);
  border: 1px solid rgba(214, 189, 122, 0.28);
  border-radius: 50%;
  background: rgba(183, 149, 75, 0.06);
}

.home-value-strip strong,
.home-value-strip small {
  display: block;
}

.home-value-strip strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
}

.home-value-strip small {
  margin-top: 3px;
  color: var(--mist);
  font-size: 0.76rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--paper);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 12vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 5vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

p {
  color: var(--mist);
}

.lead {
  max-width: 62ch;
  color: var(--moon);
  font-size: clamp(1rem, 2.8vw, 1.16rem);
}

.section {
  display: grid;
  gap: 14px;
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 560ms ease var(--reveal-delay, 0ms), transform 640ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading p {
  margin: 0;
  font-size: 0.9rem;
}

.ritual-heading {
  width: min(100%, 760px);
  margin: 0 auto;
  justify-content: center;
  text-align: center;
}

.oracle-heading {
  padding-top: clamp(6px, 1.8vw, 16px);
}

.ritual-heading > div {
  width: 100%;
}

.ritual-heading h1 {
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.04;
}

.ritual-heading .lead {
  max-width: 54ch;
  margin-right: auto;
  margin-left: auto;
}

.oracle-form {
  width: min(100%, 760px);
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.panel,
.card,
.method-card,
.result-shell,
.modal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 236, 0.11);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.045), transparent 32%),
    linear-gradient(160deg, rgba(32, 21, 45, 0.32), transparent 54%),
    linear-gradient(180deg, rgba(23, 32, 51, 0.9), rgba(13, 18, 31, 0.94));
  box-shadow: var(--shadow-soft);
}

.panel::before,
.card::before,
.method-card::before,
.result-shell::before,
.modal-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 244, 236, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(247, 244, 236, 0.024) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 84%);
}

.panel {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.card,
.method-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.method-card {
  min-height: 154px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.method-card::after {
  position: absolute;
  inset: -30% -18%;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(100deg, transparent 38%, rgba(214, 189, 122, 0.1) 49%, rgba(247, 244, 236, 0.055) 53%, transparent 64%);
  opacity: 0;
  transform: translate3d(-58%, 0, 0) rotate(5deg);
  transition: opacity 220ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.method-card > * {
  position: relative;
  z-index: 1;
}

.method-card:hover::after,
.method-card:focus-visible::after {
  opacity: 1;
  transform: translate3d(58%, 0, 0) rotate(5deg);
}

.method-card:hover,
.method-card:focus-visible {
  border-color: rgba(183, 149, 75, 0.5);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.06), transparent),
    linear-gradient(160deg, rgba(58, 37, 76, 0.32), rgba(16, 23, 41, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(214, 189, 122, 0.08);
  transform: translateY(-2px);
}

.card-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--copper-soft);
  font-family: var(--font-title);
  border: 1px solid rgba(183, 149, 75, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(247, 244, 236, 0.14), transparent 48%),
    rgba(183, 149, 75, 0.08);
  box-shadow: inset 0 0 16px rgba(183, 149, 75, 0.06);
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.method-card:hover .card-symbol,
.method-card:focus-visible .card-symbol {
  color: var(--paper);
  border-color: rgba(214, 189, 122, 0.62);
  box-shadow: inset 0 0 18px rgba(183, 149, 75, 0.1), 0 8px 24px rgba(183, 149, 75, 0.12);
  transform: translateY(-2px) rotate(-4deg);
}

.muted {
  color: var(--mist);
}

.fine {
  color: #aab5c8;
  font-size: 0.85rem;
}

.tag-row,
.action-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--paper-soft);
  border: 1px solid rgba(247, 244, 236, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(247, 244, 236, 0.07), rgba(247, 244, 236, 0.035));
  font-size: 0.84rem;
}

.method-status {
  color: rgba(214, 189, 122, 0.88);
  border-color: rgba(214, 189, 122, 0.16);
  background: rgba(183, 149, 75, 0.055);
  font-size: 0.74rem;
}

.chip {
  min-height: var(--tap);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip[aria-pressed="true"],
.chip.is-active,
.chip:hover {
  color: var(--ink-950);
  border-color: var(--copper-soft);
  background: var(--copper-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 14px;
  color: var(--ink-950);
  cursor: pointer;
  border: 1px solid rgba(214, 189, 122, 0.8);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.32), transparent 42%),
    linear-gradient(180deg, var(--copper-soft), var(--copper));
  box-shadow: 0 10px 22px rgba(183, 149, 75, 0.16), inset 0 1px 0 rgba(247, 244, 236, 0.28);
  font-weight: 700;
  transition: filter 180ms ease, transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.button.secondary {
  color: var(--moon);
  border-color: rgba(247, 244, 236, 0.16);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.07), rgba(247, 244, 236, 0.035)),
    rgba(16, 23, 41, 0.72);
  font-weight: 600;
}

.button.ghost {
  color: var(--copper-soft);
  border-color: transparent;
  background: transparent;
  font-weight: 600;
}

.button:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(183, 149, 75, 0.2), inset 0 1px 0 rgba(247, 244, 236, 0.3);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled,
.chip:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button.is-loading {
  cursor: progress;
}

.form-grid[aria-busy] {
  cursor: progress;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--paper-soft);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  color: var(--paper);
  border: 1px solid rgba(247, 244, 236, 0.16);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.035), transparent),
    rgba(8, 11, 18, 0.54);
  box-shadow: inset 0 1px 0 rgba(247, 244, 236, 0.04);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(214, 189, 122, 0.48);
  box-shadow: 0 0 0 4px rgba(183, 149, 75, 0.08), inset 0 1px 0 rgba(247, 244, 236, 0.06);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.error-text {
  color: #ffbeb4;
  font-size: 0.88rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(214, 189, 122, 0.14);
  background:
    linear-gradient(180deg, rgba(32, 21, 45, 0.2), rgba(8, 11, 18, 0.9)),
    rgba(8, 11, 18, 0.86);
  box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.15);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 56px;
  color: var(--mist);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bottom-nav a:active {
  transform: scale(0.97);
}

.bottom-nav a.is-active {
  color: var(--copper-soft);
  background:
    radial-gradient(circle at 50% 14%, rgba(214, 189, 122, 0.16), transparent 52%),
    rgba(183, 149, 75, 0.1);
}

.bottom-nav a.is-active svg {
  animation: navRuneAwake 420ms ease both;
}

.moon-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: min(68vw, 260px);
  aspect-ratio: 1;
  margin: 8px auto 0;
  color: var(--copper-soft);
  border: 1px solid rgba(217, 226, 238, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(247, 244, 236, 0.32), rgba(217, 226, 238, 0.04) 34%, transparent 35%),
    radial-gradient(circle, rgba(183, 149, 75, 0.18), transparent 68%);
  box-shadow: inset 0 0 52px rgba(217, 226, 238, 0.08), 0 0 70px rgba(183, 149, 75, 0.12);
  isolation: isolate;
  animation: moonHover 15.8s cubic-bezier(0.37, 0, 0.63, 1) -4.2s infinite;
  will-change: transform;
}

.moon-disc::before,
.moon-disc::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: 50%;
}

.moon-disc::before {
  inset: -10%;
  z-index: -1;
  border: 1px solid rgba(214, 189, 122, 0.16);
  border-left-color: transparent;
  border-bottom-color: rgba(159, 177, 202, 0.08);
  animation: orbitRing 34s ease-in-out -11s infinite alternate;
}

.moon-disc::after {
  inset: 9%;
  z-index: -1;
  border: 1px solid rgba(247, 244, 236, 0.08);
  border-right-color: transparent;
  box-shadow: 0 0 34px rgba(183, 149, 75, 0.08);
  animation: orbitRing 27s ease-in-out -3s infinite alternate-reverse;
}

.moon-disc span {
  display: block;
  font-family: var(--font-title);
  font-size: 3.8rem;
  text-shadow: 0 0 18px rgba(214, 189, 122, 0.08);
  transform-origin: 50% 58%;
  animation: glyphBreath 11.6s ease-in-out -2.5s infinite;
  will-change: transform, opacity;
}

.ritual-disc {
  animation: none;
}

.ritual-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(214, 189, 122, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(247, 244, 236, 0.075), transparent 16rem),
    radial-gradient(circle at 50% 20%, rgba(183, 149, 75, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(8, 11, 18, 0.18), rgba(8, 11, 18, 0.58)),
    linear-gradient(135deg, rgba(32, 21, 45, 0.2), transparent);
  box-shadow: inset 0 1px 0 rgba(247, 244, 236, 0.04), var(--shadow-soft);
}

.ritual-stage::before,
.ritual-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.ritual-stage::before {
  background:
    radial-gradient(circle at 28% 26%, rgba(247, 244, 236, 0.14) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 38%, rgba(214, 189, 122, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 44% 74%, rgba(247, 244, 236, 0.11) 0 1px, transparent 1.4px);
  background-size: 190px 190px, 240px 240px, 210px 210px;
  opacity: 0.45;
  transform: scale(1.04) translate3d(0, 0, 0);
  animation: ritualDust 20s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.ritual-stage::after {
  background: radial-gradient(ellipse at center, transparent 34%, rgba(0, 0, 0, 0.22) 100%);
}

.ritual-stage > * {
  position: relative;
  z-index: 1;
}

.oracle-stage {
  min-height: 390px;
  padding: 24px;
}

.oracle-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.72fr);
  align-items: end;
  width: min(100%, 700px);
  min-height: 292px;
  margin: 24px auto 0;
}

.oracle-scene .vessel-wrap {
  width: 100%;
  min-height: 266px;
}

.oracle-reveal-zone {
  position: relative;
  min-height: 236px;
  isolation: isolate;
}

.oracle-reveal-zone::before {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: -2;
  width: 190px;
  height: 110px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 189, 122, 0.11), rgba(183, 149, 75, 0.035) 44%, transparent 72%);
  filter: blur(8px);
  transform: translateX(-50%);
  opacity: 0.7;
}

.oracle-focus {
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: -1;
  width: 170px;
  height: 190px;
  margin-left: -85px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 34%, rgba(247, 244, 236, 0.16), rgba(214, 189, 122, 0.08) 34%, transparent 72%);
  filter: blur(5px);
  opacity: 0;
  transform-origin: 50% 58%;
  will-change: transform, opacity;
}

.oracle-stick-target {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 12px;
  height: 108px;
  transform: translateX(-50%) rotate(4.8deg);
  opacity: 0;
}

.vessel {
  position: relative;
  width: 130px;
  height: 172px;
  border: 2px solid rgba(214, 189, 122, 0.5);
  border-radius: 32px 32px 18px 18px;
  background: linear-gradient(90deg, #463522, #7a5b35 45%, #3f2e1d);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(247, 244, 236, 0.08);
  transform-origin: 50% 85%;
}

.vessel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86vw, 420px);
  min-height: 230px;
  isolation: isolate;
}

.vessel-wrap::before,
.vessel-wrap::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.vessel-wrap::before {
  left: 50%;
  bottom: 26px;
  width: 210px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 189, 122, 0.15), rgba(183, 149, 75, 0.045) 42%, transparent 72%);
  filter: blur(5px);
  transform: translate3d(-50%, 0, 0) scale(0.96);
  animation: vesselAura 9.4s ease-in-out -1.8s infinite;
}

.vessel-wrap::after {
  left: 50%;
  top: 12px;
  width: 126px;
  height: 142px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(247, 244, 236, 0.045), transparent 68%);
  filter: blur(8px);
  transform: translate3d(-50%, 2px, 0) scale(0.94);
  animation: vesselMist 13.2s ease-in-out -6s infinite;
}

.stick-bundle {
  position: absolute;
  top: 44px;
  left: 50%;
  display: flex;
  gap: 5px;
  pointer-events: none;
  transform: translateX(-50%);
}

.stick-bundle span,
.flying-stick {
  width: 10px;
  height: 108px;
  border-radius: 999px;
  background: linear-gradient(#ead9a2, #8a5d32);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.16), 0 10px 16px rgba(0, 0, 0, 0.22);
  transform-origin: 50% 90%;
  will-change: transform, opacity;
}

.flying-stick {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #3a2612;
  font-size: 0.74rem;
  font-weight: 800;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  writing-mode: horizontal-tb;
}

.flying-stick span {
  display: block;
  transform: translateY(4px);
}

.table-hit {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 96px;
  height: 18px;
  margin-left: -48px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(214, 189, 122, 0.3), rgba(183, 149, 75, 0.08) 42%, transparent 72%);
  filter: blur(0.8px);
  will-change: transform, opacity;
}

.ritual-scroll {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  width: 154px;
  min-height: 82px;
  margin-left: -77px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 14px 12px;
  color: #3b2b18;
  border: 1px solid rgba(95, 66, 38, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(95, 66, 38, 0.08), transparent 10%, transparent 90%, rgba(95, 66, 38, 0.08)),
    linear-gradient(180deg, #fbf8ef, #f0eadc);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  text-align: center;
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}

.ritual-scroll small {
  color: rgba(59, 43, 24, 0.58);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.ritual-scroll strong {
  font-size: 1.08rem;
  font-weight: 600;
}

.ritual-scroll::before,
.ritual-scroll::after {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(95, 66, 38, 0.18), transparent);
}

.ritual-scroll::before {
  top: 8px;
}

.ritual-scroll::after {
  bottom: 8px;
}

.ritual-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  transition: opacity 220ms ease;
}

.oracle-stage.is-performing .ritual-controls {
  opacity: 0.72;
}

.vessel::before,
.vessel::after {
  position: absolute;
  left: 22px;
  right: 22px;
  top: -42px;
  height: 86px;
  content: "";
  border-radius: 999px 999px 12px 12px;
  background:
    linear-gradient(90deg, transparent 8%, rgba(247, 244, 236, 0.2) 8% 12%, transparent 12% 22%, rgba(247, 244, 236, 0.18) 22% 26%, transparent 26% 38%, rgba(247, 244, 236, 0.22) 38% 43%, transparent 43% 58%, rgba(247, 244, 236, 0.18) 58% 63%, transparent 63% 76%, rgba(247, 244, 236, 0.2) 76% 81%, transparent 81%),
    linear-gradient(#b9874c, #654529);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.vessel::after {
  top: -62px;
  left: 58px;
  right: auto;
  width: 14px;
  height: 132px;
  background: linear-gradient(#d6bd7a, #6c4a2b);
  opacity: 0;
}

.scroll-paper {
  width: min(100%, 500px);
  min-height: 190px;
  padding: 22px;
  color: #302819;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(95, 66, 38, 0.12), transparent 8%, transparent 92%, rgba(95, 66, 38, 0.12)),
    var(--paper);
  box-shadow: var(--shadow-soft);
  transform-origin: top;
  animation: unfold 520ms ease both;
}

.tarot-table {
  display: grid;
  gap: 20px;
  justify-items: center;
  width: 100%;
  min-height: 210px;
  perspective: 900px;
}

.tarot-deck,
.tarot-card,
.tarot-cut {
  width: 82px;
  height: 126px;
  border: 1px solid rgba(214, 189, 122, 0.6);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(183, 149, 75, 0.28), transparent 42%),
    repeating-linear-gradient(45deg, rgba(247, 244, 236, 0.08) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, #1b2440, #12182c);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(247, 244, 236, 0.08);
  will-change: transform, opacity;
}

.tarot-cut {
  position: absolute;
  top: 62px;
  left: calc(50% - 41px);
  pointer-events: none;
}

.tarot-spread {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 82px);
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  touch-action: none;
}

.tarot-card {
  display: grid;
  place-items: center;
  color: var(--copper-soft);
  cursor: pointer;
  perspective: 600px;
  transition: transform 220ms ease, border-color 220ms ease;
  touch-action: none;
  user-select: none;
  transform-style: preserve-3d;
}

.tarot-card:hover,
.tarot-card.is-selected {
  border-color: var(--paper);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38), 0 0 28px rgba(214, 189, 122, 0.14);
  transform: translateY(-8px);
}

.tarot-card.is-flipped {
  color: #302819;
  background:
    radial-gradient(circle at 72% 18%, rgba(183, 149, 75, 0.2), transparent 34%),
    var(--paper);
  animation: flipCard 700ms ease both;
}

.tarot-card.is-flipped.is-gsap-flip {
  animation: none;
}

.tarot-card.is-dragging {
  z-index: 4;
  border-color: var(--paper);
  transition: none;
}

.coin-row {
  display: flex;
  gap: 14px;
  perspective: 760px;
  touch-action: pan-y;
}

.coin {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #372611;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #efd88f, #b7954b 56%, #6f4d1f);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(247, 244, 236, 0.18);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.hexagram-lines {
  display: grid;
  gap: 7px;
  width: min(72vw, 230px);
  margin-top: 22px;
}

.yao-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 46%, rgba(8, 11, 18, 0.7) 46% 54%, transparent 54%),
    linear-gradient(90deg, rgba(214, 189, 122, 0.24), var(--copper-soft), rgba(214, 189, 122, 0.24));
  box-shadow: 0 0 18px rgba(214, 189, 122, 0.12);
  will-change: transform, opacity;
}

.hexagram-result {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.hexagram-result span {
  padding: 8px 13px;
  border: 1px solid rgba(214, 189, 122, 0.28);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(8, 11, 18, 0.44);
  will-change: transform, opacity;
}

.bazi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  perspective: 700px;
}

.pillar {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 10px 6px;
  color: var(--paper);
  border: 1px solid rgba(214, 189, 122, 0.3);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(214, 189, 122, 0.08), transparent),
    rgba(8, 11, 18, 0.46);
  font-family: var(--font-title);
  writing-mode: vertical-rl;
  will-change: transform, opacity;
}

.fate-layers {
  position: relative;
  display: grid;
  place-items: center;
  width: min(82vw, 360px);
  min-height: 220px;
  margin-top: 16px;
}

.element-bars {
  position: absolute;
  bottom: 12px;
  left: 8px;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 92px;
}

.element-bars span {
  width: 14px;
  height: 82px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--paper), var(--copper));
  transform-origin: bottom;
  will-change: transform, opacity;
}

.ziwei-palaces {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 5px;
}

.ziwei-palaces span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--copper-soft);
  border: 1px solid rgba(214, 189, 122, 0.28);
  border-radius: 6px;
  background: rgba(8, 11, 18, 0.48);
  will-change: transform, opacity;
}

.star-layer {
  position: absolute;
  inset: 14px;
  pointer-events: none;
}

.star-layer span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 14px rgba(247, 244, 236, 0.64);
  will-change: transform, opacity;
}

.star-layer span:nth-child(1) { left: 17%; top: 20%; }
.star-layer span:nth-child(2) { left: 38%; top: 12%; }
.star-layer span:nth-child(3) { left: 62%; top: 18%; }
.star-layer span:nth-child(4) { left: 77%; top: 38%; }
.star-layer span:nth-child(5) { left: 60%; top: 58%; }
.star-layer span:nth-child(6) { left: 42%; top: 72%; }
.star-layer span:nth-child(7) { left: 20%; top: 64%; }
.star-layer span:nth-child(8) { left: 12%; top: 42%; }
.star-layer span:nth-child(9) { left: 50%; top: 40%; }

.astro-ring {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(214, 189, 122, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(247, 244, 236, 0.06), 0 0 30px rgba(214, 189, 122, 0.1);
  will-change: transform, opacity;
}

.result-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.result-visual {
  display: grid;
  gap: 7px;
  padding: 18px;
  color: #302819;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(95, 66, 38, 0.1), transparent 8%, transparent 92%, rgba(95, 66, 38, 0.1)),
    radial-gradient(circle at 82% 12%, rgba(183, 149, 75, 0.12), transparent 30%),
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(95, 66, 38, 0.08);
}

.result-visual strong {
  color: #302819;
  font-family: var(--font-title);
}

.result-visual p {
  margin-bottom: 8px;
  color: #514633;
}

.result-visual p:last-child {
  margin-bottom: 0;
}

.result-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-overview article {
  position: relative;
  min-height: 164px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(214, 189, 122, 0.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(58, 37, 76, 0.18), transparent 52%),
    rgba(12, 17, 29, 0.78);
}

.result-overview article > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 3px 8px;
  color: var(--copper-soft);
  border: 1px solid rgba(214, 189, 122, 0.2);
  border-radius: 999px;
  background: rgba(183, 149, 75, 0.06);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.result-overview h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.result-overview p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.result-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}

.result-section-heading h2,
.result-section-heading p {
  margin-bottom: 0;
}

.result-section-heading > p {
  max-width: 38ch;
  color: var(--mist);
  font-size: 0.84rem;
  text-align: right;
}

.accordion {
  display: grid;
  gap: 8px;
}

.accordion details {
  padding: 14px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.045), rgba(247, 244, 236, 0.025)),
    rgba(8, 11, 18, 0.2);
}

.accordion summary {
  color: var(--paper);
  cursor: pointer;
  font-weight: 700;
}

.history-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(58, 37, 76, 0.2), transparent),
    rgba(16, 23, 41, 0.82);
}

.daily-history-item h3 {
  font-size: 1rem;
  line-height: 1.5;
}

.daily-action {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(247, 244, 236, 0.08);
  color: var(--moon);
  font-size: 0.88rem;
}

.daily-action strong {
  color: var(--copper-soft);
}

.empty {
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(247, 244, 236, 0.18);
  border-radius: var(--radius-md);
}

.toast-region {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--bottom-nav) + 16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.toast {
  max-width: 520px;
  padding: 12px 14px;
  color: var(--paper);
  border: 1px solid rgba(214, 189, 122, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(16, 23, 41, 0.96);
  box-shadow: var(--shadow-soft);
  animation: toastIn 240ms ease both;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal-root.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(32, 21, 45, 0.32), transparent 36rem), rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(100%, 720px);
  max-height: min(88vh, 760px);
  margin: auto auto 0;
  padding: 18px;
  overflow: auto;
  border-radius: 20px 20px 0 0;
}

.search-status {
  margin: 2px 0 10px;
  color: var(--mist);
  font-size: 0.82rem;
}

.search-list {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
}

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

@keyframes webOrbitOne {
  0% {
    opacity: 0.42;
    transform: translate3d(-4px, 3px, 0) rotate(-8deg) scale(0.985);
  }
  55% {
    opacity: 0.82;
    transform: translate3d(7px, -5px, 0) rotate(4deg) scale(1.015);
  }
  100% {
    opacity: 0.58;
    transform: translate3d(2px, 7px, 0) rotate(10deg) scale(1.004);
  }
}

@keyframes webOrbitTwo {
  0% {
    opacity: 0.3;
    transform: translate3d(7px, -4px, 0) rotate(5deg) scale(1.01);
  }
  48% {
    opacity: 0.62;
    transform: translate3d(-8px, 5px, 0) rotate(-5deg) scale(0.99);
  }
  100% {
    opacity: 0.44;
    transform: translate3d(-2px, -7px, 0) rotate(-10deg) scale(1.018);
  }
}

@keyframes webStarPulse {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.72);
  }
  42% {
    opacity: 0.88;
    transform: scale(1.18);
  }
  68% {
    opacity: 0.44;
    transform: scale(0.92);
  }
}

@keyframes cueLine {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleX(0.45);
  }
  48% {
    opacity: 0.9;
    transform: scaleX(1);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ambientVeil {
  0% {
    opacity: 0.88;
    transform: scale(1.035) translate3d(-0.4%, -0.3%, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1.055) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes starFieldDrift {
  0% {
    opacity: 0.58;
    transform: scale(1.025) translate3d(0, 0, 0);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.045) translate3d(-0.7%, 0.9%, 0);
  }
}

@keyframes veilPass {
  0% {
    opacity: 0.62;
    transform: translate3d(-2%, 0, 0) scale(1.04);
  }
  100% {
    opacity: 0.94;
    transform: translate3d(2.5%, -0.6%, 0) scale(1.07);
  }
}

@keyframes distantMoon {
  0%,
  100% {
    opacity: 0.66;
    transform: translate3d(0, 0, 0) scale(1);
  }
  31% {
    opacity: 0.76;
    transform: translate3d(-7px, 4px, 0) scale(1.018);
  }
  67% {
    opacity: 0.7;
    transform: translate3d(-3px, 10px, 0) scale(1.032);
  }
  84% {
    opacity: 0.8;
    transform: translate3d(-11px, 7px, 0) scale(1.024);
  }
}

@keyframes spiritSweep {
  0%,
  24% {
    opacity: 0.28;
    transform: translate3d(-8%, 0.5%, 0) scale(1.08);
  }
  44% {
    opacity: 0.72;
  }
  63% {
    opacity: 0.42;
    transform: translate3d(6%, -0.4%, 0) scale(1.09);
  }
  76%,
  100% {
    opacity: 0.3;
    transform: translate3d(7%, -0.2%, 0) scale(1.08);
  }
}

@keyframes moonHover {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.25deg) scale(1);
  }
  27% {
    transform: translate3d(3px, -4px, 0) rotate(0.2deg) scale(1.006);
  }
  58% {
    transform: translate3d(-2px, -7px, 0) rotate(0.45deg) scale(1.012);
  }
  79% {
    transform: translate3d(-4px, -2px, 0) rotate(-0.1deg) scale(1.004);
  }
}

@keyframes orbitRing {
  0% {
    opacity: 0.58;
    transform: rotate(-6deg) scale(0.992);
  }
  36% {
    opacity: 0.86;
    transform: rotate(3deg) scale(1.008);
  }
  72% {
    opacity: 0.66;
    transform: rotate(9deg) scale(1.018);
  }
  100% {
    opacity: 0.76;
    transform: rotate(5deg) scale(1.006);
  }
}

@keyframes glyphBreath {
  0%,
  100% {
    opacity: 0.92;
    text-shadow: 0 0 16px rgba(214, 189, 122, 0.07);
    transform: translate3d(0, 0, 0) scale(1);
  }
  42% {
    opacity: 1;
    text-shadow: 0 0 28px rgba(214, 189, 122, 0.14);
    transform: translate3d(0, -1px, 0) scale(1.012);
  }
  71% {
    opacity: 0.96;
    text-shadow: 0 0 20px rgba(214, 189, 122, 0.09);
    transform: translate3d(0, 0.5px, 0) scale(1.004);
  }
}

@keyframes ritualDust {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(1.04) translate3d(-0.5%, 0.4%, 0);
  }
  34% {
    opacity: 0.42;
    transform: scale(1.055) translate3d(0.2%, -0.3%, 0);
  }
  73% {
    opacity: 0.35;
    transform: scale(1.07) translate3d(0.8%, -0.8%, 0);
  }
}

@keyframes vesselAura {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(-50%, 0, 0) scale(0.96);
  }
  46% {
    opacity: 0.9;
    transform: translate3d(-50%, -2px, 0) scale(1.04);
  }
  72% {
    opacity: 0.7;
    transform: translate3d(-50%, 1px, 0) scale(1);
  }
}

@keyframes vesselMist {
  0%,
  100% {
    opacity: 0.22;
    transform: translate3d(-50%, 2px, 0) scale(0.94);
  }
  38% {
    opacity: 0.42;
    transform: translate3d(-48%, -3px, 0) scale(1.02);
  }
  76% {
    opacity: 0.28;
    transform: translate3d(-52%, -6px, 0) scale(1.06);
  }
}

@keyframes navRuneAwake {
  0% {
    opacity: 0.45;
    transform: translateY(2px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes flipCard {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .topbar {
    padding-left: 28px;
    padding-right: 28px;
  }

  .app-main {
    padding: 28px 28px 40px;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-panel {
    align-self: center;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 1040px) {
  .app-shell {
    padding-bottom: 0;
  }

  .topbar {
    position: fixed;
    left: 24px;
    right: 24px;
    top: 18px;
    border: 1px solid rgba(247, 244, 236, 0.1);
    border-radius: var(--radius-lg);
  }

  .app-main {
    padding-top: 112px;
    padding-bottom: 122px;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(560px, calc(100% - 40px));
    min-height: 64px;
    transform: translateX(-50%);
    border: 1px solid rgba(247, 244, 236, 0.1);
    border-radius: var(--radius-lg);
  }

  .page-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: center;
  }

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .moon-disc {
    margin: 0;
  }
}

@media (max-width: 720px) {
  body::before {
    opacity: 0.82;
    animation: none;
  }

  body::after {
    opacity: 0.38;
    background-size: 220px 220px, 180px 180px, 100% 100%;
    animation: none;
  }

  .app-shell::before,
  .app-shell::after {
    opacity: 0.5;
  }

  .app-shell::after {
    animation: none;
  }

  .page-hero::before {
    animation-duration: 28s;
  }

  .page-hero::after {
    animation-duration: 34s;
  }

  .moon-disc {
    animation-duration: 19s;
  }

  .moon-disc::before,
  .moon-disc::after {
    animation-duration: 42s;
  }

  .ritual-disc {
    animation: none;
  }

  .vessel-wrap::after {
    animation: none;
    opacity: 0.22;
  }

  .page {
    gap: 16px;
  }

  .home-hero {
    min-height: min(68vh, 620px);
  }

  .hero-product-note {
    margin-bottom: 14px;
    font-size: 0.82rem;
  }

  .home-value-strip {
    grid-template-columns: 1fr;
  }

  .home-value-strip article {
    min-height: 78px;
    padding: 13px 14px;
  }

  .result-overview {
    grid-template-columns: 1fr;
  }

  .result-overview article {
    min-height: 0;
  }

  .result-section-heading {
    display: grid;
    align-items: start;
  }

  .result-section-heading > p {
    text-align: left;
  }

  .hero-copy,
  .hero-orb-wrap,
  .hero-atmosphere {
    transform: none;
    transition: none;
  }

  .hero-scroll-cue {
    display: none;
  }

  .orbit-one {
    right: -6%;
    top: 18%;
    animation-duration: 24s;
  }

  .orbit-two {
    right: -24%;
    bottom: -10%;
    animation-duration: 32s;
  }

  .oracle-stage {
    min-height: 520px;
    padding: 16px;
  }

  .oracle-scene {
    grid-template-columns: 1fr;
    grid-template-rows: 270px 190px;
    width: 100%;
    min-height: 460px;
    margin-top: 18px;
  }

  .oracle-scene .vessel-wrap {
    min-height: 260px;
  }

  .oracle-reveal-zone {
    min-height: 180px;
  }

  .oracle-stick-target {
    top: 10px;
  }

  .oracle-focus {
    top: -6px;
    width: 150px;
    height: 172px;
    margin-left: -75px;
  }

  .oracle-stage .ritual-scroll {
    bottom: 6px;
    width: 138px;
    min-height: 72px;
    margin-left: -69px;
    padding: 11px 9px;
  }

  .oracle-stage .ritual-controls {
    top: 10px;
    right: 10px;
  }

  .page-hero,
  .panel,
  .card,
  .method-card,
  .result-shell,
  .modal-panel {
    box-shadow: var(--shadow-soft);
  }

  .panel::before,
  .card::before,
  .method-card::before,
  .result-shell::before,
  .modal-panel::before {
    opacity: 0.13;
  }

  .ritual-stage::before {
    opacity: 0.22;
    background-size: 160px 160px, 210px 210px, 100% 100%;
  }

  .ritual-stage::after {
    opacity: 0.58;
  }

  .tarot-deck,
  .tarot-card,
  .tarot-cut,
  .coin,
  .pillar {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  }
}

@media (hover: none) {
  .method-card:hover,
  .button:hover {
    filter: none;
    transform: none;
  }

  .method-card:hover .card-symbol,
  .brand:hover .brand-mark {
    transform: none;
  }

  .tarot-card:hover:not(.is-selected) {
    transform: none;
  }
}

@media (max-width: 380px) {
  .app-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-hero,
  .panel {
    padding: 16px;
  }

  .bottom-nav {
    padding-left: 4px;
    padding-right: 4px;
  }

  .bottom-nav a {
    font-size: 0.72rem;
  }
}

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