@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;800&family=Noto+Serif+SC:wght@400;500;600;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --bg-0: #f7efe2;
  --bg-1: #eef4ef;
  --bg-2: #dde9e5;
  --card: rgba(255, 251, 244, 0.82);
  --card-strong: rgba(255, 253, 249, 0.95);
  --line: #ccd7d3;
  --line-strong: #a8bbb6;
  --text-0: #22323b;
  --text-1: #435963;
  --text-2: #6a7d86;
  --focus: #486f73;
  --focus-soft: #97b5b0;
  --focus-warm: #b88d4e;
  --success: #41775f;
  --danger: #b45f5f;
  --shadow-soft: 0 14px 36px rgba(44, 62, 70, 0.12);
  --shadow-card: 0 18px 44px rgba(37, 54, 63, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(circle at 6% 8%, rgba(245, 214, 150, 0.34) 0%, rgba(245, 214, 150, 0) 32%),
    radial-gradient(circle at 92% 12%, rgba(160, 195, 190, 0.34) 0%, rgba(160, 195, 190, 0) 36%),
    radial-gradient(circle at 84% 88%, rgba(231, 216, 170, 0.22) 0%, rgba(231, 216, 170, 0) 28%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 52%, var(--bg-2) 100%);
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.brand-mark,
.title-font {
  font-family: 'ZCOOL XiaoWei', serif;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 240;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(248, 244, 236, 0.96), rgba(246, 247, 243, 0.82));
  border-bottom: 1px solid rgba(205, 219, 215, 0.9);
}

.top-nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 246, 210, 0.96), rgba(255, 246, 210, 0.38) 42%, rgba(156, 191, 186, 0.74) 100%),
    conic-gradient(from 25deg, rgba(255, 255, 255, 0.92), rgba(163, 195, 191, 0.32), rgba(243, 223, 177, 0.62));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), 0 8px 20px rgba(68, 94, 102, 0.18);
}

.brand-mark {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.05;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--text-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  border: 1px solid transparent;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-1);
  transition: 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--line-strong);
  background: #ffffffbd;
}

.nav-link[aria-current='page'] {
  color: #21343d;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 244, 216, 0.6), rgba(255, 244, 216, 0) 42%),
    rgba(255, 255, 255, 0.96);
  border-color: #a8bdb7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), 0 6px 16px rgba(73, 110, 114, 0.2);
}

.mobile-nav-toggle {
  display: none;
}

.top-nav-right-placeholder {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.nav-user-entry,
.reading-user-entry {
  position: relative;
  margin-left: 4px;
  flex: 0 0 auto;
}

.top-nav .user-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c5d5d2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(242, 248, 247, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 16px rgba(62, 90, 97, 0.14);
  color: #4d676f;
  font-weight: 600;
  cursor: pointer;
}

.top-nav .user-avatar-btn:hover,
.top-nav .user-avatar-btn:focus-visible {
  border-color: #a8c0bc;
  transform: translateY(-1px);
}

.top-nav .user-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
}

.top-nav .user-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 190px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #ccdbd8;
  background: linear-gradient(172deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 250, 0.95));
  box-shadow: 0 16px 28px rgba(43, 64, 72, 0.18);
  display: grid;
  gap: 6px;
  z-index: 260;
}

.top-nav .user-menu-name {
  margin: 0 0 4px;
  padding: 2px 4px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #45606a;
  border-bottom: 1px dashed #d4e0dd;
}

.top-nav .user-menu-item {
  border: 1px solid #d0ddda;
  background: #fff;
  color: #486069;
  border-radius: 10px;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
}

.top-nav .user-menu-item:hover,
.top-nav .user-menu-item:focus-visible {
  border-color: #b9ceca;
  background: linear-gradient(160deg, #f8fcfb, #eef5f4);
}

.main-content {
  padding: 28px 0 90px;
}

.section {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 242, 211, 0.44), rgba(255, 242, 211, 0) 34%),
    radial-gradient(circle at 12% 84%, rgba(222, 236, 232, 0.34), rgba(222, 236, 232, 0) 32%),
    linear-gradient(165deg, var(--card-strong) 0%, var(--card) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.2vw, 40px);
}

.section + .section {
  margin-top: 22px;
}

.eyebrow {
  margin: 0;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-2);
}

.title {
  margin: 10px 0 8px;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.hero-title-lines {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.hero-title-lines > span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.hero-title-line {
  line-height: 1.02;
  letter-spacing: 0.035em;
  color: #31424a;
  text-shadow: 0 8px 24px rgba(255, 255, 255, 0.38);
}

.hero-title-brand {
  letter-spacing: 0;
}

.hero-title-line--wide {
  transform: translateX(-0.04em);
}

.hero-title-line--closing {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  transform: translateX(0.01em);
}

.hero-title-prefix {
  display: inline;
  font-size: inherit;
  letter-spacing: inherit;
}

.hero-title-line--pulse {
  position: relative;
  display: inline-block;
  padding-right: 0.42em;
}

.hero-title-text {
  position: relative;
  z-index: 2;
  display: block;
}

.hero-subtitle {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: min(100%, 30em);
  text-wrap: balance;
}

.hero-subtitle span {
  display: block;
}

.subtitle {
  margin: 0;
  color: var(--text-1);
  max-width: 30ch;
  font-size: clamp(0.94rem, 1.1vw, 1.04rem);
  line-height: 1.78;
}

.hero {
  position: relative;
  min-height: clamp(420px, 58vw, 640px);
  display: grid;
  align-items: center;
}

.main-content--home {
  padding-top: 12px;
}

.home-stack {
  display: grid;
  gap: clamp(16px, 2vh, 24px);
}

.section.hero--blend {
  position: relative;
  overflow: visible;
  isolation: isolate;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: clamp(12px, 2.4vw, 24px) clamp(20px, 2.8vw, 30px);
}

.home-hero-stage {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: min(48vh, 468px);
  padding-top: 0;
  padding-bottom: 0;
}

.home-stage-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-stage-mist,
.home-stage-grain {
  position: absolute;
  border-radius: 999px;
}

.home-stage-mist--warm {
  left: -6%;
  top: 4%;
  width: clamp(340px, 38vw, 620px);
  height: clamp(340px, 38vw, 620px);
  background:
    radial-gradient(circle, rgba(255, 242, 211, 0.9) 0%, rgba(255, 242, 211, 0.38) 34%, rgba(255, 242, 211, 0) 72%);
  filter: blur(34px);
  opacity: 0.9;
}

.home-stage-mist--cool {
  right: -10%;
  bottom: 0;
  width: clamp(360px, 42vw, 680px);
  height: clamp(360px, 42vw, 680px);
  background:
    radial-gradient(circle, rgba(210, 230, 227, 0.86) 0%, rgba(210, 230, 227, 0.38) 38%, rgba(210, 230, 227, 0) 72%);
  filter: blur(44px);
  opacity: 0.92;
}

.home-stage-grain {
  inset: 4% 4% 6%;
  border-radius: 72px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 28%, rgba(123, 150, 151, 0.06) 48%, rgba(255, 255, 255, 0.18) 76%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.6;
}

.hero-upper {
  position: relative;
  display: grid;
  align-items: center;
  z-index: 1;
  min-height: min(44vh, 420px);
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  height: 100%;
}

.hero-copy--orbital {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 0;
  text-align: center;
}

.hero-copy .eyebrow,
.hero-copy .title,
.hero-copy .subtitle,
.hero-copy .hero-actions {
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(0.94rem, 1.08vw, 1.08rem);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #6d8088;
}

.hero-copy .title {
  max-width: none;
  margin: 0;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: clamp(2.28rem, 4.2vw, 3.84rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.018em;
  text-align: center;
  text-wrap: initial;
  color: var(--text-0);
  text-shadow: 0 8px 28px rgba(255, 255, 255, 0.42);
}

.hero-copy .subtitle {
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #7a8b92;
  max-width: 30em;
  margin-inline: auto;
  font-size: clamp(0.94rem, 1.16vw, 1.06rem);
  line-height: 1.86;
}

.hero-visual {
  border-radius: 30px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 248, 218, 0.95), rgba(255, 248, 218, 0) 34%),
    radial-gradient(circle at 20% 80%, rgba(164, 202, 199, 0.5), rgba(164, 202, 199, 0) 35%),
    linear-gradient(155deg, #f6f8f5, #e7f0ef);
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 42% 58% 68% 32% / 30% 39% 61% 70%;
}

.hero-visual::before {
  width: 220px;
  height: 220px;
  background: rgba(116, 160, 160, 0.2);
  top: -42px;
  right: -50px;
}

.hero-visual::after {
  width: 320px;
  height: 320px;
  background: rgba(209, 181, 126, 0.2);
  bottom: -140px;
  left: -72px;
}

.hero-mantra {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  border: 1px solid #d3dfdc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  padding: 16px 18px;
  color: var(--text-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-stage-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  display: grid;
  justify-items: center;
  gap: clamp(16px, 1.9vh, 24px);
  padding: 0;
  align-self: center;
}

.hero-stage-copy--headline {
  padding: clamp(20px, 3vw, 34px) clamp(14px, 3.2vw, 28px);
}

.hero-stage-copy::before {
  content: '';
  position: absolute;
  inset: -10% -7% -14% -7%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 40%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.34) 34%, rgba(255, 255, 255, 0) 76%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
  animation: heroStageBreath 9s ease-in-out infinite;
}

.hero-actions--inline {
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.hero-actions--hero {
  justify-content: center;
}

.hero-title-leading {
  margin: 0;
  font-size: clamp(2.54rem, 4.5vw, 4.18rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero-subtitle--hero {
  max-width: min(100%, 33em);
  color: #667981;
}

.hero-cta {
  min-width: clamp(188px, 22vw, 236px);
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow:
    0 18px 34px rgba(56, 82, 89, 0.18),
    0 0 0 1px rgba(243, 250, 248, 0.28),
    0 0 28px rgba(213, 230, 223, 0.16);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  box-shadow:
    0 24px 46px rgba(56, 82, 89, 0.24),
    0 0 0 1px rgba(243, 250, 248, 0.4),
    0 0 28px rgba(206, 226, 220, 0.24);
}

.hero-breathscape--ambient {
  display: none;
}

.hero-orb {
  position: absolute;
  left: 50%;
  top: 42%;
  width: clamp(360px, 40vw, 560px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.02);
}

.hero-orb::before,
.hero-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hero-orb::before {
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 246, 221, 0.86), rgba(255, 246, 221, 0.22) 22%, rgba(255, 246, 221, 0) 58%),
    radial-gradient(circle at 68% 70%, rgba(183, 213, 208, 0.6), rgba(183, 213, 208, 0.16) 30%, rgba(183, 213, 208, 0) 60%),
    radial-gradient(circle at 50% 52%, rgba(245, 250, 248, 0.86), rgba(231, 241, 239, 0.18) 56%, rgba(231, 241, 239, 0) 82%);
  filter: blur(40px);
  opacity: 0.96;
  animation: heroOrbPulse 7.8s ease-in-out infinite;
}

.hero-orb::after {
  inset: 8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 70%);
  filter: blur(68px);
  opacity: 0.8;
  animation: heroOrbHalo 9.8s ease-in-out infinite;
}

.hero-orb-core {
  position: absolute;
  border-radius: 50%;
  width: 34%;
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 251, 239, 0.96), rgba(255, 251, 239, 0.48) 34%, rgba(255, 251, 239, 0) 72%),
    radial-gradient(circle at 66% 68%, rgba(190, 213, 210, 0.36), rgba(190, 213, 210, 0) 68%);
  filter: blur(18px);
  opacity: 0.8;
  animation: heroOrbCore 6.8s ease-in-out infinite;
}

@keyframes heroStageBreath {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.98;
  }
}

@keyframes heroOrbPulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.76;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.98;
  }
}

@keyframes heroOrbHalo {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.88;
  }
}

@keyframes heroOrbInner {
  0%,
  100% {
    transform: scale(0.94) translate3d(-1%, 1%, 0);
  }

  50% {
    transform: scale(1.06) translate3d(2%, -2%, 0);
  }
}

@keyframes heroOrbCore {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.54;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.82;
  }
}

.btn {
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.78);
  transition: 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(73, 109, 113, 0.17);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  border-color: #44696d;
  background:
    radial-gradient(circle at 18% 20%, rgba(238, 220, 179, 0.18), rgba(238, 220, 179, 0) 34%),
    linear-gradient(145deg, #557c80, #36565e);
  color: #f7faf9;
}

.btn-soft {
  border-color: #c9aa70;
  background: linear-gradient(160deg, #fff6e4, #efd8a8);
  color: #644d28;
}

.btn-minimal {
  border-color: #c9d4d1;
  background: rgba(255, 255, 255, 0.7);
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(172deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 250, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--text-1);
}

.atlas-entry-card {
  min-height: 240px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.atlas-entry-card:hover,
.atlas-entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: #98b1b0;
  box-shadow:
    0 20px 38px rgba(62, 87, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.atlas-entry-card--cards {
  background: linear-gradient(155deg, #e8f2ef, #fcfff7);
}

.atlas-entry-card--spreads {
  background: linear-gradient(155deg, #eef3ff, #fff9ef);
}

.atlas-entry-card h3 {
  margin: 0;
}

.atlas-entry-card p:not(.eyebrow) {
  max-width: 28ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d1dcda;
  padding: 5px 11px;
  color: var(--text-1);
  font-size: 0.78rem;
  background: rgba(249, 252, 251, 0.96);
}

.chip.active {
  border-color: #4d7277;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 243, 214, 0.64), rgba(255, 243, 214, 0) 34%),
    linear-gradient(170deg, rgba(237, 247, 244, 0.98), rgba(230, 242, 239, 0.96));
  color: #27454e;
}

.daily-layout {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.daily-preview-panel {
  position: relative;
  border: 1px solid rgba(197, 214, 210, 0.84);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 244, 216, 0.36), rgba(255, 244, 216, 0) 30%),
    radial-gradient(circle at 84% 82%, rgba(215, 232, 228, 0.38), rgba(215, 232, 228, 0) 34%),
    linear-gradient(165deg, rgba(255, 254, 250, 0.9), rgba(247, 251, 250, 0.82));
  box-shadow:
    0 22px 48px rgba(60, 84, 91, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.daily-preview {
  position: relative;
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 360px) minmax(188px, 224px);
  grid-template-areas: 'copy card';
  justify-content: center;
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: auto;
  padding: clamp(28px, 4vw, 44px);
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  z-index: 1;
}

.daily-preview::before {
  display: none;
}

.daily-preview::after {
  display: none;
}

.daily-preview-copy,
.daily-preview-card {
  position: relative;
  z-index: 1;
}

.daily-preview-copy {
  grid-area: copy;
  display: grid;
  justify-items: center;
  text-align: center;
  width: min(100%, 24rem);
  gap: 10px;
  align-content: center;
  align-self: center;
  margin: 0 auto;
}

.daily-kicker {
  margin: 0;
  color: #7f9198;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: none;
}

.daily-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.44rem, 2vw, 1.84rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  color: #32434b;
  line-height: 1.34;
}

.daily-helper {
  margin: 0;
  width: auto;
  max-width: none;
  color: #66787f;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.82;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.daily-actions {
  position: static;
  z-index: 2;
  margin: 0;
  transform: none;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.daily-actions .btn {
  min-width: min(100%, 10rem);
  padding: 13px 24px;
  font-size: 0.96rem;
  white-space: nowrap;
  box-shadow:
    0 16px 28px rgba(52, 77, 86, 0.18),
    0 0 0 1px rgba(235, 246, 244, 0.36);
  backdrop-filter: blur(10px);
}

.daily-preview-card {
  grid-area: card;
  display: grid;
  justify-items: center;
  justify-self: center;
  align-self: center;
  position: relative;
  gap: 18px;
  width: clamp(176px, 18vw, 214px);
  min-width: 0;
  margin: 0;
}

.daily-preview-card::before {
  content: '';
  position: absolute;
  inset: 72% -10% -12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(185, 202, 197, 0.4), rgba(185, 202, 197, 0) 70%);
  filter: blur(16px);
  opacity: 0.76;
  z-index: 0;
}

.tarot-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 3 / 5;
  border-radius: 30px;
  perspective: 1200px;
  cursor: pointer;
  transform: none;
  transition: transform 260ms ease;
}

.tarot-card[aria-disabled='true'] {
  cursor: default;
}

.daily-preview-card:hover .tarot-card,
.daily-preview.is-revealed .tarot-card {
  transform: translateY(-2px);
}

.tarot-card-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.25, 1);
  box-shadow:
    0 34px 60px rgba(45, 68, 77, 0.2),
    0 0 42px rgba(245, 235, 210, 0.18);
}

.tarot-card.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(211, 224, 220, 0.76);
  background: #fff;
}

.tarot-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarot-card-front {
  transform: rotateY(180deg);
}

.daily-note {
  display: grid;
  gap: 8px;
  width: min(100%, 22rem);
  text-align: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-wrap: pretty;
  position: relative;
  overflow: visible;
}

.daily-note[data-state='ritual'] {
  border: none;
  background: none;
  box-shadow: none;
}

.daily-note::before {
  display: none;
}

.daily-note-label {
  margin: 0;
  color: #7b8e95;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.daily-note strong {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.16rem, 1.44vw, 1.32rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.02em;
  color: #33454c;
}

.daily-note-keywords,
.daily-note-copy,
.daily-note-symbol,
.daily-note-reflection {
  margin: 0;
}

.daily-note-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.daily-note-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(195, 209, 205, 0.52);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #567078;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.daily-note-copy {
  color: #52646b;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.94rem;
  line-height: 1.74;
}

.daily-note-copy--ritual {
  color: #63747a;
  font-size: 0.94rem;
  line-height: 1.76;
}

.daily-note-symbol {
  color: #6e8087;
  font-size: 0.9rem;
  line-height: 1.66;
}

.daily-note-reflection {
  color: #6b7d82;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.96rem;
  line-height: 1.82;
}

.tab-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tab-btn {
  width: 100%;
  border: 1px solid #d5dfdc;
  background: #ffffffde;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.tab-btn strong {
  display: block;
  margin-bottom: 4px;
}

.tab-btn.active {
  border-color: #649090;
  box-shadow: 0 8px 16px rgba(83, 126, 128, 0.15);
  background: linear-gradient(160deg, #eef9f6, #fcfffe);
}

.tab-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffffd9;
  padding: 16px;
}

.footer {
  margin-top: 18px;
  border-top: 1px solid rgba(195, 211, 206, 0.9);
  padding: 52px 0 30px;
  color: #5c7079;
  font-size: 0.9rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(160, 193, 190, 0.24), rgba(160, 193, 190, 0) 40%),
    radial-gradient(circle at 88% 86%, rgba(234, 212, 162, 0.28), rgba(234, 212, 162, 0) 42%),
    linear-gradient(160deg, rgba(251, 250, 246, 0.96), rgba(242, 247, 245, 0.92) 52%, rgba(246, 241, 232, 0.92));
}

.footer-inner {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(520px, 1fr) 220px 220px;
  justify-content: space-between;
}

.footer-brand h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  color: #2f424b;
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.footer-brand p {
  margin: 0 0 10px;
  color: #647982;
  max-width: 40ch;
}

.footer-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7f949d;
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.footer-col-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #2f424b;
}

.footer-col a {
  color: #5f7480;
  transition: color 180ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #3f6a71;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(176, 196, 201, 0.5);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  color: #6f848e;
}

.page-header {
  margin-bottom: 18px;
}

.page-header .eyebrow {
  margin-bottom: 10px;
}

.page-header--center {
  text-align: center;
}

.page-header h1 {
  margin: 8px 0 4px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.page-header p {
  margin: 0;
  color: var(--text-1);
}

.notice {
  border: 1px dashed #bdd0cb;
  border-radius: 14px;
  background: #f8fdfc;
  color: #466269;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.stage-progress {
  position: sticky;
  top: 88px;
  z-index: 30;
  display: grid;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(181, 199, 195, 0.9);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 244, 214, 0.44), rgba(255, 244, 214, 0) 28%),
    linear-gradient(166deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 250, 0.88));
  box-shadow:
    0 16px 30px rgba(63, 86, 93, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
}

.stage-progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.stage-progress-kicker,
.stage-progress-summary {
  margin: 0;
}

.stage-progress-kicker {
  color: #8d9da3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-progress-summary {
  color: #5f737c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.stage-progress-summary strong {
  color: #26404a;
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  font-weight: 600;
}

.stage-progress-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.stage-pill {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(206, 218, 215, 0.94);
  border-radius: 999px;
  padding: 8px 10px;
  color: #73858d;
  background: rgba(250, 252, 251, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 180ms ease, box-shadow 220ms ease, background 220ms ease, color 180ms ease, transform 220ms ease;
}

.stage-pill.done {
  color: #5b7079;
  border-color: rgba(177, 196, 191, 0.94);
  background: linear-gradient(170deg, rgba(242, 248, 246, 0.96), rgba(248, 251, 250, 0.9));
}

.stage-pill.active {
  color: #2c444d;
  border-color: #4f7277;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 244, 214, 0.74), rgba(255, 244, 214, 0) 34%),
    linear-gradient(165deg, rgba(243, 249, 247, 0.98), rgba(250, 252, 251, 0.96));
  box-shadow:
    0 0 0 1px rgba(79, 114, 119, 0.16),
    0 8px 22px rgba(84, 120, 123, 0.18);
}

.stage-pill-index {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(204, 216, 214, 0.98);
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stage-pill-head {
  margin: 0;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-pill.done .stage-pill-index {
  border-color: rgba(180, 200, 195, 0.94);
  background: rgba(237, 247, 244, 0.98);
  color: #4a6870;
}

.stage-pill.active .stage-pill-index {
  border-color: #4f7277;
  background: linear-gradient(145deg, #557c80, #3a5961);
  color: #eff8f8;
}

.stage-layout {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

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

.field label {
  font-weight: 600;
  color: #425963;
  font-size: 0.98rem;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #cad8d5;
  border-radius: 14px;
  background: #ffffffef;
  color: var(--text-0);
  font: inherit;
  padding: 13px 16px;
}

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

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid #a3c8c4;
  border-color: #6f9d9d;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.stage-back-btn {
  margin-right: auto;
}

.intent-suggestion-wrap {
  display: grid;
  gap: 0;
  border: none;
  background: transparent;
  padding: 0;
  width: min(100%, 720px);
  margin-inline: auto;
}

.intent-suggestion-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  color: var(--text-1);
  font-size: 0.94rem;
  line-height: 1.72;
}

.intent-suggestion-head p {
  margin: 0;
}

.intent-batch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #b7ccc7;
  background: #f6fbfa;
  color: #41666f;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.intent-batch-btn:hover,
.intent-batch-btn:focus-visible {
  border-color: #6f9e9f;
  background: #e9f5f3;
}

.intent-suggestion-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.intent-sample-item {
  width: 100%;
  max-width: 560px;
  min-height: 0;
  display: block;
  text-align: center;
  border: 1px solid #d2d9da;
  border-radius: 999px;
  background: linear-gradient(176deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.94));
  color: #59666d;
  font: inherit;
  line-height: 1.5;
  font-size: 0.98rem;
  padding: 12px 22px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 18px rgba(80, 95, 102, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  animation: intent-sample-fade 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intent-sample-item::before {
  display: none;
}

.intent-sample-item:hover,
.intent-sample-item:focus-visible {
  transform: translateY(-1px);
  border-color: #bfcfd0;
  background: linear-gradient(176deg, rgba(255, 255, 255, 1), rgba(244, 249, 247, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 24px rgba(80, 95, 102, 0.1);
}

.intent-sample-item:focus-visible {
  outline: 2px solid rgba(111, 158, 159, 0.42);
  outline-offset: 3px;
}

.intent-sample-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--intent-card-tag-bg);
  color: var(--intent-card-tag-color);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.intent-sample-question {
  color: #334249;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.58;
}

.intent-sample-note {
  margin-top: auto;
  padding-top: 2px;
  color: #75848a;
  font-size: 0.84rem;
  line-height: 1.6;
}

.intent-sample-item--work {
  --intent-card-accent: linear-gradient(90deg, #b98d5c, #dfc7a5);
  --intent-card-tag-bg: rgba(186, 142, 86, 0.12);
  --intent-card-tag-color: #7d5c36;
}

.intent-sample-item--love {
  --intent-card-accent: linear-gradient(90deg, #ba7e84, #e3bdc0);
  --intent-card-tag-bg: rgba(186, 126, 132, 0.12);
  --intent-card-tag-color: #84535a;
}

.intent-sample-item--life {
  --intent-card-accent: linear-gradient(90deg, #6d9a97, #bed7d1);
  --intent-card-tag-bg: rgba(109, 154, 151, 0.12);
  --intent-card-tag-color: #456d6a;
}

.intent-chat-field {
  padding: 2px;
  width: min(100%, 70%);
  margin-inline: auto;
  justify-self: center;
}

.intent-chat-input {
  min-height: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid #c4cfd1;
  background: linear-gradient(176deg, #fefefe, #fafcfc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 18px rgba(83, 93, 101, 0.06);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.25;
  color: #405057;
  padding: 0 24px;
}

.intent-chat-input::placeholder {
  color: #a0aeb4;
  font-size: 0.96rem;
  line-height: 1.25;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 400;
}

@keyframes intent-sample-fade {
  from {
    opacity: 0.38;
    transform: translateY(2px);
    filter: blur(1.5px);
  }

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

#stage-intent {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.intent-stage .stage-step-title {
  text-align: center;
  margin-inline: auto;
  color: #313b42;
  letter-spacing: 0.03em;
}

.intent-stage-sub {
  text-align: center;
  margin-inline: auto;
}

.intent-stage > .stage-layout {
  margin-top: 14px;
}

[data-stage].card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.stage-step-title {
  margin: 8px 0 0;
  font-size: clamp(1.56rem, 2.45vw, 2.08rem);
  line-height: 1.26;
  letter-spacing: 0.018em;
  color: #2e373e;
}

.stage-step-sub {
  margin: 12px 0 0;
  max-width: 56ch;
  color: #58656d;
  font-size: 1.02rem;
  line-height: 1.72;
}

.flow-question-banner {
  margin-top: 8px;
  margin-bottom: 2px;
  padding: 0 2px;
  text-align: center;
}

.flow-question-title {
  margin: 0 auto;
  max-width: min(100%, 66%);
  font-size: clamp(0.86rem, 1.18vw, 0.92rem);
  color: #87949a;
  line-height: 1.55;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  text-align: center;
}

.flow-question-label {
  color: #909ca3;
  font-weight: 600;
}

.flow-question-quoted {
  color: #7f8d94;
}

.flow-stages {
  margin-top: 40px;
  gap: 28px;
}

.intent-chat-hint {
  margin: 2px 4px 0;
  color: #87959c;
  font-size: 0.92rem;
  text-align: center;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.01em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.spread-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-top: 2px;
}

.spread-title-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.spread-title-group .stage-step-title {
  margin: 0;
  font-size: clamp(2rem, 3.15vw, 2.65rem);
  line-height: 1.19;
  letter-spacing: 0.018em;
  color: #2f3a40;
}

.spread-more-btn {
  border-color: #becdcc;
  background: linear-gradient(155deg, #ffffff, #f4f8f8);
  color: #4a6068;
  padding: 10px 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 12px rgba(75, 96, 102, 0.08);
  white-space: nowrap;
}

.spread-more-btn:hover,
.spread-more-btn:focus-visible {
  border-color: #9fb3b4;
  background: linear-gradient(150deg, #fcfffe, #edf4f3);
  color: #324a53;
}

#spread-summary.stage-step-sub {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.66;
  color: #55656d;
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.004em;
}

.spread-match-status {
  margin: 4px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #809198;
  min-height: 1.35em;
}

.spread-match-status.is-fallback {
  color: #8f6f5a;
}

.spread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spread-meta-inline .chip {
  padding: 5px 12px;
  font-size: 0.86rem;
  border-color: #cad5d3;
  background: linear-gradient(160deg, #ffffff, #f6faf9);
  color: #55666e;
}

.spread-tip-toggle-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.spread-tip-toggle {
  border: 1px solid #c6d2d0;
  border-radius: 999px;
  background: linear-gradient(160deg, #fafdfd, #f0f5f4);
  color: #546871;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 14px 6px 8px;
  box-shadow: 0 4px 10px rgba(79, 100, 107, 0.07);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.spread-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #afc7c4;
  background: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  color: #5c7b84;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.spread-tip-toggle[aria-expanded='true'] .spread-tip-icon {
  transform: rotate(180deg) translateY(-1px);
  color: #2f5660;
}

.spread-tip-toggle:hover,
.spread-tip-toggle:focus-visible {
  color: #415761;
  border-color: #9eb5b4;
  background: linear-gradient(160deg, #f5fbfa, #eaf2f0);
  box-shadow: 0 6px 14px rgba(69, 94, 102, 0.1);
}

.spread-tip-toggle[aria-expanded='true'] {
  border-color: #a4b9b8;
  background: linear-gradient(160deg, #f3f9f8, #e7f0ef);
}

.spread-tip-text {
  display: inline-block;
  transform: translateY(-1px);
}

.spread-tips-panel {
  margin: 10px 0 0;
}

.spread-tips-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.spread-positions {
  margin-top: 6px;
  display: grid;
  gap: var(--spread-preview-gap, 12px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.spread-positions--mapped {
  grid-template-columns: repeat(var(--spread-cols, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--spread-rows, 1), minmax(var(--spread-preview-row-height, 118px), auto));
  align-items: start;
  justify-items: center;
}

.spread-stage-actions {
  margin-top: 4px;
  padding-top: 2px;
}

.position-card {
  border: 1px solid #d7e1df;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fdfffe;
}

.spread-positions .position-card {
  border: 1px solid #d7e1df;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 250, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(69, 88, 95, 0.06);
  width: min(
    100%,
    calc(
      var(--spread-preview-card-width, 220px) * var(--slot-column-span, 1) +
        var(--spread-preview-gap, 12px) * (var(--slot-column-span, 1) - 1)
    )
  );
  min-height: var(--spread-preview-row-height, 118px);
  display: grid;
  align-content: start;
  gap: 6px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.spread-positions .position-card:hover,
.spread-positions .position-card:focus-within {
  border-color: #bdccca;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 20px rgba(64, 87, 95, 0.09);
  transform: translateY(-1px);
}

.spread-positions .position-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.spread-positions .position-card-thumb {
  order: 2;
  width: 46px;
  aspect-ratio: 3 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c7d5d2;
  box-shadow: 0 5px 10px rgba(72, 94, 102, 0.12);
  transform: none;
  flex: 0 0 auto;
  opacity: 0.9;
}

.spread-positions .position-card:nth-child(even) .position-card-thumb {
  transform: none;
}

.spread-positions .position-card-top strong {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  color: #2d3940;
}

.spread-positions .position-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spread-positions .position-card strong {
  display: block;
  margin-bottom: 0;
}

.spread-positions .position-card p {
  margin: 0;
  color: #4f6169;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .spread-positions--mapped {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .spread-positions--mapped .position-card {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

.deck-grid {
  width: 100%;
  display: grid;
  justify-items: center;
  margin-top: 6px;
}

.ritual-track-viewport {
  width: min(100%, 708px);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #a7bdb9 #eaf2f1;
}

.ritual-position-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.ritual-position-item {
  flex: 0 0 228px;
  border: 1px solid #cfdedb;
  border-radius: 16px;
  background: linear-gradient(160deg, #f9fcfb, #f2f7f6);
  padding: 10px;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
  scroll-snap-align: center;
}

.ritual-position-item:disabled {
  cursor: default;
}

.ritual-position-thumb {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed #b8ccca;
  background: linear-gradient(165deg, #f0f7f6, #e9f2f1);
  padding: 8px;
}

.ritual-position-thumb img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(177, 198, 201, 0.76);
  box-shadow: 0 8px 16px rgba(63, 93, 99, 0.16);
}

.ritual-position-status {
  font-size: 0.76rem;
  color: #6f8790;
  letter-spacing: 0.02em;
}

.ritual-position-name {
  font-size: 0.86rem;
  color: #36535d;
  line-height: 1.4;
}

.ritual-position-item.is-active {
  border-color: #88abaa;
  background: linear-gradient(160deg, #fbfffe, #eef7f5);
  box-shadow: 0 14px 26px rgba(85, 124, 129, 0.2), 0 0 0 1px rgba(125, 166, 168, 0.25);
  transform: translateY(-2px);
}

.ritual-position-item.is-active .ritual-position-status {
  color: #345e66;
  font-weight: 600;
}

.ritual-position-item.is-done {
  border-color: #bfd3d0;
  background: linear-gradient(160deg, #f3f9f7, #ecf3f2);
}

.ritual-position-item.is-done .ritual-position-status {
  color: #4e7279;
}

.ritual-position-item.is-upcoming {
  opacity: 0.86;
}

.ritual-position-item.is-active:hover,
.ritual-position-item.is-active:focus-visible {
  border-color: #6f9898;
  box-shadow: 0 16px 28px rgba(70, 109, 114, 0.25), 0 0 0 1px rgba(122, 159, 161, 0.38);
}

.ritual-slot-wrap {
  margin: 18px auto 8px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.ritual-card-slot {
  position: relative;
  width: clamp(108px, 12vw, 126px);
  aspect-ratio: 3 / 5;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 14px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
  cursor: pointer;
}

.ritual-card-slot:disabled {
  opacity: 1;
  cursor: default;
}

.ritual-card-slot::before,
.ritual-card-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
}

.ritual-card-slot::before {
  border: 1px solid rgba(120, 162, 163, 0.34);
}

.ritual-card-slot::after {
  border: 1px solid rgba(120, 162, 163, 0.22);
}

.ritual-card-slot > img {
  width: 83%;
  height: 83%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(186, 206, 210, 0.65);
  box-shadow: 0 8px 18px rgba(76, 105, 112, 0.12);
  transition: transform 220ms ease, filter 220ms ease;
}

.ritual-card-slot.is-pile {
  width: min(100%, 700px);
  min-height: clamp(300px, 40vw, 420px);
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ritual-card-slot.is-pile::before,
.ritual-card-slot.is-pile::after {
  display: none;
}

.ritual-pile-layer {
  position: relative;
  width: 100%;
  height: 100%;
}

.ritual-pile-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(106px, 10vw, 132px);
  height: calc(clamp(106px, 10vw, 132px) * 5 / 3);
  transform: translate(-50%, -50%) translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)) scale(var(--pile-s));
  transform-origin: center;
  z-index: var(--pile-z);
  transition: transform 190ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 180ms ease;
  will-change: transform;
}

.ritual-pile-card img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(176, 197, 198, 0.8);
  box-shadow: 0 2px 4px rgba(69, 91, 97, 0.14);
}

.ritual-card-slot.is-pile:hover .ritual-pile-card,
.ritual-card-slot.is-pile:focus-visible .ritual-pile-card {
  filter: saturate(1.04) brightness(1.02);
}

.ritual-card-slot.is-pile.is-shuffling .ritual-pile-card {
  animation: none;
}

.ritual-card-slot.is-pile.has-started .ritual-pile-card {
  filter: saturate(1.01) brightness(1.01);
}

.ritual-card-slot.is-active {
  border-color: #8fb4b2;
}

.ritual-primary-action {
  margin-top: 14px;
  display: grid;
  justify-items: center;
}

.ritual-shuffle-instruction {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  text-align: center;
  color: #6f848c;
  font-size: 0.96rem;
  line-height: 1.6;
}

.ritual-shuffle-copy {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
}

.ritual-shuffle-line {
  display: block;
}

.ritual-shuffle-line--inline {
  display: inline;
}

.ritual-primary-action #ritual-shuffle {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: #6f7f9c;
  color: #eef4ff;
  background: linear-gradient(145deg, #3d4f71, #2f4262);
  text-shadow: 0 1px 2px rgba(17, 24, 38, 0.55);
  box-shadow:
    0 0 0 1px rgba(140, 166, 215, 0.38),
    0 10px 24px rgba(38, 53, 83, 0.35),
    0 0 28px rgba(125, 146, 210, 0.28);
}

.ritual-stage-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 8px;
  align-items: center;
}

.ritual-stage-actions .stage-back-btn {
  grid-column: 1;
  margin-right: 0;
  justify-self: start;
}

.ritual-primary-action #ritual-shuffle::before {
  content: '';
  position: absolute;
  inset: -22%;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(160, 196, 255, 0.08),
    rgba(208, 189, 255, 0.42),
    rgba(157, 239, 255, 0.16),
    rgba(160, 196, 255, 0.08)
  );
  filter: blur(7px);
  animation: ritualMysticSpin 3.4s linear infinite;
}

.ritual-primary-action #ritual-shuffle::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(73, 95, 134, 0.82), rgba(41, 59, 89, 0.92));
}

.ritual-primary-action #ritual-shuffle:hover,
.ritual-primary-action #ritual-shuffle:focus-visible {
  border-color: #9cb4da;
  color: #f8fbff;
  box-shadow:
    0 0 0 1px rgba(172, 198, 255, 0.52),
    0 12px 26px rgba(40, 57, 86, 0.44),
    0 0 34px rgba(164, 183, 238, 0.42);
}

.ritual-primary-action #ritual-shuffle:disabled {
  border-color: #aebbcf;
  color: #e6ebf5;
  background: linear-gradient(145deg, #8d9bb3, #77879f);
  text-shadow: none;
  box-shadow: none;
}

.ritual-primary-action #ritual-shuffle:disabled::before,
.ritual-primary-action #ritual-shuffle:disabled::after {
  animation: none;
  opacity: 0;
}

.ritual-stage-actions #to-report {
  grid-column: 2;
  justify-self: end;
}

@keyframes ritualCardShake {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  25% {
    transform: rotate(-6deg) translate(-8px, 2px);
  }
  50% {
    transform: rotate(5deg) translate(8px, -1px);
  }
  75% {
    transform: rotate(-4deg) translate(-6px, 1px);
  }
  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

@keyframes ritualSlotOrbitA {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-12px, -3px) rotate(-7deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes ritualSlotOrbitB {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(12px, 2px) rotate(7deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes ritualMysticSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.03);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes ritualPileWash {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)) scale(var(--pile-s));
  }
  40% {
    transform: translate(-50%, -50%) translate(calc(var(--pile-x) * 1.1), calc(var(--pile-y) * 1.12))
      rotate(calc(var(--pile-r) + 8deg)) scale(calc(var(--pile-s) * 1.01));
  }
  70% {
    transform: translate(-50%, -50%) translate(calc(var(--pile-x) * 0.88), calc(var(--pile-y) * 0.92))
      rotate(calc(var(--pile-r) - 6deg)) scale(calc(var(--pile-s) * 0.99));
  }
}

@keyframes ritualPileTableWash {
  0% {
    transform: translate(-50%, -50%) translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)) scale(var(--pile-s));
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--pile-shuffle-x, var(--pile-x)), var(--pile-shuffle-y, var(--pile-y)))
      rotate(var(--pile-shuffle-r, var(--pile-r))) scale(var(--pile-shuffle-s, var(--pile-s)));
  }
}

@keyframes ritualPileOpenFan {
  0% {
    transform: translate(-50%, -50%) translate(var(--pile-open-x, var(--pile-x)), var(--pile-open-y, var(--pile-y)))
      rotate(var(--pile-open-r, var(--pile-r))) scale(var(--pile-open-s, var(--pile-s)));
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)) scale(var(--pile-s));
  }
}

@keyframes ritualPileGather {
  0% {
    transform: translate(-50%, -50%) translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)) scale(var(--pile-s));
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--pile-x) * 0.2), calc(var(--pile-y) * 0.22))
      rotate(calc(var(--pile-r) * 0.24)) scale(0.93);
  }
}

@keyframes ritualPileMoveToWheel {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
  55% {
    transform: translateX(12%) translateY(2%) scale(0.96);
    opacity: 0.8;
  }
  100% {
    transform: translateX(20%) translateY(4%) scale(0.9);
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ritual-card-slot.is-shuffling::before,
  .ritual-card-slot.is-shuffling::after,
  .ritual-card-slot.is-shuffling img,
  .ritual-card-slot.is-pile.is-shuffling .ritual-pile-card,
  .ritual-primary-action #ritual-shuffle::before,
  .reveal-flip-btn,
  .stage-pill.active,
  .hero-orb::before,
  .hero-orb::after,
  .hero-orb-glow,
  .hero-orb-core,
  .hero-visual::before,
  .hero-visual::after {
    animation: none;
  }
}

.deck-option {
  border: 1px solid #d2ddda;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: 180ms ease;
}

.deck-option:hover,
.deck-option:focus-visible {
  border-color: #6e9b9b;
  transform: translateY(-1px);
}

.deck-option img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 10px;
}

.deck-option span {
  margin-top: 8px;
  display: block;
  font-size: 0.76rem;
  color: var(--text-2);
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.reveal-card {
  border: 1px solid #d4dfdc;
  border-radius: 14px;
  background: #ffffffef;
  padding: 10px;
  position: relative;
}

.reveal-cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.reveal-card img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d8e2df;
}

.reveal-card--pending .reveal-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(242, 255, 253, 0.14), rgba(50, 70, 76, 0.25) 72%),
    linear-gradient(180deg, rgba(16, 28, 34, 0.14), rgba(16, 28, 34, 0.28));
  pointer-events: none;
}

.reveal-flip-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(174, 208, 206, 0.9);
  border-radius: 999px;
  padding: 10px 18px;
  min-width: 132px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e8f5f4;
  text-shadow: 0 1px 2px rgba(14, 24, 31, 0.58);
  background:
    radial-gradient(circle at 26% 20%, rgba(252, 255, 255, 0.35), rgba(252, 255, 255, 0) 50%),
    linear-gradient(145deg, rgba(62, 90, 102, 0.94), rgba(47, 67, 76, 0.92));
  box-shadow:
    0 0 0 1px rgba(198, 231, 229, 0.25),
    0 12px 22px rgba(32, 48, 57, 0.4),
    0 0 24px rgba(130, 176, 176, 0.25);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
  animation: revealOrbPulse 2.4s ease-in-out infinite;
}

.reveal-flip-btn:hover,
.reveal-flip-btn:focus-visible {
  transform: translate(-50%, -50%) translateY(-1px);
  border-color: rgba(199, 233, 230, 1);
  color: #f3fffe;
  box-shadow:
    0 0 0 1px rgba(205, 239, 235, 0.34),
    0 16px 24px rgba(28, 44, 53, 0.48),
    0 0 30px rgba(167, 206, 204, 0.34);
}

.reveal-flip-btn:active {
  transform: translate(-50%, -50%) translateY(0);
}

@keyframes revealOrbPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(198, 231, 229, 0.25),
      0 12px 22px rgba(32, 48, 57, 0.4),
      0 0 18px rgba(130, 176, 176, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(207, 236, 233, 0.38),
      0 14px 24px rgba(32, 48, 57, 0.48),
      0 0 30px rgba(158, 204, 200, 0.32);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(198, 231, 229, 0.25),
      0 12px 22px rgba(32, 48, 57, 0.4),
      0 0 18px rgba(130, 176, 176, 0.2);
  }
}

.reveal-card h4 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}

.reveal-card p {
  margin: 0;
  color: var(--text-1);
  font-size: 0.9rem;
}

.report-panel {
  display: grid;
  gap: 14px;
}

.report-summary-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid #c6d7d3;
  background:
    radial-gradient(circle at 86% 10%, rgba(170, 205, 199, 0.24), rgba(170, 205, 199, 0) 42%),
    radial-gradient(circle at 10% 84%, rgba(229, 214, 177, 0.28), rgba(229, 214, 177, 0) 46%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 249, 0.98) 53%, rgba(240, 247, 246, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(54, 84, 90, 0.14);
  color: var(--text-0);
}

.report-prose {
  --report-measure: 46em;
  --report-card-measure: 60rem;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1rem, 1.16vw, 1.08rem);
  line-height: 2.04;
  letter-spacing: 0.008em;
  text-rendering: optimizeLegibility;
}

.report-prose > *:first-child {
  margin-top: 0;
}

.report-prose > *:last-child {
  margin-bottom: 0;
}

.report-prose h1,
.report-prose h2,
.report-prose h3,
.report-prose h4 {
  margin: 0 0 18px;
  color: #2a3a44;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.028em;
  text-wrap: balance;
}

.report-prose > h2,
.report-prose > h3,
.report-prose > p,
.report-prose > ul,
.report-prose > ol,
.report-prose > blockquote,
.report-prose > pre {
  max-width: min(100%, var(--report-measure));
  margin-inline: auto;
}

.report-prose h1 {
  font-size: clamp(1.66rem, 2.48vw, 2.14rem);
}

.report-prose h2 {
  font-size: 1.42rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.report-prose > h2:not(:first-of-type) {
  position: relative;
  margin-top: 30px;
  padding-top: 28px;
  border-top: none;
}

.report-prose > h2:not(:first-of-type)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(132px, 22%, 220px);
  height: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 251, 249, 0.96), rgba(188, 213, 209, 0.22) 26%, rgba(188, 213, 209, 0) 62%),
    linear-gradient(90deg, rgba(126, 157, 153, 0), rgba(126, 157, 153, 0.4) 18%, rgba(126, 157, 153, 0.62) 50%, rgba(126, 157, 153, 0.4) 82%, rgba(126, 157, 153, 0));
  background-repeat: no-repeat;
  background-size: 16px 14px, 100% 1px;
  background-position: center, center;
  filter: drop-shadow(0 8px 18px rgba(171, 201, 197, 0.18));
}

.report-prose h3 {
  color: #2c4350;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.18rem, 1.38vw, 1.34rem);
  line-height: 1.56;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.012em;
  text-wrap: pretty;
}

.report-prose .jg-report-reading-card {
  display: grid;
  grid-template-columns: clamp(116px, 10vw, 138px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
  margin: 28px auto 34px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(191, 209, 205, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 244, 216, 0.28), rgba(255, 244, 216, 0) 34%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(75, 101, 104, 0.08);
  max-width: min(100%, var(--report-card-measure));
}

.report-prose .jg-report-reading-card-media {
  display: grid;
  align-content: start;
}

.report-prose .jg-report-reading-card-visual {
  width: 100%;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 247, 246, 0.94), rgba(220, 234, 231, 0.9));
  box-shadow:
    0 12px 26px rgba(76, 102, 107, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.report-prose .jg-report-reading-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-prose .jg-report-reading-card-visual img.is-reversed {
  transform: rotate(180deg);
}

.report-prose .jg-report-reading-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  color: #6d8088;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.report-prose .jg-report-reading-card-body {
  min-width: 0;
  max-width: none;
}

.report-prose .jg-report-reading-card-meta {
  margin: 0 0 8px;
  color: #72878e;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.012em;
}

.report-prose .jg-report-reading-card h3 {
  margin: 0 0 10px;
  color: #2a3e49;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.16rem, 1.52vw, 1.34rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.report-prose .jg-report-reading-card p {
  margin: 0;
}

.report-prose .jg-report-reading-card p + p {
  margin-top: 0.82em;
}

@media (max-width: 720px) {
  .report-prose .jg-report-reading-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    margin: 18px 0 24px;
    padding: 14px;
    border-radius: 20px;
  }

  .report-prose .jg-report-reading-card h3 {
    font-size: 1.08rem;
    line-height: 1.48;
  }

  .report-prose .jg-report-reading-card-meta {
    font-size: 0.86rem;
  }
}

.report-prose p {
  margin: 0;
  color: #415863;
  text-wrap: pretty;
}

.report-prose p + p {
  margin-top: 0.82em;
}

.report-prose ul,
.report-prose ol {
  margin: 0.28rem 0 0.3rem;
  padding-left: 1.5rem;
  color: #4e626b;
}

.report-prose li {
  margin: 0 0 1rem;
  padding-left: 0.16em;
  line-height: 1.92;
  text-wrap: pretty;
}

.report-prose li:last-child {
  margin-bottom: 0;
}

.report-prose li p {
  margin: 0;
}

.report-prose li p + p {
  margin-top: 0.68em;
}

.report-prose hr {
  border: 0;
  width: clamp(136px, 22%, 224px);
  height: 14px;
  margin: 22px 0 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 251, 249, 0.96), rgba(188, 213, 209, 0.22) 26%, rgba(188, 213, 209, 0) 62%),
    linear-gradient(90deg, rgba(126, 157, 153, 0), rgba(126, 157, 153, 0.4) 18%, rgba(126, 157, 153, 0.62) 50%, rgba(126, 157, 153, 0.4) 82%, rgba(126, 157, 153, 0));
  background-repeat: no-repeat;
  background-size: 16px 14px, 100% 1px;
  background-position: center, center;
  filter: drop-shadow(0 8px 18px rgba(171, 201, 197, 0.18));
}

.report-prose strong {
  color: #223744;
  font-weight: 700;
}

.report-prose em {
  color: #627c86;
  font-style: italic;
}

.report-prose blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 2px solid rgba(108, 147, 154, 0.55);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 10px;
}

.report-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.88em;
  padding: 0.12em 0.34em;
  border-radius: 5px;
  background: rgba(227, 239, 236, 0.78);
  color: #2d4750;
}

.report-prose pre {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(177, 201, 196, 0.6);
  border-radius: 12px;
  background: rgba(248, 253, 252, 0.95);
  overflow: auto;
}

.report-prose pre code {
  padding: 0;
  background: none;
}

.report-prose a {
  color: #4f7f87;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-fallback-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #c7d5d2;
  color: #6f8087;
  font-size: 0.96rem;
  line-height: 1.6;
}

.report-fallback-note a {
  color: #4f7f87;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-fallback-detail {
  display: block;
  margin-top: 6px;
  color: #7f8f95;
  font-size: 0.9rem;
}

.report-summary-card .report-fallback-note {
  border-top-color: rgba(174, 201, 197, 0.75);
  color: #5b727b;
}

.report-summary-card .report-fallback-note a {
  color: #4f7f87;
}

.report-summary-card .report-fallback-detail {
  color: #71848b;
}

.key-status-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.key-status-card {
  padding: 14px;
}

.key-status-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.key-kv-grid {
  display: grid;
  gap: 8px;
}

.key-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d8e1de;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fbfefd;
  color: #51636b;
  font-size: 0.9rem;
}

.key-kv span {
  color: #748790;
}

.key-kv strong {
  color: #334750;
  font-weight: 600;
}

.key-action-row {
  margin-top: 10px;
  justify-content: flex-start;
}

.key-result-card {
  margin-top: 14px;
  padding: 14px;
}

.key-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.chip.danger {
  border-color: #d7b7b7;
  background: #fdf2f2;
  color: #8b4d4d;
}

.key-result-output {
  margin: 0;
  padding: 12px;
  border: 1px solid #d6e0de;
  border-radius: 12px;
  background: #f9fcfb;
  color: #42565f;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.86rem;
}

.chat-box {
  border: 1px solid #d7e0de;
  border-radius: 14px;
  background: #fbfefd;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
}

.chat-item {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.chat-item strong {
  color: #376069;
}

.feedback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-option {
  border: 1px solid #cad8d4;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  cursor: pointer;
}

.feedback-option.active {
  background: #eaf7f4;
  border-color: #6f9b9c;
  color: #2e5661;
}

.catalog-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input {
  border-radius: 999px;
  padding: 10px 16px;
}

.catalog-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(188, 206, 202, 0.94);
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 243, 214, 0.26), rgba(255, 243, 214, 0) 26%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 250, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(90, 118, 116, 0.08);
}

.catalog-summary-main {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #38515a;
  line-height: 1;
  white-space: nowrap;
}

.catalog-summary-main strong {
  font-size: 1.42rem;
  font-weight: 700;
}

.catalog-summary-main span {
  color: #667b84;
  font-size: 0.92rem;
  font-weight: 600;
}

.catalog-summary-filters {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.catalog-summary-label {
  color: #81939a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.catalog-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(178, 202, 201, 0.9);
  background: rgba(239, 248, 246, 0.94);
  color: #41616a;
  font-size: 0.86rem;
  font-weight: 700;
}

.catalog-summary-pill--query {
  background: rgba(252, 248, 238, 0.96);
  border-color: rgba(214, 198, 164, 0.9);
  color: #705f3f;
}

.catalog-empty-state {
  grid-column: 1 / -1;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(205, 218, 215, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.95));
  color: #587079;
  text-align: center;
  box-shadow: 0 8px 18px rgba(124, 149, 146, 0.06);
}

.catalog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.catalog-grid--spreads {
  gap: 18px;
  grid-template-columns: 1fr;
}

.catalog-item {
  border: 1px solid #d6dfdc;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: 180ms ease;
}

.catalog-item:hover,
.catalog-item:focus-visible {
  border-color: #6f9998;
  transform: translateY(-2px);
}

.catalog-item > img {
  width: 100%;
  aspect-ratio: 3 / 5;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #d8e1df;
}

.catalog-item h3 {
  margin: 10px 0 4px;
  font-size: 1.14rem;
}

.catalog-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-2);
}

.catalog-item-keywords {
  margin-top: 8px;
}

.spread-catalog-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  min-height: 192px;
}

.spread-catalog-cover.spread-cover--compact {
  margin: 0;
  height: auto;
  min-height: 148px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 214, 0.28), rgba(255, 244, 214, 0) 42%),
    linear-gradient(170deg, rgba(251, 253, 252, 0.98), rgba(241, 247, 246, 0.96));
}

.spread-diagram {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--spread-diagram-cols, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--spread-diagram-rows, 3), minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.spread-diagram--preview {
  max-width: 128px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.spread-diagram-slot {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 26px;
  min-height: 34px;
  display: grid;
  place-items: center;
}

.spread-diagram-slot-inner {
  width: min(100%, 30px);
  aspect-ratio: 3 / 5;
  border-radius: 6px;
  border: 1px solid rgba(145, 168, 170, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 246, 0.94)),
    radial-gradient(circle at 50% 26%, rgba(188, 209, 206, 0.2), rgba(188, 209, 206, 0) 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 6px 12px rgba(85, 108, 114, 0.08);
}

.spread-diagram-slot-order {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(91, 121, 126, 0.9);
  color: #f6fcfc;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(68, 90, 95, 0.16);
  z-index: 1;
  pointer-events: none;
}

.spread-catalog-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.spread-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: #7e8e95;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.spread-catalog-meta span {
  display: inline-flex;
  align-items: center;
}

.spread-catalog-meta span + span::before {
  content: '·';
  margin: 0 8px;
  color: #b1bfbe;
}

.spread-catalog-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.spread-catalog-card h3 {
  margin: 0;
  font-size: clamp(1.18rem, 1.3vw, 1.4rem);
  line-height: 1.34;
  color: #2f424b;
}

.spread-catalog-summary {
  margin: 0;
  color: #61757d;
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 62ch;
}

.spread-catalog-use {
  margin: 0;
  color: #73868d;
  font-size: 0.85rem;
  line-height: 1.62;
}

.spread-catalog-use-label {
  margin-right: 10px;
  color: #97a5aa;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(46, 61, 67, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(920px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  border: 1px solid #ccd8d5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 241, 208, 0.38), rgba(255, 241, 208, 0)),
    linear-gradient(172deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.95));
  box-shadow: 0 30px 60px rgba(24, 40, 49, 0.24);
  padding: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.catalog-modal-title {
  margin: 8px 0 0;
}

.catalog-modal-image {
  width: 100%;
  aspect-ratio: 3 / 5;
  border-radius: 14px;
  border: 1px solid #d4dfdc;
  object-fit: cover;
}

.modal-section-card {
  padding: 12px;
}

.modal-section-card h4 {
  margin: 0 0 8px;
}

.modal-list-compact {
  margin: 0;
  padding-left: 18px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d2dedd;
  background: #fff;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 420ms ease;
}

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

@media (max-width: 1080px) {
  .home-stack {
    min-height: auto;
    gap: 18px;
  }

  .hero-upper {
    min-height: auto;
  }

  .hero-copy--orbital {
    place-items: center;
    text-align: center;
  }

  .hero-stage-copy {
    width: min(100%, 700px);
    padding: 0 8px;
  }

  .hero-stage-copy::before {
    inset: -14% -10% -16%;
    border-radius: 999px;
  }

  .hero-orb {
    left: 50%;
    top: 38%;
    width: clamp(360px, 64vw, 560px);
  }

  .daily-preview {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

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

  .stage-progress {
    padding: 11px 13px;
  }

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

  .spread-heading-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spread-more-btn {
    justify-self: start;
  }

  #spread-summary.stage-step-sub {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .flow-question-title {
    max-width: min(100%, 84%);
  }

  .intent-chat-field {
    width: min(100%, 70%);
  }

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

  .flow-stages {
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .top-nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .top-nav-right-placeholder {
    display: none;
  }

  .nav-user-entry,
  .reading-user-entry {
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    padding-bottom: 6px;
  }

  .nav-links.open {
    display: flex;
  }

  .main-content {
    padding-top: 16px;
    padding-bottom: 96px;
  }

  .section {
    padding: 18px;
    border-radius: 20px;
  }

  .section.hero--blend {
    padding: 16px 4px 18px;
  }

  .title {
    font-size: 1.8rem;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .intent-chat-field {
    width: 100%;
  }

  .intent-suggestion-list {
    grid-template-columns: 1fr;
  }

  .flow-question-banner {
    margin-top: 6px;
    margin-bottom: 2px;
  }

  .flow-question-title {
    max-width: 100%;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .key-status-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stage-actions {
    justify-content: flex-start;
  }

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

  .ritual-stage-actions .stage-back-btn,
  .ritual-stage-actions #to-report {
    justify-self: center;
  }

  .ritual-track-viewport {
    width: 100%;
  }

  .stage-progress {
    top: 72px;
    padding: 10px 12px;
  }

  .stage-progress-kicker {
    display: none;
  }

  .stage-progress-summary {
    font-size: 0.88rem;
  }

  .stage-progress-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .stage-progress-track::-webkit-scrollbar {
    display: none;
  }

  .stage-pill {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .stage-pill-head {
    display: none;
  }

  .stage-pill-index {
    width: 18px;
    height: 18px;
    font-size: 0.66rem;
  }

  .stage-pill.active .stage-pill-index {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 560px) {
  .hero-upper {
    min-height: auto;
  }

  .hero-copy .title {
    font-size: clamp(2.04rem, 10.6vw, 2.68rem);
    line-height: 0.98;
  }

  .hero-title-leading {
    font-size: clamp(2.48rem, 11.8vw, 3.28rem);
    line-height: 0.98;
  }

  .hero-stage-copy {
    gap: 14px;
    padding: 0 2px;
  }

  .hero-title-lines > span {
    white-space: normal;
  }

  .hero-title-line {
    letter-spacing: 0.02em;
  }

  .hero-title-leading {
    font-size: clamp(2.18rem, 9.2vw, 2.88rem);
    line-height: 1.04;
  }

  .hero-copy .subtitle {
    font-size: 0.9rem;
    line-height: 1.72;
    max-width: 19em;
  }

  .hero-cta {
    width: 100%;
    padding-inline: 20px;
  }

  .daily-preview-panel {
    border-radius: 24px;
    padding: 0;
  }

  .daily-preview {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'card';
    gap: 22px;
    padding: 18px 16px 20px;
  }

  .daily-preview-copy {
    justify-items: center;
    text-align: center;
    max-width: none;
  }

  .daily-title {
    font-size: 1.28rem;
  }

  .daily-helper {
    font-size: 0.88rem;
  }

  .daily-note {
    width: 100%;
    text-align: center;
  }

  .daily-preview-card {
    width: 154px;
    min-width: 0;
    justify-self: center;
  }

  .daily-actions {
    justify-content: center;
  }

  .daily-actions .btn {
    padding: 13px 22px;
    font-size: 0.94rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-col {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

body {
  background-attachment: fixed;
}
